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

96
node_modules/vant/lib/skeleton/Skeleton.d.ts generated vendored Normal file
View File

@@ -0,0 +1,96 @@
import { type PropType, type ExtractPropTypes } from 'vue';
import { type Numeric } from '../utils';
import type { SkeletonAvatarShape } from '../skeleton-avatar';
export declare const skeletonProps: {
row: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
round: BooleanConstructor;
title: BooleanConstructor;
titleWidth: (NumberConstructor | StringConstructor)[];
avatar: BooleanConstructor;
avatarSize: (NumberConstructor | StringConstructor)[];
avatarShape: {
type: PropType<SkeletonAvatarShape>;
default: SkeletonAvatarShape;
};
loading: {
type: BooleanConstructor;
default: true;
};
animate: {
type: BooleanConstructor;
default: true;
};
rowWidth: {
type: PropType<Numeric | Numeric[]>;
default: string;
};
};
export type SkeletonProps = ExtractPropTypes<typeof skeletonProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
row: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
round: BooleanConstructor;
title: BooleanConstructor;
titleWidth: (NumberConstructor | StringConstructor)[];
avatar: BooleanConstructor;
avatarSize: (NumberConstructor | StringConstructor)[];
avatarShape: {
type: PropType<SkeletonAvatarShape>;
default: SkeletonAvatarShape;
};
loading: {
type: BooleanConstructor;
default: true;
};
animate: {
type: BooleanConstructor;
default: true;
};
rowWidth: {
type: PropType<Numeric | Numeric[]>;
default: string;
};
}>, () => import("vue/jsx-runtime").JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
row: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
round: BooleanConstructor;
title: BooleanConstructor;
titleWidth: (NumberConstructor | StringConstructor)[];
avatar: BooleanConstructor;
avatarSize: (NumberConstructor | StringConstructor)[];
avatarShape: {
type: PropType<SkeletonAvatarShape>;
default: SkeletonAvatarShape;
};
loading: {
type: BooleanConstructor;
default: true;
};
animate: {
type: BooleanConstructor;
default: true;
};
rowWidth: {
type: PropType<Numeric | Numeric[]>;
default: string;
};
}>> & Readonly<{}>, {
title: boolean;
animate: boolean;
round: boolean;
row: string | number;
loading: boolean;
avatarShape: SkeletonAvatarShape;
rowWidth: Numeric | Numeric[];
avatar: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

118
node_modules/vant/lib/skeleton/Skeleton.js generated vendored Normal file
View File

@@ -0,0 +1,118 @@
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 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 __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, {
default: () => stdin_default,
skeletonProps: () => skeletonProps
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_skeleton_title = __toESM(require("../skeleton-title"));
var import_skeleton_avatar = __toESM(require("../skeleton-avatar"));
var import_skeleton_paragraph = __toESM(require("../skeleton-paragraph"));
const [name, bem] = (0, import_utils.createNamespace)("skeleton");
const DEFAULT_LAST_ROW_WIDTH = "60%";
const skeletonProps = {
row: (0, import_utils.makeNumericProp)(0),
round: Boolean,
title: Boolean,
titleWidth: import_utils.numericProp,
avatar: Boolean,
avatarSize: import_utils.numericProp,
avatarShape: (0, import_utils.makeStringProp)("round"),
loading: import_utils.truthProp,
animate: import_utils.truthProp,
rowWidth: {
type: [Number, String, Array],
default: import_skeleton_paragraph.DEFAULT_ROW_WIDTH
}
};
var stdin_default = (0, import_vue.defineComponent)({
name,
inheritAttrs: false,
props: skeletonProps,
setup(props, {
slots,
attrs
}) {
const renderAvatar = () => {
if (props.avatar) {
return (0, import_vue.createVNode)(import_skeleton_avatar.default, {
"avatarShape": props.avatarShape,
"avatarSize": props.avatarSize
}, null);
}
};
const renderTitle = () => {
if (props.title) {
return (0, import_vue.createVNode)(import_skeleton_title.default, {
"round": props.round,
"titleWidth": props.titleWidth
}, null);
}
};
const getRowWidth = (index) => {
const {
rowWidth
} = props;
if (rowWidth === import_skeleton_paragraph.DEFAULT_ROW_WIDTH && index === +props.row - 1) {
return DEFAULT_LAST_ROW_WIDTH;
}
if (Array.isArray(rowWidth)) {
return rowWidth[index];
}
return rowWidth;
};
const renderRows = () => Array(+props.row).fill("").map((_, i) => (0, import_vue.createVNode)(import_skeleton_paragraph.default, {
"key": i,
"round": props.round,
"rowWidth": (0, import_utils.addUnit)(getRowWidth(i))
}, null));
const renderContents = () => {
if (slots.template) {
return slots.template();
}
return (0, import_vue.createVNode)(import_vue.Fragment, null, [renderAvatar(), (0, import_vue.createVNode)("div", {
"class": bem("content")
}, [renderTitle(), renderRows()])]);
};
return () => {
var _a;
if (!props.loading) {
return (_a = slots.default) == null ? void 0 : _a.call(slots);
}
return (0, import_vue.createVNode)("div", (0, import_vue.mergeProps)({
"class": bem({
animate: props.animate,
round: props.round
})
}, attrs), [renderContents()]);
};
}
});

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

@@ -0,0 +1 @@
:root,:host{--van-skeleton-duration: 1.2s}.van-skeleton{display:flex;padding:0 var(--van-padding-md)}.van-skeleton__content{width:100%}.van-skeleton--animate{animation:van-skeleton-blink var(--van-skeleton-duration) ease-in-out infinite}@keyframes van-skeleton-blink{50%{opacity:.6}}

73
node_modules/vant/lib/skeleton/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,73 @@
export declare const Skeleton: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
row: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
round: BooleanConstructor;
title: BooleanConstructor;
titleWidth: (NumberConstructor | StringConstructor)[];
avatar: BooleanConstructor;
avatarSize: (NumberConstructor | StringConstructor)[];
avatarShape: {
type: import("vue").PropType<import("..").SkeletonAvatarShape>;
default: import("..").SkeletonAvatarShape;
};
loading: {
type: BooleanConstructor;
default: true;
};
animate: {
type: BooleanConstructor;
default: true;
};
rowWidth: {
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
default: string;
};
}>, () => import("vue/jsx-runtime").JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
row: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
round: BooleanConstructor;
title: BooleanConstructor;
titleWidth: (NumberConstructor | StringConstructor)[];
avatar: BooleanConstructor;
avatarSize: (NumberConstructor | StringConstructor)[];
avatarShape: {
type: import("vue").PropType<import("..").SkeletonAvatarShape>;
default: import("..").SkeletonAvatarShape;
};
loading: {
type: BooleanConstructor;
default: true;
};
animate: {
type: BooleanConstructor;
default: true;
};
rowWidth: {
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
default: string;
};
}>> & Readonly<{}>, {
title: boolean;
animate: boolean;
round: boolean;
row: string | number;
loading: boolean;
avatarShape: import("..").SkeletonAvatarShape;
rowWidth: import("../utils").Numeric | import("../utils").Numeric[];
avatar: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default Skeleton;
export { skeletonProps } from './Skeleton';
export type { SkeletonProps } from './Skeleton';
export type { SkeletonThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanSkeleton: typeof Skeleton;
}
}

39
node_modules/vant/lib/skeleton/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, {
Skeleton: () => Skeleton,
default: () => stdin_default,
skeletonProps: () => import_Skeleton2.skeletonProps
});
module.exports = __toCommonJS(stdin_exports);
var import_Skeleton = __toESM(require("./Skeleton"));
var import_utils = require("../utils");
var import_Skeleton2 = require("./Skeleton");
const Skeleton = (0, import_utils.withInstall)(import_Skeleton.default);
var stdin_default = Skeleton;

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

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

5
node_modules/vant/lib/skeleton/style/index.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
require("../../style/base.css");
require("../../skeleton-title/index.css");
require("../../skeleton-avatar/index.css");
require("../../skeleton-paragraph/index.css");
require("../index.css");

11
node_modules/vant/lib/skeleton/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
export type SkeletonThemeVars = {
skeletonParagraphHeight?: string;
skeletonParagraphBackground?: string;
skeletonParagraphMarginTop?: string;
skeletonTitleWidth?: string;
skeletonAvatarSize?: string;
skeletonAvatarBackground?: string;
SkeletonImageSize?: string;
SkeletonImageRadius?: string;
skeletonDuration?: string;
};

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