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

44
node_modules/vant/lib/tabbar-item/TabbarItem.d.ts generated vendored Normal file
View File

@@ -0,0 +1,44 @@
import { type PropType, type ExtractPropTypes } from 'vue';
import { type BadgeProps } from '../badge';
export declare const tabbarItemProps: {
to: PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
} & {
dot: BooleanConstructor;
icon: StringConstructor;
name: (NumberConstructor | StringConstructor)[];
badge: (NumberConstructor | StringConstructor)[];
badgeProps: PropType<Partial<BadgeProps>>;
iconPrefix: StringConstructor;
};
export type TabbarItemProps = ExtractPropTypes<typeof tabbarItemProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
to: PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
} & {
dot: BooleanConstructor;
icon: StringConstructor;
name: (NumberConstructor | StringConstructor)[];
badge: (NumberConstructor | StringConstructor)[];
badgeProps: PropType<Partial<BadgeProps>>;
iconPrefix: StringConstructor;
}>, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
to: PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
} & {
dot: BooleanConstructor;
icon: StringConstructor;
name: (NumberConstructor | StringConstructor)[];
badge: (NumberConstructor | StringConstructor)[];
badgeProps: PropType<Partial<BadgeProps>>;
iconPrefix: StringConstructor;
}>> & Readonly<{
onClick?: ((...args: any[]) => any) | undefined;
}>, {
replace: boolean;
dot: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

139
node_modules/vant/lib/tabbar-item/TabbarItem.js generated vendored Normal file
View File

@@ -0,0 +1,139 @@
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,
tabbarItemProps: () => tabbarItemProps
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_Tabbar = require("../tabbar/Tabbar");
var import_use = require("@vant/use");
var import_use_route = require("../composables/use-route");
var import_icon = require("../icon");
var import_badge = require("../badge");
const [name, bem] = (0, import_utils.createNamespace)("tabbar-item");
const tabbarItemProps = (0, import_utils.extend)({}, import_use_route.routeProps, {
dot: Boolean,
icon: String,
name: import_utils.numericProp,
badge: import_utils.numericProp,
badgeProps: Object,
iconPrefix: String
});
var stdin_default = (0, import_vue.defineComponent)({
name,
props: tabbarItemProps,
emits: ["click"],
setup(props, {
emit,
slots
}) {
const route = (0, import_use_route.useRoute)();
const vm = (0, import_vue.getCurrentInstance)().proxy;
const {
parent,
index
} = (0, import_use.useParent)(import_Tabbar.TABBAR_KEY);
if (!parent) {
if (process.env.NODE_ENV !== "production") {
console.error("[Vant] <TabbarItem> must be a child component of <Tabbar>.");
}
return;
}
const active = (0, import_vue.computed)(() => {
var _a;
const {
route: route2,
modelValue
} = parent.props;
if (route2 && "$route" in vm) {
const {
$route
} = vm;
const {
to
} = props;
const config = (0, import_utils.isObject)(to) ? to : {
path: to
};
return $route.matched.some((val) => {
const pathMatched = "path" in config && config.path === val.path;
const nameMatched = "name" in config && config.name === val.name;
return pathMatched || nameMatched;
});
}
return ((_a = props.name) != null ? _a : index.value) === modelValue;
});
const onClick = (event) => {
var _a;
if (!active.value) {
parent.setActive((_a = props.name) != null ? _a : index.value, route);
}
emit("click", event);
};
const renderIcon = () => {
if (slots.icon) {
return slots.icon({
active: active.value
});
}
if (props.icon) {
return (0, import_vue.createVNode)(import_icon.Icon, {
"name": props.icon,
"classPrefix": props.iconPrefix
}, null);
}
};
return () => {
var _a;
const {
dot,
badge
} = props;
const {
activeColor,
inactiveColor
} = parent.props;
const color = active.value ? activeColor : inactiveColor;
return (0, import_vue.createVNode)("div", {
"role": "tab",
"class": bem({
active: active.value
}),
"style": {
color
},
"tabindex": 0,
"aria-selected": active.value,
"onClick": onClick
}, [(0, import_vue.createVNode)(import_badge.Badge, (0, import_vue.mergeProps)({
"dot": dot,
"class": bem("icon"),
"content": badge
}, props.badgeProps), {
default: renderIcon
}), (0, import_vue.createVNode)("div", {
"class": bem("text")
}, [(_a = slots.default) == null ? void 0 : _a.call(slots, {
active: active.value
})])]);
};
}
});

1
node_modules/vant/lib/tabbar-item/index.css generated vendored Normal file
View File

@@ -0,0 +1 @@
:root,:host{--van-tabbar-item-font-size: var(--van-font-size-sm);--van-tabbar-item-text-color: var(--van-text-color);--van-tabbar-item-active-color: var(--van-primary-color);--van-tabbar-item-active-background: var(--van-background-2);--van-tabbar-item-line-height: 1;--van-tabbar-item-icon-size: 22px;--van-tabbar-item-icon-margin-bottom: var(--van-padding-base)}.van-tabbar-item{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;color:var(--van-tabbar-item-text-color);font-size:var(--van-tabbar-item-font-size);line-height:var(--van-tabbar-item-line-height);cursor:pointer}.van-tabbar-item__icon{margin-bottom:var(--van-tabbar-item-icon-margin-bottom);font-size:var(--van-tabbar-item-icon-size)}.van-tabbar-item__icon .van-icon{display:block}.van-tabbar-item__icon .van-badge{margin-top:var(--van-padding-base)}.van-tabbar-item__icon img{display:block;height:20px}.van-tabbar-item--active{color:var(--van-tabbar-item-active-color);background-color:var(--van-tabbar-item-active-background)}

37
node_modules/vant/lib/tabbar-item/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,37 @@
export declare const TabbarItem: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
} & {
dot: BooleanConstructor;
icon: StringConstructor;
name: (NumberConstructor | StringConstructor)[];
badge: (NumberConstructor | StringConstructor)[];
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
iconPrefix: StringConstructor;
}>, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
} & {
dot: BooleanConstructor;
icon: StringConstructor;
name: (NumberConstructor | StringConstructor)[];
badge: (NumberConstructor | StringConstructor)[];
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
iconPrefix: StringConstructor;
}>> & Readonly<{
onClick?: ((...args: any[]) => any) | undefined;
}>, {
replace: boolean;
dot: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default TabbarItem;
export { tabbarItemProps } from './TabbarItem';
export type { TabbarItemProps } from './TabbarItem';
export type { TabbarItemThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanTabbarItem: typeof TabbarItem;
}
}

39
node_modules/vant/lib/tabbar-item/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, {
TabbarItem: () => TabbarItem,
default: () => stdin_default,
tabbarItemProps: () => import_TabbarItem2.tabbarItemProps
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_TabbarItem = __toESM(require("./TabbarItem"));
var import_TabbarItem2 = require("./TabbarItem");
const TabbarItem = (0, import_utils.withInstall)(import_TabbarItem.default);
var stdin_default = TabbarItem;

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

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

5
node_modules/vant/lib/tabbar-item/style/index.js generated vendored Normal file
View File

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

9
node_modules/vant/lib/tabbar-item/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,9 @@
export type TabbarItemThemeVars = {
tabbarItemFontSize?: string;
tabbarItemTextColor?: string;
tabbarItemActiveColor?: string;
tabbarItemActiveBackground?: string;
tabbarItemLineHeight?: number | string;
tabbarItemIconSize?: string;
tabbarItemIconMarginBottom?: string;
};

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