@aplus-frontend/ui 0.4.19 → 0.4.21
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/es/src/ap-action/item/index.vue.d.ts +2 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
- package/es/src/ap-action/item-modal/index.vue.d.ts +2 -1
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +2 -1
- package/es/src/ap-button/ap-button.vue.d.ts +2 -1
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
- package/es/src/ap-download/ap-download.vue.d.ts +5 -3
- package/es/src/ap-field/date/index.vue.d.ts +2 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +2 -1
- package/es/src/ap-field/number/index.vue.d.ts +324 -2
- package/es/src/ap-field/radio/index.vue.d.ts +98 -2
- package/es/src/ap-field/rate/index.vue.d.ts +84 -2
- package/es/src/ap-field/segmented/index.vue.d.ts +2 -1
- package/es/src/ap-field/select/index.vue.d.ts +409 -2
- package/es/src/ap-field/select/index.vue.mjs +7 -6
- package/es/src/ap-field/slider/index.vue.d.ts +259 -2
- package/es/src/ap-field/switch/index.vue.d.ts +2 -1
- package/es/src/ap-field/text/index.vue.d.ts +2 -1
- package/es/src/ap-field/text/password.vue.d.ts +2 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/es/src/ap-form/ap-form.vue.d.ts +638 -2
- package/es/src/ap-form/dependency/index.vue.d.ts +2 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +1458 -6
- package/es/src/ap-form/item/index.vue.d.ts +779 -2
- package/es/src/ap-form/item-group/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +785 -3
- package/es/src/ap-form/items/radio/index.vue.d.ts +223 -4
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/switch/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/text/group.vue.d.ts +2 -1
- package/es/src/ap-form/items/text/index.vue.d.ts +141 -3
- package/es/src/ap-form/items/text/password.vue.d.ts +150 -2
- package/es/src/ap-form/items/text-area/index.vue.d.ts +568 -4
- package/es/src/ap-form/list/index.vue.d.ts +2 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +1458 -7
- package/es/src/ap-form/provider/index.vue.d.ts +2 -1
- package/es/src/ap-form/render/control.vue.d.ts +2 -1
- package/es/src/ap-form/render/item.vue.d.ts +2 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +1458 -5
- package/es/src/ap-form/set/index.vue.d.ts +2 -1
- package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +6 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
- package/es/src/ap-list/index.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/components/index/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
- package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-table/constants.d.ts +2264 -14
- package/es/src/ap-table/utils.d.ts +1180 -8
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +5 -2
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +5 -2
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +5 -2
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
- package/es/src/business/ap-appendix/index.d.ts +1 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +5 -2
- package/es/src/business/ap-batch-action/index.d.ts +3 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +887 -5
- package/es/src/business/ap-card/ApCard.vue.d.ts +3 -2
- package/es/src/business/ap-card/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +5 -2
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +9 -8
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +10 -346
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/index.d.ts +418 -4
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +412 -340
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -14
- package/es/src/business/ap-image/ApImage.vue.d.ts +2 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
- package/es/src/business/ap-input-radio/index.d.ts +1 -1
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +6 -2
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +4 -1
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +27 -2
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +30 -4
- package/es/src/business/ap-title/ApTitle.vue.d.ts +3 -2
- package/es/src/business/ap-title/index.d.ts +1 -1
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
- package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.d.ts +146 -3
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/es/src/business/hooks/useTableRefresh.mjs +43 -24
- package/es/src/check-card/group.vue.d.ts +2 -1
- package/es/src/check-card/index.vue.d.ts +3 -2
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/full-screen/index.vue.d.ts +6 -2
- package/es/src/portal/index.vue.d.ts +2 -1
- package/es/src/resize-observer/index.vue.d.ts +2 -1
- package/es/src/scroll-bar/index.vue.d.ts +42 -3
- package/es/src/scroll-bar/internal.vue.d.ts +5 -1
- package/es/src/scroll-bar/internal.vue.mjs +11 -10
- package/es/src/scroll-view/index.vue.d.ts +92 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +828 -2
- package/lib/src/ap-action/item/index.vue.d.ts +2 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
- package/lib/src/ap-action/item-modal/index.vue.d.ts +2 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +2 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +2 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
- package/lib/src/ap-download/ap-download.vue.d.ts +5 -3
- package/lib/src/ap-field/date/index.vue.d.ts +2 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +2 -1
- package/lib/src/ap-field/number/index.vue.d.ts +324 -2
- package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
- package/lib/src/ap-field/rate/index.vue.d.ts +84 -2
- package/lib/src/ap-field/segmented/index.vue.d.ts +2 -1
- package/lib/src/ap-field/select/index.vue.d.ts +409 -2
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +259 -2
- package/lib/src/ap-field/switch/index.vue.d.ts +2 -1
- package/lib/src/ap-field/text/index.vue.d.ts +2 -1
- package/lib/src/ap-field/text/password.vue.d.ts +2 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +638 -2
- package/lib/src/ap-form/dependency/index.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +1458 -6
- package/lib/src/ap-form/item/index.vue.d.ts +779 -2
- package/lib/src/ap-form/item-group/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +785 -3
- package/lib/src/ap-form/items/radio/index.vue.d.ts +223 -4
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text/group.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +141 -3
- package/lib/src/ap-form/items/text/password.vue.d.ts +150 -2
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +568 -4
- package/lib/src/ap-form/list/index.vue.d.ts +2 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +1458 -7
- package/lib/src/ap-form/provider/index.vue.d.ts +2 -1
- package/lib/src/ap-form/render/control.vue.d.ts +2 -1
- package/lib/src/ap-form/render/item.vue.d.ts +2 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +1458 -5
- package/lib/src/ap-form/set/index.vue.d.ts +2 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +6 -2
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
- package/lib/src/ap-list/index.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/components/index/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-table/constants.d.ts +2264 -14
- package/lib/src/ap-table/utils.d.ts +1180 -8
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +5 -2
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +5 -2
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +5 -2
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
- package/lib/src/business/ap-appendix/index.d.ts +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +5 -2
- package/lib/src/business/ap-batch-action/index.d.ts +3 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
- package/lib/src/business/ap-batch-action-group/index.d.ts +887 -5
- package/lib/src/business/ap-card/ApCard.vue.d.ts +3 -2
- package/lib/src/business/ap-card/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +5 -2
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +10 -346
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +418 -4
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +412 -340
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-image/ApImage.vue.d.ts +2 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
- package/lib/src/business/ap-input-radio/index.d.ts +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +6 -2
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +4 -1
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +27 -2
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +30 -4
- package/lib/src/business/ap-title/ApTitle.vue.d.ts +3 -2
- package/lib/src/business/ap-title/index.d.ts +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +146 -3
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +2 -1
- package/lib/src/check-card/index.vue.d.ts +3 -2
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/full-screen/index.vue.d.ts +6 -2
- package/lib/src/portal/index.vue.d.ts +2 -1
- package/lib/src/resize-observer/index.vue.d.ts +2 -1
- package/lib/src/scroll-bar/index.vue.d.ts +42 -3
- package/lib/src/scroll-bar/internal.vue.d.ts +5 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +92 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +828 -2
- package/package.json +1 -1
|
@@ -1,8 +1,273 @@
|
|
|
1
1
|
import { BatchInputGroupPopoverInputProps } from '../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
+
import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
|
|
4
|
+
import { CompositionEventHandler, FocusEventHandler, ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
5
|
+
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
6
|
+
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
7
|
+
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
8
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
3
9
|
declare const _default: DefineComponent<BatchInputGroupPopoverInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
10
|
"update:value": (...args: any[]) => void;
|
|
5
11
|
}, string, PublicProps, Readonly<BatchInputGroupPopoverInputProps> & Readonly<{
|
|
6
12
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
13
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
14
|
+
textAreaRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
15
|
+
rows: NumberConstructor;
|
|
16
|
+
autosize: {
|
|
17
|
+
type: PropType<boolean | AutoSizeType>;
|
|
18
|
+
default: any;
|
|
19
|
+
};
|
|
20
|
+
autoSize: {
|
|
21
|
+
type: PropType<boolean | AutoSizeType>;
|
|
22
|
+
default: any;
|
|
23
|
+
};
|
|
24
|
+
onResize: {
|
|
25
|
+
type: PropType<(size: {
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
}) => void>;
|
|
29
|
+
};
|
|
30
|
+
onCompositionstart: {
|
|
31
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
32
|
+
};
|
|
33
|
+
onCompositionend: {
|
|
34
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
35
|
+
};
|
|
36
|
+
valueModifiers: ObjectConstructor;
|
|
37
|
+
size: {
|
|
38
|
+
type: PropType<SizeType>;
|
|
39
|
+
};
|
|
40
|
+
value: {
|
|
41
|
+
type: PropType<string | number>;
|
|
42
|
+
default: any;
|
|
43
|
+
};
|
|
44
|
+
name: StringConstructor;
|
|
45
|
+
type: {
|
|
46
|
+
type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
|
|
47
|
+
default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
48
|
+
};
|
|
49
|
+
onFocus: PropType<FocusEventHandler>;
|
|
50
|
+
onBlur: PropType<FocusEventHandler>;
|
|
51
|
+
onChange: PropType<ChangeEventHandler>;
|
|
52
|
+
onInput: PropType<ChangeEventHandler>;
|
|
53
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
54
|
+
onKeyup: PropType<KeyboardEventHandler>;
|
|
55
|
+
onMousedown: {
|
|
56
|
+
type: PropType<MouseEventHandler>;
|
|
57
|
+
default: any;
|
|
58
|
+
};
|
|
59
|
+
focused: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: any;
|
|
62
|
+
};
|
|
63
|
+
hidden: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: any;
|
|
66
|
+
};
|
|
67
|
+
disabled: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: any;
|
|
70
|
+
};
|
|
71
|
+
prefixCls: StringConstructor;
|
|
72
|
+
id: StringConstructor;
|
|
73
|
+
autofocus: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: any;
|
|
76
|
+
};
|
|
77
|
+
autocomplete: StringConstructor;
|
|
78
|
+
readonly: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: any;
|
|
81
|
+
};
|
|
82
|
+
status: PropType<"" | "error" | "warning">;
|
|
83
|
+
defaultValue: {
|
|
84
|
+
type: PropType<string | number>;
|
|
85
|
+
default: any;
|
|
86
|
+
};
|
|
87
|
+
'onUpdate:value': PropType<(val: string) => void>;
|
|
88
|
+
loading: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: any;
|
|
91
|
+
};
|
|
92
|
+
placeholder: {
|
|
93
|
+
type: PropType<string | number>;
|
|
94
|
+
};
|
|
95
|
+
lazy: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
maxlength: NumberConstructor;
|
|
100
|
+
bordered: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: any;
|
|
103
|
+
};
|
|
104
|
+
showCount: {
|
|
105
|
+
type: PropType<boolean | ShowCountProps>;
|
|
106
|
+
};
|
|
107
|
+
htmlSize: NumberConstructor;
|
|
108
|
+
onPressEnter: PropType<KeyboardEventHandler>;
|
|
109
|
+
onMouseUp: {
|
|
110
|
+
type: PropType<MouseEventHandler>;
|
|
111
|
+
default: any;
|
|
112
|
+
};
|
|
113
|
+
onRawInput: PropType<ChangeEventHandler>;
|
|
114
|
+
inputElement: VueTypeValidableDef<any>;
|
|
115
|
+
triggerFocus: PropType<() => void>;
|
|
116
|
+
handleReset: PropType<MouseEventHandler>;
|
|
117
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
118
|
+
allowClear: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: any;
|
|
121
|
+
};
|
|
122
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
123
|
+
value: string | number;
|
|
124
|
+
type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
125
|
+
onMousedown: MouseEventHandler;
|
|
126
|
+
focused: boolean;
|
|
127
|
+
hidden: boolean;
|
|
128
|
+
disabled: boolean;
|
|
129
|
+
autofocus: boolean;
|
|
130
|
+
readonly: boolean;
|
|
131
|
+
defaultValue: string | number;
|
|
132
|
+
loading: boolean;
|
|
133
|
+
lazy: boolean;
|
|
134
|
+
bordered: boolean;
|
|
135
|
+
onMouseUp: MouseEventHandler;
|
|
136
|
+
allowClear: boolean;
|
|
137
|
+
autosize: any;
|
|
138
|
+
autoSize: any;
|
|
139
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
140
|
+
P: {};
|
|
141
|
+
B: {};
|
|
142
|
+
D: {};
|
|
143
|
+
C: {};
|
|
144
|
+
M: {};
|
|
145
|
+
Defaults: {};
|
|
146
|
+
}, Readonly< ExtractPropTypes<{
|
|
147
|
+
rows: NumberConstructor;
|
|
148
|
+
autosize: {
|
|
149
|
+
type: PropType<boolean | AutoSizeType>;
|
|
150
|
+
default: any;
|
|
151
|
+
};
|
|
152
|
+
autoSize: {
|
|
153
|
+
type: PropType<boolean | AutoSizeType>;
|
|
154
|
+
default: any;
|
|
155
|
+
};
|
|
156
|
+
onResize: {
|
|
157
|
+
type: PropType<(size: {
|
|
158
|
+
width: number;
|
|
159
|
+
height: number;
|
|
160
|
+
}) => void>;
|
|
161
|
+
};
|
|
162
|
+
onCompositionstart: {
|
|
163
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
164
|
+
};
|
|
165
|
+
onCompositionend: {
|
|
166
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
167
|
+
};
|
|
168
|
+
valueModifiers: ObjectConstructor;
|
|
169
|
+
size: {
|
|
170
|
+
type: PropType<SizeType>;
|
|
171
|
+
};
|
|
172
|
+
value: {
|
|
173
|
+
type: PropType<string | number>;
|
|
174
|
+
default: any;
|
|
175
|
+
};
|
|
176
|
+
name: StringConstructor;
|
|
177
|
+
type: {
|
|
178
|
+
type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
|
|
179
|
+
default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
180
|
+
};
|
|
181
|
+
onFocus: PropType<FocusEventHandler>;
|
|
182
|
+
onBlur: PropType<FocusEventHandler>;
|
|
183
|
+
onChange: PropType<ChangeEventHandler>;
|
|
184
|
+
onInput: PropType<ChangeEventHandler>;
|
|
185
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
186
|
+
onKeyup: PropType<KeyboardEventHandler>;
|
|
187
|
+
onMousedown: {
|
|
188
|
+
type: PropType<MouseEventHandler>;
|
|
189
|
+
default: any;
|
|
190
|
+
};
|
|
191
|
+
focused: {
|
|
192
|
+
type: BooleanConstructor;
|
|
193
|
+
default: any;
|
|
194
|
+
};
|
|
195
|
+
hidden: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: any;
|
|
198
|
+
};
|
|
199
|
+
disabled: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: any;
|
|
202
|
+
};
|
|
203
|
+
prefixCls: StringConstructor;
|
|
204
|
+
id: StringConstructor;
|
|
205
|
+
autofocus: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: any;
|
|
208
|
+
};
|
|
209
|
+
autocomplete: StringConstructor;
|
|
210
|
+
readonly: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: any;
|
|
213
|
+
};
|
|
214
|
+
status: PropType<"" | "error" | "warning">;
|
|
215
|
+
defaultValue: {
|
|
216
|
+
type: PropType<string | number>;
|
|
217
|
+
default: any;
|
|
218
|
+
};
|
|
219
|
+
'onUpdate:value': PropType<(val: string) => void>;
|
|
220
|
+
loading: {
|
|
221
|
+
type: BooleanConstructor;
|
|
222
|
+
default: any;
|
|
223
|
+
};
|
|
224
|
+
placeholder: {
|
|
225
|
+
type: PropType<string | number>;
|
|
226
|
+
};
|
|
227
|
+
lazy: {
|
|
228
|
+
type: BooleanConstructor;
|
|
229
|
+
default: boolean;
|
|
230
|
+
};
|
|
231
|
+
maxlength: NumberConstructor;
|
|
232
|
+
bordered: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: any;
|
|
235
|
+
};
|
|
236
|
+
showCount: {
|
|
237
|
+
type: PropType<boolean | ShowCountProps>;
|
|
238
|
+
};
|
|
239
|
+
htmlSize: NumberConstructor;
|
|
240
|
+
onPressEnter: PropType<KeyboardEventHandler>;
|
|
241
|
+
onMouseUp: {
|
|
242
|
+
type: PropType<MouseEventHandler>;
|
|
243
|
+
default: any;
|
|
244
|
+
};
|
|
245
|
+
onRawInput: PropType<ChangeEventHandler>;
|
|
246
|
+
inputElement: VueTypeValidableDef<any>;
|
|
247
|
+
triggerFocus: PropType<() => void>;
|
|
248
|
+
handleReset: PropType<MouseEventHandler>;
|
|
249
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
250
|
+
allowClear: {
|
|
251
|
+
type: BooleanConstructor;
|
|
252
|
+
default: any;
|
|
253
|
+
};
|
|
254
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
255
|
+
value: string | number;
|
|
256
|
+
type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
257
|
+
onMousedown: MouseEventHandler;
|
|
258
|
+
focused: boolean;
|
|
259
|
+
hidden: boolean;
|
|
260
|
+
disabled: boolean;
|
|
261
|
+
autofocus: boolean;
|
|
262
|
+
readonly: boolean;
|
|
263
|
+
defaultValue: string | number;
|
|
264
|
+
loading: boolean;
|
|
265
|
+
lazy: boolean;
|
|
266
|
+
bordered: boolean;
|
|
267
|
+
onMouseUp: MouseEventHandler;
|
|
268
|
+
allowClear: boolean;
|
|
269
|
+
autosize: any;
|
|
270
|
+
autoSize: any;
|
|
271
|
+
}> | null;
|
|
272
|
+
}, HTMLDivElement>;
|
|
8
273
|
export default _default;
|
|
@@ -1,37 +1,56 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as h, onMounted as g, nextTick as x, onActivated as y, onDeactivated as D } from "vue";
|
|
2
2
|
import "../../index.mjs";
|
|
3
|
-
import { useGlobalConfig as
|
|
4
|
-
function
|
|
3
|
+
import { useGlobalConfig as E } from "../../config-provider/hooks/use-global-config.mjs";
|
|
4
|
+
function f(e) {
|
|
5
5
|
return document.querySelector(e);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
const l =
|
|
7
|
+
function L(e = ".demo") {
|
|
8
|
+
const l = f(e);
|
|
9
9
|
return l == null ? void 0 : l.scrollTop;
|
|
10
10
|
}
|
|
11
|
-
function q(e, l = "") {
|
|
12
|
-
const
|
|
13
|
-
|
|
11
|
+
function q(e, l = ".demo") {
|
|
12
|
+
const s = f(l);
|
|
13
|
+
s && (s.scrollTop = e);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const l =
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
function k(e) {
|
|
16
|
+
const l = E("scrollYDomName");
|
|
17
|
+
let s = !0;
|
|
18
|
+
const d = h(0), m = h(0), R = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreshType) ? e == null ? void 0 : e.refreshType : "submit") ?? "submit", T = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
|
|
19
|
+
let n = !0;
|
|
20
|
+
const b = (c) => {
|
|
21
|
+
if (s === !1) return;
|
|
22
|
+
const r = c.target;
|
|
23
|
+
m.value = r.scrollTop;
|
|
24
|
+
};
|
|
25
|
+
return g(() => {
|
|
26
|
+
x(() => {
|
|
27
|
+
n = !1;
|
|
26
28
|
});
|
|
27
29
|
}), y(() => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
const c = T == null ? void 0 : T();
|
|
31
|
+
if (n) {
|
|
32
|
+
setTimeout(() => {
|
|
33
|
+
const r = f(l.value);
|
|
34
|
+
r && r.addEventListener("scroll", b);
|
|
35
|
+
});
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
c && setTimeout(() => {
|
|
39
|
+
var a, u, t, S, o, v, Y;
|
|
40
|
+
s = !0, (u = (a = e == null ? void 0 : e.apTableRef) == null ? void 0 : a.value) == null || u[R](), (Y = (v = (o = (S = (t = e == null ? void 0 : e.apTableRef) == null ? void 0 : t.value) == null ? void 0 : S.scrollBar) == null ? void 0 : o.x) == null ? void 0 : v.scroll) == null || Y.call(v, d.value), q(m.value, l.value);
|
|
41
|
+
const r = f(l.value);
|
|
42
|
+
r && r.addEventListener("scroll", b);
|
|
43
|
+
});
|
|
44
|
+
}), D(() => {
|
|
45
|
+
var r, a, u, t;
|
|
46
|
+
s = !1, d.value = ((t = (u = (a = (r = e == null ? void 0 : e.apTableRef) == null ? void 0 : r.value) == null ? void 0 : a.scrollBar) == null ? void 0 : u.x) == null ? void 0 : t.currentScroll) ?? 0, m.value = L(l.value) ?? 0;
|
|
47
|
+
const c = f(l.value);
|
|
48
|
+
c && c.removeEventListener("scroll", b);
|
|
30
49
|
}), {
|
|
31
|
-
tableScrollX:
|
|
32
|
-
tableScrollY:
|
|
50
|
+
tableScrollX: d,
|
|
51
|
+
tableScrollY: m
|
|
33
52
|
};
|
|
34
53
|
}
|
|
35
54
|
export {
|
|
36
|
-
|
|
55
|
+
k as useTableRefresh
|
|
37
56
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CheckCardGroupProps, CheckCardValueType } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, CSSProperties, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
4
5
|
slots: {
|
|
5
6
|
default?(_: {}): any;
|
|
6
7
|
};
|
|
7
8
|
refs: {};
|
|
8
|
-
|
|
9
|
+
rootEl: any;
|
|
9
10
|
};
|
|
10
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
12
|
declare const __VLS_component: DefineComponent<CheckCardGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -6,9 +6,10 @@ type CheckCardSlots = {
|
|
|
6
6
|
}): void;
|
|
7
7
|
};
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
9
10
|
slots: Readonly<CheckCardSlots> & CheckCardSlots;
|
|
10
11
|
refs: {};
|
|
11
|
-
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
12
13
|
};
|
|
13
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
15
|
declare const __VLS_component: DefineComponent<CheckCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -22,7 +23,7 @@ declare const __VLS_component: DefineComponent<CheckCardProps, {}, {}, {}, {}, C
|
|
|
22
23
|
checked: boolean;
|
|
23
24
|
stopPropagation: boolean | ((event: MouseEvent) => boolean);
|
|
24
25
|
indicatorSize: number;
|
|
25
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
26
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
28
|
export default _default;
|
|
28
29
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -3,7 +3,7 @@ import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-
|
|
|
3
3
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
import { UnwrapRefSimple } from '@vue/reactivity';
|
|
5
5
|
declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType>> & PublicProps;
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
8
8
|
add: (defaultValue?: any, insertIndex?: number) => void;
|
|
9
9
|
remove: (index: number | number[]) => void;
|
|
@@ -6,7 +6,7 @@ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, S
|
|
|
6
6
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
8
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & EditableTableProps<RecordType>> & PublicProps;
|
|
9
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & EditableTableProps<RecordType> & Partial<{}>> & PublicProps;
|
|
10
10
|
expose(exposed: ShallowUnwrapRef<{
|
|
11
11
|
resetFields: () => void;
|
|
12
12
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
@@ -4,6 +4,7 @@ declare function enter(mode: FullScreenMode, force?: boolean): Promise<void>;
|
|
|
4
4
|
declare function exit(force?: boolean): Promise<void>;
|
|
5
5
|
declare function toggle(mode: FullScreenMode, force?: boolean): Promise<void>;
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
7
8
|
slots: {
|
|
8
9
|
default?(_: {
|
|
9
10
|
full: boolean;
|
|
@@ -18,7 +19,7 @@ declare function __VLS_template(): {
|
|
|
18
19
|
target: unknown;
|
|
19
20
|
portalRootRef: HTMLDivElement;
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
+
rootEl: any;
|
|
22
23
|
};
|
|
23
24
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
25
|
declare const __VLS_component: DefineComponent<FullScreenProps, {
|
|
@@ -29,7 +30,10 @@ declare const __VLS_component: DefineComponent<FullScreenProps, {
|
|
|
29
30
|
enter: typeof enter;
|
|
30
31
|
exit: typeof exit;
|
|
31
32
|
toggle: typeof toggle;
|
|
32
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<FullScreenProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
33
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<FullScreenProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
34
|
+
target: unknown;
|
|
35
|
+
portalRootRef: HTMLDivElement;
|
|
36
|
+
}, any>;
|
|
33
37
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
38
|
export default _default;
|
|
35
39
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DefineComponent, TeleportProps, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
default?(_: {}): any;
|
|
5
6
|
};
|
|
6
7
|
refs: {};
|
|
7
|
-
|
|
8
|
+
rootEl: any;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
11
|
declare const __VLS_component: DefineComponent<Partial< TeleportProps>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Partial< TeleportProps>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -3,11 +3,12 @@ import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, Compo
|
|
|
3
3
|
declare function observe(): void;
|
|
4
4
|
declare function unobserve(): void;
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
6
7
|
slots: {
|
|
7
8
|
default?(_: {}): any;
|
|
8
9
|
};
|
|
9
10
|
refs: {};
|
|
10
|
-
|
|
11
|
+
rootEl: any;
|
|
11
12
|
};
|
|
12
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
14
|
declare const __VLS_component: DefineComponent<ResizeObserverProps, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ScrollBarProps, ScrollBarDirection } from './interface';
|
|
2
|
-
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { ScrollBarProps, ScrollBarDirection, InternalScrollBarProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, Ref, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<ScrollBarProps, {
|
|
4
4
|
currentScroll: ComputedRef<number | undefined>;
|
|
5
5
|
scroll: (percent: number) => void | undefined;
|
|
@@ -12,5 +12,44 @@ declare const _default: DefineComponent<ScrollBarProps, {
|
|
|
12
12
|
trackSpeed: number;
|
|
13
13
|
barLength: number;
|
|
14
14
|
showTrack: boolean;
|
|
15
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
16
|
+
barRef: CreateComponentPublicInstanceWithMixins<Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
17
|
+
currentScroll: Ref<number, number>;
|
|
18
|
+
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
19
|
+
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
20
|
+
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
21
|
+
scroll: (percent: number) => void;
|
|
22
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
23
|
+
scroll: number;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
direction: ScrollBarDirection;
|
|
26
|
+
trackSpeed: number;
|
|
27
|
+
barLength: number;
|
|
28
|
+
showTrack: boolean;
|
|
29
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
30
|
+
container: HTMLDivElement;
|
|
31
|
+
track: HTMLDivElement;
|
|
32
|
+
bar: HTMLDivElement;
|
|
33
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
34
|
+
P: {};
|
|
35
|
+
B: {};
|
|
36
|
+
D: {};
|
|
37
|
+
C: {};
|
|
38
|
+
M: {};
|
|
39
|
+
Defaults: {};
|
|
40
|
+
}, Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
41
|
+
currentScroll: Ref<number, number>;
|
|
42
|
+
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
43
|
+
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
44
|
+
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
45
|
+
scroll: (percent: number) => void;
|
|
46
|
+
}, {}, {}, {}, {
|
|
47
|
+
scroll: number;
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
direction: ScrollBarDirection;
|
|
50
|
+
trackSpeed: number;
|
|
51
|
+
barLength: number;
|
|
52
|
+
showTrack: boolean;
|
|
53
|
+
}> | null;
|
|
54
|
+
}, any>;
|
|
16
55
|
export default _default;
|
|
@@ -14,5 +14,9 @@ declare const _default: DefineComponent<InternalScrollBarProps, {
|
|
|
14
14
|
trackSpeed: number;
|
|
15
15
|
barLength: number;
|
|
16
16
|
showTrack: boolean;
|
|
17
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
18
|
+
container: HTMLDivElement;
|
|
19
|
+
track: HTMLDivElement;
|
|
20
|
+
bar: HTMLDivElement;
|
|
21
|
+
}, HTMLDivElement>;
|
|
18
22
|
export default _default;
|
|
@@ -21,7 +21,7 @@ const I = /* @__PURE__ */ V({
|
|
|
21
21
|
onScrollEnd: {}
|
|
22
22
|
},
|
|
23
23
|
setup(D, { expose: M }) {
|
|
24
|
-
const t = D, k = f(), c = f(), l = f(), { b: B, e: v, m: P, em: d, cssVar: R } = Y("scroll-bar"), r = f(t.scroll), { handleMouseDown:
|
|
24
|
+
const t = D, k = f(), c = f(), l = f(), { b: B, e: v, m: P, em: d, cssVar: R } = Y("scroll-bar"), r = f(t.scroll), { handleMouseDown: g } = X({
|
|
25
25
|
currentScroll: r,
|
|
26
26
|
track: c,
|
|
27
27
|
bar: l,
|
|
@@ -60,11 +60,11 @@ const I = /* @__PURE__ */ V({
|
|
|
60
60
|
const n = o(c), i = o(l);
|
|
61
61
|
if (!n || !i)
|
|
62
62
|
return;
|
|
63
|
-
document.addEventListener("pointermove",
|
|
63
|
+
document.addEventListener("pointermove", S), document.addEventListener("pointerup", w);
|
|
64
64
|
const a = n.getBoundingClientRect(), y = i.getBoundingClientRect();
|
|
65
65
|
t.direction === "vertical" ? (b = a.height, s = y.top - a.top, u = e.clientY) : (b = a.width, s = y.left - a.left, u = e.clientX), (E = t.onScrollStart) == null || E.call(t, o(r));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function S(e) {
|
|
68
68
|
var a;
|
|
69
69
|
e.stopPropagation(), e.preventDefault();
|
|
70
70
|
let n;
|
|
@@ -72,15 +72,16 @@ const I = /* @__PURE__ */ V({
|
|
|
72
72
|
const i = n / b / (100 - t.barLength) * 1e4;
|
|
73
73
|
r.value = C(i), (a = t.onScroll) == null || a.call(t, o(r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function w(e) {
|
|
76
76
|
var n;
|
|
77
|
-
e.preventDefault(), document.removeEventListener("pointermove",
|
|
77
|
+
e.preventDefault(), document.removeEventListener("pointermove", S), document.removeEventListener("pointerup", w), (n = t.onScrollEnd) == null || n.call(t, o(r));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function p(e) {
|
|
80
80
|
e.cancelable && (e.stopPropagation(), e.preventDefault());
|
|
81
81
|
}
|
|
82
82
|
function $(e) {
|
|
83
|
-
|
|
83
|
+
var n;
|
|
84
|
+
Math.abs(o(r) - e) <= 1e-3 || (r.value = C(e), (n = t.onScroll) == null || n.call(t, e));
|
|
84
85
|
}
|
|
85
86
|
return M({
|
|
86
87
|
currentScroll: r,
|
|
@@ -110,8 +111,8 @@ const I = /* @__PURE__ */ V({
|
|
|
110
111
|
e.showTrack ? null : o(d)("track", "hidden")
|
|
111
112
|
]),
|
|
112
113
|
onPointerdown: n[0] || (n[0] = //@ts-ignore
|
|
113
|
-
(...i) => o(
|
|
114
|
-
onTouchstart:
|
|
114
|
+
(...i) => o(g) && o(g)(...i)),
|
|
115
|
+
onTouchstart: p
|
|
115
116
|
}, null, 34),
|
|
116
117
|
L("div", {
|
|
117
118
|
ref_key: "bar",
|
|
@@ -122,7 +123,7 @@ const I = /* @__PURE__ */ V({
|
|
|
122
123
|
e.disabled ? o(d)("bar", "disabled") : null
|
|
123
124
|
]),
|
|
124
125
|
onPointerdown: T,
|
|
125
|
-
onTouchstart:
|
|
126
|
+
onTouchstart: p
|
|
126
127
|
}, null, 34)
|
|
127
128
|
], 6));
|
|
128
129
|
}
|