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

137
node_modules/vant/lib/notify/Notify.d.ts generated vendored Normal file
View File

@@ -0,0 +1,137 @@
import { type ExtractPropTypes } from 'vue';
import type { NotifyType, NotifyPosition } from './types';
export declare const notifyProps: {
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;
};
} & {
type: {
type: import("vue").PropType<NotifyType>;
default: NotifyType;
};
color: StringConstructor;
message: (NumberConstructor | StringConstructor)[];
position: {
type: import("vue").PropType<NotifyPosition>;
default: NotifyPosition;
};
className: import("vue").PropType<unknown>;
background: StringConstructor;
lockScroll: BooleanConstructor;
};
export type NotifyProps = ExtractPropTypes<typeof notifyProps>;
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;
};
} & {
type: {
type: import("vue").PropType<NotifyType>;
default: NotifyType;
};
color: StringConstructor;
message: (NumberConstructor | StringConstructor)[];
position: {
type: import("vue").PropType<NotifyPosition>;
default: NotifyPosition;
};
className: import("vue").PropType<unknown>;
background: StringConstructor;
lockScroll: BooleanConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "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;
};
} & {
type: {
type: import("vue").PropType<NotifyType>;
default: NotifyType;
};
color: StringConstructor;
message: (NumberConstructor | StringConstructor)[];
position: {
type: import("vue").PropType<NotifyPosition>;
default: NotifyPosition;
};
className: import("vue").PropType<unknown>;
background: StringConstructor;
lockScroll: BooleanConstructor;
}>> & Readonly<{
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
}>, {
type: NotifyType;
position: NotifyPosition;
overlay: boolean;
show: boolean;
lockScroll: boolean;
lazyRender: boolean;
transitionAppear: boolean;
closeOnClickOverlay: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

61
node_modules/vant/lib/notify/Notify.js generated vendored Normal file
View File

@@ -0,0 +1,61 @@
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,
notifyProps: () => notifyProps
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_popup = require("../popup");
var import_shared = require("../popup/shared");
const [name, bem] = (0, import_utils.createNamespace)("notify");
const popupInheritProps = ["lockScroll", "position", "show", "teleport", "zIndex"];
const notifyProps = (0, import_utils.extend)({}, import_shared.popupSharedProps, {
type: (0, import_utils.makeStringProp)("danger"),
color: String,
message: import_utils.numericProp,
position: (0, import_utils.makeStringProp)("top"),
className: import_utils.unknownProp,
background: String,
lockScroll: Boolean
});
var stdin_default = (0, import_vue.defineComponent)({
name,
props: notifyProps,
emits: ["update:show"],
setup(props, {
emit,
slots
}) {
const updateShow = (show) => emit("update:show", show);
return () => (0, import_vue.createVNode)(import_popup.Popup, (0, import_vue.mergeProps)({
"class": [bem([props.type]), props.className],
"style": {
color: props.color,
background: props.background
},
"overlay": false,
"duration": 0.2,
"onUpdate:show": updateShow
}, (0, import_utils.pick)(props, popupInheritProps)), {
default: () => [slots.default ? slots.default() : props.message]
});
}
});

18
node_modules/vant/lib/notify/function-call.d.ts generated vendored Normal file
View File

@@ -0,0 +1,18 @@
import { type ComponentInstance } from '../utils';
import type { NotifyMessage, NotifyOptions } from './types';
/**
* Close the currently displayed Notify
*/
export declare const closeNotify: () => void;
/**
* Display Notify at the top of the page
*/
export declare function showNotify(options: NotifyMessage | NotifyOptions): ComponentInstance | undefined;
/**
* Modify the default configuration, affecting all `showNotify` calls
*/
export declare const setNotifyDefaultOptions: (options: NotifyOptions) => NotifyOptions;
/**
* Reset the default configuration, affecting all `showNotify` calls
*/
export declare const resetNotifyDefaultOptions: () => void;

97
node_modules/vant/lib/notify/function-call.js generated vendored Normal file
View File

@@ -0,0 +1,97 @@
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, {
closeNotify: () => closeNotify,
resetNotifyDefaultOptions: () => resetNotifyDefaultOptions,
setNotifyDefaultOptions: () => setNotifyDefaultOptions,
showNotify: () => showNotify
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_mount_component = require("../utils/mount-component");
var import_Notify = __toESM(require("./Notify"));
let timer;
let instance;
const parseOptions = (message) => (0, import_utils.isObject)(message) ? message : {
message
};
function initInstance() {
({
instance
} = (0, import_mount_component.mountComponent)({
setup() {
const {
state,
toggle
} = (0, import_mount_component.usePopupState)();
return () => (0, import_vue.createVNode)(import_Notify.default, (0, import_vue.mergeProps)(state, {
"onUpdate:show": toggle
}), null);
}
}));
}
const getDefaultOptions = () => ({
type: "danger",
color: void 0,
message: "",
onClose: void 0,
onClick: void 0,
onOpened: void 0,
duration: 3e3,
position: void 0,
className: "",
lockScroll: false,
background: void 0
});
let currentOptions = getDefaultOptions();
const closeNotify = () => {
if (instance) {
instance.toggle(false);
}
};
function showNotify(options) {
if (!import_utils.inBrowser) {
return;
}
if (!instance) {
initInstance();
}
options = (0, import_utils.extend)({}, currentOptions, parseOptions(options));
instance.open(options);
clearTimeout(timer);
if (options.duration > 0) {
timer = setTimeout(closeNotify, options.duration);
}
return instance;
}
const setNotifyDefaultOptions = (options) => (0, import_utils.extend)(currentOptions, options);
const resetNotifyDefaultOptions = () => {
currentOptions = getDefaultOptions();
};

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

@@ -0,0 +1 @@
:root,:host{--van-notify-text-color: var(--van-white);--van-notify-padding: var(--van-padding-xs) var(--van-padding-md);--van-notify-font-size: var(--van-font-size-md);--van-notify-line-height: var(--van-line-height-md);--van-notify-primary-background: var(--van-primary-color);--van-notify-success-background: var(--van-success-color);--van-notify-danger-background: var(--van-danger-color);--van-notify-warning-background: var(--van-warning-color)}.van-notify{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-notify-padding);color:var(--van-notify-text-color);font-size:var(--van-notify-font-size);line-height:var(--van-notify-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word}.van-notify--primary{background:var(--van-notify-primary-background)}.van-notify--success{background:var(--van-notify-success-background)}.van-notify--danger{background:var(--van-notify-danger-background)}.van-notify--warning{background:var(--van-notify-warning-background)}

102
node_modules/vant/lib/notify/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,102 @@
export declare const Notify: 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;
};
} & {
type: {
type: import("vue").PropType<import("./types").NotifyType>;
default: import("./types").NotifyType;
};
color: StringConstructor;
message: (NumberConstructor | StringConstructor)[];
position: {
type: import("vue").PropType<import("./types").NotifyPosition>;
default: import("./types").NotifyPosition;
};
className: import("vue").PropType<unknown>;
background: StringConstructor;
lockScroll: BooleanConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "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;
};
} & {
type: {
type: import("vue").PropType<import("./types").NotifyType>;
default: import("./types").NotifyType;
};
color: StringConstructor;
message: (NumberConstructor | StringConstructor)[];
position: {
type: import("vue").PropType<import("./types").NotifyPosition>;
default: import("./types").NotifyPosition;
};
className: import("vue").PropType<unknown>;
background: StringConstructor;
lockScroll: BooleanConstructor;
}>> & Readonly<{
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
}>, {
type: import("./types").NotifyType;
position: import("./types").NotifyPosition;
overlay: boolean;
show: boolean;
lockScroll: boolean;
lazyRender: boolean;
transitionAppear: boolean;
closeOnClickOverlay: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default Notify;
export { notifyProps } from './Notify';
export { showNotify, closeNotify, setNotifyDefaultOptions, resetNotifyDefaultOptions, } from './function-call';
export type { NotifyProps } from './Notify';
export type { NotifyType, NotifyOptions, NotifyThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanNotify: typeof Notify;
}
}

44
node_modules/vant/lib/notify/index.js generated vendored Normal file
View File

@@ -0,0 +1,44 @@
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, {
Notify: () => Notify,
closeNotify: () => import_function_call.closeNotify,
default: () => stdin_default,
notifyProps: () => import_Notify2.notifyProps,
resetNotifyDefaultOptions: () => import_function_call.resetNotifyDefaultOptions,
setNotifyDefaultOptions: () => import_function_call.setNotifyDefaultOptions,
showNotify: () => import_function_call.showNotify
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_Notify = __toESM(require("./Notify"));
var import_Notify2 = require("./Notify");
var import_function_call = require("./function-call");
const Notify = (0, import_utils.withInstall)(import_Notify.default);
var stdin_default = Notify;

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

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

6
node_modules/vant/lib/notify/style/index.js generated vendored Normal file
View File

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

30
node_modules/vant/lib/notify/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,30 @@
import type { TeleportProps } from 'vue';
import type { Numeric } from '../utils';
export type NotifyMessage = Numeric;
export type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
export type NotifyPosition = 'top' | 'bottom';
export type NotifyOptions = {
type?: NotifyType;
color?: string;
message?: NotifyMessage;
duration?: number;
zIndex?: number;
position?: NotifyPosition;
className?: unknown;
background?: string;
lockScroll?: boolean;
teleport?: TeleportProps['to'];
onClick?: (event: MouseEvent) => void;
onClose?: () => void;
onOpened?: () => void;
};
export type NotifyThemeVars = {
notifyTextColor?: string;
notifyPadding?: string;
notifyFontSize?: string;
notifyLineHeight?: number | string;
notifyPrimaryBackground?: string;
notifySuccessBackground?: string;
notifyDangerBackground?: string;
notifyWarningBackground?: string;
};

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