first commit

This commit is contained in:
2025-12-29 14:59:44 +08:00
commit 10c3fbb0d7
5315 changed files with 795443 additions and 0 deletions

2
node_modules/vant/es/swipe-item/SwipeItem.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
declare const _default: import("vue").DefineComponent<{}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

81
node_modules/vant/es/swipe-item/SwipeItem.mjs generated vendored Normal file
View File

@@ -0,0 +1,81 @@
import { computed, nextTick, reactive, onMounted, defineComponent, createVNode as _createVNode } from "vue";
import { createNamespace } from "../utils/index.mjs";
import { SWIPE_KEY } from "../swipe/Swipe.mjs";
import { useParent } from "@vant/use";
import { useExpose } from "../composables/use-expose.mjs";
const [name, bem] = createNamespace("swipe-item");
var stdin_default = defineComponent({
name,
setup(props, {
slots
}) {
let rendered;
const state = reactive({
offset: 0,
inited: false,
mounted: false
});
const {
parent,
index
} = useParent(SWIPE_KEY);
if (!parent) {
if (process.env.NODE_ENV !== "production") {
console.error("[Vant] <SwipeItem> must be a child component of <Swipe>.");
}
return;
}
const style = computed(() => {
const style2 = {};
const {
vertical
} = parent.props;
if (parent.size.value) {
style2[vertical ? "height" : "width"] = `${parent.size.value}px`;
}
if (state.offset) {
style2.transform = `translate${vertical ? "Y" : "X"}(${state.offset}px)`;
}
return style2;
});
const shouldRender = computed(() => {
const {
loop,
lazyRender
} = parent.props;
if (!lazyRender || rendered) {
return true;
}
if (!state.mounted) {
return false;
}
const active = parent.activeIndicator.value;
const maxActive = parent.count.value - 1;
const prevActive = active === 0 && loop ? maxActive : active - 1;
const nextActive = active === maxActive && loop ? 0 : active + 1;
rendered = index.value === active || index.value === prevActive || index.value === nextActive;
return rendered;
});
const setOffset = (offset) => {
state.offset = offset;
};
onMounted(() => {
nextTick(() => {
state.mounted = true;
});
});
useExpose({
setOffset
});
return () => {
var _a;
return _createVNode("div", {
"class": bem(),
"style": style.value
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
};
}
});
export {
stdin_default as default
};

1
node_modules/vant/es/swipe-item/index.css generated vendored Normal file
View File

@@ -0,0 +1 @@
.van-swipe-item{position:relative;flex-shrink:0;width:100%;height:100%}

7
node_modules/vant/es/swipe-item/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
export declare const SwipeItem: import("../utils").WithInstall<import("vue").DefineComponent<{}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default SwipeItem;
declare module 'vue' {
interface GlobalComponents {
VanSwipeItem: typeof SwipeItem;
}
}

8
node_modules/vant/es/swipe-item/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,8 @@
import { withInstall } from "../utils/index.mjs";
import _SwipeItem from "./SwipeItem.mjs";
const SwipeItem = withInstall(_SwipeItem);
var stdin_default = SwipeItem;
export {
SwipeItem,
stdin_default as default
};

1
node_modules/vant/es/swipe-item/style/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export {};

3
node_modules/vant/es/swipe-item/style/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import "../../style/base.css";
import "../../swipe/index.css";
import "../index.css";