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

48
node_modules/vant/es/space/Space.d.ts generated vendored Normal file
View File

@@ -0,0 +1,48 @@
import { ExtractPropTypes, PropType } from 'vue';
export type SpaceSize = number | string;
export type SpaceAlign = 'start' | 'end' | 'center' | 'baseline';
export declare const spaceProps: {
align: PropType<SpaceAlign>;
direction: {
type: PropType<"vertical" | "horizontal">;
default: string;
};
size: {
type: PropType<number | string | [SpaceSize, SpaceSize]>;
default: number;
};
wrap: BooleanConstructor;
fill: BooleanConstructor;
};
export type SpaceProps = ExtractPropTypes<typeof spaceProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
align: PropType<SpaceAlign>;
direction: {
type: PropType<"vertical" | "horizontal">;
default: string;
};
size: {
type: PropType<number | string | [SpaceSize, SpaceSize]>;
default: number;
};
wrap: BooleanConstructor;
fill: BooleanConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
align: PropType<SpaceAlign>;
direction: {
type: PropType<"vertical" | "horizontal">;
default: string;
};
size: {
type: PropType<number | string | [SpaceSize, SpaceSize]>;
default: number;
};
wrap: BooleanConstructor;
fill: BooleanConstructor;
}>> & Readonly<{}>, {
fill: boolean;
size: string | number | [SpaceSize, SpaceSize];
wrap: boolean;
direction: "horizontal" | "vertical";
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

87
node_modules/vant/es/space/Space.mjs generated vendored Normal file
View File

@@ -0,0 +1,87 @@
import { computed, Comment, defineComponent, Fragment, Text, createVNode as _createVNode } from "vue";
import { createNamespace } from "../utils/index.mjs";
const [name, bem] = createNamespace("space");
const spaceProps = {
align: String,
direction: {
type: String,
default: "horizontal"
},
size: {
type: [Number, String, Array],
default: 8
},
wrap: Boolean,
fill: Boolean
};
function filterEmpty(children = []) {
const nodes = [];
children.forEach((child) => {
if (Array.isArray(child)) {
nodes.push(...child);
} else if (child.type === Fragment) {
nodes.push(...filterEmpty(child.children));
} else {
nodes.push(child);
}
});
return nodes.filter((c) => {
var _a;
return !(c && (c.type === Comment || c.type === Fragment && ((_a = c.children) == null ? void 0 : _a.length) === 0 || c.type === Text && c.children.trim() === ""));
});
}
var stdin_default = defineComponent({
name,
props: spaceProps,
setup(props, {
slots
}) {
const mergedAlign = computed(() => {
var _a;
return (_a = props.align) != null ? _a : props.direction === "horizontal" ? "center" : "";
});
const getMargin = (size) => {
if (typeof size === "number") {
return size + "px";
}
return size;
};
const getMarginStyle = (isLast) => {
const style = {};
const marginRight = `${getMargin(Array.isArray(props.size) ? props.size[0] : props.size)}`;
const marginBottom = `${getMargin(Array.isArray(props.size) ? props.size[1] : props.size)}`;
if (isLast) {
return props.wrap ? {
marginBottom
} : {};
}
if (props.direction === "horizontal") {
style.marginRight = marginRight;
}
if (props.direction === "vertical" || props.wrap) {
style.marginBottom = marginBottom;
}
return style;
};
return () => {
var _a;
const children = filterEmpty((_a = slots.default) == null ? void 0 : _a.call(slots));
return _createVNode("div", {
"class": [bem({
[props.direction]: props.direction,
[`align-${mergedAlign.value}`]: mergedAlign.value,
wrap: props.wrap,
fill: props.fill
})]
}, [children.map((c, i) => _createVNode("div", {
"key": `item-${i}`,
"class": `${name}-item`,
"style": getMarginStyle(i === children.length - 1)
}, [c]))]);
};
}
});
export {
stdin_default as default,
spaceProps
};

1
node_modules/vant/es/space/index.css generated vendored Normal file
View File

@@ -0,0 +1 @@
.van-space{display:inline-flex}.van-space--horizontal .van-space-item{display:flex;align-items:center}.van-space--vertical{flex-direction:column}.van-space--align-baseline{align-items:baseline}.van-space--align-start{align-items:flex-start}.van-space--align-end{align-items:flex-end}.van-space--align-center{align-items:center}.van-space--wrap{flex-wrap:wrap}.van-space--fill{display:flex}

38
node_modules/vant/es/space/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,38 @@
export declare const Space: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
align: import("vue").PropType<import("./Space").SpaceAlign>;
direction: {
type: import("vue").PropType<"vertical" | "horizontal">;
default: string;
};
size: {
type: import("vue").PropType<number | string | [import("./Space").SpaceSize, import("./Space").SpaceSize]>;
default: number;
};
wrap: BooleanConstructor;
fill: BooleanConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
align: import("vue").PropType<import("./Space").SpaceAlign>;
direction: {
type: import("vue").PropType<"vertical" | "horizontal">;
default: string;
};
size: {
type: import("vue").PropType<number | string | [import("./Space").SpaceSize, import("./Space").SpaceSize]>;
default: number;
};
wrap: BooleanConstructor;
fill: BooleanConstructor;
}>> & Readonly<{}>, {
fill: boolean;
size: string | number | [import("./Space").SpaceSize, import("./Space").SpaceSize];
wrap: boolean;
direction: "horizontal" | "vertical";
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default Space;
export { spaceProps } from './Space';
export type { SpaceProps, SpaceSize, SpaceAlign } from './Space';
declare module 'vue' {
interface GlobalComponents {
VanSpace: typeof Space;
}
}

10
node_modules/vant/es/space/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import { withInstall } from "../utils/index.mjs";
import _Space from "./Space.mjs";
const Space = withInstall(_Space);
var stdin_default = Space;
import { spaceProps } from "./Space.mjs";
export {
Space,
stdin_default as default,
spaceProps
};

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

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

2
node_modules/vant/es/space/style/index.mjs generated vendored Normal file
View File

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