hys-ui 0.1.0 → 0.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/CHANGELOG.md +137 -1
- package/README.md +18 -6
- package/dist/components/HysAccordion/HysAccordion.vue.js +1 -1
- package/dist/components/HysAccordion/HysAccordion2.vue.js +181 -47
- package/dist/components/HysAlert/HysAlert.vue.js +14 -14
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +23 -20
- package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +7 -0
- package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +627 -0
- package/dist/components/HysAvatar/HysAvatar.vue.js +5 -35
- package/dist/components/HysAvatar/HysAvatar2.vue.js +221 -2
- package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +7 -0
- package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +252 -0
- package/dist/components/HysBadge/HysBadge.vue.js +2 -2
- package/dist/components/HysBadge/HysBadge2.vue.js +154 -26
- package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +5 -38
- package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +74 -2
- package/dist/components/HysButton/HysButton.vue.js +2 -2
- package/dist/components/HysButton/HysButton2.vue.js +29 -28
- package/dist/components/HysCalendar/HysCalendar.vue.js +5 -84
- package/dist/components/HysCalendar/HysCalendar2.vue.js +803 -2
- package/dist/components/HysCard/HysCard.vue.js +1 -1
- package/dist/components/HysCard/HysCard2.vue.js +177 -44
- package/dist/components/HysCascader/HysCascader.vue.js +5 -182
- package/dist/components/HysCascader/HysCascader2.vue.js +760 -2
- package/dist/components/HysCascader/HysCascaderColumn.vue.js +7 -0
- package/dist/components/HysCascader/HysCascaderColumn2.vue.js +232 -0
- package/dist/components/HysCheckbox/HysCheckbox.vue.js +5 -39
- package/dist/components/HysCheckbox/HysCheckbox2.vue.js +200 -2
- package/dist/components/HysCheckboxGroup/HysCheckboxGroup.vue.js +7 -0
- package/dist/components/HysCheckboxGroup/HysCheckboxGroup2.vue.js +237 -0
- package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
- package/dist/components/HysColorPicker/HysColorPicker2.vue.js +107 -106
- package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +52 -51
- package/dist/components/HysCommentEditor/HysCommentEditor.vue.js +17 -17
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +397 -390
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +268 -139
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +7 -0
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +807 -0
- package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +7 -0
- package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +357 -0
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +268 -158
- package/dist/components/HysDivider/HysDivider.vue.js +2 -2
- package/dist/components/HysDivider/HysDivider2.vue.js +33 -13
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +55 -54
- package/dist/components/HysFileManager/HysFileManager.vue.js +5 -63
- package/dist/components/HysFileManager/HysFileManager2.vue.js +86 -2
- package/dist/components/HysForm/HysForm.vue.js +3 -3
- package/dist/components/HysForm/HysForm2.vue.js +580 -92
- package/dist/components/HysFormItem/HysFormItem.vue.js +5 -69
- package/dist/components/HysFormItem/HysFormItem2.vue.js +521 -2
- package/dist/components/HysGantt/HysGantt.vue.js +5 -264
- package/dist/components/HysGantt/HysGantt2.vue.js +1399 -2
- package/dist/components/HysInput/HysInput.vue.js +2 -2
- package/dist/components/HysInput/HysInput2.vue.js +468 -120
- package/dist/components/HysMention/HysMention.vue.js +2 -2
- package/dist/components/HysMention/HysMention2.vue.js +89 -88
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +35 -35
- package/dist/components/HysNotificationCenter/HysNotificationCenter.vue.js +37 -36
- package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
- package/dist/components/HysNumberInput/HysNumberInput2.vue.js +561 -70
- package/dist/components/HysOrgTree/HysOrgTree.vue.js +41 -36
- package/dist/components/HysPagination/HysPagination.vue.js +2 -2
- package/dist/components/HysPagination/HysPagination2.vue.js +93 -91
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +5 -41
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +101 -2
- package/dist/components/HysRadio/HysRadio.vue.js +7 -0
- package/dist/components/HysRadio/HysRadio2.vue.js +180 -0
- package/dist/components/HysRadioGroup/HysRadioGroup.vue.js +5 -40
- package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +205 -2
- package/dist/components/HysRating/HysRating.vue.js +1 -1
- package/dist/components/HysRating/HysRating2.vue.js +288 -68
- package/dist/components/HysResizablePanel/HysResizablePanel.vue.js +46 -28
- package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +2 -2
- package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +87 -67
- package/dist/components/HysSearch/HysSearch.vue.js +50 -38
- package/dist/components/HysSegmented/HysSegmented.vue.js +5 -58
- package/dist/components/HysSegmented/HysSegmented2.vue.js +273 -2
- package/dist/components/HysSelect/HysSelect.vue.js +3 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +859 -164
- package/dist/components/HysSkeleton/HysSkeleton.vue.js +2 -2
- package/dist/components/HysSkeleton/HysSkeleton2.vue.js +126 -29
- package/dist/components/HysSlider/HysSlider.vue.js +2 -2
- package/dist/components/HysSlider/HysSlider2.vue.js +532 -59
- package/dist/components/HysSlider/SliderTooltip.vue.js +7 -0
- package/dist/components/HysSlider/SliderTooltip2.vue.js +156 -0
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +48 -42
- package/dist/components/HysSteps/HysSteps.vue.js +2 -2
- package/dist/components/HysSteps/HysSteps2.vue.js +111 -36
- package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
- package/dist/components/HysSwitch/HysSwitch2.vue.js +235 -42
- package/dist/components/HysTable/HysTable.vue.js +1 -1
- package/dist/components/HysTable/HysTable2.vue.js +1471 -82
- package/dist/components/HysTable/HysTableFilterOptions.vue.js +7 -0
- package/dist/components/HysTable/HysTableFilterOptions2.vue.js +133 -0
- package/dist/components/HysTabs/HysTabs.vue.js +2 -2
- package/dist/components/HysTabs/HysTabs2.vue.js +262 -66
- package/dist/components/HysTagInput/HysTagInput.vue.js +43 -42
- package/dist/components/HysTextarea/HysTextarea.vue.js +137 -66
- package/dist/components/HysToast/HysToast.vue.js +2 -2
- package/dist/components/HysToast/HysToast2.vue.js +121 -38
- package/dist/components/HysTour/HysTour.vue.js +47 -42
- package/dist/components/HysTransfer/HysTransfer.vue.js +5 -207
- package/dist/components/HysTransfer/HysTransfer2.vue.js +416 -2
- package/dist/components/HysTransfer/HysTransferPanel.vue.js +7 -0
- package/dist/components/HysTransfer/HysTransferPanel2.vue.js +454 -0
- package/dist/components/HysTree/HysTree.vue.js +2 -3
- package/dist/components/HysTree/HysTree2.vue.js +641 -301
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +5 -129
- package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +558 -2
- package/dist/components/HysTreeSelect/HysTreeSelectPanel.vue.js +7 -0
- package/dist/components/HysTreeSelect/HysTreeSelectPanel2.vue.js +323 -0
- package/dist/components/HysUpload/HysUpload.vue.js +2 -2
- package/dist/components/HysUpload/HysUpload2.vue.js +97 -78
- package/dist/composables/autocomplete.js +50 -0
- package/dist/composables/avatar.js +57 -0
- package/dist/composables/calendar.js +96 -0
- package/dist/composables/cascader.js +79 -0
- package/dist/composables/choice.js +38 -0
- package/dist/composables/choiceModel.js +67 -0
- package/dist/composables/datePicker.js +227 -0
- package/dist/composables/formContext.js +94 -3
- package/dist/composables/formLayout.js +57 -0
- package/dist/composables/formValidation.js +240 -0
- package/dist/composables/ganttConflicts.js +143 -0
- package/dist/composables/numberInput.js +91 -0
- package/dist/composables/rating.js +16 -0
- package/dist/composables/selectOptions.js +54 -0
- package/dist/composables/table.js +150 -0
- package/dist/composables/textInput.js +34 -0
- package/dist/composables/toastEscape.js +16 -0
- package/dist/composables/transfer.js +63 -0
- package/dist/composables/tree.js +118 -0
- package/dist/composables/treeSelect.js +71 -0
- package/dist/composables/useCascader.js +438 -0
- package/dist/composables/useDatePicker.js +425 -0
- package/dist/composables/useDialog.js +16 -16
- package/dist/composables/useFloating.js +98 -52
- package/dist/composables/useGanttDependencies.js +306 -0
- package/dist/composables/useGanttHistory.js +157 -0
- package/dist/composables/useGanttLabelResize.js +100 -0
- package/dist/composables/useHysToast.js +148 -0
- package/dist/composables/useTable.js +474 -0
- package/dist/composables/useTextareaSize.js +72 -0
- package/dist/composables/useTransfer.js +257 -0
- package/dist/composables/useTree.js +439 -0
- package/dist/composables/useTreeSelect.js +361 -0
- package/dist/config.js +18 -15
- package/dist/index.js +149 -136
- package/dist/style.css +1 -1
- package/dist/types/components/HysAccordion/HysAccordion.vue.d.ts +61 -22
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +201 -0
- package/dist/types/components/HysAvatar/HysAvatar.vue.d.ts +28 -15
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +99 -0
- package/dist/types/components/HysBadge/HysBadge.vue.d.ts +41 -4
- package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +38 -10
- package/dist/types/components/HysButton/HysButton.vue.d.ts +0 -1
- package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +119 -29
- package/dist/types/components/HysCard/HysCard.vue.d.ts +57 -5
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +129 -41
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +55 -0
- package/dist/types/components/HysCheckbox/HysCheckbox.vue.d.ts +55 -27
- package/dist/types/components/HysCheckboxGroup/HysCheckboxGroup.vue.d.ts +73 -0
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +1 -1
- package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +66 -14
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +90 -0
- package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +93 -0
- package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +66 -14
- package/dist/types/components/HysDivider/HysDivider.vue.d.ts +8 -3
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +1 -0
- package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +8 -4
- package/dist/types/components/HysForm/HysForm.vue.d.ts +110 -18
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +108 -2
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +88 -4
- package/dist/types/components/HysInput/HysInput.vue.d.ts +52 -29
- package/dist/types/components/HysMention/HysMention.vue.d.ts +2 -2
- package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +93 -33
- package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +4 -1
- package/dist/types/components/HysPagination/HysPagination.vue.d.ts +1 -1
- package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +8 -1
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +3 -3
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
- package/dist/types/components/HysRadio/HysRadio.vue.d.ts +56 -0
- package/dist/types/components/HysRadioGroup/HysRadioGroup.vue.d.ts +62 -17
- package/dist/types/components/HysRating/HysRating.vue.d.ts +85 -5
- package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +6 -0
- package/dist/types/components/HysRichTextEditor/HysRichTextEditor.vue.d.ts +4 -4
- package/dist/types/components/HysSearch/HysSearch.vue.d.ts +2 -2
- package/dist/types/components/HysSegmented/HysSegmented.vue.d.ts +64 -32
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +120 -14
- package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +30 -2
- package/dist/types/components/HysSlider/HysSlider.vue.d.ts +66 -9
- package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +22 -0
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +6 -0
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +65 -9
- package/dist/types/components/HysSwitch/HysSwitch.vue.d.ts +76 -17
- package/dist/types/components/HysTable/HysTable.vue.d.ts +206 -32
- package/dist/types/components/HysTable/HysTableFilterOptions.vue.d.ts +18 -0
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +76 -23
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +5 -5
- package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +44 -27
- package/dist/types/components/HysToast/HysToast.vue.d.ts +55 -7
- package/dist/types/components/HysTour/HysTour.vue.d.ts +5 -3
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +55 -30
- package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +105 -0
- package/dist/types/components/HysTree/HysTree.vue.d.ts +140 -73
- package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +102 -23
- package/dist/types/components/HysTreeSelect/HysTreeSelectPanel.vue.d.ts +56 -0
- package/dist/types/composables/autocomplete.d.ts +106 -0
- package/dist/types/composables/avatar.d.ts +70 -0
- package/dist/types/composables/calendar.d.ts +66 -0
- package/dist/types/composables/cascader.d.ts +192 -0
- package/dist/types/composables/choice.d.ts +110 -0
- package/dist/types/composables/choiceModel.d.ts +11 -0
- package/dist/types/composables/datePicker.d.ts +247 -0
- package/dist/types/composables/formContext.d.ts +138 -8
- package/dist/types/composables/formLayout.d.ts +11 -0
- package/dist/types/composables/formValidation.d.ts +13 -0
- package/dist/types/composables/gantt.d.ts +68 -0
- package/dist/types/composables/ganttConflicts.d.ts +30 -0
- package/dist/types/composables/numberInput.d.ts +45 -0
- package/dist/types/composables/rating.d.ts +18 -0
- package/dist/types/composables/segmented.d.ts +15 -0
- package/dist/types/composables/selectOptions.d.ts +44 -0
- package/dist/types/composables/slider.d.ts +21 -0
- package/dist/types/composables/table.d.ts +309 -0
- package/dist/types/composables/textInput.d.ts +76 -0
- package/dist/types/composables/toastEscape.d.ts +1 -0
- package/dist/types/composables/transfer.d.ts +180 -0
- package/dist/types/composables/tree.d.ts +237 -0
- package/dist/types/composables/treeSelect.d.ts +167 -0
- package/dist/types/composables/useCascader.d.ts +162 -0
- package/dist/types/composables/useDatePicker.d.ts +79 -0
- package/dist/types/composables/useFloating.d.ts +8 -5
- package/dist/types/composables/useGanttDependencies.d.ts +83 -0
- package/dist/types/composables/useGanttHistory.d.ts +42 -0
- package/dist/types/composables/useGanttLabelResize.d.ts +23 -0
- package/dist/types/composables/useHysToast.d.ts +50 -0
- package/dist/types/composables/useTable.d.ts +60 -0
- package/dist/types/composables/useTextareaSize.d.ts +3 -0
- package/dist/types/composables/useTransfer.d.ts +58 -0
- package/dist/types/composables/useTree.d.ts +77 -0
- package/dist/types/composables/useTreeSelect.d.ts +117 -0
- package/dist/types/index.d.ts +38 -7
- package/package.json +47 -11
|
@@ -1,43 +1,96 @@
|
|
|
1
|
+
export type HysTabValue = string | number;
|
|
2
|
+
export interface HysTabItem {
|
|
3
|
+
label: string;
|
|
4
|
+
value: HysTabValue;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
closable?: boolean;
|
|
7
|
+
content?: string;
|
|
8
|
+
forceRender?: boolean;
|
|
9
|
+
}
|
|
1
10
|
type __VLS_Props = {
|
|
2
|
-
modelValue
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
value: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
closable?: boolean;
|
|
8
|
-
}[];
|
|
11
|
+
modelValue?: HysTabValue;
|
|
12
|
+
defaultValue?: HysTabValue;
|
|
13
|
+
items: HysTabItem[];
|
|
9
14
|
disabled?: boolean;
|
|
10
|
-
type?: 'line' | 'card';
|
|
15
|
+
type?: 'line' | 'card' | 'border-card' | 'segment';
|
|
11
16
|
vertical?: boolean;
|
|
17
|
+
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
18
|
+
size?: 'sm' | 'md' | 'lg';
|
|
19
|
+
stretch?: boolean;
|
|
20
|
+
centered?: boolean;
|
|
12
21
|
closable?: boolean;
|
|
22
|
+
addable?: boolean;
|
|
23
|
+
editable?: boolean;
|
|
24
|
+
trigger?: 'click' | 'hover';
|
|
25
|
+
activation?: 'auto' | 'manual';
|
|
26
|
+
/** 首次访问时才挂载面板;用于 panel 插槽。 */
|
|
27
|
+
lazy?: boolean;
|
|
28
|
+
/** 离开时销毁面板;默认保留已访问面板的局部状态。 */
|
|
29
|
+
destroyOnHide?: boolean;
|
|
30
|
+
animated?: boolean;
|
|
31
|
+
showScrollButtons?: boolean;
|
|
13
32
|
ariaLabel?: string;
|
|
33
|
+
beforeLeave?: (next: HysTabValue, current: HysTabValue) => boolean | void | Promise<boolean | void>;
|
|
34
|
+
beforeClose?: (value: HysTabValue) => boolean | void | Promise<boolean | void>;
|
|
14
35
|
};
|
|
36
|
+
declare function scrollToActiveTab(): void;
|
|
15
37
|
declare const __VLS_template: () => {
|
|
16
38
|
__VLS_Slots: {
|
|
39
|
+
prefix?: (props: {}) => any;
|
|
40
|
+
} & {
|
|
17
41
|
label?: (props: {
|
|
18
|
-
item:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
42
|
+
item: HysTabItem;
|
|
43
|
+
active: boolean;
|
|
44
|
+
}) => any;
|
|
45
|
+
} & {
|
|
46
|
+
'close-icon'?: (props: {
|
|
47
|
+
item: HysTabItem;
|
|
48
|
+
}) => any;
|
|
49
|
+
} & {
|
|
50
|
+
'add-icon'?: (props: {}) => any;
|
|
51
|
+
} & {
|
|
52
|
+
suffix?: (props: {}) => any;
|
|
53
|
+
} & {
|
|
54
|
+
panel?: (props: {
|
|
55
|
+
item: HysTabItem;
|
|
56
|
+
active: boolean;
|
|
24
57
|
}) => any;
|
|
25
58
|
} & {
|
|
26
59
|
default?: (props: {
|
|
27
|
-
active:
|
|
60
|
+
active: HysTabValue;
|
|
28
61
|
}) => any;
|
|
29
62
|
};
|
|
30
63
|
};
|
|
31
64
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
32
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
65
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
66
|
+
scrollToActiveTab: typeof scrollToActiveTab;
|
|
67
|
+
focus: (value?: HysTabValue) => void;
|
|
68
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
|
+
change: (value: HysTabValue) => any;
|
|
70
|
+
"update:modelValue": (value: HysTabValue) => any;
|
|
71
|
+
guardError: (error: unknown) => any;
|
|
72
|
+
add: () => any;
|
|
73
|
+
close: (value: HysTabValue) => any;
|
|
74
|
+
tabClick: (value: HysTabValue, event: MouseEvent) => any;
|
|
75
|
+
edit: (value: HysTabValue | undefined, action: "add" | "remove") => any;
|
|
36
76
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
77
|
+
onChange?: ((value: HysTabValue) => any) | undefined;
|
|
78
|
+
"onUpdate:modelValue"?: ((value: HysTabValue) => any) | undefined;
|
|
79
|
+
onGuardError?: ((error: unknown) => any) | undefined;
|
|
80
|
+
onAdd?: (() => any) | undefined;
|
|
81
|
+
onClose?: ((value: HysTabValue) => any) | undefined;
|
|
82
|
+
onTabClick?: ((value: HysTabValue, event: MouseEvent) => any) | undefined;
|
|
83
|
+
onEdit?: ((value: HysTabValue | undefined, action: "add" | "remove") => any) | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
size: "sm" | "md" | "lg";
|
|
86
|
+
trigger: "click" | "hover";
|
|
87
|
+
lazy: boolean;
|
|
88
|
+
destroyOnHide: boolean;
|
|
89
|
+
type: "line" | "card" | "border-card" | "segment";
|
|
90
|
+
activation: "auto" | "manual";
|
|
91
|
+
animated: boolean;
|
|
92
|
+
showScrollButtons: boolean;
|
|
93
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
94
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
95
|
declare const _default: typeof __VLS_export;
|
|
43
96
|
export default _default;
|
|
@@ -18,20 +18,20 @@ declare const __VLS_template: () => {
|
|
|
18
18
|
};
|
|
19
19
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
20
20
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
-
"update:modelValue": (value: string[]) => any;
|
|
22
21
|
change: (value: string[]) => any;
|
|
22
|
+
"update:modelValue": (value: string[]) => any;
|
|
23
23
|
add: (value: string) => any;
|
|
24
|
-
remove: (value: string) => any;
|
|
25
24
|
reject: (value: string) => any;
|
|
25
|
+
remove: (value: string) => any;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
-
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
28
27
|
onChange?: ((value: string[]) => any) | undefined;
|
|
28
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
29
29
|
onAdd?: ((value: string) => any) | undefined;
|
|
30
|
-
onRemove?: ((value: string) => any) | undefined;
|
|
31
30
|
onReject?: ((value: string) => any) | undefined;
|
|
31
|
+
onRemove?: ((value: string) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
|
-
placeholder: string;
|
|
34
33
|
max: number;
|
|
34
|
+
placeholder: string;
|
|
35
35
|
addOnBlur: boolean;
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,43 +1,60 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
error?: string;
|
|
10
|
-
showCount?: boolean;
|
|
11
|
-
autosize?: boolean | {
|
|
12
|
-
minRows?: number;
|
|
13
|
-
maxRows?: number;
|
|
14
|
-
};
|
|
15
|
-
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
1
|
+
import type { HysInputProps, HysInputCountInfo } from "../../composables/textInput";
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
prefix?: () => any;
|
|
4
|
+
suffix?: () => any;
|
|
5
|
+
prepend?: () => any;
|
|
6
|
+
append?: () => any;
|
|
7
|
+
'clear-icon'?: () => any;
|
|
8
|
+
count?: (info: HysInputCountInfo) => any;
|
|
16
9
|
};
|
|
17
|
-
|
|
18
|
-
declare const
|
|
19
|
-
input: import("vue").
|
|
20
|
-
|
|
10
|
+
type __VLS_Props = Omit<HysInputProps, "type" | "showPassword" | "showPasswordOn" | "passwordVisible" | "defaultPasswordVisible">;
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
12
|
+
input: import("vue").ComputedRef<HTMLTextAreaElement | undefined>;
|
|
13
|
+
textarea: import("vue").ComputedRef<HTMLTextAreaElement | undefined>;
|
|
14
|
+
isComposing: import("vue").ComputedRef<boolean>;
|
|
15
|
+
focus: (options?: FocusOptions) => void | undefined;
|
|
21
16
|
blur: () => void | undefined;
|
|
22
17
|
select: () => void | undefined;
|
|
23
|
-
|
|
18
|
+
clear: () => void | undefined;
|
|
19
|
+
resize: () => Promise<void>;
|
|
20
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void | undefined;
|
|
21
|
+
scrollTo: (options: ScrollToOptions) => void | undefined;
|
|
24
22
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
-
"update:modelValue": (value: string) => any;
|
|
26
23
|
change: (value: string) => any;
|
|
24
|
+
"update:modelValue": (value: string) => any;
|
|
25
|
+
clear: () => any;
|
|
27
26
|
input: (value: string) => any;
|
|
28
|
-
focus: (event: FocusEvent) => any;
|
|
29
27
|
blur: (event: FocusEvent) => any;
|
|
28
|
+
compositionend: (event: CompositionEvent) => any;
|
|
29
|
+
compositionstart: (event: CompositionEvent) => any;
|
|
30
|
+
compositionupdate: (event: CompositionEvent) => any;
|
|
31
|
+
focus: (event: FocusEvent) => any;
|
|
32
|
+
pressEnter: (event: KeyboardEvent) => any;
|
|
30
33
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
32
34
|
onChange?: ((value: string) => any) | undefined;
|
|
35
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
36
|
+
onClear?: (() => any) | undefined;
|
|
33
37
|
onInput?: ((value: string) => any) | undefined;
|
|
34
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
35
38
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
39
|
+
onCompositionend?: ((event: CompositionEvent) => any) | undefined;
|
|
40
|
+
onCompositionstart?: ((event: CompositionEvent) => any) | undefined;
|
|
41
|
+
onCompositionupdate?: ((event: CompositionEvent) => any) | undefined;
|
|
42
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
43
|
+
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
36
44
|
}>, {
|
|
37
|
-
|
|
38
|
-
resize: "none" | "
|
|
39
|
-
showCount: boolean
|
|
45
|
+
bordered: boolean;
|
|
46
|
+
resize: "none" | "both" | "horizontal" | "vertical";
|
|
47
|
+
showCount: boolean | {
|
|
48
|
+
formatter: (info: HysInputCountInfo) => string;
|
|
49
|
+
};
|
|
50
|
+
countPosition: "inside" | "outside";
|
|
40
51
|
rows: number;
|
|
41
52
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
53
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
54
|
declare const _default: typeof __VLS_export;
|
|
43
55
|
export default _default;
|
|
56
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -1,19 +1,67 @@
|
|
|
1
|
+
export type HysToastType = 'success' | 'error' | 'info' | 'warning' | 'loading';
|
|
2
|
+
export type HysToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center' | 'top' | 'bottom';
|
|
1
3
|
type __VLS_Props = {
|
|
2
|
-
message
|
|
3
|
-
type?:
|
|
4
|
+
message?: string;
|
|
5
|
+
type?: HysToastType;
|
|
4
6
|
duration?: number;
|
|
5
7
|
closable?: boolean;
|
|
6
|
-
position?:
|
|
8
|
+
position?: HysToastPosition;
|
|
9
|
+
offset?: number;
|
|
10
|
+
zIndex?: number;
|
|
11
|
+
showIcon?: boolean;
|
|
12
|
+
pauseOnHover?: boolean;
|
|
13
|
+
closeOnEscape?: boolean;
|
|
14
|
+
repeat?: number;
|
|
15
|
+
plain?: boolean;
|
|
16
|
+
teleport?: boolean;
|
|
17
|
+
appendTo?: string | HTMLElement;
|
|
18
|
+
};
|
|
19
|
+
declare function pause(): void;
|
|
20
|
+
declare function resume(): void;
|
|
21
|
+
declare function restart(): void;
|
|
22
|
+
declare function close(): void;
|
|
23
|
+
declare const __VLS_template: () => {
|
|
24
|
+
__VLS_Slots: {
|
|
25
|
+
icon?: (props: {}) => any;
|
|
26
|
+
} & {
|
|
27
|
+
default?: (props: {}) => any;
|
|
28
|
+
} & {
|
|
29
|
+
action?: (props: {
|
|
30
|
+
close: typeof close;
|
|
31
|
+
}) => any;
|
|
32
|
+
};
|
|
7
33
|
};
|
|
8
|
-
|
|
34
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
35
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
36
|
+
close: typeof close;
|
|
37
|
+
pause: typeof pause;
|
|
38
|
+
resume: typeof resume;
|
|
39
|
+
restart: typeof restart;
|
|
40
|
+
element: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
41
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
42
|
close: () => any;
|
|
43
|
+
afterClose: () => any;
|
|
10
44
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
45
|
onClose?: (() => any) | undefined;
|
|
46
|
+
onAfterClose?: (() => any) | undefined;
|
|
12
47
|
}>, {
|
|
13
|
-
|
|
48
|
+
repeat: number;
|
|
49
|
+
type: HysToastType;
|
|
50
|
+
offset: number;
|
|
14
51
|
closable: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
52
|
+
showIcon: boolean;
|
|
53
|
+
message: string;
|
|
54
|
+
position: HysToastPosition;
|
|
55
|
+
zIndex: number;
|
|
56
|
+
appendTo: string | HTMLElement;
|
|
57
|
+
pauseOnHover: boolean;
|
|
58
|
+
teleport: boolean;
|
|
17
59
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
60
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
61
|
declare const _default: typeof __VLS_export;
|
|
19
62
|
export default _default;
|
|
63
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
64
|
+
new (): {
|
|
65
|
+
$slots: S;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -11,17 +11,19 @@ type __VLS_ModelProps = {
|
|
|
11
11
|
};
|
|
12
12
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
-
"update:modelValue": (value: boolean) => any;
|
|
15
14
|
change: (index: number) => any;
|
|
15
|
+
"update:modelValue": (value: boolean) => any;
|
|
16
16
|
close: () => any;
|
|
17
17
|
finish: () => any;
|
|
18
18
|
"update:current": (index: number) => any;
|
|
19
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
20
|
onChange?: ((index: number) => any) | undefined;
|
|
21
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
22
22
|
onClose?: (() => any) | undefined;
|
|
23
23
|
onFinish?: (() => any) | undefined;
|
|
24
24
|
"onUpdate:current"?: ((index: number) => any) | undefined;
|
|
25
|
-
}>, {
|
|
25
|
+
}>, {
|
|
26
|
+
closeOnEscape: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
28
|
declare const _default: typeof __VLS_export;
|
|
27
29
|
export default _default;
|
|
@@ -1,33 +1,58 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type HysTransferProps, type HysTransferKey, type HysTransferSide, type HysTransferOption, type HysTransferSlots } from "../../composables/transfer";
|
|
2
|
+
declare const __VLS_export: <T extends object = HysTransferOption, K extends HysTransferKey = HysTransferKey>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<HysTransferProps<T, K> & {
|
|
4
|
+
onChange?: ((value: K[], direction: HysTransferSide, movedKeys: K[]) => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: K[]) => any) | undefined;
|
|
6
|
+
onSearch?: ((side: HysTransferSide, value: string) => any) | undefined;
|
|
7
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
8
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
9
|
+
onScroll?: ((side: HysTransferSide, event: Event) => any) | undefined;
|
|
10
|
+
"onUpdate:checkedKeys"?: ((keys: K[]) => any) | undefined;
|
|
11
|
+
onPageSizeChange?: ((side: HysTransferSide, size: number) => any) | undefined;
|
|
12
|
+
onPageChange?: ((side: HysTransferSide, page: number, pageSize: number) => any) | undefined;
|
|
13
|
+
onDragStart?: ((side: HysTransferSide, keys: K[], event: DragEvent) => any) | undefined;
|
|
14
|
+
onDragEnd?: (() => any) | undefined;
|
|
15
|
+
onCheckChange?: ((side: HysTransferSide, keys: K[]) => any) | undefined;
|
|
16
|
+
onSelectChange?: ((left: K[], right: K[]) => any) | undefined;
|
|
17
|
+
"onUpdate:searchValues"?: ((values: Record<HysTransferSide, string>) => any) | undefined;
|
|
18
|
+
"onUpdate:pages"?: ((pages: Record<HysTransferSide, number>) => any) | undefined;
|
|
19
|
+
"onUpdate:pageSizes"?: ((sizes: Record<HysTransferSide, number>) => any) | undefined;
|
|
20
|
+
}> & (typeof globalThis extends {
|
|
21
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
22
|
+
} ? P : {});
|
|
23
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
24
|
+
element: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
25
|
+
targetKeys: import("vue").ComputedRef<K[]>;
|
|
26
|
+
checkedKeys: import("vue").ComputedRef<K[]>;
|
|
27
|
+
getCheckedKeys: (side?: HysTransferSide) => K[];
|
|
28
|
+
getTargetItems: () => T[];
|
|
29
|
+
move: (direction: HysTransferSide, requested?: readonly K[]) => Promise<boolean>;
|
|
30
|
+
remove: (values: readonly K[]) => Promise<boolean>;
|
|
31
|
+
setCheckedKeys: (next: readonly K[]) => Promise<boolean>;
|
|
32
|
+
clearChecked: (side?: HysTransferSide) => Promise<boolean>;
|
|
33
|
+
checkAll: (side: HysTransferSide, value?: boolean, scope?: "page" | "filtered" | "all") => Promise<boolean>;
|
|
34
|
+
invertSelection: (side: HysTransferSide, scope?: "page" | "filtered" | "all") => Promise<boolean>;
|
|
35
|
+
setSearch: (side: HysTransferSide, value: string) => void;
|
|
36
|
+
clearSearch: (side?: HysTransferSide) => void;
|
|
37
|
+
setPage: (side: HysTransferSide, value: number) => void;
|
|
38
|
+
setPageSize: (side: HysTransferSide, value: number) => void;
|
|
39
|
+
scrollTo: (side: HysTransferSide, options: {
|
|
40
|
+
key?: K;
|
|
41
|
+
top?: number;
|
|
42
|
+
behavior?: ScrollBehavior;
|
|
43
|
+
}) => Promise<void>;
|
|
44
|
+
focus: (side?: HysTransferSide) => void;
|
|
45
|
+
}>) => void;
|
|
46
|
+
attrs: any;
|
|
47
|
+
slots: HysTransferSlots<T, K>;
|
|
48
|
+
emit: ((evt: "change", value: K[], direction: HysTransferSide, movedKeys: K[]) => void) & ((evt: "update:modelValue", value: K[]) => void) & ((evt: "search", side: HysTransferSide, value: string) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "scroll", side: HysTransferSide, event: Event) => void) & ((evt: "update:checkedKeys", keys: K[]) => void) & ((evt: "pageSizeChange", side: HysTransferSide, size: number) => void) & ((evt: "pageChange", side: HysTransferSide, page: number, pageSize: number) => void) & ((evt: "dragStart", side: HysTransferSide, keys: K[], event: DragEvent) => void) & ((evt: "dragEnd") => void) & ((evt: "checkChange", side: HysTransferSide, keys: K[]) => void) & ((evt: "selectChange", left: K[], right: K[]) => void) & ((evt: "update:searchValues", values: Record<HysTransferSide, string>) => void) & ((evt: "update:pages", pages: Record<HysTransferSide, number>) => void) & ((evt: "update:pageSizes", sizes: Record<HysTransferSide, number>) => void);
|
|
49
|
+
}>) => import("vue").VNode & {
|
|
50
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
5
51
|
};
|
|
6
|
-
type __VLS_Props = {
|
|
7
|
-
modelValue: string[];
|
|
8
|
-
options: Item[];
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
filterable?: boolean;
|
|
11
|
-
titles?: [string, string];
|
|
12
|
-
};
|
|
13
|
-
declare const __VLS_template: () => {
|
|
14
|
-
__VLS_Slots: {
|
|
15
|
-
option?: (props: {
|
|
16
|
-
option: Item;
|
|
17
|
-
}) => any;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
21
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
-
"update:modelValue": (value: string[]) => any;
|
|
23
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
-
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
25
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
52
|
declare const _default: typeof __VLS_export;
|
|
28
53
|
export default _default;
|
|
29
|
-
type
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
54
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
55
|
+
[K in keyof T]: T[K];
|
|
56
|
+
} : {
|
|
57
|
+
[K in keyof T as K]: T[K];
|
|
58
|
+
}) & {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { type CSSProperties, type VNodeChild } from "vue";
|
|
2
|
+
import { type HysTransferKey, type HysTransferSide, type HysTransferRecord, type HysTransferPagination, type HysTransferLocale, type HysTransferHeaderInfo } from "../../composables/transfer";
|
|
3
|
+
declare const __VLS_export: <T extends object, K extends HysTransferKey>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
side: HysTransferSide;
|
|
6
|
+
title: string;
|
|
7
|
+
id: string;
|
|
8
|
+
items: readonly HysTransferRecord<T, K>[];
|
|
9
|
+
total: number;
|
|
10
|
+
filtered: number;
|
|
11
|
+
checkedKeys: readonly K[];
|
|
12
|
+
busy: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
filterable: boolean;
|
|
15
|
+
query: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
showSelectAll: boolean;
|
|
18
|
+
showInvert: boolean;
|
|
19
|
+
oneWay: boolean;
|
|
20
|
+
size: "sm" | "md" | "lg";
|
|
21
|
+
listHeight: number;
|
|
22
|
+
itemHeight: number;
|
|
23
|
+
overscan: number;
|
|
24
|
+
virtual: boolean;
|
|
25
|
+
animated: boolean;
|
|
26
|
+
draggable: boolean;
|
|
27
|
+
draggedKeys: readonly K[];
|
|
28
|
+
dropTarget: boolean;
|
|
29
|
+
words: HysTransferLocale;
|
|
30
|
+
page: number;
|
|
31
|
+
pageSize: number;
|
|
32
|
+
pagination: HysTransferPagination | false;
|
|
33
|
+
listStyle?: CSSProperties;
|
|
34
|
+
format?: (info: HysTransferHeaderInfo) => string;
|
|
35
|
+
renderContent?: (option: T, side: HysTransferSide) => VNodeChild;
|
|
36
|
+
} & {
|
|
37
|
+
onSearch?: ((value: string) => any) | undefined;
|
|
38
|
+
onDrop?: ((event: DragEvent) => any) | undefined;
|
|
39
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
40
|
+
onPage?: ((page: number) => any) | undefined;
|
|
41
|
+
onCheck?: ((key: K, checked: boolean) => any) | undefined;
|
|
42
|
+
onRemove?: ((key: K) => any) | undefined;
|
|
43
|
+
onCheckAll?: ((checked: boolean) => any) | undefined;
|
|
44
|
+
onPageSize?: ((size: number) => any) | undefined;
|
|
45
|
+
onDragStart?: ((event: DragEvent, key: K) => any) | undefined;
|
|
46
|
+
onDragEnd?: (() => any) | undefined;
|
|
47
|
+
onInvert?: (() => any) | undefined;
|
|
48
|
+
onDragOver?: ((event: DragEvent) => any) | undefined;
|
|
49
|
+
onDragLeave?: ((event: DragEvent) => any) | undefined;
|
|
50
|
+
}> & (typeof globalThis extends {
|
|
51
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
52
|
+
} ? P : {});
|
|
53
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
54
|
+
scrollTo: (options: {
|
|
55
|
+
key?: K;
|
|
56
|
+
top?: number;
|
|
57
|
+
behavior?: ScrollBehavior;
|
|
58
|
+
}) => Promise<void>;
|
|
59
|
+
focus: () => void;
|
|
60
|
+
}>) => void;
|
|
61
|
+
attrs: any;
|
|
62
|
+
slots: {
|
|
63
|
+
header?: (props: {
|
|
64
|
+
info: HysTransferHeaderInfo;
|
|
65
|
+
allChecked: boolean;
|
|
66
|
+
indeterminate: boolean;
|
|
67
|
+
}) => any;
|
|
68
|
+
} & {
|
|
69
|
+
panel?: (props: {}) => any;
|
|
70
|
+
} & {
|
|
71
|
+
option?: (props: {
|
|
72
|
+
option: T;
|
|
73
|
+
label: string;
|
|
74
|
+
checked: boolean;
|
|
75
|
+
disabled: boolean;
|
|
76
|
+
}) => any;
|
|
77
|
+
} & {
|
|
78
|
+
option?: (props: {
|
|
79
|
+
option: T;
|
|
80
|
+
label: string;
|
|
81
|
+
checked: boolean;
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
}) => any;
|
|
84
|
+
} & {
|
|
85
|
+
empty?: (props: {
|
|
86
|
+
query: string;
|
|
87
|
+
}) => any;
|
|
88
|
+
} & {
|
|
89
|
+
loading?: (props: {}) => any;
|
|
90
|
+
} & {
|
|
91
|
+
footer?: (props: {
|
|
92
|
+
info: HysTransferHeaderInfo;
|
|
93
|
+
}) => any;
|
|
94
|
+
};
|
|
95
|
+
emit: ((evt: "search", value: string) => void) & ((evt: "drop", event: DragEvent) => void) & ((evt: "scroll", event: Event) => void) & ((evt: "page", page: number) => void) & ((evt: "check", key: K, checked: boolean) => void) & ((evt: "remove", key: K) => void) & ((evt: "checkAll", checked: boolean) => void) & ((evt: "pageSize", size: number) => void) & ((evt: "dragStart", event: DragEvent, key: K) => void) & ((evt: "dragEnd") => void) & ((evt: "invert") => void) & ((evt: "dragOver", event: DragEvent) => void) & ((evt: "dragLeave", event: DragEvent) => void);
|
|
96
|
+
}>) => import("vue").VNode & {
|
|
97
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
98
|
+
};
|
|
99
|
+
declare const _default: typeof __VLS_export;
|
|
100
|
+
export default _default;
|
|
101
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
102
|
+
[K in keyof T]: T[K];
|
|
103
|
+
} : {
|
|
104
|
+
[K in keyof T as K]: T[K];
|
|
105
|
+
}) & {};
|