first commit
This commit is contained in:
47
node_modules/vant/lib/contact-card/ContactCard.d.ts
generated
vendored
Normal file
47
node_modules/vant/lib/contact-card/ContactCard.d.ts
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
import { type ExtractPropTypes } from 'vue';
|
||||
export type ContactCardType = 'add' | 'edit';
|
||||
export declare const contactCardProps: {
|
||||
tel: StringConstructor;
|
||||
name: StringConstructor;
|
||||
type: {
|
||||
type: import("vue").PropType<ContactCardType>;
|
||||
default: ContactCardType;
|
||||
};
|
||||
addText: StringConstructor;
|
||||
editable: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
};
|
||||
export type ContactCardProps = ExtractPropTypes<typeof contactCardProps>;
|
||||
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
||||
tel: StringConstructor;
|
||||
name: StringConstructor;
|
||||
type: {
|
||||
type: import("vue").PropType<ContactCardType>;
|
||||
default: ContactCardType;
|
||||
};
|
||||
addText: StringConstructor;
|
||||
editable: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
||||
tel: StringConstructor;
|
||||
name: StringConstructor;
|
||||
type: {
|
||||
type: import("vue").PropType<ContactCardType>;
|
||||
default: ContactCardType;
|
||||
};
|
||||
addText: StringConstructor;
|
||||
editable: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>> & Readonly<{
|
||||
onClick?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
type: ContactCardType;
|
||||
editable: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
65
node_modules/vant/lib/contact-card/ContactCard.js
generated
vendored
Normal file
65
node_modules/vant/lib/contact-card/ContactCard.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
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, {
|
||||
contactCardProps: () => contactCardProps,
|
||||
default: () => stdin_default
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_vue = require("vue");
|
||||
var import_utils = require("../utils");
|
||||
var import_cell = require("../cell");
|
||||
const [name, bem, t] = (0, import_utils.createNamespace)("contact-card");
|
||||
const contactCardProps = {
|
||||
tel: String,
|
||||
name: String,
|
||||
type: (0, import_utils.makeStringProp)("add"),
|
||||
addText: String,
|
||||
editable: import_utils.truthProp
|
||||
};
|
||||
var stdin_default = (0, import_vue.defineComponent)({
|
||||
name,
|
||||
props: contactCardProps,
|
||||
emits: ["click"],
|
||||
setup(props, {
|
||||
emit
|
||||
}) {
|
||||
const onClick = (event) => {
|
||||
if (props.editable) {
|
||||
emit("click", event);
|
||||
}
|
||||
};
|
||||
const renderContent = () => {
|
||||
if (props.type === "add") {
|
||||
return props.addText || t("addContact");
|
||||
}
|
||||
return [(0, import_vue.createVNode)("div", null, [`${t("name")}\uFF1A${props.name}`]), (0, import_vue.createVNode)("div", null, [`${t("tel")}\uFF1A${props.tel}`])];
|
||||
};
|
||||
return () => (0, import_vue.createVNode)(import_cell.Cell, {
|
||||
"center": true,
|
||||
"icon": props.type === "edit" ? "contact" : "add-square",
|
||||
"class": bem([props.type]),
|
||||
"border": false,
|
||||
"isLink": props.editable,
|
||||
"titleClass": bem("title"),
|
||||
"onClick": onClick
|
||||
}, {
|
||||
title: renderContent
|
||||
});
|
||||
}
|
||||
});
|
||||
1
node_modules/vant/lib/contact-card/index.css
generated
vendored
Normal file
1
node_modules/vant/lib/contact-card/index.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
:root,:host{--van-contact-card-padding: var(--van-padding-md);--van-contact-card-add-icon-size: 40px;--van-contact-card-add-icon-color: var(--van-primary-color);--van-contact-card-title-line-height: var(--van-line-height-md)}.van-contact-card{padding:var(--van-contact-card-padding)}.van-contact-card__title{margin-left:5px;line-height:var(--van-contact-card-title-line-height)}.van-contact-card--add .van-contact-card__value{line-height:var(--van-contact-card-add-icon-size)}.van-contact-card--add .van-cell__left-icon{color:var(--van-contact-card-add-icon-color);font-size:var(--van-contact-card-add-icon-size)}.van-contact-card:before{position:absolute;right:0;bottom:0;left:0;height:2px;background:repeating-linear-gradient(-45deg,var(--van-warning-color) 0,var(--van-warning-color) 20%,transparent 0,transparent 25%,var(--van-primary-color) 0,var(--van-primary-color) 45%,transparent 0,transparent 50%);background-size:80px;content:""}
|
||||
39
node_modules/vant/lib/contact-card/index.d.ts
generated
vendored
Normal file
39
node_modules/vant/lib/contact-card/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
export declare const ContactCard: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
tel: StringConstructor;
|
||||
name: StringConstructor;
|
||||
type: {
|
||||
type: import("vue").PropType<import("./ContactCard").ContactCardType>;
|
||||
default: import("./ContactCard").ContactCardType;
|
||||
};
|
||||
addText: StringConstructor;
|
||||
editable: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
tel: StringConstructor;
|
||||
name: StringConstructor;
|
||||
type: {
|
||||
type: import("vue").PropType<import("./ContactCard").ContactCardType>;
|
||||
default: import("./ContactCard").ContactCardType;
|
||||
};
|
||||
addText: StringConstructor;
|
||||
editable: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>> & Readonly<{
|
||||
onClick?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
type: import("./ContactCard").ContactCardType;
|
||||
editable: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
||||
export default ContactCard;
|
||||
export { contactCardProps } from './ContactCard';
|
||||
export type { ContactCardType, ContactCardProps } from './ContactCard';
|
||||
export type { ContactCardThemeVars } from './types';
|
||||
declare module 'vue' {
|
||||
interface GlobalComponents {
|
||||
VanContactCard: typeof ContactCard;
|
||||
}
|
||||
}
|
||||
39
node_modules/vant/lib/contact-card/index.js
generated
vendored
Normal file
39
node_modules/vant/lib/contact-card/index.js
generated
vendored
Normal 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, {
|
||||
ContactCard: () => ContactCard,
|
||||
contactCardProps: () => import_ContactCard2.contactCardProps,
|
||||
default: () => stdin_default
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_utils = require("../utils");
|
||||
var import_ContactCard = __toESM(require("./ContactCard"));
|
||||
var import_ContactCard2 = require("./ContactCard");
|
||||
const ContactCard = (0, import_utils.withInstall)(import_ContactCard.default);
|
||||
var stdin_default = ContactCard;
|
||||
1
node_modules/vant/lib/contact-card/style/index.d.ts
generated
vendored
Normal file
1
node_modules/vant/lib/contact-card/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
5
node_modules/vant/lib/contact-card/style/index.js
generated
vendored
Normal file
5
node_modules/vant/lib/contact-card/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
require("../../style/base.css");
|
||||
require("../../badge/index.css");
|
||||
require("../../icon/index.css");
|
||||
require("../../cell/index.css");
|
||||
require("../index.css");
|
||||
6
node_modules/vant/lib/contact-card/types.d.ts
generated
vendored
Normal file
6
node_modules/vant/lib/contact-card/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export type ContactCardThemeVars = {
|
||||
contactCardPadding?: string;
|
||||
contactCardAddIconSize?: string;
|
||||
contactCardAddIconColor?: string;
|
||||
contactCardTitleLineHeight?: number | string;
|
||||
};
|
||||
15
node_modules/vant/lib/contact-card/types.js
generated
vendored
Normal file
15
node_modules/vant/lib/contact-card/types.js
generated
vendored
Normal 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);
|
||||
Reference in New Issue
Block a user