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

64
node_modules/vant/lib/contact-edit/ContactEdit.d.ts generated vendored Normal file
View File

@@ -0,0 +1,64 @@
import { type PropType, type ExtractPropTypes } from 'vue';
import { isMobile } from '../utils';
export type ContactEditInfo = {
tel: string;
name: string;
isDefault?: boolean;
};
export declare const contactEditProps: {
isEdit: BooleanConstructor;
isSaving: BooleanConstructor;
isDeleting: BooleanConstructor;
showSetDefault: BooleanConstructor;
setDefaultLabel: StringConstructor;
contactInfo: {
type: PropType<ContactEditInfo>;
default: () => ContactEditInfo;
};
telValidator: {
type: PropType<(val: string) => boolean>;
default: typeof isMobile;
};
};
export type ContactEditProps = ExtractPropTypes<typeof contactEditProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
isEdit: BooleanConstructor;
isSaving: BooleanConstructor;
isDeleting: BooleanConstructor;
showSetDefault: BooleanConstructor;
setDefaultLabel: StringConstructor;
contactInfo: {
type: PropType<ContactEditInfo>;
default: () => ContactEditInfo;
};
telValidator: {
type: PropType<(val: string) => boolean>;
default: typeof isMobile;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "save" | "changeDefault")[], "delete" | "save" | "changeDefault", import("vue").PublicProps, Readonly<ExtractPropTypes<{
isEdit: BooleanConstructor;
isSaving: BooleanConstructor;
isDeleting: BooleanConstructor;
showSetDefault: BooleanConstructor;
setDefaultLabel: StringConstructor;
contactInfo: {
type: PropType<ContactEditInfo>;
default: () => ContactEditInfo;
};
telValidator: {
type: PropType<(val: string) => boolean>;
default: typeof isMobile;
};
}>> & Readonly<{
onDelete?: ((...args: any[]) => any) | undefined;
onSave?: ((...args: any[]) => any) | undefined;
onChangeDefault?: ((...args: any[]) => any) | undefined;
}>, {
isSaving: boolean;
isDeleting: boolean;
showSetDefault: boolean;
telValidator: (val: string) => boolean;
isEdit: boolean;
contactInfo: ContactEditInfo;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

131
node_modules/vant/lib/contact-edit/ContactEdit.js generated vendored Normal file
View File

@@ -0,0 +1,131 @@
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, {
contactEditProps: () => contactEditProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_cell = require("../cell");
var import_form = require("../form");
var import_field = require("../field");
var import_button = require("../button");
var import_switch = require("../switch");
const [name, bem, t] = (0, import_utils.createNamespace)("contact-edit");
const DEFAULT_CONTACT = {
tel: "",
name: ""
};
const contactEditProps = {
isEdit: Boolean,
isSaving: Boolean,
isDeleting: Boolean,
showSetDefault: Boolean,
setDefaultLabel: String,
contactInfo: {
type: Object,
default: () => (0, import_utils.extend)({}, DEFAULT_CONTACT)
},
telValidator: {
type: Function,
default: import_utils.isMobile
}
};
var stdin_default = (0, import_vue.defineComponent)({
name,
props: contactEditProps,
emits: ["save", "delete", "changeDefault"],
setup(props, {
emit
}) {
const contact = (0, import_vue.reactive)((0, import_utils.extend)({}, DEFAULT_CONTACT, props.contactInfo));
const onSave = () => {
if (!props.isSaving) {
emit("save", contact);
}
};
const onDelete = () => emit("delete", contact);
const renderButtons = () => (0, import_vue.createVNode)("div", {
"class": bem("buttons")
}, [(0, import_vue.createVNode)(import_button.Button, {
"block": true,
"round": true,
"type": "primary",
"text": t("save"),
"class": bem("button"),
"loading": props.isSaving,
"nativeType": "submit"
}, null), props.isEdit && (0, import_vue.createVNode)(import_button.Button, {
"block": true,
"round": true,
"text": t("delete"),
"class": bem("button"),
"loading": props.isDeleting,
"onClick": onDelete
}, null)]);
const renderSwitch = () => (0, import_vue.createVNode)(import_switch.Switch, {
"modelValue": contact.isDefault,
"onUpdate:modelValue": ($event) => contact.isDefault = $event,
"onChange": (checked) => emit("changeDefault", checked)
}, null);
const renderSetDefault = () => {
if (props.showSetDefault) {
return (0, import_vue.createVNode)(import_cell.Cell, {
"title": props.setDefaultLabel,
"class": bem("switch-cell"),
"border": false
}, {
"right-icon": renderSwitch
});
}
};
(0, import_vue.watch)(() => props.contactInfo, (value) => (0, import_utils.extend)(contact, DEFAULT_CONTACT, value));
return () => (0, import_vue.createVNode)(import_form.Form, {
"class": bem(),
"onSubmit": onSave
}, {
default: () => [(0, import_vue.createVNode)("div", {
"class": bem("fields")
}, [(0, import_vue.createVNode)(import_field.Field, {
"modelValue": contact.name,
"onUpdate:modelValue": ($event) => contact.name = $event,
"clearable": true,
"label": t("name"),
"rules": [{
required: true,
message: t("nameEmpty")
}],
"maxlength": "30",
"placeholder": t("name")
}, null), (0, import_vue.createVNode)(import_field.Field, {
"modelValue": contact.tel,
"onUpdate:modelValue": ($event) => contact.tel = $event,
"clearable": true,
"type": "tel",
"label": t("tel"),
"rules": [{
validator: props.telValidator,
message: t("telInvalid")
}],
"placeholder": t("tel")
}, null)]), renderSetDefault(), renderButtons()]
});
}
});

1
node_modules/vant/lib/contact-edit/index.css generated vendored Normal file
View File

@@ -0,0 +1 @@
:root,:host{--van-contact-edit-padding: var(--van-padding-md);--van-contact-edit-fields-radius: var(--van-radius-md);--van-contact-edit-buttons-padding: var(--van-padding-xl) 0;--van-contact-edit-button-margin-bottom: var(--van-padding-sm);--van-contact-edit-button-font-size: var(--van-font-size-lg);--van-contact-edit-field-label-width: 4.1em}.van-contact-edit{padding:var(--van-contact-edit-padding)}.van-contact-edit__fields{overflow:hidden;border-radius:var(--van-contact-edit-fields-radius)}.van-contact-edit__fields .van-field__label{width:var(--van-contact-edit-field-label-width)}.van-contact-edit__switch-cell{margin-top:10px;padding-top:9px;padding-bottom:9px;border-radius:var(--van-contact-edit-fields-radius)}.van-contact-edit__buttons{padding:var(--van-contact-edit-buttons-padding)}.van-contact-edit__button{margin-bottom:var(--van-contact-edit-button-margin-bottom);font-size:var(--van-contact-edit-button-font-size)}

49
node_modules/vant/lib/contact-edit/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,49 @@
export declare const ContactEdit: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
isEdit: BooleanConstructor;
isSaving: BooleanConstructor;
isDeleting: BooleanConstructor;
showSetDefault: BooleanConstructor;
setDefaultLabel: StringConstructor;
contactInfo: {
type: import("vue").PropType<import("./ContactEdit").ContactEditInfo>;
default: () => import("./ContactEdit").ContactEditInfo;
};
telValidator: {
type: import("vue").PropType<(val: string) => boolean>;
default: typeof import("../utils").isMobile;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "save" | "changeDefault")[], "delete" | "save" | "changeDefault", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
isEdit: BooleanConstructor;
isSaving: BooleanConstructor;
isDeleting: BooleanConstructor;
showSetDefault: BooleanConstructor;
setDefaultLabel: StringConstructor;
contactInfo: {
type: import("vue").PropType<import("./ContactEdit").ContactEditInfo>;
default: () => import("./ContactEdit").ContactEditInfo;
};
telValidator: {
type: import("vue").PropType<(val: string) => boolean>;
default: typeof import("../utils").isMobile;
};
}>> & Readonly<{
onDelete?: ((...args: any[]) => any) | undefined;
onSave?: ((...args: any[]) => any) | undefined;
onChangeDefault?: ((...args: any[]) => any) | undefined;
}>, {
isSaving: boolean;
isDeleting: boolean;
showSetDefault: boolean;
telValidator: (val: string) => boolean;
isEdit: boolean;
contactInfo: import("./ContactEdit").ContactEditInfo;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default ContactEdit;
export { contactEditProps } from './ContactEdit';
export type { ContactEditInfo, ContactEditProps } from './ContactEdit';
export type { ContactEditThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanContactEdit: typeof ContactEdit;
}
}

39
node_modules/vant/lib/contact-edit/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, {
ContactEdit: () => ContactEdit,
contactEditProps: () => import_ContactEdit2.contactEditProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_ContactEdit = __toESM(require("./ContactEdit"));
var import_ContactEdit2 = require("./ContactEdit");
const ContactEdit = (0, import_utils.withInstall)(import_ContactEdit.default);
var stdin_default = ContactEdit;

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

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

9
node_modules/vant/lib/contact-edit/style/index.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
require("../../style/base.css");
require("../../badge/index.css");
require("../../icon/index.css");
require("../../cell/index.css");
require("../../field/index.css");
require("../../loading/index.css");
require("../../switch/index.css");
require("../../button/index.css");
require("../index.css");

8
node_modules/vant/lib/contact-edit/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
export type ContactEditThemeVars = {
contactEditPadding?: string;
contactEditFieldsRadius?: string;
contactEditButtonsPadding?: string;
contactEditButtonMarginBottom?: string;
contactEditButtonFontSize?: string;
contactEditFieldLabelWidth?: string;
};

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