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

View File

@@ -0,0 +1,48 @@
import { type PropType, type ExtractPropTypes } from 'vue';
import { type BadgeProps } from '../badge';
export declare const actionBarIconProps: {
to: PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
} & {
dot: BooleanConstructor;
text: StringConstructor;
icon: StringConstructor;
color: StringConstructor;
badge: (NumberConstructor | StringConstructor)[];
iconClass: PropType<unknown>;
badgeProps: PropType<Partial<BadgeProps>>;
iconPrefix: StringConstructor;
};
export type ActionBarIconProps = ExtractPropTypes<typeof actionBarIconProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
to: PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
} & {
dot: BooleanConstructor;
text: StringConstructor;
icon: StringConstructor;
color: StringConstructor;
badge: (NumberConstructor | StringConstructor)[];
iconClass: PropType<unknown>;
badgeProps: PropType<Partial<BadgeProps>>;
iconPrefix: StringConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
to: PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
} & {
dot: BooleanConstructor;
text: StringConstructor;
icon: StringConstructor;
color: StringConstructor;
badge: (NumberConstructor | StringConstructor)[];
iconClass: PropType<unknown>;
badgeProps: PropType<Partial<BadgeProps>>;
iconPrefix: StringConstructor;
}>> & Readonly<{}>, {
replace: boolean;
dot: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

87
node_modules/vant/lib/action-bar-icon/ActionBarIcon.js generated vendored Normal file
View File

@@ -0,0 +1,87 @@
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, {
actionBarIconProps: () => actionBarIconProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_ActionBar = require("../action-bar/ActionBar");
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)("action-bar-icon");
const actionBarIconProps = (0, import_utils.extend)({}, import_use_route.routeProps, {
dot: Boolean,
text: String,
icon: String,
color: String,
badge: import_utils.numericProp,
iconClass: import_utils.unknownProp,
badgeProps: Object,
iconPrefix: String
});
var stdin_default = (0, import_vue.defineComponent)({
name,
props: actionBarIconProps,
setup(props, {
slots
}) {
const route = (0, import_use_route.useRoute)();
(0, import_use.useParent)(import_ActionBar.ACTION_BAR_KEY);
const renderIcon = () => {
const {
dot,
badge,
icon,
color,
iconClass,
badgeProps,
iconPrefix
} = props;
if (slots.icon) {
return (0, import_vue.createVNode)(import_badge.Badge, (0, import_vue.mergeProps)({
"dot": dot,
"class": bem("icon"),
"content": badge
}, badgeProps), {
default: slots.icon
});
}
return (0, import_vue.createVNode)(import_icon.Icon, {
"tag": "div",
"dot": dot,
"name": icon,
"badge": badge,
"color": color,
"class": [bem("icon"), iconClass],
"badgeProps": badgeProps,
"classPrefix": iconPrefix
}, null);
};
return () => (0, import_vue.createVNode)("div", {
"role": "button",
"class": bem(),
"tabindex": 0,
"onClick": route
}, [renderIcon(), slots.default ? slots.default() : props.text]);
}
});

1
node_modules/vant/lib/action-bar-icon/index.css generated vendored Normal file
View File

@@ -0,0 +1 @@
:root,:host{--van-action-bar-icon-width: 48px;--van-action-bar-icon-height: 100%;--van-action-bar-icon-color: var(--van-text-color);--van-action-bar-icon-size: 18px;--van-action-bar-icon-font-size: var(--van-font-size-xs);--van-action-bar-icon-active-color: var(--van-active-color);--van-action-bar-icon-text-color: var(--van-text-color);--van-action-bar-icon-background: var(--van-background-2)}.van-action-bar-icon{display:flex;flex-direction:column;justify-content:center;min-width:var(--van-action-bar-icon-width);height:var(--van-action-bar-icon-height);color:var(--van-action-bar-icon-text-color);font-size:var(--van-action-bar-icon-font-size);line-height:1;text-align:center;background:var(--van-action-bar-icon-background);cursor:pointer}.van-action-bar-icon:active{background-color:var(--van-action-bar-icon-active-color)}.van-action-bar-icon__icon{margin:0 auto var(--van-padding-base);color:var(--van-action-bar-icon-color);font-size:var(--van-action-bar-icon-size)}

39
node_modules/vant/lib/action-bar-icon/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,39 @@
export declare const ActionBarIcon: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
} & {
dot: BooleanConstructor;
text: StringConstructor;
icon: StringConstructor;
color: StringConstructor;
badge: (NumberConstructor | StringConstructor)[];
iconClass: import("vue").PropType<unknown>;
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
iconPrefix: StringConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
url: StringConstructor;
replace: BooleanConstructor;
} & {
dot: BooleanConstructor;
text: StringConstructor;
icon: StringConstructor;
color: StringConstructor;
badge: (NumberConstructor | StringConstructor)[];
iconClass: import("vue").PropType<unknown>;
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
iconPrefix: StringConstructor;
}>> & Readonly<{}>, {
replace: boolean;
dot: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default ActionBarIcon;
export { actionBarIconProps } from './ActionBarIcon';
export type { ActionBarIconProps } from './ActionBarIcon';
export type { ActionBarIconThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanActionBarIcon: typeof ActionBarIcon;
}
}

39
node_modules/vant/lib/action-bar-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, {
ActionBarIcon: () => ActionBarIcon,
actionBarIconProps: () => import_ActionBarIcon2.actionBarIconProps,
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_ActionBarIcon = __toESM(require("./ActionBarIcon"));
var import_ActionBarIcon2 = require("./ActionBarIcon");
const ActionBarIcon = (0, import_utils.withInstall)(import_ActionBarIcon.default);
var stdin_default = ActionBarIcon;

View File

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

5
node_modules/vant/lib/action-bar-icon/style/index.js generated vendored Normal file
View File

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

10
node_modules/vant/lib/action-bar-icon/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
export type ActionBarIconThemeVars = {
actionBarIconWidth?: string;
actionBarIconHeight?: string;
actionBarIconColor?: string;
actionBarIconSize?: string;
actionBarIconFontSize?: string;
actionBarIconActiveColor?: string;
actionBarIconTextColor?: string;
actionBarIconBackground?: string;
};

15
node_modules/vant/lib/action-bar-icon/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);