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

32
node_modules/vant/lib/contact-list/ContactList.d.ts generated vendored Normal file
View File

@@ -0,0 +1,32 @@
import { type PropType, type ExtractPropTypes } from 'vue';
import { type Numeric } from '../utils';
export type ContactListItem = {
id?: Numeric;
tel: Numeric;
name: string;
isDefault?: boolean;
};
export declare const contactListProps: {
list: PropType<ContactListItem[]>;
addText: StringConstructor;
modelValue: PropType<unknown>;
defaultTagText: StringConstructor;
};
export type ContactListProps = ExtractPropTypes<typeof contactListProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
list: PropType<ContactListItem[]>;
addText: StringConstructor;
modelValue: PropType<unknown>;
defaultTagText: StringConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "update:modelValue" | "edit")[], "select" | "add" | "update:modelValue" | "edit", import("vue").PublicProps, Readonly<ExtractPropTypes<{
list: PropType<ContactListItem[]>;
addText: StringConstructor;
modelValue: PropType<unknown>;
defaultTagText: StringConstructor;
}>> & Readonly<{
onSelect?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onEdit?: ((...args: any[]) => any) | undefined;
onAdd?: ((...args: any[]) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

108
node_modules/vant/lib/contact-list/ContactList.js generated vendored Normal file
View File

@@ -0,0 +1,108 @@
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, {
contactListProps: () => contactListProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_tag = require("../tag");
var import_icon = require("../icon");
var import_cell = require("../cell");
var import_radio = require("../radio");
var import_button = require("../button");
var import_radio_group = require("../radio-group");
const [name, bem, t] = (0, import_utils.createNamespace)("contact-list");
const contactListProps = {
list: Array,
addText: String,
modelValue: import_utils.unknownProp,
defaultTagText: String
};
var stdin_default = (0, import_vue.defineComponent)({
name,
props: contactListProps,
emits: ["add", "edit", "select", "update:modelValue"],
setup(props, {
emit
}) {
const renderItem = (item, index) => {
const onClick = () => {
emit("update:modelValue", item.id);
emit("select", item, index);
};
const renderRightIcon = () => (0, import_vue.createVNode)(import_radio.Radio, {
"class": bem("radio"),
"name": item.id,
"iconSize": 18
}, null);
const renderEditIcon = () => (0, import_vue.createVNode)(import_icon.Icon, {
"name": "edit",
"class": bem("edit"),
"onClick": (event) => {
event.stopPropagation();
emit("edit", item, index);
}
}, null);
const renderContent = () => {
const nodes = [`${item.name}\uFF0C${item.tel}`];
if (item.isDefault && props.defaultTagText) {
nodes.push((0, import_vue.createVNode)(import_tag.Tag, {
"type": "primary",
"round": true,
"class": bem("item-tag")
}, {
default: () => [props.defaultTagText]
}));
}
return nodes;
};
return (0, import_vue.createVNode)(import_cell.Cell, {
"key": item.id,
"isLink": true,
"center": true,
"class": bem("item"),
"titleClass": bem("item-title"),
"onClick": onClick
}, {
icon: renderEditIcon,
title: renderContent,
"right-icon": renderRightIcon
});
};
return () => (0, import_vue.createVNode)("div", {
"class": bem()
}, [(0, import_vue.createVNode)(import_radio_group.RadioGroup, {
"modelValue": props.modelValue,
"class": bem("group")
}, {
default: () => [props.list && props.list.map(renderItem)]
}), (0, import_vue.createVNode)("div", {
"class": [bem("bottom"), "van-safe-area-bottom"]
}, [(0, import_vue.createVNode)(import_button.Button, {
"round": true,
"block": true,
"type": "primary",
"class": bem("add"),
"text": props.addText || t("addContact"),
"onClick": () => emit("add")
}, null)])]);
}
});

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

@@ -0,0 +1 @@
:root,:host{--van-contact-list-padding: var(--van-padding-sm) var(--van-padding-sm) 80px;--van-contact-list-edit-icon-size: 16px;--van-contact-list-add-button-z-index: 999;--van-contact-list-radio-color: var(--van-primary-color);--van-contact-list-item-padding: var(--van-padding-md)}.van-contact-list{box-sizing:border-box;height:100%;padding:var(--van-contact-list-padding)}.van-contact-list__item{padding:var(--van-contact-list-item-padding)}.van-contact-list__item-title{display:flex;align-items:center;padding-right:var(--van-padding-xl);padding-left:var(--van-padding-xs)}.van-contact-list__item-tag{flex:none;margin-left:var(--van-padding-xs);padding-top:0;padding-bottom:0;line-height:1.4em}.van-contact-list__group{box-sizing:border-box;height:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch;border-radius:var(--van-radius-lg)}.van-contact-list__edit{font-size:var(--van-contact-list-edit-icon-size)}.van-contact-list__radio .van-radio__icon--checked .van-icon{background-color:var(--van-contact-list-radio-color);border-color:var(--van-contact-list-radio-color)}.van-contact-list__bottom{position:fixed;right:0;bottom:0;left:0;z-index:var(--van-contact-list-add-button-z-index);padding-left:var(--van-padding-md);padding-right:var(--van-padding-md);background-color:var(--van-background-2)}.van-contact-list__add{height:40px;margin:5px 0}

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

@@ -0,0 +1,25 @@
export declare const ContactList: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
list: import("vue").PropType<import("./ContactList").ContactListItem[]>;
addText: StringConstructor;
modelValue: import("vue").PropType<unknown>;
defaultTagText: StringConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "update:modelValue" | "edit")[], "select" | "add" | "update:modelValue" | "edit", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
list: import("vue").PropType<import("./ContactList").ContactListItem[]>;
addText: StringConstructor;
modelValue: import("vue").PropType<unknown>;
defaultTagText: StringConstructor;
}>> & Readonly<{
onSelect?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onEdit?: ((...args: any[]) => any) | undefined;
onAdd?: ((...args: any[]) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default ContactList;
export { contactListProps } from './ContactList';
export type { ContactListItem, ContactListProps } from './ContactList';
export type { ContactListThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanContactList: typeof ContactList;
}
}

39
node_modules/vant/lib/contact-list/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, {
ContactList: () => ContactList,
contactListProps: () => import_ContactList2.contactListProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_ContactList = __toESM(require("./ContactList"));
var import_ContactList2 = require("./ContactList");
const ContactList = (0, import_utils.withInstall)(import_ContactList.default);
var stdin_default = ContactList;

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

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

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

@@ -0,0 +1,11 @@
require("../../style/base.css");
require("../../badge/index.css");
require("../../icon/index.css");
require("../../tag/index.css");
require("../../cell/index.css");
require("../../loading/index.css");
require("../../button/index.css");
require("../../radio-group/index.css");
require("../../checkbox/index.css");
require("../../radio/index.css");
require("../index.css");

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

@@ -0,0 +1,6 @@
export type ContactListThemeVars = {
contactListEditIconSize?: string;
contactListAddButtonZIndex?: number | string;
contactListRadioColor?: string;
contactListItemPadding?: string;
};

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