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

56
node_modules/vant/lib/card/Card.d.ts generated vendored Normal file
View File

@@ -0,0 +1,56 @@
import { type ExtractPropTypes } from 'vue';
export declare const cardProps: {
tag: StringConstructor;
num: (NumberConstructor | StringConstructor)[];
desc: StringConstructor;
thumb: StringConstructor;
title: StringConstructor;
price: (NumberConstructor | StringConstructor)[];
centered: BooleanConstructor;
lazyLoad: BooleanConstructor;
currency: {
type: import("vue").PropType<string>;
default: string;
};
thumbLink: StringConstructor;
originPrice: (NumberConstructor | StringConstructor)[];
};
export type CardProps = ExtractPropTypes<typeof cardProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
tag: StringConstructor;
num: (NumberConstructor | StringConstructor)[];
desc: StringConstructor;
thumb: StringConstructor;
title: StringConstructor;
price: (NumberConstructor | StringConstructor)[];
centered: BooleanConstructor;
lazyLoad: BooleanConstructor;
currency: {
type: import("vue").PropType<string>;
default: string;
};
thumbLink: StringConstructor;
originPrice: (NumberConstructor | StringConstructor)[];
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickThumb"[], "clickThumb", import("vue").PublicProps, Readonly<ExtractPropTypes<{
tag: StringConstructor;
num: (NumberConstructor | StringConstructor)[];
desc: StringConstructor;
thumb: StringConstructor;
title: StringConstructor;
price: (NumberConstructor | StringConstructor)[];
centered: BooleanConstructor;
lazyLoad: BooleanConstructor;
currency: {
type: import("vue").PropType<string>;
default: string;
};
thumbLink: StringConstructor;
originPrice: (NumberConstructor | StringConstructor)[];
}>> & Readonly<{
onClickThumb?: ((...args: any[]) => any) | undefined;
}>, {
lazyLoad: boolean;
centered: boolean;
currency: string;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

145
node_modules/vant/lib/card/Card.js generated vendored Normal file
View File

@@ -0,0 +1,145 @@
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, {
cardProps: () => cardProps,
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_image = require("../image");
const [name, bem] = (0, import_utils.createNamespace)("card");
const cardProps = {
tag: String,
num: import_utils.numericProp,
desc: String,
thumb: String,
title: String,
price: import_utils.numericProp,
centered: Boolean,
lazyLoad: Boolean,
currency: (0, import_utils.makeStringProp)("\xA5"),
thumbLink: String,
originPrice: import_utils.numericProp
};
var stdin_default = (0, import_vue.defineComponent)({
name,
props: cardProps,
emits: ["clickThumb"],
setup(props, {
slots,
emit
}) {
const renderTitle = () => {
if (slots.title) {
return slots.title();
}
if (props.title) {
return (0, import_vue.createVNode)("div", {
"class": [bem("title"), "van-multi-ellipsis--l2"]
}, [props.title]);
}
};
const renderThumbTag = () => {
if (slots.tag || props.tag) {
return (0, import_vue.createVNode)("div", {
"class": bem("tag")
}, [slots.tag ? slots.tag() : (0, import_vue.createVNode)(import_tag.Tag, {
"mark": true,
"type": "primary"
}, {
default: () => [props.tag]
})]);
}
};
const renderThumbImage = () => {
if (slots.thumb) {
return slots.thumb();
}
return (0, import_vue.createVNode)(import_image.Image, {
"src": props.thumb,
"fit": "cover",
"width": "100%",
"height": "100%",
"lazyLoad": props.lazyLoad
}, null);
};
const renderThumb = () => {
if (slots.thumb || props.thumb) {
return (0, import_vue.createVNode)("a", {
"href": props.thumbLink,
"class": bem("thumb"),
"onClick": (event) => emit("clickThumb", event)
}, [renderThumbImage(), renderThumbTag()]);
}
};
const renderDesc = () => {
if (slots.desc) {
return slots.desc();
}
if (props.desc) {
return (0, import_vue.createVNode)("div", {
"class": [bem("desc"), "van-ellipsis"]
}, [props.desc]);
}
};
const renderPriceText = () => {
const priceArr = props.price.toString().split(".");
return (0, import_vue.createVNode)("div", null, [(0, import_vue.createVNode)("span", {
"class": bem("price-currency")
}, [props.currency]), (0, import_vue.createVNode)("span", {
"class": bem("price-integer")
}, [priceArr[0]]), priceArr.length > 1 && (0, import_vue.createVNode)(import_vue.Fragment, null, [(0, import_vue.createTextVNode)("."), (0, import_vue.createVNode)("span", {
"class": bem("price-decimal")
}, [priceArr[1]])])]);
};
return () => {
var _a, _b, _c;
const showNum = slots.num || (0, import_utils.isDef)(props.num);
const showPrice = slots.price || (0, import_utils.isDef)(props.price);
const showOriginPrice = slots["origin-price"] || (0, import_utils.isDef)(props.originPrice);
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
const Price = showPrice && (0, import_vue.createVNode)("div", {
"class": bem("price")
}, [slots.price ? slots.price() : renderPriceText()]);
const OriginPrice = showOriginPrice && (0, import_vue.createVNode)("div", {
"class": bem("origin-price")
}, [slots["origin-price"] ? slots["origin-price"]() : `${props.currency} ${props.originPrice}`]);
const Num = showNum && (0, import_vue.createVNode)("div", {
"class": bem("num")
}, [slots.num ? slots.num() : `x${props.num}`]);
const Footer = slots.footer && (0, import_vue.createVNode)("div", {
"class": bem("footer")
}, [slots.footer()]);
const Bottom = showBottom && (0, import_vue.createVNode)("div", {
"class": bem("bottom")
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
return (0, import_vue.createVNode)("div", {
"class": bem()
}, [(0, import_vue.createVNode)("div", {
"class": bem("header")
}, [renderThumb(), (0, import_vue.createVNode)("div", {
"class": bem("content", {
centered: props.centered
})
}, [(0, import_vue.createVNode)("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
};
}
});

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

@@ -0,0 +1 @@
:root,:host{--van-card-padding: var(--van-padding-xs) var(--van-padding-md);--van-card-font-size: var(--van-font-size-sm);--van-card-text-color: var(--van-text-color);--van-card-background: var(--van-background);--van-card-thumb-size: 88px;--van-card-thumb-radius: var(--van-radius-lg);--van-card-title-line-height: 16px;--van-card-desc-color: var(--van-text-color-2);--van-card-desc-line-height: var(--van-line-height-md);--van-card-price-color: var(--van-text-color);--van-card-origin-price-color: var(--van-text-color-2);--van-card-num-color: var(--van-text-color-2);--van-card-origin-price-font-size: var(--van-font-size-xs);--van-card-price-font-size: var(--van-font-size-sm);--van-card-price-integer-font-size: var(--van-font-size-lg);--van-card-price-font: var(--van-price-font)}.van-card{position:relative;box-sizing:border-box;padding:var(--van-card-padding);color:var(--van-card-text-color);font-size:var(--van-card-font-size);background:var(--van-card-background)}.van-card:not(:first-child){margin-top:var(--van-padding-xs)}.van-card__header{display:flex}.van-card__thumb{position:relative;flex:none;width:var(--van-card-thumb-size);height:var(--van-card-thumb-size);margin-right:var(--van-padding-xs)}.van-card__thumb img{border-radius:var(--van-card-thumb-radius)}.van-card__content{position:relative;display:flex;flex:1;flex-direction:column;justify-content:space-between;min-width:0;min-height:var(--van-card-thumb-size)}.van-card__content--centered{justify-content:center}.van-card__title,.van-card__desc{word-wrap:break-word}.van-card__title{max-height:32px;font-weight:var(--van-font-bold);line-height:var(--van-card-title-line-height)}.van-card__desc{max-height:var(--van-card-desc-line-height);color:var(--van-card-desc-color);line-height:var(--van-card-desc-line-height)}.van-card__bottom{line-height:var(--van-line-height-md)}.van-card__price{display:inline-block;color:var(--van-card-price-color);font-weight:var(--van-font-bold);font-size:var(--van-card-price-font-size)}.van-card__price-integer{font-size:var(--van-card-price-integer-font-size);font-family:var(--van-card-price-font)}.van-card__price-decimal{font-family:var(--van-card-price-font)}.van-card__origin-price{display:inline-block;margin-left:5px;color:var(--van-card-origin-price-color);font-size:var(--van-card-origin-price-font-size);text-decoration:line-through}.van-card__num{float:right;color:var(--van-card-num-color)}.van-card__tag{position:absolute;top:2px;left:0}.van-card__footer{flex:none;text-align:right}.van-card__footer .van-button{margin-left:5px}

46
node_modules/vant/lib/card/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,46 @@
export declare const Card: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
tag: StringConstructor;
num: (NumberConstructor | StringConstructor)[];
desc: StringConstructor;
thumb: StringConstructor;
title: StringConstructor;
price: (NumberConstructor | StringConstructor)[];
centered: BooleanConstructor;
lazyLoad: BooleanConstructor;
currency: {
type: import("vue").PropType<string>;
default: string;
};
thumbLink: StringConstructor;
originPrice: (NumberConstructor | StringConstructor)[];
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickThumb"[], "clickThumb", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
tag: StringConstructor;
num: (NumberConstructor | StringConstructor)[];
desc: StringConstructor;
thumb: StringConstructor;
title: StringConstructor;
price: (NumberConstructor | StringConstructor)[];
centered: BooleanConstructor;
lazyLoad: BooleanConstructor;
currency: {
type: import("vue").PropType<string>;
default: string;
};
thumbLink: StringConstructor;
originPrice: (NumberConstructor | StringConstructor)[];
}>> & Readonly<{
onClickThumb?: ((...args: any[]) => any) | undefined;
}>, {
lazyLoad: boolean;
centered: boolean;
currency: string;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default Card;
export { cardProps } from './Card';
export type { CardProps } from './Card';
export type { CardThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanCard: typeof Card;
}
}

39
node_modules/vant/lib/card/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, {
Card: () => Card,
cardProps: () => import_Card2.cardProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_Card = __toESM(require("./Card"));
var import_Card2 = require("./Card");
const Card = (0, import_utils.withInstall)(import_Card.default);
var stdin_default = Card;

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

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

6
node_modules/vant/lib/card/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("../../image/index.css");
require("../../tag/index.css");
require("../index.css");

18
node_modules/vant/lib/card/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,18 @@
export type CardThemeVars = {
cardPadding?: string;
cardFontSize?: string;
cardTextColor?: string;
cardBackground?: string;
cardThumbSize?: string;
cardThumbRadius?: string;
cardTitleLineHeight?: number | string;
cardDescColor?: string;
cardDescLineHeight?: number | string;
cardPriceColor?: string;
cardOriginPriceColor?: string;
cardNumColor?: string;
cardOriginPriceFontSize?: string;
cardPriceFontSize?: string;
cardPriceIntegerFontSize?: string;
cardPriceFont?: string;
};

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