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,63 @@
import { type ExtractPropTypes } from 'vue';
export declare const passwordInputProps: {
info: StringConstructor;
mask: {
type: BooleanConstructor;
default: true;
};
value: {
type: import("vue").PropType<string>;
default: string;
};
gutter: (NumberConstructor | StringConstructor)[];
length: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
focused: BooleanConstructor;
errorInfo: StringConstructor;
};
export type PasswordInputProps = ExtractPropTypes<typeof passwordInputProps>;
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
info: StringConstructor;
mask: {
type: BooleanConstructor;
default: true;
};
value: {
type: import("vue").PropType<string>;
default: string;
};
gutter: (NumberConstructor | StringConstructor)[];
length: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
focused: BooleanConstructor;
errorInfo: StringConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").PublicProps, Readonly<ExtractPropTypes<{
info: StringConstructor;
mask: {
type: BooleanConstructor;
default: true;
};
value: {
type: import("vue").PropType<string>;
default: string;
};
gutter: (NumberConstructor | StringConstructor)[];
length: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
focused: BooleanConstructor;
errorInfo: StringConstructor;
}>> & Readonly<{
onFocus?: ((...args: any[]) => any) | undefined;
}>, {
length: string | number;
mask: boolean;
value: string;
focused: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

97
node_modules/vant/lib/password-input/PasswordInput.js generated vendored Normal file
View File

@@ -0,0 +1,97 @@
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,
passwordInputProps: () => passwordInputProps
});
module.exports = __toCommonJS(stdin_exports);
var import_vue = require("vue");
var import_utils = require("../utils");
const [name, bem] = (0, import_utils.createNamespace)("password-input");
const passwordInputProps = {
info: String,
mask: import_utils.truthProp,
value: (0, import_utils.makeStringProp)(""),
gutter: import_utils.numericProp,
length: (0, import_utils.makeNumericProp)(6),
focused: Boolean,
errorInfo: String
};
var stdin_default = (0, import_vue.defineComponent)({
name,
props: passwordInputProps,
emits: ["focus"],
setup(props, {
emit
}) {
const onTouchStart = (event) => {
event.stopPropagation();
emit("focus", event);
};
const renderPoints = () => {
const Points = [];
const {
mask,
value,
gutter,
focused
} = props;
const length = +props.length;
for (let i = 0; i < length; i++) {
const char = value[i];
const showBorder = i !== 0 && !gutter;
const showCursor = focused && i === value.length;
let style;
if (i !== 0 && gutter) {
style = {
marginLeft: (0, import_utils.addUnit)(gutter)
};
}
Points.push((0, import_vue.createVNode)("li", {
"class": [{
[import_utils.BORDER_LEFT]: showBorder
}, bem("item", {
focus: showCursor
})],
"style": style
}, [mask ? (0, import_vue.createVNode)("i", {
"style": {
visibility: char ? "visible" : "hidden"
}
}, null) : char, showCursor && (0, import_vue.createVNode)("div", {
"class": bem("cursor")
}, null)]));
}
return Points;
};
return () => {
const info = props.errorInfo || props.info;
return (0, import_vue.createVNode)("div", {
"class": bem()
}, [(0, import_vue.createVNode)("ul", {
"class": [bem("security"), {
[import_utils.BORDER_SURROUND]: !props.gutter
}],
"onTouchstartPassive": onTouchStart
}, [renderPoints()]), info && (0, import_vue.createVNode)("div", {
"class": bem(props.errorInfo ? "error-info" : "info")
}, [info])]);
};
}
});

1
node_modules/vant/lib/password-input/index.css generated vendored Normal file
View File

@@ -0,0 +1 @@
:root,:host{--van-password-input-height: 50px;--van-password-input-margin: 0 var(--van-padding-md);--van-password-input-font-size: 20px;--van-password-input-radius: 6px;--van-password-input-background: var(--van-background-2);--van-password-input-info-color: var(--van-text-color-2);--van-password-input-info-font-size: var(--van-font-size-md);--van-password-input-error-info-color: var(--van-danger-color);--van-password-input-dot-size: 10px;--van-password-input-dot-color: var(--van-text-color);--van-password-input-text-color: var(--van-text-color);--van-password-input-cursor-color: var(--van-text-color);--van-password-input-cursor-width: 1px;--van-password-input-cursor-height: 40%;--van-password-input-cursor-duration: 1s}.van-password-input{position:relative;margin:var(--van-password-input-margin);-webkit-user-select:none;user-select:none}.van-password-input__info,.van-password-input__error-info{margin-top:var(--van-padding-md);font-size:var(--van-password-input-info-font-size);text-align:center}.van-password-input__info{color:var(--van-password-input-info-color)}.van-password-input__error-info{color:var(--van-password-input-error-info-color)}.van-password-input__security{display:flex;width:100%;height:var(--van-password-input-height);cursor:pointer}.van-password-input__security:after{border-radius:var(--van-password-input-radius)}.van-password-input__security li{position:relative;display:flex;flex:1;align-items:center;justify-content:center;height:100%;color:var(--van-password-input-text-color);font-size:var(--van-password-input-font-size);line-height:1.2;background:var(--van-password-input-background)}.van-password-input__security i{position:absolute;top:50%;left:50%;width:var(--van-password-input-dot-size);height:var(--van-password-input-dot-size);background:var(--van-password-input-dot-color);border-radius:100%;transform:translate(-50%,-50%);visibility:hidden}.van-password-input__cursor{position:absolute;top:50%;left:50%;width:var(--van-password-input-cursor-width);height:var(--van-password-input-cursor-height);background:var(--van-password-input-cursor-color);transform:translate(-50%,-50%);animation:var(--van-password-input-cursor-duration) van-cursor-flicker infinite}@keyframes van-cursor-flicker{0%{opacity:0}50%{opacity:1}to{opacity:0}}

51
node_modules/vant/lib/password-input/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,51 @@
export declare const PasswordInput: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
info: StringConstructor;
mask: {
type: BooleanConstructor;
default: true;
};
value: {
type: import("vue").PropType<string>;
default: string;
};
gutter: (NumberConstructor | StringConstructor)[];
length: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
focused: BooleanConstructor;
errorInfo: StringConstructor;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
info: StringConstructor;
mask: {
type: BooleanConstructor;
default: true;
};
value: {
type: import("vue").PropType<string>;
default: string;
};
gutter: (NumberConstructor | StringConstructor)[];
length: {
type: (NumberConstructor | StringConstructor)[];
default: number;
};
focused: BooleanConstructor;
errorInfo: StringConstructor;
}>> & Readonly<{
onFocus?: ((...args: any[]) => any) | undefined;
}>, {
length: string | number;
mask: boolean;
value: string;
focused: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
export default PasswordInput;
export { passwordInputProps } from './PasswordInput';
export type { PasswordInputProps } from './PasswordInput';
export type { PasswordInputThemeVars } from './types';
declare module 'vue' {
interface GlobalComponents {
VanPasswordInput: typeof PasswordInput;
}
}

39
node_modules/vant/lib/password-input/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, {
PasswordInput: () => PasswordInput,
default: () => stdin_default,
passwordInputProps: () => import_PasswordInput2.passwordInputProps
});
module.exports = __toCommonJS(stdin_exports);
var import_utils = require("../utils");
var import_PasswordInput = __toESM(require("./PasswordInput"));
var import_PasswordInput2 = require("./PasswordInput");
const PasswordInput = (0, import_utils.withInstall)(import_PasswordInput.default);
var stdin_default = PasswordInput;

View File

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

2
node_modules/vant/lib/password-input/style/index.js generated vendored Normal file
View File

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

17
node_modules/vant/lib/password-input/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,17 @@
export type PasswordInputThemeVars = {
passwordInputHeight?: string;
passwordInputMargin?: string;
passwordInputFontSize?: string;
passwordInputRadius?: string;
passwordInputBackground?: string;
passwordInputInfoColor?: string;
passwordInputInfoFontSize?: string;
passwordInputErrorInfoColor?: string;
passwordInputDotSize?: string;
passwordInputDotColor?: string;
passwordInputTextColor?: string;
passwordInputCursorColor?: string;
passwordInputCursorWidth?: string;
passwordInputCursorHeight?: string;
passwordInputCursorDuration?: string;
};

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