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

74
node_modules/vant/lib/nav-bar/NavBar.d.ts generated vendored Normal file
View File

@@ -0,0 +1,74 @@
import { type ExtractPropTypes } from 'vue';
export declare const navBarProps: {
title: StringConstructor;
fixed: BooleanConstructor;
zIndex: (NumberConstructor | StringConstructor)[];
border: {
type: BooleanConstructor;
default: true;
};
leftText: StringConstructor;
rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;
placeholder: BooleanConstructor;
safeAreaInsetTop: BooleanConstructor;
clickable: {
type: BooleanConstructor;
default: true;
};
};
export type NavBarProps = ExtractPropTypes<typeof navBarProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
title: StringConstructor;
fixed: BooleanConstructor;
zIndex: (NumberConstructor | StringConstructor)[];
border: {
type: BooleanConstructor;
default: true;
};
leftText: StringConstructor;
rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;
placeholder: BooleanConstructor;
safeAreaInsetTop: BooleanConstructor;
clickable: {
type: BooleanConstructor;
default: true;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickLeft" | "clickRight")[], "clickLeft" | "clickRight", import("vue").PublicProps, Readonly<ExtractPropTypes<{
title: StringConstructor;
fixed: BooleanConstructor;
zIndex: (NumberConstructor | StringConstructor)[];
border: {
type: BooleanConstructor;
default: true;
};
leftText: StringConstructor;
rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;
placeholder: BooleanConstructor;
safeAreaInsetTop: BooleanConstructor;
clickable: {
type: BooleanConstructor;
default: true;
};
}>> & Readonly<{
onClickLeft?: ((...args: any[]) => any) | undefined;
onClickRight?: ((...args: any[]) => any) | undefined;
}>, {
fixed: boolean;
border: boolean;
clickable: boolean;
placeholder: boolean;
safeAreaInsetTop: boolean;
leftDisabled: boolean;
rightDisabled: boolean;
leftArrow: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

124
node_modules/vant/lib/nav-bar/NavBar.js generated vendored Normal file
View File

@@ -0,0 +1,124 @@
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,
navBarProps: () => navBarProps
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
var import_use_placeholder = require("../composables/use-placeholder");
var import_icon = require("../icon");
const [name, bem] = (0, import_utils.createNamespace)("nav-bar");
const navBarProps = {
title: String,
fixed: Boolean,
zIndex: import_utils.numericProp,
border: import_utils.truthProp,
leftText: String,
rightText: String,
leftDisabled: Boolean,
rightDisabled: Boolean,
leftArrow: Boolean,
placeholder: Boolean,
safeAreaInsetTop: Boolean,
clickable: import_utils.truthProp
};
var stdin_default = (0, import_vue.defineComponent)({
name,
props: navBarProps,
emits: ["clickLeft", "clickRight"],
setup(props, {
emit,
slots
}) {
const navBarRef = (0, import_vue.ref)();
const renderPlaceholder = (0, import_use_placeholder.usePlaceholder)(navBarRef, bem);
const onClickLeft = (event) => {
if (!props.leftDisabled) {
emit("clickLeft", event);
}
};
const onClickRight = (event) => {
if (!props.rightDisabled) {
emit("clickRight", event);
}
};
const renderLeft = () => {
if (slots.left) {
return slots.left();
}
return [props.leftArrow && (0, import_vue.createVNode)(import_icon.Icon, {
"class": bem("arrow"),
"name": "arrow-left"
}, null), props.leftText && (0, import_vue.createVNode)("span", {
"class": bem("text")
}, [props.leftText])];
};
const renderRight = () => {
if (slots.right) {
return slots.right();
}
return (0, import_vue.createVNode)("span", {
"class": bem("text")
}, [props.rightText]);
};
const renderNavBar = () => {
const {
title,
fixed,
border,
zIndex
} = props;
const style = (0, import_utils.getZIndexStyle)(zIndex);
const hasLeft = props.leftArrow || props.leftText || slots.left;
const hasRight = props.rightText || slots.right;
return (0, import_vue.createVNode)("div", {
"ref": navBarRef,
"style": style,
"class": [bem({
fixed
}), {
[import_utils.BORDER_BOTTOM]: border,
"van-safe-area-top": props.safeAreaInsetTop
}]
}, [(0, import_vue.createVNode)("div", {
"class": bem("content")
}, [hasLeft && (0, import_vue.createVNode)("div", {
"class": [bem("left", {
disabled: props.leftDisabled
}), props.clickable && !props.leftDisabled ? import_utils.HAPTICS_FEEDBACK : ""],
"onClick": onClickLeft
}, [renderLeft()]), (0, import_vue.createVNode)("div", {
"class": [bem("title"), "van-ellipsis"]
}, [slots.title ? slots.title() : title]), hasRight && (0, import_vue.createVNode)("div", {
"class": [bem("right", {
disabled: props.rightDisabled
}), props.clickable && !props.rightDisabled ? import_utils.HAPTICS_FEEDBACK : ""],
"onClick": onClickRight
}, [renderRight()])])]);
};
return () => {
if (props.fixed && props.placeholder) {
return renderPlaceholder(renderNavBar);
}
return renderNavBar();
};
}
});

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

@@ -0,0 +1 @@
:root,:host{--van-nav-bar-height: 46px;--van-nav-bar-background: var(--van-background-2);--van-nav-bar-arrow-size: 16px;--van-nav-bar-icon-color: var(--van-primary-color);--van-nav-bar-text-color: var(--van-primary-color);--van-nav-bar-title-font-size: var(--van-font-size-lg);--van-nav-bar-title-text-color: var(--van-text-color);--van-nav-bar-z-index: 1;--van-nav-bar-disabled-opacity: var(--van-disabled-opacity)}.van-nav-bar{position:relative;z-index:var(--van-nav-bar-z-index);line-height:var(--van-line-height-lg);text-align:center;background:var(--van-nav-bar-background);-webkit-user-select:none;user-select:none}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-nav-bar .van-icon{color:var(--van-nav-bar-icon-color)}.van-nav-bar__content{position:relative;display:flex;align-items:center;height:var(--van-nav-bar-height)}.van-nav-bar__arrow{margin-right:var(--van-padding-base);font-size:var(--van-nav-bar-arrow-size)}.van-nav-bar__title{max-width:60%;margin:0 auto;color:var(--van-nav-bar-title-text-color);font-weight:var(--van-font-bold);font-size:var(--van-nav-bar-title-font-size)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding:0 var(--van-padding-md);font-size:var(--van-font-size-md)}.van-nav-bar__left--disabled,.van-nav-bar__right--disabled{cursor:not-allowed;opacity:var(--van-nav-bar-disabled-opacity)}.van-nav-bar__left{left:0}.van-nav-bar__right{right:0}.van-nav-bar__text{color:var(--van-nav-bar-text-color)}

60
node_modules/vant/lib/nav-bar/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,60 @@
export declare const NavBar: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
title: StringConstructor;
fixed: BooleanConstructor;
zIndex: (NumberConstructor | StringConstructor)[];
border: {
type: BooleanConstructor;
default: true;
};
leftText: StringConstructor;
rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;
placeholder: BooleanConstructor;
safeAreaInsetTop: BooleanConstructor;
clickable: {
type: BooleanConstructor;
default: true;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickLeft" | "clickRight")[], "clickLeft" | "clickRight", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
title: StringConstructor;
fixed: BooleanConstructor;
zIndex: (NumberConstructor | StringConstructor)[];
border: {
type: BooleanConstructor;
default: true;
};
leftText: StringConstructor;
rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;
placeholder: BooleanConstructor;
safeAreaInsetTop: BooleanConstructor;
clickable: {
type: BooleanConstructor;
default: true;
};
}>> & Readonly<{
onClickLeft?: ((...args: any[]) => any) | undefined;
onClickRight?: ((...args: any[]) => any) | undefined;
}>, {
fixed: boolean;
border: boolean;
clickable: boolean;
placeholder: boolean;
safeAreaInsetTop: boolean;
leftDisabled: boolean;
rightDisabled: boolean;
leftArrow: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default NavBar;
export { navBarProps } from './NavBar';
export type { NavBarProps } from './NavBar';
export type { NavBarThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanNavBar: typeof NavBar;
}
}

39
node_modules/vant/lib/nav-bar/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, {
NavBar: () => NavBar,
default: () => stdin_default,
navBarProps: () => import_NavBar2.navBarProps
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_NavBar = __toESM(require("./NavBar"));
var import_NavBar2 = require("./NavBar");
const NavBar = (0, import_utils.withInstall)(import_NavBar.default);
var stdin_default = NavBar;

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

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

4
node_modules/vant/lib/nav-bar/style/index.js generated vendored Normal file
View File

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

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

@@ -0,0 +1,10 @@
export type NavBarThemeVars = {
navBarHeight?: string;
navBarBackground?: string;
navBarArrowSize?: string;
navBarIconColor?: string;
navBarTextColor?: string;
navBarTitleFontSize?: string;
navBarTitleTextColor?: string;
navBarZIndex?: number | string;
};

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