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

198
node_modules/vant/lib/action-sheet/ActionSheet.d.ts generated vendored Normal file
View File

@@ -0,0 +1,198 @@
import { type ExtractPropTypes } from 'vue';
export type ActionSheetAction = {
icon?: string;
name?: string;
color?: string;
subname?: string;
loading?: boolean;
disabled?: boolean;
callback?: (action: ActionSheetAction) => void;
className?: unknown;
};
export declare const actionSheetProps: {
show: BooleanConstructor;
zIndex: (NumberConstructor | StringConstructor)[];
overlay: {
type: BooleanConstructor;
default: true;
};
duration: (NumberConstructor | StringConstructor)[];
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
lockScroll: {
type: BooleanConstructor;
default: true;
};
lazyRender: {
type: BooleanConstructor;
default: true;
};
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
overlayClass: import("vue").PropType<unknown>;
transitionAppear: BooleanConstructor;
closeOnClickOverlay: {
type: BooleanConstructor;
default: true;
};
} & {
title: StringConstructor;
round: {
type: BooleanConstructor;
default: true;
};
actions: {
type: import("vue").PropType<ActionSheetAction[]>;
default: () => never[];
};
closeIcon: {
type: import("vue").PropType<string>;
default: string;
};
closeable: {
type: BooleanConstructor;
default: true;
};
cancelText: StringConstructor;
description: StringConstructor;
closeOnPopstate: {
type: BooleanConstructor;
default: true;
};
closeOnClickAction: BooleanConstructor;
safeAreaInsetBottom: {
type: BooleanConstructor;
default: true;
};
};
export type ActionSheetProps = ExtractPropTypes<typeof actionSheetProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
show: BooleanConstructor;
zIndex: (NumberConstructor | StringConstructor)[];
overlay: {
type: BooleanConstructor;
default: true;
};
duration: (NumberConstructor | StringConstructor)[];
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
lockScroll: {
type: BooleanConstructor;
default: true;
};
lazyRender: {
type: BooleanConstructor;
default: true;
};
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
overlayClass: import("vue").PropType<unknown>;
transitionAppear: BooleanConstructor;
closeOnClickOverlay: {
type: BooleanConstructor;
default: true;
};
} & {
title: StringConstructor;
round: {
type: BooleanConstructor;
default: true;
};
actions: {
type: import("vue").PropType<ActionSheetAction[]>;
default: () => never[];
};
closeIcon: {
type: import("vue").PropType<string>;
default: string;
};
closeable: {
type: BooleanConstructor;
default: true;
};
cancelText: StringConstructor;
description: StringConstructor;
closeOnPopstate: {
type: BooleanConstructor;
default: true;
};
closeOnClickAction: BooleanConstructor;
safeAreaInsetBottom: {
type: BooleanConstructor;
default: true;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").PublicProps, Readonly<ExtractPropTypes<{
show: BooleanConstructor;
zIndex: (NumberConstructor | StringConstructor)[];
overlay: {
type: BooleanConstructor;
default: true;
};
duration: (NumberConstructor | StringConstructor)[];
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
lockScroll: {
type: BooleanConstructor;
default: true;
};
lazyRender: {
type: BooleanConstructor;
default: true;
};
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
overlayClass: import("vue").PropType<unknown>;
transitionAppear: BooleanConstructor;
closeOnClickOverlay: {
type: BooleanConstructor;
default: true;
};
} & {
title: StringConstructor;
round: {
type: BooleanConstructor;
default: true;
};
actions: {
type: import("vue").PropType<ActionSheetAction[]>;
default: () => never[];
};
closeIcon: {
type: import("vue").PropType<string>;
default: string;
};
closeable: {
type: BooleanConstructor;
default: true;
};
cancelText: StringConstructor;
description: StringConstructor;
closeOnPopstate: {
type: BooleanConstructor;
default: true;
};
closeOnClickAction: BooleanConstructor;
safeAreaInsetBottom: {
type: BooleanConstructor;
default: true;
};
}>> & Readonly<{
onSelect?: ((...args: any[]) => any) | undefined;
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
onCancel?: ((...args: any[]) => any) | undefined;
}>, {
round: boolean;
overlay: boolean;
show: boolean;
safeAreaInsetBottom: boolean;
lockScroll: boolean;
lazyRender: boolean;
transitionAppear: boolean;
closeOnClickOverlay: boolean;
closeIcon: string;
closeable: boolean;
closeOnPopstate: boolean;
actions: ActionSheetAction[];
closeOnClickAction: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

158
node_modules/vant/lib/action-sheet/ActionSheet.js generated vendored Normal file
View File

@@ -0,0 +1,158 @@
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, {
actionSheetProps: () => actionSheetProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_icon = require("../icon");
var import_popup = require("../popup");
var import_loading = require("../loading");
var import_shared = require("../popup/shared");
const [name, bem] = (0, import_utils.createNamespace)("action-sheet");
const actionSheetProps = (0, import_utils.extend)({}, import_shared.popupSharedProps, {
title: String,
round: import_utils.truthProp,
actions: (0, import_utils.makeArrayProp)(),
closeIcon: (0, import_utils.makeStringProp)("cross"),
closeable: import_utils.truthProp,
cancelText: String,
description: String,
closeOnPopstate: import_utils.truthProp,
closeOnClickAction: Boolean,
safeAreaInsetBottom: import_utils.truthProp
});
const popupInheritKeys = [...import_shared.popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
var stdin_default = (0, import_vue.defineComponent)({
name,
props: actionSheetProps,
emits: ["select", "cancel", "update:show"],
setup(props, {
slots,
emit
}) {
const updateShow = (show) => emit("update:show", show);
const onCancel = () => {
updateShow(false);
emit("cancel");
};
const renderHeader = () => {
if (props.title) {
return (0, import_vue.createVNode)("div", {
"class": bem("header")
}, [props.title, props.closeable && (0, import_vue.createVNode)(import_icon.Icon, {
"name": props.closeIcon,
"class": [bem("close"), import_utils.HAPTICS_FEEDBACK],
"onClick": onCancel
}, null)]);
}
};
const renderCancel = () => {
if (slots.cancel || props.cancelText) {
return [(0, import_vue.createVNode)("div", {
"class": bem("gap")
}, null), (0, import_vue.createVNode)("button", {
"type": "button",
"class": bem("cancel"),
"onClick": onCancel
}, [slots.cancel ? slots.cancel() : props.cancelText])];
}
};
const renderIcon = (action) => {
if (action.icon) {
return (0, import_vue.createVNode)(import_icon.Icon, {
"class": bem("item-icon"),
"name": action.icon
}, null);
}
};
const renderActionContent = (action, index) => {
if (action.loading) {
return (0, import_vue.createVNode)(import_loading.Loading, {
"class": bem("loading-icon")
}, null);
}
if (slots.action) {
return slots.action({
action,
index
});
}
return [(0, import_vue.createVNode)("span", {
"class": bem("name")
}, [action.name]), action.subname && (0, import_vue.createVNode)("div", {
"class": bem("subname")
}, [action.subname])];
};
const renderAction = (action, index) => {
const {
color,
loading,
callback,
disabled,
className
} = action;
const onClick = () => {
if (disabled || loading) {
return;
}
if (callback) {
callback(action);
}
if (props.closeOnClickAction) {
updateShow(false);
}
(0, import_vue.nextTick)(() => emit("select", action, index));
};
return (0, import_vue.createVNode)("button", {
"type": "button",
"style": {
color
},
"class": [bem("item", {
loading,
disabled
}), className],
"onClick": onClick
}, [renderIcon(action), renderActionContent(action, index)]);
};
const renderDescription = () => {
if (props.description || slots.description) {
const content = slots.description ? slots.description() : props.description;
return (0, import_vue.createVNode)("div", {
"class": bem("description")
}, [content]);
}
};
return () => (0, import_vue.createVNode)(import_popup.Popup, (0, import_vue.mergeProps)({
"class": bem(),
"position": "bottom",
"onUpdate:show": updateShow
}, (0, import_utils.pick)(props, popupInheritKeys)), {
default: () => {
var _a;
return [renderHeader(), renderDescription(), (0, import_vue.createVNode)("div", {
"class": bem("content")
}, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
}
});
}
});

1
node_modules/vant/lib/action-sheet/index.css generated vendored Normal file
View File

@@ -0,0 +1 @@
:root,:host{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-item-icon-size: 18px;--van-action-sheet-item-icon-margin-right: var(--van-padding-xs);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__item-icon{font-size:var(--van-action-sheet-item-icon-size);margin-right:var(--van-action-sheet-item-icon-margin-right)}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{width:100%;margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height);overflow-wrap:break-word}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description: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-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;z-index:1;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}

138
node_modules/vant/lib/action-sheet/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,138 @@
export declare const ActionSheet: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
show: BooleanConstructor;
zIndex: (NumberConstructor | StringConstructor)[];
overlay: {
type: BooleanConstructor;
default: true;
};
duration: (NumberConstructor | StringConstructor)[];
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
lockScroll: {
type: BooleanConstructor;
default: true;
};
lazyRender: {
type: BooleanConstructor;
default: true;
};
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
overlayClass: import("vue").PropType<unknown>;
transitionAppear: BooleanConstructor;
closeOnClickOverlay: {
type: BooleanConstructor;
default: true;
};
} & {
title: StringConstructor;
round: {
type: BooleanConstructor;
default: true;
};
actions: {
type: import("vue").PropType<import("./ActionSheet").ActionSheetAction[]>;
default: () => never[];
};
closeIcon: {
type: import("vue").PropType<string>;
default: string;
};
closeable: {
type: BooleanConstructor;
default: true;
};
cancelText: StringConstructor;
description: StringConstructor;
closeOnPopstate: {
type: BooleanConstructor;
default: true;
};
closeOnClickAction: BooleanConstructor;
safeAreaInsetBottom: {
type: BooleanConstructor;
default: true;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
show: BooleanConstructor;
zIndex: (NumberConstructor | StringConstructor)[];
overlay: {
type: BooleanConstructor;
default: true;
};
duration: (NumberConstructor | StringConstructor)[];
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
lockScroll: {
type: BooleanConstructor;
default: true;
};
lazyRender: {
type: BooleanConstructor;
default: true;
};
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
overlayClass: import("vue").PropType<unknown>;
transitionAppear: BooleanConstructor;
closeOnClickOverlay: {
type: BooleanConstructor;
default: true;
};
} & {
title: StringConstructor;
round: {
type: BooleanConstructor;
default: true;
};
actions: {
type: import("vue").PropType<import("./ActionSheet").ActionSheetAction[]>;
default: () => never[];
};
closeIcon: {
type: import("vue").PropType<string>;
default: string;
};
closeable: {
type: BooleanConstructor;
default: true;
};
cancelText: StringConstructor;
description: StringConstructor;
closeOnPopstate: {
type: BooleanConstructor;
default: true;
};
closeOnClickAction: BooleanConstructor;
safeAreaInsetBottom: {
type: BooleanConstructor;
default: true;
};
}>> & Readonly<{
onSelect?: ((...args: any[]) => any) | undefined;
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
onCancel?: ((...args: any[]) => any) | undefined;
}>, {
round: boolean;
overlay: boolean;
show: boolean;
safeAreaInsetBottom: boolean;
lockScroll: boolean;
lazyRender: boolean;
transitionAppear: boolean;
closeOnClickOverlay: boolean;
closeIcon: string;
closeable: boolean;
closeOnPopstate: boolean;
actions: import("./ActionSheet").ActionSheetAction[];
closeOnClickAction: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default ActionSheet;
export { actionSheetProps } from './ActionSheet';
export type { ActionSheetProps, ActionSheetAction } from './ActionSheet';
export type { ActionSheetThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanActionSheet: typeof ActionSheet;
}
}

39
node_modules/vant/lib/action-sheet/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, {
ActionSheet: () => ActionSheet,
actionSheetProps: () => import_ActionSheet2.actionSheetProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_ActionSheet = __toESM(require("./ActionSheet"));
var import_ActionSheet2 = require("./ActionSheet");
const ActionSheet = (0, import_utils.withInstall)(import_ActionSheet.default);
var stdin_default = ActionSheet;

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

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

7
node_modules/vant/lib/action-sheet/style/index.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
require("../../style/base.css");
require("../../badge/index.css");
require("../../icon/index.css");
require("../../loading/index.css");
require("../../overlay/index.css");
require("../../popup/index.css");
require("../index.css");

23
node_modules/vant/lib/action-sheet/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,23 @@
export type ActionSheetThemeVars = {
actionSheetMaxHeight?: string;
actionSheetHeaderHeight?: string;
actionSheetHeaderFontSize?: string;
actionSheetDescriptionColor?: string;
actionSheetDescriptionFontSize?: string;
actionSheetDescriptionLineHeight?: number | string;
actionSheetItemBackground?: string;
actionSheetItemFontSize?: string;
actionSheetItemLineHeight?: number | string;
actionSheetItemTextColor?: string;
actionSheetItemDisabledTextColor?: string;
actionSheetSubnameColor?: string;
actionSheetSubnameFontSize?: string;
actionSheetSubnameLineHeight?: number | string;
actionSheetCloseIconSize?: string;
actionSheetCloseIconColor?: string;
actionSheetCloseIconPadding?: string;
actionSheetCancelTextColor?: string;
actionSheetCancelPaddingTop?: string;
actionSheetCancelPaddingColor?: string;
actionSheetLoadingIconSize?: string;
};

15
node_modules/vant/lib/action-sheet/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);