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/lib/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;

106
node_modules/vant/lib/space/Space.js generated vendored Normal file
View File

@@ -0,0 +1,106 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name2 in all)
__defProp(target, name2, { get: all[name2], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var stdin_exports = {};
__export(stdin_exports, {
default: () => stdin_default,
spaceProps: () => spaceProps
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
const [name, bem] = (0, import_utils.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 === import_vue.Fragment) {
nodes.push(...filterEmpty(child.children));
} else {
nodes.push(child);
}
});
return nodes.filter((c) => {
var _a;
return !(c && (c.type === import_vue.Comment || c.type === import_vue.Fragment && ((_a = c.children) == null ? void 0 : _a.length) === 0 || c.type === import_vue.Text && c.children.trim() === ""));
});
}
var stdin_default = (0, import_vue.defineComponent)({
name,
props: spaceProps,
setup(props, {
slots
}) {
const mergedAlign = (0, import_vue.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 (0, import_vue.createVNode)("div", {
"class": [bem({
[props.direction]: props.direction,
[`align-${mergedAlign.value}`]: mergedAlign.value,
wrap: props.wrap,
fill: props.fill
})]
}, [children.map((c, i) => (0, import_vue.createVNode)("div", {
"key": `item-${i}`,
"class": `${name}-item`,
"style": getMarginStyle(i === children.length - 1)
}, [c]))]);
};
}
});

1
node_modules/vant/lib/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/lib/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;
}
}

39
node_modules/vant/lib/space/index.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var stdin_exports = {};
__export(stdin_exports, {
Space: () => Space,
default: () => stdin_default,
spaceProps: () => import_Space2.spaceProps
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_Space = __toESM(require("./Space"));
var import_Space2 = require("./Space");
const Space = (0, import_utils.withInstall)(import_Space.default);
var stdin_default = Space;

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

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

2
node_modules/vant/lib/space/style/index.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
require("../../style/base.css");
require("../index.css");