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

89
node_modules/vant/es/contact-list/ContactList.mjs generated vendored Normal file
View File

@@ -0,0 +1,89 @@
import { defineComponent, createVNode as _createVNode } from "vue";
import { createNamespace, unknownProp } from "../utils/index.mjs";
import { Tag } from "../tag/index.mjs";
import { Icon } from "../icon/index.mjs";
import { Cell } from "../cell/index.mjs";
import { Radio } from "../radio/index.mjs";
import { Button } from "../button/index.mjs";
import { RadioGroup } from "../radio-group/index.mjs";
const [name, bem, t] = createNamespace("contact-list");
const contactListProps = {
list: Array,
addText: String,
modelValue: unknownProp,
defaultTagText: String
};
var stdin_default = 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 = () => _createVNode(Radio, {
"class": bem("radio"),
"name": item.id,
"iconSize": 18
}, null);
const renderEditIcon = () => _createVNode(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(_createVNode(Tag, {
"type": "primary",
"round": true,
"class": bem("item-tag")
}, {
default: () => [props.defaultTagText]
}));
}
return nodes;
};
return _createVNode(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 () => _createVNode("div", {
"class": bem()
}, [_createVNode(RadioGroup, {
"modelValue": props.modelValue,
"class": bem("group")
}, {
default: () => [props.list && props.list.map(renderItem)]
}), _createVNode("div", {
"class": [bem("bottom"), "van-safe-area-bottom"]
}, [_createVNode(Button, {
"round": true,
"block": true,
"type": "primary",
"class": bem("add"),
"text": props.addText || t("addContact"),
"onClick": () => emit("add")
}, null)])]);
}
});
export {
contactListProps,
stdin_default as default
};

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

10
node_modules/vant/es/contact-list/index.mjs generated vendored Normal file
View File

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

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

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

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

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

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

0
node_modules/vant/es/contact-list/types.mjs generated vendored Normal file
View File