first commit
This commit is contained in:
234
node_modules/vant/lib/search/Search.d.ts
generated
vendored
Normal file
234
node_modules/vant/lib/search/Search.d.ts
generated
vendored
Normal file
@@ -0,0 +1,234 @@
|
||||
import { type ExtractPropTypes } from 'vue';
|
||||
import type { SearchShape } from './types';
|
||||
export declare const searchProps: {
|
||||
id: StringConstructor;
|
||||
name: StringConstructor;
|
||||
leftIcon: StringConstructor;
|
||||
rightIcon: StringConstructor;
|
||||
autofocus: BooleanConstructor;
|
||||
clearable: BooleanConstructor;
|
||||
maxlength: (NumberConstructor | StringConstructor)[];
|
||||
max: NumberConstructor;
|
||||
min: NumberConstructor;
|
||||
formatter: import("vue").PropType<(value: string) => string>;
|
||||
clearIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
modelValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
inputAlign: import("vue").PropType<import("../field").FieldTextAlign>;
|
||||
placeholder: StringConstructor;
|
||||
autocomplete: StringConstructor;
|
||||
autocapitalize: StringConstructor;
|
||||
autocorrect: StringConstructor;
|
||||
errorMessage: StringConstructor;
|
||||
enterkeyhint: StringConstructor;
|
||||
clearTrigger: {
|
||||
type: import("vue").PropType<import("../field").FieldClearTrigger>;
|
||||
default: import("../field").FieldClearTrigger;
|
||||
};
|
||||
formatTrigger: {
|
||||
type: import("vue").PropType<import("../field").FieldFormatTrigger>;
|
||||
default: import("../field").FieldFormatTrigger;
|
||||
};
|
||||
spellcheck: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
error: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
disabled: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
readonly: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
inputmode: import("vue").PropType<import("vue").HTMLAttributes["inputmode"]>;
|
||||
} & {
|
||||
label: StringConstructor;
|
||||
shape: {
|
||||
type: import("vue").PropType<SearchShape>;
|
||||
default: SearchShape;
|
||||
};
|
||||
leftIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
clearable: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
actionText: StringConstructor;
|
||||
background: StringConstructor;
|
||||
showAction: BooleanConstructor;
|
||||
};
|
||||
export type SearchProps = ExtractPropTypes<typeof searchProps>;
|
||||
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
||||
id: StringConstructor;
|
||||
name: StringConstructor;
|
||||
leftIcon: StringConstructor;
|
||||
rightIcon: StringConstructor;
|
||||
autofocus: BooleanConstructor;
|
||||
clearable: BooleanConstructor;
|
||||
maxlength: (NumberConstructor | StringConstructor)[];
|
||||
max: NumberConstructor;
|
||||
min: NumberConstructor;
|
||||
formatter: import("vue").PropType<(value: string) => string>;
|
||||
clearIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
modelValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
inputAlign: import("vue").PropType<import("../field").FieldTextAlign>;
|
||||
placeholder: StringConstructor;
|
||||
autocomplete: StringConstructor;
|
||||
autocapitalize: StringConstructor;
|
||||
autocorrect: StringConstructor;
|
||||
errorMessage: StringConstructor;
|
||||
enterkeyhint: StringConstructor;
|
||||
clearTrigger: {
|
||||
type: import("vue").PropType<import("../field").FieldClearTrigger>;
|
||||
default: import("../field").FieldClearTrigger;
|
||||
};
|
||||
formatTrigger: {
|
||||
type: import("vue").PropType<import("../field").FieldFormatTrigger>;
|
||||
default: import("../field").FieldFormatTrigger;
|
||||
};
|
||||
spellcheck: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
error: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
disabled: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
readonly: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
inputmode: import("vue").PropType<import("vue").HTMLAttributes["inputmode"]>;
|
||||
} & {
|
||||
label: StringConstructor;
|
||||
shape: {
|
||||
type: import("vue").PropType<SearchShape>;
|
||||
default: SearchShape;
|
||||
};
|
||||
leftIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
clearable: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
actionText: StringConstructor;
|
||||
background: StringConstructor;
|
||||
showAction: BooleanConstructor;
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "clear" | "focus" | "blur" | "clickInput" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue" | "cancel")[], "search" | "clear" | "focus" | "blur" | "clickInput" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue" | "cancel", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
||||
id: StringConstructor;
|
||||
name: StringConstructor;
|
||||
leftIcon: StringConstructor;
|
||||
rightIcon: StringConstructor;
|
||||
autofocus: BooleanConstructor;
|
||||
clearable: BooleanConstructor;
|
||||
maxlength: (NumberConstructor | StringConstructor)[];
|
||||
max: NumberConstructor;
|
||||
min: NumberConstructor;
|
||||
formatter: import("vue").PropType<(value: string) => string>;
|
||||
clearIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
modelValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
inputAlign: import("vue").PropType<import("../field").FieldTextAlign>;
|
||||
placeholder: StringConstructor;
|
||||
autocomplete: StringConstructor;
|
||||
autocapitalize: StringConstructor;
|
||||
autocorrect: StringConstructor;
|
||||
errorMessage: StringConstructor;
|
||||
enterkeyhint: StringConstructor;
|
||||
clearTrigger: {
|
||||
type: import("vue").PropType<import("../field").FieldClearTrigger>;
|
||||
default: import("../field").FieldClearTrigger;
|
||||
};
|
||||
formatTrigger: {
|
||||
type: import("vue").PropType<import("../field").FieldFormatTrigger>;
|
||||
default: import("../field").FieldFormatTrigger;
|
||||
};
|
||||
spellcheck: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
error: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
disabled: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
readonly: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
inputmode: import("vue").PropType<import("vue").HTMLAttributes["inputmode"]>;
|
||||
} & {
|
||||
label: StringConstructor;
|
||||
shape: {
|
||||
type: import("vue").PropType<SearchShape>;
|
||||
default: SearchShape;
|
||||
};
|
||||
leftIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
clearable: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
actionText: StringConstructor;
|
||||
background: StringConstructor;
|
||||
showAction: BooleanConstructor;
|
||||
}>> & Readonly<{
|
||||
onFocus?: ((...args: any[]) => any) | undefined;
|
||||
onBlur?: ((...args: any[]) => any) | undefined;
|
||||
onClear?: ((...args: any[]) => any) | undefined;
|
||||
onClickInput?: ((...args: any[]) => any) | undefined;
|
||||
onClickLeftIcon?: ((...args: any[]) => any) | undefined;
|
||||
onClickRightIcon?: ((...args: any[]) => any) | undefined;
|
||||
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
||||
onCancel?: ((...args: any[]) => any) | undefined;
|
||||
onSearch?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
autofocus: boolean;
|
||||
disabled: boolean;
|
||||
shape: SearchShape;
|
||||
leftIcon: string;
|
||||
clearable: boolean;
|
||||
clearIcon: string;
|
||||
modelValue: string | number;
|
||||
clearTrigger: import("../field").FieldClearTrigger;
|
||||
formatTrigger: import("../field").FieldFormatTrigger;
|
||||
spellcheck: boolean;
|
||||
error: boolean;
|
||||
readonly: boolean;
|
||||
showAction: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
140
node_modules/vant/lib/search/Search.js
generated
vendored
Normal file
140
node_modules/vant/lib/search/Search.js
generated
vendored
Normal file
@@ -0,0 +1,140 @@
|
||||
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,
|
||||
searchProps: () => searchProps
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_vue = require("vue");
|
||||
var import_utils = require("../utils");
|
||||
var import_Field = require("../field/Field");
|
||||
var import_use_id = require("../composables/use-id");
|
||||
var import_use_expose = require("../composables/use-expose");
|
||||
var import_field = require("../field");
|
||||
const [name, bem, t] = (0, import_utils.createNamespace)("search");
|
||||
const searchProps = (0, import_utils.extend)({}, import_Field.fieldSharedProps, {
|
||||
label: String,
|
||||
shape: (0, import_utils.makeStringProp)("square"),
|
||||
leftIcon: (0, import_utils.makeStringProp)("search"),
|
||||
clearable: import_utils.truthProp,
|
||||
actionText: String,
|
||||
background: String,
|
||||
showAction: Boolean
|
||||
});
|
||||
var stdin_default = (0, import_vue.defineComponent)({
|
||||
name,
|
||||
props: searchProps,
|
||||
emits: ["blur", "focus", "clear", "search", "cancel", "clickInput", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
||||
setup(props, {
|
||||
emit,
|
||||
slots,
|
||||
attrs
|
||||
}) {
|
||||
const id = (0, import_use_id.useId)();
|
||||
const fieldRef = (0, import_vue.ref)();
|
||||
const onCancel = () => {
|
||||
if (!slots.action) {
|
||||
emit("update:modelValue", "");
|
||||
emit("cancel");
|
||||
}
|
||||
};
|
||||
const onKeypress = (event) => {
|
||||
const ENTER_CODE = 13;
|
||||
if (event.keyCode === ENTER_CODE) {
|
||||
(0, import_utils.preventDefault)(event);
|
||||
emit("search", props.modelValue);
|
||||
}
|
||||
};
|
||||
const getInputId = () => props.id || `${id}-input`;
|
||||
const renderLabel = () => {
|
||||
if (slots.label || props.label) {
|
||||
return (0, import_vue.createVNode)("label", {
|
||||
"class": bem("label"),
|
||||
"for": getInputId(),
|
||||
"data-allow-mismatch": "attribute"
|
||||
}, [slots.label ? slots.label() : props.label]);
|
||||
}
|
||||
};
|
||||
const renderAction = () => {
|
||||
if (props.showAction) {
|
||||
const text = props.actionText || t("cancel");
|
||||
return (0, import_vue.createVNode)("div", {
|
||||
"class": bem("action"),
|
||||
"role": "button",
|
||||
"tabindex": 0,
|
||||
"onClick": onCancel
|
||||
}, [slots.action ? slots.action() : text]);
|
||||
}
|
||||
};
|
||||
const blur = () => {
|
||||
var _a;
|
||||
return (_a = fieldRef.value) == null ? void 0 : _a.blur();
|
||||
};
|
||||
const focus = () => {
|
||||
var _a;
|
||||
return (_a = fieldRef.value) == null ? void 0 : _a.focus();
|
||||
};
|
||||
const onBlur = (event) => emit("blur", event);
|
||||
const onFocus = (event) => emit("focus", event);
|
||||
const onClear = (event) => emit("clear", event);
|
||||
const onClickInput = (event) => emit("clickInput", event);
|
||||
const onClickLeftIcon = (event) => emit("clickLeftIcon", event);
|
||||
const onClickRightIcon = (event) => emit("clickRightIcon", event);
|
||||
const fieldPropNames = Object.keys(import_Field.fieldSharedProps);
|
||||
const renderField = () => {
|
||||
const fieldAttrs = (0, import_utils.extend)({}, attrs, (0, import_utils.pick)(props, fieldPropNames), {
|
||||
id: getInputId()
|
||||
});
|
||||
const onInput = (value) => emit("update:modelValue", value);
|
||||
return (0, import_vue.createVNode)(import_field.Field, (0, import_vue.mergeProps)({
|
||||
"ref": fieldRef,
|
||||
"type": "search",
|
||||
"class": bem("field", {
|
||||
"with-message": fieldAttrs.errorMessage
|
||||
}),
|
||||
"border": false,
|
||||
"onBlur": onBlur,
|
||||
"onFocus": onFocus,
|
||||
"onClear": onClear,
|
||||
"onKeypress": onKeypress,
|
||||
"onClickInput": onClickInput,
|
||||
"onClickLeftIcon": onClickLeftIcon,
|
||||
"onClickRightIcon": onClickRightIcon,
|
||||
"onUpdate:modelValue": onInput
|
||||
}, fieldAttrs), (0, import_utils.pick)(slots, ["left-icon", "right-icon"]));
|
||||
};
|
||||
(0, import_use_expose.useExpose)({
|
||||
focus,
|
||||
blur
|
||||
});
|
||||
return () => {
|
||||
var _a;
|
||||
return (0, import_vue.createVNode)("div", {
|
||||
"class": bem({
|
||||
"show-action": props.showAction
|
||||
}),
|
||||
"style": {
|
||||
background: props.background
|
||||
}
|
||||
}, [(_a = slots.left) == null ? void 0 : _a.call(slots), (0, import_vue.createVNode)("div", {
|
||||
"class": bem("content", props.shape)
|
||||
}, [renderLabel(), renderField()]), renderAction()]);
|
||||
};
|
||||
}
|
||||
});
|
||||
1
node_modules/vant/lib/search/index.css
generated
vendored
Normal file
1
node_modules/vant/lib/search/index.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
:root,:host{--van-search-padding: 10px var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-background);--van-search-input-height: 34px;--van-search-label-padding: 0 5px;--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background);border-radius:var(--van-radius-sm)}.van-search__content--round{border-radius:var(--van-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;align-items:center;padding:0 var(--van-padding-xs) 0 0;height:var(--van-search-input-height);background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search__field--with-message{height:auto;align-items:flex-start;padding-top:5px;padding-bottom:5px}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}
|
||||
171
node_modules/vant/lib/search/index.d.ts
generated
vendored
Normal file
171
node_modules/vant/lib/search/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,171 @@
|
||||
import { SearchProps } from './Search';
|
||||
export declare const Search: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
id: StringConstructor;
|
||||
name: StringConstructor;
|
||||
leftIcon: StringConstructor;
|
||||
rightIcon: StringConstructor;
|
||||
autofocus: BooleanConstructor;
|
||||
clearable: BooleanConstructor;
|
||||
maxlength: (NumberConstructor | StringConstructor)[];
|
||||
max: NumberConstructor;
|
||||
min: NumberConstructor;
|
||||
formatter: import("vue").PropType<(value: string) => string>;
|
||||
clearIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
modelValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
||||
placeholder: StringConstructor;
|
||||
autocomplete: StringConstructor;
|
||||
autocapitalize: StringConstructor;
|
||||
autocorrect: StringConstructor;
|
||||
errorMessage: StringConstructor;
|
||||
enterkeyhint: StringConstructor;
|
||||
clearTrigger: {
|
||||
type: import("vue").PropType<import("..").FieldClearTrigger>;
|
||||
default: import("..").FieldClearTrigger;
|
||||
};
|
||||
formatTrigger: {
|
||||
type: import("vue").PropType<import("..").FieldFormatTrigger>;
|
||||
default: import("..").FieldFormatTrigger;
|
||||
};
|
||||
spellcheck: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
error: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
disabled: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
readonly: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
inputmode: import("vue").PropType<import("vue").HTMLAttributes["inputmode"]>;
|
||||
} & {
|
||||
label: StringConstructor;
|
||||
shape: {
|
||||
type: import("vue").PropType<import("./types").SearchShape>;
|
||||
default: import("./types").SearchShape;
|
||||
};
|
||||
leftIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
clearable: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
actionText: StringConstructor;
|
||||
background: StringConstructor;
|
||||
showAction: BooleanConstructor;
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "clear" | "focus" | "blur" | "clickInput" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue" | "cancel")[], "search" | "clear" | "focus" | "blur" | "clickInput" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue" | "cancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
id: StringConstructor;
|
||||
name: StringConstructor;
|
||||
leftIcon: StringConstructor;
|
||||
rightIcon: StringConstructor;
|
||||
autofocus: BooleanConstructor;
|
||||
clearable: BooleanConstructor;
|
||||
maxlength: (NumberConstructor | StringConstructor)[];
|
||||
max: NumberConstructor;
|
||||
min: NumberConstructor;
|
||||
formatter: import("vue").PropType<(value: string) => string>;
|
||||
clearIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
modelValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
||||
placeholder: StringConstructor;
|
||||
autocomplete: StringConstructor;
|
||||
autocapitalize: StringConstructor;
|
||||
autocorrect: StringConstructor;
|
||||
errorMessage: StringConstructor;
|
||||
enterkeyhint: StringConstructor;
|
||||
clearTrigger: {
|
||||
type: import("vue").PropType<import("..").FieldClearTrigger>;
|
||||
default: import("..").FieldClearTrigger;
|
||||
};
|
||||
formatTrigger: {
|
||||
type: import("vue").PropType<import("..").FieldFormatTrigger>;
|
||||
default: import("..").FieldFormatTrigger;
|
||||
};
|
||||
spellcheck: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
error: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
disabled: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
readonly: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
inputmode: import("vue").PropType<import("vue").HTMLAttributes["inputmode"]>;
|
||||
} & {
|
||||
label: StringConstructor;
|
||||
shape: {
|
||||
type: import("vue").PropType<import("./types").SearchShape>;
|
||||
default: import("./types").SearchShape;
|
||||
};
|
||||
leftIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
clearable: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
actionText: StringConstructor;
|
||||
background: StringConstructor;
|
||||
showAction: BooleanConstructor;
|
||||
}>> & Readonly<{
|
||||
onFocus?: ((...args: any[]) => any) | undefined;
|
||||
onBlur?: ((...args: any[]) => any) | undefined;
|
||||
onClear?: ((...args: any[]) => any) | undefined;
|
||||
onClickInput?: ((...args: any[]) => any) | undefined;
|
||||
onClickLeftIcon?: ((...args: any[]) => any) | undefined;
|
||||
onClickRightIcon?: ((...args: any[]) => any) | undefined;
|
||||
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
||||
onCancel?: ((...args: any[]) => any) | undefined;
|
||||
onSearch?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
autofocus: boolean;
|
||||
disabled: boolean;
|
||||
shape: import("./types").SearchShape;
|
||||
leftIcon: string;
|
||||
clearable: boolean;
|
||||
clearIcon: string;
|
||||
modelValue: string | number;
|
||||
clearTrigger: import("..").FieldClearTrigger;
|
||||
formatTrigger: import("..").FieldFormatTrigger;
|
||||
spellcheck: boolean;
|
||||
error: boolean;
|
||||
readonly: boolean;
|
||||
showAction: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
||||
export default Search;
|
||||
export { searchProps } from './Search';
|
||||
export type { SearchProps };
|
||||
export type { SearchShape, SearchInstance, SearchThemeVars } from './types';
|
||||
declare module 'vue' {
|
||||
interface GlobalComponents {
|
||||
VanSearch: typeof Search;
|
||||
}
|
||||
}
|
||||
39
node_modules/vant/lib/search/index.js
generated
vendored
Normal file
39
node_modules/vant/lib/search/index.js
generated
vendored
Normal 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, {
|
||||
Search: () => Search,
|
||||
default: () => stdin_default,
|
||||
searchProps: () => import_Search2.searchProps
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_utils = require("../utils");
|
||||
var import_Search = __toESM(require("./Search"));
|
||||
var import_Search2 = require("./Search");
|
||||
const Search = (0, import_utils.withInstall)(import_Search.default);
|
||||
var stdin_default = Search;
|
||||
1
node_modules/vant/lib/search/style/index.d.ts
generated
vendored
Normal file
1
node_modules/vant/lib/search/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
6
node_modules/vant/lib/search/style/index.js
generated
vendored
Normal file
6
node_modules/vant/lib/search/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
require("../../style/base.css");
|
||||
require("../../badge/index.css");
|
||||
require("../../icon/index.css");
|
||||
require("../../cell/index.css");
|
||||
require("../../field/index.css");
|
||||
require("../index.css");
|
||||
21
node_modules/vant/lib/search/types.d.ts
generated
vendored
Normal file
21
node_modules/vant/lib/search/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { ComponentPublicInstance } from 'vue';
|
||||
import type { SearchProps } from './Search';
|
||||
export type SearchShape = 'square' | 'round';
|
||||
export type SearchExpose = {
|
||||
focus: () => void;
|
||||
blur: () => void;
|
||||
};
|
||||
export type SearchInstance = ComponentPublicInstance<SearchProps, SearchExpose>;
|
||||
export type SearchThemeVars = {
|
||||
searchPadding?: string;
|
||||
searchBackground?: string;
|
||||
searchContentBackground?: string;
|
||||
searchInputHeight?: string;
|
||||
searchLabelPadding?: string;
|
||||
searchLabelColor?: string;
|
||||
searchLabelFontSize?: string;
|
||||
searchLeftIconColor?: string;
|
||||
searchActionPadding?: string;
|
||||
searchActionTextColor?: string;
|
||||
searchActionFontSize?: string;
|
||||
};
|
||||
15
node_modules/vant/lib/search/types.js
generated
vendored
Normal file
15
node_modules/vant/lib/search/types.js
generated
vendored
Normal 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);
|
||||
Reference in New Issue
Block a user