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

131
node_modules/vant/es/cell/Cell.mjs generated vendored Normal file
View File

@@ -0,0 +1,131 @@
import { defineComponent, createVNode as _createVNode } from "vue";
import { isDef, extend, truthProp, unknownProp, numericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
import { useRoute, routeProps } from "../composables/use-route.mjs";
import { Icon } from "../icon/index.mjs";
const [name, bem] = createNamespace("cell");
const cellSharedProps = {
tag: makeStringProp("div"),
icon: String,
size: String,
title: numericProp,
value: numericProp,
label: numericProp,
center: Boolean,
isLink: Boolean,
border: truthProp,
iconPrefix: String,
valueClass: unknownProp,
labelClass: unknownProp,
titleClass: unknownProp,
titleStyle: null,
arrowDirection: String,
required: {
type: [Boolean, String],
default: null
},
clickable: {
type: Boolean,
default: null
}
};
const cellProps = extend({}, cellSharedProps, routeProps);
var stdin_default = defineComponent({
name,
props: cellProps,
setup(props, {
slots
}) {
const route = useRoute();
const renderLabel = () => {
const showLabel = slots.label || isDef(props.label);
if (showLabel) {
return _createVNode("div", {
"class": [bem("label"), props.labelClass]
}, [slots.label ? slots.label() : props.label]);
}
};
const renderTitle = () => {
var _a;
if (slots.title || isDef(props.title)) {
const titleSlot = (_a = slots.title) == null ? void 0 : _a.call(slots);
if (Array.isArray(titleSlot) && titleSlot.length === 0) {
return;
}
return _createVNode("div", {
"class": [bem("title"), props.titleClass],
"style": props.titleStyle
}, [titleSlot || _createVNode("span", null, [props.title]), renderLabel()]);
}
};
const renderValue = () => {
const slot = slots.value || slots.default;
const hasValue = slot || isDef(props.value);
if (hasValue) {
return _createVNode("div", {
"class": [bem("value"), props.valueClass]
}, [slot ? slot() : _createVNode("span", null, [props.value])]);
}
};
const renderLeftIcon = () => {
if (slots.icon) {
return slots.icon();
}
if (props.icon) {
return _createVNode(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 _createVNode(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 _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)];
}
});
};
}
});
export {
cellProps,
cellSharedProps,
stdin_default as default
};

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

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

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

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

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

4
node_modules/vant/es/cell/style/index.mjs generated vendored Normal file
View File

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

21
node_modules/vant/es/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;
};

0
node_modules/vant/es/cell/types.mjs generated vendored Normal file
View File