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

45
node_modules/vant/lib/icon/Icon.d.ts generated vendored Normal file
View File

@@ -0,0 +1,45 @@
import { type PropType, type ExtractPropTypes } from 'vue';
import { type BadgeProps } from '../badge';
export declare const iconProps: {
dot: BooleanConstructor;
tag: {
type: PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
name: StringConstructor;
size: (NumberConstructor | StringConstructor)[];
badge: (NumberConstructor | StringConstructor)[];
color: StringConstructor;
badgeProps: PropType<Partial<BadgeProps>>;
classPrefix: StringConstructor;
};
export type IconProps = ExtractPropTypes<typeof iconProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
dot: BooleanConstructor;
tag: {
type: PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
name: StringConstructor;
size: (NumberConstructor | StringConstructor)[];
badge: (NumberConstructor | StringConstructor)[];
color: StringConstructor;
badgeProps: PropType<Partial<BadgeProps>>;
classPrefix: StringConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
dot: BooleanConstructor;
tag: {
type: PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
name: StringConstructor;
size: (NumberConstructor | StringConstructor)[];
badge: (NumberConstructor | StringConstructor)[];
color: StringConstructor;
badgeProps: PropType<Partial<BadgeProps>>;
classPrefix: StringConstructor;
}>> & Readonly<{}>, {
dot: boolean;
tag: keyof HTMLElementTagNameMap;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

78
node_modules/vant/lib/icon/Icon.js generated vendored Normal file
View File

@@ -0,0 +1,78 @@
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, {
default: () => stdin_default,
iconProps: () => iconProps
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_badge = require("../badge");
var import_ConfigProvider = require("../config-provider/ConfigProvider");
const [name, bem] = (0, import_utils.createNamespace)("icon");
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
const iconProps = {
dot: Boolean,
tag: (0, import_utils.makeStringProp)("i"),
name: String,
size: import_utils.numericProp,
badge: import_utils.numericProp,
color: String,
badgeProps: Object,
classPrefix: String
};
var stdin_default = (0, import_vue.defineComponent)({
name,
props: iconProps,
setup(props, {
slots
}) {
const config = (0, import_vue.inject)(import_ConfigProvider.CONFIG_PROVIDER_KEY, null);
const classPrefix = (0, import_vue.computed)(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem());
return () => {
const {
tag,
dot,
name: name2,
size,
badge,
color
} = props;
const isImageIcon = isImage(name2);
return (0, import_vue.createVNode)(import_badge.Badge, (0, import_vue.mergeProps)({
"dot": dot,
"tag": tag,
"class": [classPrefix.value, isImageIcon ? "" : `${classPrefix.value}-${name2}`],
"style": {
color,
fontSize: (0, import_utils.addUnit)(size)
},
"content": badge
}, props.badgeProps), {
default: () => {
var _a;
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && (0, import_vue.createVNode)("img", {
"class": bem("image"),
"src": name2
}, null)];
}
});
};
}
});

1
node_modules/vant/lib/icon/index.css generated vendored Normal file

File diff suppressed because one or more lines are too long

36
node_modules/vant/lib/icon/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,36 @@
export declare const Icon: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
dot: BooleanConstructor;
tag: {
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
name: StringConstructor;
size: (NumberConstructor | StringConstructor)[];
badge: (NumberConstructor | StringConstructor)[];
color: StringConstructor;
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
classPrefix: StringConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
dot: BooleanConstructor;
tag: {
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
default: keyof HTMLElementTagNameMap;
};
name: StringConstructor;
size: (NumberConstructor | StringConstructor)[];
badge: (NumberConstructor | StringConstructor)[];
color: StringConstructor;
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
classPrefix: StringConstructor;
}>> & Readonly<{}>, {
dot: boolean;
tag: keyof HTMLElementTagNameMap;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default Icon;
export { iconProps } from './Icon';
export type { IconProps } from './Icon';
declare module 'vue' {
interface GlobalComponents {
VanIcon: typeof Icon;
}
}

39
node_modules/vant/lib/icon/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, {
Icon: () => Icon,
default: () => stdin_default,
iconProps: () => import_Icon2.iconProps
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_Icon = __toESM(require("./Icon"));
var import_Icon2 = require("./Icon");
const Icon = (0, import_utils.withInstall)(import_Icon.default);
var stdin_default = Icon;

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

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

3
node_modules/vant/lib/icon/style/index.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
require("../../style/base.css");
require("../../badge/index.css");
require("../index.css");