yc-design-vue 2.1.8 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/es/Alert/index.vue.js +2 -2
- package/es/Avatar/Avatar.vue.d.ts +1 -1
- package/es/Avatar/Avatar.vue.js +1 -1
- package/es/Avatar/index.d.ts +3 -3
- package/es/BackTop/index.vue.js +1 -1
- package/es/Badge/index.d.ts +3 -3
- package/es/Badge/index.vue.d.ts +1 -1
- package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +2 -2
- package/es/Button/Button.vue.d.ts +2 -2
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/index.d.ts +9 -9
- package/es/Calendar/Calendar.vue.js +2 -2
- package/es/Card/Card.vue.d.ts +1 -1
- package/es/Card/index.d.ts +3 -3
- package/es/Carousel/CarouselArrow.vue.js +1 -1
- package/es/Cascader/Cascader.vue.d.ts +12 -44
- package/es/Cascader/CascaderIcon.vue.js +2 -2
- package/es/Cascader/CascaderOption.vue.js +1 -1
- package/es/Cascader/index.d.ts +6 -22
- package/es/Checkbox/Checkbox.vue.js +2 -2
- package/es/Collapse/CollapseItem.vue.js +2 -2
- package/es/ColorPicker/ColorInput.vue.js +73 -69
- package/es/ColorPicker/index.css +1 -1
- package/es/Drawer/Drawer.vue.js +2 -2
- package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/es/Dropdown/DropdownButton.vue.js +1 -1
- package/es/Dropdown/Dsubmenu.vue.js +1 -1
- package/es/Dropdown/index.d.ts +3 -3
- package/es/Empty/index.vue.js +1 -1
- package/es/Image/Image.vue.js +1 -1
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreviewArrow.vue.js +1 -1
- package/es/Image/ImagePreviewToolbar.vue.js +1 -1
- package/es/Input/Input.vue.d.ts +2 -8
- package/es/Input/Input.vue.js +26 -48
- package/es/Input/InputGroup.vue.d.ts +17 -0
- package/es/Input/InputGroup.vue.js +18 -0
- package/es/Input/InputGroup.vue3.js +5 -0
- package/es/Input/InputPassword.vue.d.ts +309 -0
- package/es/Input/InputPassword.vue.js +122 -0
- package/es/Input/InputPassword.vue2.js +4 -0
- package/es/Input/InputSearch.vue.d.ts +310 -0
- package/es/Input/InputSearch.vue.js +133 -0
- package/es/Input/InputSearch.vue2.js +4 -0
- package/es/Input/hooks/useLimitedInput.d.ts +2 -0
- package/es/Input/hooks/useLimitedInput.js +2 -0
- package/es/Input/index.css +1 -1
- package/es/Input/index.d.ts +439 -22
- package/es/Input/index.js +13 -0
- package/es/Input/type.d.ts +24 -6
- package/es/InputNumber/InputNumber.vue.d.ts +12 -44
- package/es/InputNumber/InputOperaBtn.vue.js +1 -1
- package/es/InputNumber/index.d.ts +6 -22
- package/es/InputTag/index.vue.js +2 -2
- package/es/Layout/LayoutSider.vue.js +1 -1
- package/es/Link/index.d.ts +3 -3
- package/es/Link/index.vue.d.ts +1 -1
- package/es/Link/index.vue.js +1 -1
- package/es/Menu/Menu.vue.js +1 -1
- package/es/Menu/MenuEllipsis.vue.js +1 -1
- package/es/Menu/SubMenu.vue.js +1 -1
- package/es/Message/Message.vue.js +2 -2
- package/es/Modal/Modal.vue.js +2 -2
- package/es/Notification/Notification.vue.js +2 -2
- package/es/PageHeader/index.vue.js +2 -2
- package/es/Pagination/PaginationItem.vue.js +1 -1
- package/es/Progress/ProgressCircle.vue.js +1 -1
- package/es/Radio/Radio.vue.js +2 -2
- package/es/Rate/index.vue.js +1 -1
- package/es/ResizeBox/index.vue.js +1 -1
- package/es/Select/SelectIcon.vue.js +2 -2
- package/es/Spin/index.vue.js +1 -1
- package/es/Split/index.vue.js +1 -1
- package/es/Statistic/Statistic.vue.d.ts +1 -1
- package/es/Statistic/index.d.ts +3 -3
- package/es/Steps/Step.vue.d.ts +1 -1
- package/es/Steps/Step.vue.js +1 -1
- package/es/Steps/Steps.vue.d.ts +1 -1
- package/es/Steps/index.d.ts +6 -6
- package/es/Tabs/TabButton.vue.js +2 -2
- package/es/Tabs/Tabs.vue.js +1 -1
- package/es/Tag/index.vue.js +2 -2
- package/es/Textarea/index.vue.js +2 -2
- package/es/TimePicker/TimePicker.vue.js +2 -2
- package/es/TimePicker/TimePickerPanel.vue.js +2 -1
- package/es/Transfer/Transfer.vue.js +1 -1
- package/es/Transfer/TransferPanel.vue.js +3 -3
- package/es/Trigger/index.vue.js +1 -1
- package/es/Typography/TypographyBase.vue.d.ts +12 -44
- package/es/Typography/TypographyBase.vue.js +3 -3
- package/es/Upload/UploadButton.vue.js +1 -1
- package/es/Upload/UploadDrag.vue.js +1 -1
- package/es/Upload/UploadFileList.vue2.js +2 -2
- package/es/Upload/UploadPictureCard.vue2.js +2 -2
- package/es/_shared/components/IconButton/{index.vue2.js → index.vue.js} +1 -1
- package/es/_shared/components/IconButton/index.vue3.js +2 -2
- package/es/_shared/constants/index.js +1 -1
- package/es/_shared/icons/IconArrowDown.vue.js +1 -1
- package/es/_shared/icons/IconArrowRight.vue.js +1 -1
- package/es/_shared/icons/IconCheck.vue.js +1 -1
- package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/es/_shared/icons/IconClose.vue.js +1 -1
- package/es/_shared/icons/IconCopy.vue.js +28 -1
- package/es/_shared/icons/IconCopy.vue2.js +1 -28
- package/es/_shared/icons/IconDelete.vue2.js +1 -1
- package/es/_shared/icons/IconDragDot.vue.js +1 -1
- package/es/_shared/icons/IconEdit.vue.js +28 -1
- package/es/_shared/icons/IconEdit.vue2.js +1 -28
- package/es/_shared/icons/IconEmpty.vue.js +1 -1
- package/es/_shared/icons/IconError.vue.js +1 -1
- package/es/_shared/icons/IconExclamation.vue2.js +1 -1
- package/es/_shared/icons/IconEyeClose.vue.js +32 -1
- package/es/_shared/icons/IconEyeClose.vue2.js +1 -32
- package/es/_shared/icons/IconEyeOpen.vue.js +29 -1
- package/es/_shared/icons/IconEyeOpen.vue2.js +1 -29
- package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/es/_shared/icons/IconFile.vue2.js +1 -1
- package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/es/_shared/icons/IconImageClose.vue.js +1 -1
- package/es/_shared/icons/IconInfo.vue.js +1 -1
- package/es/_shared/icons/IconInfoLine.vue.js +1 -1
- package/es/_shared/icons/IconLink.vue.js +1 -1
- package/es/_shared/icons/IconLoading.vue.js +1 -1
- package/es/_shared/icons/IconMenuFold.vue.js +1 -1
- package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/es/_shared/icons/IconMinus.vue2.js +1 -1
- package/es/_shared/icons/IconMore.vue.js +1 -1
- package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/es/_shared/icons/IconPlus.vue.js +1 -1
- package/es/_shared/icons/IconRight.vue.js +1 -1
- package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/es/_shared/icons/IconSearch.vue.js +28 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -28
- package/es/_shared/icons/IconSeparator.vue.js +28 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -28
- package/es/_shared/icons/IconStar.vue.js +1 -1
- package/es/_shared/icons/IconSuccess.vue.js +1 -1
- package/es/_shared/icons/IconTime.vue.js +1 -1
- package/es/_shared/icons/IconToTop.vue.js +1 -1
- package/es/_shared/icons/IconUpload.vue2.js +1 -1
- package/es/_shared/icons/IconWarning.vue.js +1 -1
- package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/es/index.d.ts +9 -9
- package/es/index.js +7 -0
- package/es/style.css +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/Avatar/Avatar.vue.d.ts +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/index.d.ts +3 -3
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/Badge/index.d.ts +3 -3
- package/lib/Badge/index.vue.d.ts +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Button/Button.vue.d.ts +2 -2
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/index.d.ts +9 -9
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Card/Card.vue.d.ts +1 -1
- package/lib/Card/index.d.ts +3 -3
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Cascader/Cascader.vue.d.ts +12 -44
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- package/lib/Cascader/CascaderOption.vue.js +1 -1
- package/lib/Cascader/index.d.ts +6 -22
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/ColorPicker/ColorInput.vue.js +1 -1
- package/lib/ColorPicker/index.css +1 -1
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/lib/Dropdown/DropdownButton.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/index.d.ts +3 -3
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Image/Image.vue.js +1 -1
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/ImagePreviewArrow.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
- package/lib/Input/Input.vue.d.ts +2 -8
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/InputGroup.vue.d.ts +17 -0
- package/lib/Input/InputGroup.vue.js +1 -0
- package/lib/Input/{InputSuffix.vue3.js → InputGroup.vue3.js} +1 -1
- package/lib/Input/InputPassword.vue.d.ts +309 -0
- package/lib/Input/InputPassword.vue.js +1 -0
- package/lib/Input/InputPassword.vue2.js +1 -0
- package/lib/Input/InputSearch.vue.d.ts +310 -0
- package/lib/Input/InputSearch.vue.js +1 -0
- package/lib/Input/InputSearch.vue2.js +1 -0
- package/lib/Input/hooks/useLimitedInput.d.ts +2 -0
- package/lib/Input/hooks/useLimitedInput.js +1 -1
- package/lib/Input/index.css +1 -1
- package/lib/Input/index.d.ts +439 -22
- package/lib/Input/index.js +1 -1
- package/lib/Input/type.d.ts +24 -6
- package/lib/InputNumber/InputNumber.vue.d.ts +12 -44
- package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputNumber/index.d.ts +6 -22
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Link/index.d.ts +3 -3
- package/lib/Link/index.vue.d.ts +1 -1
- package/lib/Link/index.vue.js +1 -1
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.js +1 -1
- package/lib/Message/Message.vue.js +1 -1
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Rate/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Split/index.vue.js +1 -1
- package/lib/Statistic/Statistic.vue.d.ts +1 -1
- package/lib/Statistic/index.d.ts +3 -3
- package/lib/Steps/Step.vue.d.ts +1 -1
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Steps/Steps.vue.d.ts +1 -1
- package/lib/Steps/index.d.ts +6 -6
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.d.ts +12 -44
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Upload/UploadButton.vue.js +1 -1
- package/lib/Upload/UploadDrag.vue.js +1 -1
- package/lib/Upload/UploadFileList.vue2.js +1 -1
- package/lib/Upload/UploadPictureCard.vue2.js +1 -1
- package/lib/_shared/components/IconButton/index.vue.js +1 -0
- package/lib/_shared/components/IconButton/index.vue3.js +1 -1
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
- package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
- package/lib/_shared/icons/IconCheck.vue.js +1 -1
- package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/lib/_shared/icons/IconClose.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconDragDot.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconEmpty.vue.js +1 -1
- package/lib/_shared/icons/IconError.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/lib/_shared/icons/IconFile.vue2.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconImageClose.vue.js +1 -1
- package/lib/_shared/icons/IconInfo.vue.js +1 -1
- package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
- package/lib/_shared/icons/IconLink.vue.js +1 -1
- package/lib/_shared/icons/IconLoading.vue.js +1 -1
- package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
- package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/lib/_shared/icons/IconMinus.vue2.js +1 -1
- package/lib/_shared/icons/IconMore.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconPlus.vue.js +1 -1
- package/lib/_shared/icons/IconRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/icons/IconStar.vue.js +1 -1
- package/lib/_shared/icons/IconSuccess.vue.js +1 -1
- package/lib/_shared/icons/IconTime.vue.js +1 -1
- package/lib/_shared/icons/IconToTop.vue.js +1 -1
- package/lib/_shared/icons/IconUpload.vue2.js +1 -1
- package/lib/_shared/icons/IconWarning.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/index.d.ts +9 -9
- package/lib/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/Input/InputSuffix.vue.d.ts +0 -31
- package/es/Input/InputSuffix.vue.js +0 -58
- package/es/Input/InputSuffix.vue3.js +0 -5
- package/lib/Input/InputSuffix.vue.d.ts +0 -31
- package/lib/Input/InputSuffix.vue.js +0 -1
- package/lib/_shared/components/IconButton/index.vue2.js +0 -1
@@ -0,0 +1,309 @@
|
|
1
|
+
import { InputPasswordProps } from './type';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: {
|
5
|
+
prepend?(_: {}): any;
|
6
|
+
append?(_: {}): any;
|
7
|
+
prefix?(_: {}): any;
|
8
|
+
suffix?(_: {}): any;
|
9
|
+
};
|
10
|
+
refs: {
|
11
|
+
inputRef: ({
|
12
|
+
$: import('vue').ComponentInternalInstance;
|
13
|
+
$data: {};
|
14
|
+
$props: {
|
15
|
+
readonly modelValue?: string | undefined;
|
16
|
+
readonly defaultValue?: string | undefined;
|
17
|
+
readonly size?: import('..').Size | undefined;
|
18
|
+
readonly allowClear?: boolean | undefined;
|
19
|
+
readonly disabled?: boolean | undefined;
|
20
|
+
readonly readonly?: boolean | undefined;
|
21
|
+
readonly error?: boolean | undefined;
|
22
|
+
readonly placeholder?: string | undefined;
|
23
|
+
readonly maxLength?: import('./type').MaxLength | undefined;
|
24
|
+
readonly wordLength?: import('./type').WordLength | undefined;
|
25
|
+
readonly wordSlice?: import('./type').WordSlice | undefined;
|
26
|
+
readonly showWordLimit?: boolean | undefined;
|
27
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
28
|
+
readonly showInput?: boolean | undefined;
|
29
|
+
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
30
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
31
|
+
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
32
|
+
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
33
|
+
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
34
|
+
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
35
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
36
|
+
readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
38
|
+
$attrs: {
|
39
|
+
[x: string]: unknown;
|
40
|
+
};
|
41
|
+
$refs: {
|
42
|
+
[x: string]: unknown;
|
43
|
+
} & {
|
44
|
+
inputRef: HTMLInputElement;
|
45
|
+
};
|
46
|
+
$slots: Readonly<{
|
47
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
48
|
+
}>;
|
49
|
+
$root: import('vue').ComponentPublicInstance | null;
|
50
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
51
|
+
$host: Element | null;
|
52
|
+
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
|
53
|
+
$el: HTMLDivElement;
|
54
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
|
55
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
56
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
57
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
58
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
59
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
60
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
61
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
62
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
63
|
+
}>, {
|
64
|
+
focus(): void;
|
65
|
+
blur(): void;
|
66
|
+
getInputRef(): HTMLInputElement;
|
67
|
+
setCursor?: () => void;
|
68
|
+
recordCursor?: () => void;
|
69
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
70
|
+
change: (value: string, ev: Event) => any;
|
71
|
+
focus: (ev: FocusEvent) => any;
|
72
|
+
clear: (ev: MouseEvent) => any;
|
73
|
+
blur: (ev: FocusEvent) => any;
|
74
|
+
input: (value: string, ev: Event) => any;
|
75
|
+
keydown: (ev: KeyboardEvent) => any;
|
76
|
+
"update:modelValue": (value: string) => any;
|
77
|
+
pressEnter: (ev: KeyboardEvent) => any;
|
78
|
+
}, string, {
|
79
|
+
error: boolean;
|
80
|
+
size: import('..').Size;
|
81
|
+
disabled: boolean;
|
82
|
+
placeholder: string;
|
83
|
+
modelValue: string;
|
84
|
+
defaultValue: string;
|
85
|
+
maxLength: import('./type').MaxLength;
|
86
|
+
showWordLimit: boolean;
|
87
|
+
allowClear: boolean;
|
88
|
+
readonly: boolean;
|
89
|
+
wordLength: import('./type').WordLength;
|
90
|
+
wordSlice: import('./type').WordSlice;
|
91
|
+
inputAttrs: import('..').RecordType;
|
92
|
+
showInput: boolean;
|
93
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
94
|
+
beforeCreate?: (() => void) | (() => void)[];
|
95
|
+
created?: (() => void) | (() => void)[];
|
96
|
+
beforeMount?: (() => void) | (() => void)[];
|
97
|
+
mounted?: (() => void) | (() => void)[];
|
98
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
99
|
+
updated?: (() => void) | (() => void)[];
|
100
|
+
activated?: (() => void) | (() => void)[];
|
101
|
+
deactivated?: (() => void) | (() => void)[];
|
102
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
103
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
104
|
+
destroyed?: (() => void) | (() => void)[];
|
105
|
+
unmounted?: (() => void) | (() => void)[];
|
106
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
107
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
108
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
109
|
+
};
|
110
|
+
$forceUpdate: () => void;
|
111
|
+
$nextTick: typeof import('vue').nextTick;
|
112
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
113
|
+
} & Readonly<{
|
114
|
+
error: boolean;
|
115
|
+
size: import('..').Size;
|
116
|
+
disabled: boolean;
|
117
|
+
placeholder: string;
|
118
|
+
modelValue: string;
|
119
|
+
defaultValue: string;
|
120
|
+
maxLength: import('./type').MaxLength;
|
121
|
+
showWordLimit: boolean;
|
122
|
+
allowClear: boolean;
|
123
|
+
readonly: boolean;
|
124
|
+
wordLength: import('./type').WordLength;
|
125
|
+
wordSlice: import('./type').WordSlice;
|
126
|
+
inputAttrs: import('..').RecordType;
|
127
|
+
showInput: boolean;
|
128
|
+
}> & Omit<Readonly<import('./type').InputProps> & Readonly<{
|
129
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
130
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
131
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
132
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
133
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
134
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
135
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
136
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
137
|
+
}>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
138
|
+
focus(): void;
|
139
|
+
blur(): void;
|
140
|
+
getInputRef(): HTMLInputElement;
|
141
|
+
setCursor?: () => void;
|
142
|
+
recordCursor?: () => void;
|
143
|
+
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
144
|
+
$slots: any;
|
145
|
+
}) | null;
|
146
|
+
};
|
147
|
+
rootEl: HTMLDivElement;
|
148
|
+
};
|
149
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
150
|
+
declare const __VLS_component: import('vue').DefineComponent<InputPasswordProps, {
|
151
|
+
focus(): void;
|
152
|
+
blur(): void;
|
153
|
+
getInputRef(): HTMLInputElement;
|
154
|
+
setCursor?: () => void;
|
155
|
+
recordCursor?: () => void;
|
156
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
157
|
+
"update:visibility": (value: boolean) => any;
|
158
|
+
"visibility-change": (value: boolean) => any;
|
159
|
+
}, string, import('vue').PublicProps, Readonly<InputPasswordProps> & Readonly<{
|
160
|
+
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
161
|
+
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
162
|
+
}>, {
|
163
|
+
visibility: boolean;
|
164
|
+
defaultVisibility: boolean;
|
165
|
+
invisibleButton: boolean;
|
166
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
167
|
+
inputRef: ({
|
168
|
+
$: import('vue').ComponentInternalInstance;
|
169
|
+
$data: {};
|
170
|
+
$props: {
|
171
|
+
readonly modelValue?: string | undefined;
|
172
|
+
readonly defaultValue?: string | undefined;
|
173
|
+
readonly size?: import('..').Size | undefined;
|
174
|
+
readonly allowClear?: boolean | undefined;
|
175
|
+
readonly disabled?: boolean | undefined;
|
176
|
+
readonly readonly?: boolean | undefined;
|
177
|
+
readonly error?: boolean | undefined;
|
178
|
+
readonly placeholder?: string | undefined;
|
179
|
+
readonly maxLength?: import('./type').MaxLength | undefined;
|
180
|
+
readonly wordLength?: import('./type').WordLength | undefined;
|
181
|
+
readonly wordSlice?: import('./type').WordSlice | undefined;
|
182
|
+
readonly showWordLimit?: boolean | undefined;
|
183
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
184
|
+
readonly showInput?: boolean | undefined;
|
185
|
+
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
186
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
187
|
+
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
188
|
+
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
189
|
+
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
190
|
+
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
191
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
192
|
+
readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
193
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
194
|
+
$attrs: {
|
195
|
+
[x: string]: unknown;
|
196
|
+
};
|
197
|
+
$refs: {
|
198
|
+
[x: string]: unknown;
|
199
|
+
} & {
|
200
|
+
inputRef: HTMLInputElement;
|
201
|
+
};
|
202
|
+
$slots: Readonly<{
|
203
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
204
|
+
}>;
|
205
|
+
$root: import('vue').ComponentPublicInstance | null;
|
206
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
207
|
+
$host: Element | null;
|
208
|
+
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
|
209
|
+
$el: HTMLDivElement;
|
210
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
|
211
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
212
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
213
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
214
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
215
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
216
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
217
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
218
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
219
|
+
}>, {
|
220
|
+
focus(): void;
|
221
|
+
blur(): void;
|
222
|
+
getInputRef(): HTMLInputElement;
|
223
|
+
setCursor?: () => void;
|
224
|
+
recordCursor?: () => void;
|
225
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
226
|
+
change: (value: string, ev: Event) => any;
|
227
|
+
focus: (ev: FocusEvent) => any;
|
228
|
+
clear: (ev: MouseEvent) => any;
|
229
|
+
blur: (ev: FocusEvent) => any;
|
230
|
+
input: (value: string, ev: Event) => any;
|
231
|
+
keydown: (ev: KeyboardEvent) => any;
|
232
|
+
"update:modelValue": (value: string) => any;
|
233
|
+
pressEnter: (ev: KeyboardEvent) => any;
|
234
|
+
}, string, {
|
235
|
+
error: boolean;
|
236
|
+
size: import('..').Size;
|
237
|
+
disabled: boolean;
|
238
|
+
placeholder: string;
|
239
|
+
modelValue: string;
|
240
|
+
defaultValue: string;
|
241
|
+
maxLength: import('./type').MaxLength;
|
242
|
+
showWordLimit: boolean;
|
243
|
+
allowClear: boolean;
|
244
|
+
readonly: boolean;
|
245
|
+
wordLength: import('./type').WordLength;
|
246
|
+
wordSlice: import('./type').WordSlice;
|
247
|
+
inputAttrs: import('..').RecordType;
|
248
|
+
showInput: boolean;
|
249
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
250
|
+
beforeCreate?: (() => void) | (() => void)[];
|
251
|
+
created?: (() => void) | (() => void)[];
|
252
|
+
beforeMount?: (() => void) | (() => void)[];
|
253
|
+
mounted?: (() => void) | (() => void)[];
|
254
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
255
|
+
updated?: (() => void) | (() => void)[];
|
256
|
+
activated?: (() => void) | (() => void)[];
|
257
|
+
deactivated?: (() => void) | (() => void)[];
|
258
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
259
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
260
|
+
destroyed?: (() => void) | (() => void)[];
|
261
|
+
unmounted?: (() => void) | (() => void)[];
|
262
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
263
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
264
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
265
|
+
};
|
266
|
+
$forceUpdate: () => void;
|
267
|
+
$nextTick: typeof import('vue').nextTick;
|
268
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
269
|
+
} & Readonly<{
|
270
|
+
error: boolean;
|
271
|
+
size: import('..').Size;
|
272
|
+
disabled: boolean;
|
273
|
+
placeholder: string;
|
274
|
+
modelValue: string;
|
275
|
+
defaultValue: string;
|
276
|
+
maxLength: import('./type').MaxLength;
|
277
|
+
showWordLimit: boolean;
|
278
|
+
allowClear: boolean;
|
279
|
+
readonly: boolean;
|
280
|
+
wordLength: import('./type').WordLength;
|
281
|
+
wordSlice: import('./type').WordSlice;
|
282
|
+
inputAttrs: import('..').RecordType;
|
283
|
+
showInput: boolean;
|
284
|
+
}> & Omit<Readonly<import('./type').InputProps> & Readonly<{
|
285
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
286
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
287
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
288
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
289
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
290
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
291
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
292
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
293
|
+
}>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
294
|
+
focus(): void;
|
295
|
+
blur(): void;
|
296
|
+
getInputRef(): HTMLInputElement;
|
297
|
+
setCursor?: () => void;
|
298
|
+
recordCursor?: () => void;
|
299
|
+
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
300
|
+
$slots: any;
|
301
|
+
}) | null;
|
302
|
+
}, HTMLDivElement>;
|
303
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
304
|
+
export default _default;
|
305
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
306
|
+
new (): {
|
307
|
+
$slots: S;
|
308
|
+
};
|
309
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../node_modules/b-tween/dist/b-tween.es.js"),require("../node_modules/dayjs/dayjs.min.js"),require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../node_modules/dayjs/plugin/duration.js"),require("../node_modules/dayjs/plugin/toObject.js"),require("../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../node_modules/dayjs/plugin/isSameOrBefore.js");const t=require("../_shared/utils/dom.js"),s=require("../_shared/utils/hooks.js");require("../_shared/utils/locale.js"),require("../_shared/utils/time.js");const r=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const o=require("../_shared/icons/IconEyeClose.vue.js"),i=require("../_shared/icons/IconEyeOpen.vue.js"),n=require("./Input.vue.js");;/* empty css */const u=e.defineComponent({name:"InputPassword",__name:"InputPassword",props:{visibility:{type:Boolean,default:void 0},defaultVisibility:{type:Boolean,default:!1},invisibleButton:{type:Boolean,default:!0}},emits:["update:visibility","visibility-change"],setup(u,{expose:l,emit:a}){const d=u,p=a,{visibility:c,defaultVisibility:f}=e.toRefs(d),v=s.useControlValue(c,f.value,e=>{p("update:visibility",e),p("visibility-change",e)}),y=e.ref(),m=async()=>{var e,s,r,o;null==(s=null==(e=y.value)?void 0:e.recordCursor)||s.call(e),await t.sleep(0),v.value=!v.value,null==(o=null==(r=y.value)?void 0:r.setCursor)||o.call(r)};return l({focus(){var e;null==(e=y.value)||e.focus()},blur(){var e;null==(e=y.value)||e.blur()},getInputRef(){var e;return null==(e=y.value)?void 0:e.getInputRef()}}),(t,s)=>(e.openBlock(),e.createBlock(n.default,e.mergeProps(t.$attrs,{"input-attrs":{type:e.unref(v)?"text":"password"},ref_key:"inputRef",ref:y}),e.createSlots({extra:e.withCtx(()=>[t.invisibleButton?(e.openBlock(),e.createBlock(e.unref(r.default),{key:0,size:14,onClick:m},{default:e.withCtx(()=>[e.unref(v)?(e.openBlock(),e.createBlock(e.unref(i.default),{key:0})):(e.openBlock(),e.createBlock(e.unref(o.default),{key:1}))]),_:1})):e.createCommentVNode("",!0)]),_:2},[t.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prepend")]),key:"0"}:void 0,t.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"append")]),key:"1"}:void 0,t.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix")]),key:"2"}:void 0,t.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix")]),key:"3"}:void 0]),1040,["input-attrs"]))}});exports.default=u;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./InputPassword.vue.js");exports.default=e.default;
|
@@ -0,0 +1,310 @@
|
|
1
|
+
import { InputSearchProps } from './type';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: {
|
5
|
+
prepend?(_: {}): any;
|
6
|
+
append?(_: {}): any;
|
7
|
+
prefix?(_: {}): any;
|
8
|
+
suffix?(_: {}): any;
|
9
|
+
};
|
10
|
+
refs: {
|
11
|
+
inputRef: ({
|
12
|
+
$: import('vue').ComponentInternalInstance;
|
13
|
+
$data: {};
|
14
|
+
$props: {
|
15
|
+
readonly modelValue?: string | undefined;
|
16
|
+
readonly defaultValue?: string | undefined;
|
17
|
+
readonly size?: import('..').Size | undefined;
|
18
|
+
readonly allowClear?: boolean | undefined;
|
19
|
+
readonly disabled?: boolean | undefined;
|
20
|
+
readonly readonly?: boolean | undefined;
|
21
|
+
readonly error?: boolean | undefined;
|
22
|
+
readonly placeholder?: string | undefined;
|
23
|
+
readonly maxLength?: import('./type').MaxLength | undefined;
|
24
|
+
readonly wordLength?: import('./type').WordLength | undefined;
|
25
|
+
readonly wordSlice?: import('./type').WordSlice | undefined;
|
26
|
+
readonly showWordLimit?: boolean | undefined;
|
27
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
28
|
+
readonly showInput?: boolean | undefined;
|
29
|
+
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
30
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
31
|
+
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
32
|
+
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
33
|
+
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
34
|
+
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
35
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
36
|
+
readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
38
|
+
$attrs: {
|
39
|
+
[x: string]: unknown;
|
40
|
+
};
|
41
|
+
$refs: {
|
42
|
+
[x: string]: unknown;
|
43
|
+
} & {
|
44
|
+
inputRef: HTMLInputElement;
|
45
|
+
};
|
46
|
+
$slots: Readonly<{
|
47
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
48
|
+
}>;
|
49
|
+
$root: import('vue').ComponentPublicInstance | null;
|
50
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
51
|
+
$host: Element | null;
|
52
|
+
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
|
53
|
+
$el: HTMLDivElement;
|
54
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
|
55
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
56
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
57
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
58
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
59
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
60
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
61
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
62
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
63
|
+
}>, {
|
64
|
+
focus(): void;
|
65
|
+
blur(): void;
|
66
|
+
getInputRef(): HTMLInputElement;
|
67
|
+
setCursor?: () => void;
|
68
|
+
recordCursor?: () => void;
|
69
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
70
|
+
change: (value: string, ev: Event) => any;
|
71
|
+
focus: (ev: FocusEvent) => any;
|
72
|
+
clear: (ev: MouseEvent) => any;
|
73
|
+
blur: (ev: FocusEvent) => any;
|
74
|
+
input: (value: string, ev: Event) => any;
|
75
|
+
keydown: (ev: KeyboardEvent) => any;
|
76
|
+
"update:modelValue": (value: string) => any;
|
77
|
+
pressEnter: (ev: KeyboardEvent) => any;
|
78
|
+
}, string, {
|
79
|
+
error: boolean;
|
80
|
+
size: import('..').Size;
|
81
|
+
disabled: boolean;
|
82
|
+
placeholder: string;
|
83
|
+
modelValue: string;
|
84
|
+
defaultValue: string;
|
85
|
+
maxLength: import('./type').MaxLength;
|
86
|
+
showWordLimit: boolean;
|
87
|
+
allowClear: boolean;
|
88
|
+
readonly: boolean;
|
89
|
+
wordLength: import('./type').WordLength;
|
90
|
+
wordSlice: import('./type').WordSlice;
|
91
|
+
inputAttrs: import('..').RecordType;
|
92
|
+
showInput: boolean;
|
93
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
94
|
+
beforeCreate?: (() => void) | (() => void)[];
|
95
|
+
created?: (() => void) | (() => void)[];
|
96
|
+
beforeMount?: (() => void) | (() => void)[];
|
97
|
+
mounted?: (() => void) | (() => void)[];
|
98
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
99
|
+
updated?: (() => void) | (() => void)[];
|
100
|
+
activated?: (() => void) | (() => void)[];
|
101
|
+
deactivated?: (() => void) | (() => void)[];
|
102
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
103
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
104
|
+
destroyed?: (() => void) | (() => void)[];
|
105
|
+
unmounted?: (() => void) | (() => void)[];
|
106
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
107
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
108
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
109
|
+
};
|
110
|
+
$forceUpdate: () => void;
|
111
|
+
$nextTick: typeof import('vue').nextTick;
|
112
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
113
|
+
} & Readonly<{
|
114
|
+
error: boolean;
|
115
|
+
size: import('..').Size;
|
116
|
+
disabled: boolean;
|
117
|
+
placeholder: string;
|
118
|
+
modelValue: string;
|
119
|
+
defaultValue: string;
|
120
|
+
maxLength: import('./type').MaxLength;
|
121
|
+
showWordLimit: boolean;
|
122
|
+
allowClear: boolean;
|
123
|
+
readonly: boolean;
|
124
|
+
wordLength: import('./type').WordLength;
|
125
|
+
wordSlice: import('./type').WordSlice;
|
126
|
+
inputAttrs: import('..').RecordType;
|
127
|
+
showInput: boolean;
|
128
|
+
}> & Omit<Readonly<import('./type').InputProps> & Readonly<{
|
129
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
130
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
131
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
132
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
133
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
134
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
135
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
136
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
137
|
+
}>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
138
|
+
focus(): void;
|
139
|
+
blur(): void;
|
140
|
+
getInputRef(): HTMLInputElement;
|
141
|
+
setCursor?: () => void;
|
142
|
+
recordCursor?: () => void;
|
143
|
+
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
144
|
+
$slots: any;
|
145
|
+
}) | null;
|
146
|
+
};
|
147
|
+
rootEl: HTMLDivElement;
|
148
|
+
};
|
149
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
150
|
+
declare const __VLS_component: import('vue').DefineComponent<InputSearchProps, {
|
151
|
+
focus(): void;
|
152
|
+
blur(): void;
|
153
|
+
getInputRef(): HTMLInputElement;
|
154
|
+
setCursor?: () => void;
|
155
|
+
recordCursor?: () => void;
|
156
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
157
|
+
search: (value: string, ev: MouseEvent) => any;
|
158
|
+
}, string, import('vue').PublicProps, Readonly<InputSearchProps> & Readonly<{
|
159
|
+
onSearch?: ((value: string, ev: MouseEvent) => any) | undefined;
|
160
|
+
}>, {
|
161
|
+
size: import('..').Size;
|
162
|
+
disabled: boolean;
|
163
|
+
loading: boolean;
|
164
|
+
searchButton: boolean;
|
165
|
+
buttonText: string;
|
166
|
+
buttonProps: import('../Button').ButtonGroupProps;
|
167
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
168
|
+
inputRef: ({
|
169
|
+
$: import('vue').ComponentInternalInstance;
|
170
|
+
$data: {};
|
171
|
+
$props: {
|
172
|
+
readonly modelValue?: string | undefined;
|
173
|
+
readonly defaultValue?: string | undefined;
|
174
|
+
readonly size?: import('..').Size | undefined;
|
175
|
+
readonly allowClear?: boolean | undefined;
|
176
|
+
readonly disabled?: boolean | undefined;
|
177
|
+
readonly readonly?: boolean | undefined;
|
178
|
+
readonly error?: boolean | undefined;
|
179
|
+
readonly placeholder?: string | undefined;
|
180
|
+
readonly maxLength?: import('./type').MaxLength | undefined;
|
181
|
+
readonly wordLength?: import('./type').WordLength | undefined;
|
182
|
+
readonly wordSlice?: import('./type').WordSlice | undefined;
|
183
|
+
readonly showWordLimit?: boolean | undefined;
|
184
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
185
|
+
readonly showInput?: boolean | undefined;
|
186
|
+
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
187
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
188
|
+
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
189
|
+
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
190
|
+
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
191
|
+
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
192
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
193
|
+
readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
194
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
195
|
+
$attrs: {
|
196
|
+
[x: string]: unknown;
|
197
|
+
};
|
198
|
+
$refs: {
|
199
|
+
[x: string]: unknown;
|
200
|
+
} & {
|
201
|
+
inputRef: HTMLInputElement;
|
202
|
+
};
|
203
|
+
$slots: Readonly<{
|
204
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
205
|
+
}>;
|
206
|
+
$root: import('vue').ComponentPublicInstance | null;
|
207
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
208
|
+
$host: Element | null;
|
209
|
+
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
|
210
|
+
$el: HTMLDivElement;
|
211
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
|
212
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
213
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
214
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
215
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
216
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
217
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
218
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
219
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
220
|
+
}>, {
|
221
|
+
focus(): void;
|
222
|
+
blur(): void;
|
223
|
+
getInputRef(): HTMLInputElement;
|
224
|
+
setCursor?: () => void;
|
225
|
+
recordCursor?: () => void;
|
226
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
227
|
+
change: (value: string, ev: Event) => any;
|
228
|
+
focus: (ev: FocusEvent) => any;
|
229
|
+
clear: (ev: MouseEvent) => any;
|
230
|
+
blur: (ev: FocusEvent) => any;
|
231
|
+
input: (value: string, ev: Event) => any;
|
232
|
+
keydown: (ev: KeyboardEvent) => any;
|
233
|
+
"update:modelValue": (value: string) => any;
|
234
|
+
pressEnter: (ev: KeyboardEvent) => any;
|
235
|
+
}, string, {
|
236
|
+
error: boolean;
|
237
|
+
size: import('..').Size;
|
238
|
+
disabled: boolean;
|
239
|
+
placeholder: string;
|
240
|
+
modelValue: string;
|
241
|
+
defaultValue: string;
|
242
|
+
maxLength: import('./type').MaxLength;
|
243
|
+
showWordLimit: boolean;
|
244
|
+
allowClear: boolean;
|
245
|
+
readonly: boolean;
|
246
|
+
wordLength: import('./type').WordLength;
|
247
|
+
wordSlice: import('./type').WordSlice;
|
248
|
+
inputAttrs: import('..').RecordType;
|
249
|
+
showInput: boolean;
|
250
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
251
|
+
beforeCreate?: (() => void) | (() => void)[];
|
252
|
+
created?: (() => void) | (() => void)[];
|
253
|
+
beforeMount?: (() => void) | (() => void)[];
|
254
|
+
mounted?: (() => void) | (() => void)[];
|
255
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
256
|
+
updated?: (() => void) | (() => void)[];
|
257
|
+
activated?: (() => void) | (() => void)[];
|
258
|
+
deactivated?: (() => void) | (() => void)[];
|
259
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
260
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
261
|
+
destroyed?: (() => void) | (() => void)[];
|
262
|
+
unmounted?: (() => void) | (() => void)[];
|
263
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
264
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
265
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
266
|
+
};
|
267
|
+
$forceUpdate: () => void;
|
268
|
+
$nextTick: typeof import('vue').nextTick;
|
269
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
270
|
+
} & Readonly<{
|
271
|
+
error: boolean;
|
272
|
+
size: import('..').Size;
|
273
|
+
disabled: boolean;
|
274
|
+
placeholder: string;
|
275
|
+
modelValue: string;
|
276
|
+
defaultValue: string;
|
277
|
+
maxLength: import('./type').MaxLength;
|
278
|
+
showWordLimit: boolean;
|
279
|
+
allowClear: boolean;
|
280
|
+
readonly: boolean;
|
281
|
+
wordLength: import('./type').WordLength;
|
282
|
+
wordSlice: import('./type').WordSlice;
|
283
|
+
inputAttrs: import('..').RecordType;
|
284
|
+
showInput: boolean;
|
285
|
+
}> & Omit<Readonly<import('./type').InputProps> & Readonly<{
|
286
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
287
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
288
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
289
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
290
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
291
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
292
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
293
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
294
|
+
}>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
295
|
+
focus(): void;
|
296
|
+
blur(): void;
|
297
|
+
getInputRef(): HTMLInputElement;
|
298
|
+
setCursor?: () => void;
|
299
|
+
recordCursor?: () => void;
|
300
|
+
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
301
|
+
$slots: any;
|
302
|
+
}) | null;
|
303
|
+
}, HTMLDivElement>;
|
304
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
305
|
+
export default _default;
|
306
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
307
|
+
new (): {
|
308
|
+
$slots: S;
|
309
|
+
};
|
310
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=;/* empty css */,/* empty css */require("../node_modules/b-tween/dist/b-tween.es.js"),require("../node_modules/dayjs/dayjs.min.js"),require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../node_modules/dayjs/plugin/duration.js"),require("../node_modules/dayjs/plugin/toObject.js"),require("../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../node_modules/dayjs/plugin/isSameOrBefore.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/locale.js"),require("../_shared/utils/time.js"),/* empty css */;/* empty css */const r=require("../_shared/icons/IconSearch.vue.js"),n=require("./Input.vue.js");;/* empty css */const o=require("../Button/index.js"),i=require("../Spin/index.js"),u=e.defineComponent({name:"InputSearch",__name:"InputSearch",props:{searchButton:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:void 0},buttonText:{default:""},buttonProps:{default:()=>({})}},emits:["search"],setup(u,{expose:d,emit:a}){const l=a,p=e.ref(),c=async e=>{var s,r;l("search",null==(s=p.value)?void 0:s.getInputRef().value,e),await t.sleep(0),null==(r=p.value)||r.focus()};return d({focus(){var e;null==(e=p.value)||e.focus()},blur(){var e;null==(e=p.value)||e.blur()},getInputRef(){var e;return null==(e=p.value)?void 0:e.getInputRef()}}),(t,u)=>(e.openBlock(),e.createBlock(n.default,e.mergeProps({size:t.size,disabled:t.disabled},t.$attrs,{class:"yc-input-search",ref_key:"inputRef",ref:p}),e.createSlots({_:2},[t.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prepend")]),key:"0"}:void 0,t.$slots.append||t.searchButton?{name:"append",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"append",{},()=>[e.createVNode(e.unref(o.default),e.mergeProps({type:"primary",size:t.size,disabled:t.disabled,loading:t.loading},t.buttonProps,{onClick:c}),{icon:e.withCtx(()=>[e.createVNode(e.unref(r.default))]),_:1},16,["size","disabled","loading"])])]),key:"1"}:void 0,t.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix")]),key:"2"}:void 0,t.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix")]),key:"3"}:void 0,t.searchButton?void 0:{name:"extra",fn:e.withCtx(()=>[t.loading?(e.openBlock(),e.createBlock(e.unref(i.default),{key:0,"is-size-inherit":"",style:{color:"inherit"}})):(e.openBlock(),e.createBlock(e.unref(s.default),{key:1,disabled:t.disabled,onClick:c},{default:e.withCtx(()=>[e.createVNode(e.unref(r.default))]),_:1},8,["disabled"]))]),key:"4"}]),1040,["size","disabled"]))}});exports.default=u;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./InputSearch.vue.js");exports.default=e.default;
|