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

148
node_modules/vant/lib/cell/Cell.d.ts generated vendored Normal file
View File

@@ -0,0 +1,148 @@
import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
export type CellSize = 'normal' | 'large';
export type CellArrowDirection = 'up' | 'down' | 'left' | 'right';
export declare const cellSharedProps: {
tag: {
type: PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
icon: StringConstructor;
size: PropType<CellSize>;
title: (NumberConstructor | StringConstructor)[];
value: (NumberConstructor | StringConstructor)[];
label: (NumberConstructor | StringConstructor)[];
center: BooleanConstructor;
isLink: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
iconPrefix: StringConstructor;
valueClass: PropType<unknown>;
labelClass: PropType<unknown>;
titleClass: PropType<unknown>;
titleStyle: PropType<string | CSSProperties>;
arrowDirection: PropType<CellArrowDirection>;
required: {
type: PropType<boolean | "auto">;
default: null;
};
clickable: {
type: PropType<boolean | null>;
default: null;
};
};
export declare const cellProps: {
tag: {
type: PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
icon: StringConstructor;
size: PropType<CellSize>;
title: (NumberConstructor | StringConstructor)[];
value: (NumberConstructor | StringConstructor)[];
label: (NumberConstructor | StringConstructor)[];
center: BooleanConstructor;
isLink: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
iconPrefix: StringConstructor;
valueClass: PropType<unknown>;
labelClass: PropType<unknown>;
titleClass: PropType<unknown>;
titleStyle: PropType<string | CSSProperties>;
arrowDirection: PropType<CellArrowDirection>;
required: {
type: PropType<boolean | "auto">;
default: null;
};
clickable: {
type: PropType<boolean | null>;
default: null;
};
} & {
to: PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
};
export type CellProps = ExtractPropTypes<typeof cellProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
tag: {
type: PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
icon: StringConstructor;
size: PropType<CellSize>;
title: (NumberConstructor | StringConstructor)[];
value: (NumberConstructor | StringConstructor)[];
label: (NumberConstructor | StringConstructor)[];
center: BooleanConstructor;
isLink: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
iconPrefix: StringConstructor;
valueClass: PropType<unknown>;
labelClass: PropType<unknown>;
titleClass: PropType<unknown>;
titleStyle: PropType<string | CSSProperties>;
arrowDirection: PropType<CellArrowDirection>;
required: {
type: PropType<boolean | "auto">;
default: null;
};
clickable: {
type: PropType<boolean | null>;
default: null;
};
} & {
to: PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
tag: {
type: PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
icon: StringConstructor;
size: PropType<CellSize>;
title: (NumberConstructor | StringConstructor)[];
value: (NumberConstructor | StringConstructor)[];
label: (NumberConstructor | StringConstructor)[];
center: BooleanConstructor;
isLink: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
iconPrefix: StringConstructor;
valueClass: PropType<unknown>;
labelClass: PropType<unknown>;
titleClass: PropType<unknown>;
titleStyle: PropType<string | CSSProperties>;
arrowDirection: PropType<CellArrowDirection>;
required: {
type: PropType<boolean | "auto">;
default: null;
};
clickable: {
type: PropType<boolean | null>;
default: null;
};
} & {
to: PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
}>> & Readonly<{}>, {
replace: boolean;
tag: keyof HTMLElementTagNameMap;
center: boolean;
border: boolean;
isLink: boolean;
required: boolean | "auto";
clickable: boolean | null;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

150
node_modules/vant/lib/cell/Cell.js generated vendored Normal file
View File

@@ -0,0 +1,150 @@
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, {
cellProps: () => cellProps,
cellSharedProps: () => cellSharedProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_use_route = require("../composables/use-route");
var import_icon = require("../icon");
const [name, bem] = (0, import_utils.createNamespace)("cell");
const cellSharedProps = {
tag: (0, import_utils.makeStringProp)("div"),
icon: String,
size: String,
title: import_utils.numericProp,
value: import_utils.numericProp,
label: import_utils.numericProp,
center: Boolean,
isLink: Boolean,
border: import_utils.truthProp,
iconPrefix: String,
valueClass: import_utils.unknownProp,
labelClass: import_utils.unknownProp,
titleClass: import_utils.unknownProp,
titleStyle: null,
arrowDirection: String,
required: {
type: [Boolean, String],
default: null
},
clickable: {
type: Boolean,
default: null
}
};
const cellProps = (0, import_utils.extend)({}, cellSharedProps, import_use_route.routeProps);
var stdin_default = (0, import_vue.defineComponent)({
name,
props: cellProps,
setup(props, {
slots
}) {
const route = (0, import_use_route.useRoute)();
const renderLabel = () => {
const showLabel = slots.label || (0, import_utils.isDef)(props.label);
if (showLabel) {
return (0, import_vue.createVNode)("div", {
"class": [bem("label"), props.labelClass]
}, [slots.label ? slots.label() : props.label]);
}
};
const renderTitle = () => {
var _a;
if (slots.title || (0, import_utils.isDef)(props.title)) {
const titleSlot = (_a = slots.title) == null ? void 0 : _a.call(slots);
if (Array.isArray(titleSlot) && titleSlot.length === 0) {
return;
}
return (0, import_vue.createVNode)("div", {
"class": [bem("title"), props.titleClass],
"style": props.titleStyle
}, [titleSlot || (0, import_vue.createVNode)("span", null, [props.title]), renderLabel()]);
}
};
const renderValue = () => {
const slot = slots.value || slots.default;
const hasValue = slot || (0, import_utils.isDef)(props.value);
if (hasValue) {
return (0, import_vue.createVNode)("div", {
"class": [bem("value"), props.valueClass]
}, [slot ? slot() : (0, import_vue.createVNode)("span", null, [props.value])]);
}
};
const renderLeftIcon = () => {
if (slots.icon) {
return slots.icon();
}
if (props.icon) {
return (0, import_vue.createVNode)(import_icon.Icon, {
"name": props.icon,
"class": bem("left-icon"),
"classPrefix": props.iconPrefix
}, null);
}
};
const renderRightIcon = () => {
if (slots["right-icon"]) {
return slots["right-icon"]();
}
if (props.isLink) {
const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
return (0, import_vue.createVNode)(import_icon.Icon, {
"name": name2,
"class": bem("right-icon")
}, null);
}
};
return () => {
var _a;
const {
tag,
size,
center,
border,
isLink,
required
} = props;
const clickable = (_a = props.clickable) != null ? _a : isLink;
const classes = {
center,
required: !!required,
clickable,
borderless: !border
};
if (size) {
classes[size] = !!size;
}
return (0, import_vue.createVNode)(tag, {
"class": bem(classes),
"role": clickable ? "button" : void 0,
"tabindex": clickable ? 0 : void 0,
"onClick": route
}, {
default: () => {
var _a2;
return [renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), (_a2 = slots.extra) == null ? void 0 : _a2.call(slots)];
}
});
};
}
});

1
node_modules/vant/lib/cell/index.css generated vendored Normal file
View File

@@ -0,0 +1 @@
:root,:host{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-value-font-size: inherit;--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: inherit}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);font-size:var(--van-cell-value-font-size);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}

86
node_modules/vant/lib/cell/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,86 @@
export declare const Cell: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
tag: {
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
icon: StringConstructor;
size: import("vue").PropType<import("./Cell").CellSize>;
title: (NumberConstructor | StringConstructor)[];
value: (NumberConstructor | StringConstructor)[];
label: (NumberConstructor | StringConstructor)[];
center: BooleanConstructor;
isLink: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
iconPrefix: StringConstructor;
valueClass: import("vue").PropType<unknown>;
labelClass: import("vue").PropType<unknown>;
titleClass: import("vue").PropType<unknown>;
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
arrowDirection: import("vue").PropType<import("./Cell").CellArrowDirection>;
required: {
type: import("vue").PropType<boolean | "auto">;
default: null;
};
clickable: {
type: import("vue").PropType<boolean | null>;
default: null;
};
} & {
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
tag: {
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
icon: StringConstructor;
size: import("vue").PropType<import("./Cell").CellSize>;
title: (NumberConstructor | StringConstructor)[];
value: (NumberConstructor | StringConstructor)[];
label: (NumberConstructor | StringConstructor)[];
center: BooleanConstructor;
isLink: BooleanConstructor;
border: {
type: BooleanConstructor;
default: true;
};
iconPrefix: StringConstructor;
valueClass: import("vue").PropType<unknown>;
labelClass: import("vue").PropType<unknown>;
titleClass: import("vue").PropType<unknown>;
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
arrowDirection: import("vue").PropType<import("./Cell").CellArrowDirection>;
required: {
type: import("vue").PropType<boolean | "auto">;
default: null;
};
clickable: {
type: import("vue").PropType<boolean | null>;
default: null;
};
} & {
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
}>> & Readonly<{}>, {
replace: boolean;
tag: keyof HTMLElementTagNameMap;
center: boolean;
border: boolean;
isLink: boolean;
required: boolean | "auto";
clickable: boolean | null;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default Cell;
export { cellProps } from './Cell';
export type { CellSize, CellProps, CellArrowDirection } from './Cell';
export type { CellThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanCell: typeof Cell;
}
}

39
node_modules/vant/lib/cell/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, {
Cell: () => Cell,
cellProps: () => import_Cell2.cellProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_Cell = __toESM(require("./Cell"));
var import_Cell2 = require("./Cell");
const Cell = (0, import_utils.withInstall)(import_Cell.default);
var stdin_default = Cell;

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

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

4
node_modules/vant/lib/cell/style/index.js generated vendored Normal file
View File

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

21
node_modules/vant/lib/cell/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,21 @@
export type CellThemeVars = {
cellFontSize?: string;
cellLineHeight?: number | string;
cellVerticalPadding?: string;
cellHorizontalPadding?: string;
cellTextColor?: string;
cellBackground?: string;
cellBorderColor?: string;
cellActiveColor?: string;
cellRequiredColor?: string;
cellLabelColor?: string;
cellLabelFontSize?: string;
cellLabelLineHeight?: number | string;
cellLabelMarginTop?: string;
cellValueColor?: string;
cellIconSize?: string;
cellRightIconColor?: string;
cellLargeVerticalPadding?: string;
cellLargeTitleFontSize?: string;
cellLargeLabelFontSize?: string;
};

15
node_modules/vant/lib/cell/types.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
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 = {};
module.exports = __toCommonJS(stdin_exports);