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

101
node_modules/vant/es/submit-bar/SubmitBar.d.ts generated vendored Normal file
View File

@@ -0,0 +1,101 @@
import { type PropType, type ExtractPropTypes } from 'vue';
import { ButtonType } from '../button';
export type SubmitBarTextAlign = 'left' | 'right';
export declare const submitBarProps: {
tip: StringConstructor;
label: StringConstructor;
price: NumberConstructor;
tipIcon: StringConstructor;
loading: BooleanConstructor;
currency: {
type: PropType<string>;
default: string;
};
disabled: BooleanConstructor;
textAlign: PropType<SubmitBarTextAlign>;
buttonText: StringConstructor;
buttonType: {
type: PropType<ButtonType>;
default: ButtonType;
};
buttonColor: StringConstructor;
suffixLabel: StringConstructor;
placeholder: BooleanConstructor;
decimalLength: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
safeAreaInsetBottom: {
type: BooleanConstructor;
default: true;
};
};
export type SubmitBarProps = ExtractPropTypes<typeof submitBarProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
tip: StringConstructor;
label: StringConstructor;
price: NumberConstructor;
tipIcon: StringConstructor;
loading: BooleanConstructor;
currency: {
type: PropType<string>;
default: string;
};
disabled: BooleanConstructor;
textAlign: PropType<SubmitBarTextAlign>;
buttonText: StringConstructor;
buttonType: {
type: PropType<ButtonType>;
default: ButtonType;
};
buttonColor: StringConstructor;
suffixLabel: StringConstructor;
placeholder: BooleanConstructor;
decimalLength: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
safeAreaInsetBottom: {
type: BooleanConstructor;
default: true;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "submit"[], "submit", import("vue").PublicProps, Readonly<ExtractPropTypes<{
tip: StringConstructor;
label: StringConstructor;
price: NumberConstructor;
tipIcon: StringConstructor;
loading: BooleanConstructor;
currency: {
type: PropType<string>;
default: string;
};
disabled: BooleanConstructor;
textAlign: PropType<SubmitBarTextAlign>;
buttonText: StringConstructor;
buttonType: {
type: PropType<ButtonType>;
default: ButtonType;
};
buttonColor: StringConstructor;
suffixLabel: StringConstructor;
placeholder: BooleanConstructor;
decimalLength: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
safeAreaInsetBottom: {
type: BooleanConstructor;
default: true;
};
}>> & Readonly<{
onSubmit?: ((...args: any[]) => any) | undefined;
}>, {
disabled: boolean;
placeholder: boolean;
safeAreaInsetBottom: boolean;
loading: boolean;
currency: string;
decimalLength: string | number;
buttonType: ButtonType;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

115
node_modules/vant/es/submit-bar/SubmitBar.mjs generated vendored Normal file
View File

@@ -0,0 +1,115 @@
import { ref, defineComponent, createVNode as _createVNode } from "vue";
import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
import { Icon } from "../icon/index.mjs";
import { Button } from "../button/index.mjs";
import { usePlaceholder } from "../composables/use-placeholder.mjs";
const [name, bem, t] = createNamespace("submit-bar");
const submitBarProps = {
tip: String,
label: String,
price: Number,
tipIcon: String,
loading: Boolean,
currency: makeStringProp("\xA5"),
disabled: Boolean,
textAlign: String,
buttonText: String,
buttonType: makeStringProp("danger"),
buttonColor: String,
suffixLabel: String,
placeholder: Boolean,
decimalLength: makeNumericProp(2),
safeAreaInsetBottom: truthProp
};
var stdin_default = defineComponent({
name,
props: submitBarProps,
emits: ["submit"],
setup(props, {
emit,
slots
}) {
const root = ref();
const renderPlaceholder = usePlaceholder(root, bem);
const renderText = () => {
const {
price,
label,
currency,
textAlign,
suffixLabel,
decimalLength
} = props;
if (typeof price === "number") {
const pricePair = (price / 100).toFixed(+decimalLength).split(".");
const decimal = decimalLength ? `.${pricePair[1]}` : "";
return _createVNode("div", {
"class": bem("text"),
"style": {
textAlign
}
}, [_createVNode("span", null, [label || t("label")]), _createVNode("span", {
"class": bem("price")
}, [currency, _createVNode("span", {
"class": bem("price-integer")
}, [pricePair[0]]), decimal]), suffixLabel && _createVNode("span", {
"class": bem("suffix-label")
}, [suffixLabel])]);
}
};
const renderTip = () => {
var _a;
const {
tip,
tipIcon
} = props;
if (slots.tip || tip) {
return _createVNode("div", {
"class": bem("tip")
}, [tipIcon && _createVNode(Icon, {
"class": bem("tip-icon"),
"name": tipIcon
}, null), tip && _createVNode("span", {
"class": bem("tip-text")
}, [tip]), (_a = slots.tip) == null ? void 0 : _a.call(slots)]);
}
};
const onClickButton = () => emit("submit");
const renderButton = () => {
if (slots.button) {
return slots.button();
}
return _createVNode(Button, {
"round": true,
"type": props.buttonType,
"text": props.buttonText,
"class": bem("button", props.buttonType),
"color": props.buttonColor,
"loading": props.loading,
"disabled": props.disabled,
"onClick": onClickButton
}, null);
};
const renderSubmitBar = () => {
var _a, _b;
return _createVNode("div", {
"ref": root,
"class": [bem(), {
"van-safe-area-bottom": props.safeAreaInsetBottom
}]
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), renderTip(), _createVNode("div", {
"class": bem("bar")
}, [(_b = slots.default) == null ? void 0 : _b.call(slots), renderText(), renderButton()])]);
};
return () => {
if (props.placeholder) {
return renderPlaceholder(renderSubmitBar);
}
return renderSubmitBar();
};
}
});
export {
stdin_default as default,
submitBarProps
};

1
node_modules/vant/es/submit-bar/index.css generated vendored Normal file
View File

@@ -0,0 +1 @@
:root,:host{--van-submit-bar-height: 50px;--van-submit-bar-z-index: 100;--van-submit-bar-background: var(--van-background-2);--van-submit-bar-button-width: 110px;--van-submit-bar-price-color: var(--van-danger-color);--van-submit-bar-price-font-size: var(--van-font-size-sm);--van-submit-bar-price-integer-font-size: 20px;--van-submit-bar-price-font: var(--van-price-font);--van-submit-bar-text-color: var(--van-text-color);--van-submit-bar-text-font-size: var(--van-font-size-md);--van-submit-bar-tip-padding: var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size: var(--van-font-size-sm);--van-submit-bar-tip-line-height: 1.5;--van-submit-bar-tip-color: var(--van-orange-dark);--van-submit-bar-tip-background: var(--van-orange-light);--van-submit-bar-tip-icon-size: 12px;--van-submit-bar-button-height: 40px;--van-submit-bar-padding: 0 var(--van-padding-md)}.van-submit-bar{position:fixed;bottom:0;left:0;z-index:var(--van-submit-bar-z-index);width:100%;background:var(--van-submit-bar-background);-webkit-user-select:none;user-select:none}.van-submit-bar__tip{padding:var(--van-submit-bar-tip-padding);color:var(--van-submit-bar-tip-color);font-size:var(--van-submit-bar-tip-font-size);line-height:var(--van-submit-bar-tip-line-height);background:var(--van-submit-bar-tip-background)}.van-submit-bar__tip-icon{margin-right:var(--van-padding-base);font-size:var(--van-submit-bar-tip-icon-size);vertical-align:middle}.van-submit-bar__tip-text{vertical-align:middle}.van-submit-bar__bar{display:flex;align-items:center;justify-content:flex-end;height:var(--van-submit-bar-height);padding:var(--van-submit-bar-padding);font-size:var(--van-submit-bar-text-font-size)}.van-submit-bar__text{flex:1;padding-right:var(--van-padding-sm);color:var(--van-submit-bar-text-color);text-align:right}.van-submit-bar__text span{display:inline-block}.van-submit-bar__suffix-label{margin-left:var(--van-padding-base);font-weight:var(--van-font-bold)}.van-submit-bar__price{color:var(--van-submit-bar-price-color);font-weight:var(--van-font-bold);font-size:var(--van-submit-bar-price-font-size);margin-left:var(--van-padding-base)}.van-submit-bar__price-integer{font-size:var(--van-submit-bar-price-integer-font-size);font-family:var(--van-submit-bar-price-font)}.van-submit-bar__button{width:var(--van-submit-bar-button-width);height:var(--van-submit-bar-button-height);font-weight:var(--van-font-bold);border:none}.van-submit-bar__button--danger{background:var(--van-gradient-red)}

76
node_modules/vant/es/submit-bar/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,76 @@
export declare const SubmitBar: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
tip: StringConstructor;
label: StringConstructor;
price: NumberConstructor;
tipIcon: StringConstructor;
loading: BooleanConstructor;
currency: {
type: import("vue").PropType<string>;
default: string;
};
disabled: BooleanConstructor;
textAlign: import("vue").PropType<import("./SubmitBar").SubmitBarTextAlign>;
buttonText: StringConstructor;
buttonType: {
type: import("vue").PropType<import("..").ButtonType>;
default: import("..").ButtonType;
};
buttonColor: StringConstructor;
suffixLabel: StringConstructor;
placeholder: BooleanConstructor;
decimalLength: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
safeAreaInsetBottom: {
type: BooleanConstructor;
default: true;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "submit"[], "submit", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
tip: StringConstructor;
label: StringConstructor;
price: NumberConstructor;
tipIcon: StringConstructor;
loading: BooleanConstructor;
currency: {
type: import("vue").PropType<string>;
default: string;
};
disabled: BooleanConstructor;
textAlign: import("vue").PropType<import("./SubmitBar").SubmitBarTextAlign>;
buttonText: StringConstructor;
buttonType: {
type: import("vue").PropType<import("..").ButtonType>;
default: import("..").ButtonType;
};
buttonColor: StringConstructor;
suffixLabel: StringConstructor;
placeholder: BooleanConstructor;
decimalLength: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
safeAreaInsetBottom: {
type: BooleanConstructor;
default: true;
};
}>> & Readonly<{
onSubmit?: ((...args: any[]) => any) | undefined;
}>, {
disabled: boolean;
placeholder: boolean;
safeAreaInsetBottom: boolean;
loading: boolean;
currency: string;
decimalLength: string | number;
buttonType: import("..").ButtonType;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default SubmitBar;
export { submitBarProps } from './SubmitBar';
export type { SubmitBarProps, SubmitBarTextAlign } from './SubmitBar';
export type { SubmitBarThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanSubmitBar: typeof SubmitBar;
}
}

10
node_modules/vant/es/submit-bar/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import { withInstall } from "../utils/index.mjs";
import _SubmitBar from "./SubmitBar.mjs";
const SubmitBar = withInstall(_SubmitBar);
var stdin_default = SubmitBar;
import { submitBarProps } from "./SubmitBar.mjs";
export {
SubmitBar,
stdin_default as default,
submitBarProps
};

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

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

6
node_modules/vant/es/submit-bar/style/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,6 @@
import "../../style/base.css";
import "../../badge/index.css";
import "../../icon/index.css";
import "../../loading/index.css";
import "../../button/index.css";
import "../index.css";

20
node_modules/vant/es/submit-bar/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,20 @@
export type SubmitBarThemeVars = {
submitBarHeight?: string;
submitBarZIndex?: number | string;
submitBarBackground?: string;
submitBarButtonWidth?: string;
submitBarPriceColor?: string;
submitBarPriceFontSize?: string;
submitBarPriceIntegerFontSize?: string;
submitBarPriceFont?: string;
submitBarTextColor?: string;
submitBarTextFontSize?: string;
submitBarTipPadding?: string;
submitBarTipFontSize?: string;
submitBarTipLineHeight?: number | string;
submitBarTipColor?: string;
submitBarTipBackground?: string;
submitBarTipIconSize?: string;
submitBarButtonHeight?: string;
submitBarPadding?: string;
};

0
node_modules/vant/es/submit-bar/types.mjs generated vendored Normal file
View File