@aplus-frontend/ui 0.4.19 → 0.4.20
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 +34 -20
- 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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue");require("../../index.js");const y=require("../../config-provider/hooks/use-global-config.js");function b(e){return document.querySelector(e)}function R(e=".demo"){const l=b(e);return l==null?void 0:l.scrollTop}function Y(e,l=".demo"){const s=b(l);s&&(s.scrollTop=e)}function q(e){const l=y.useGlobalConfig("scrollYDomName");let s=!0;const d=c.ref(0),v=c.ref(0),h=(["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);let n=!0;const S=u=>{if(s===!1)return;const r=u.target;v.value=r.scrollTop};return c.onMounted(()=>{c.nextTick(()=>{n=!1})}),c.onActivated(()=>{setTimeout(()=>{const r=b(l.value);r&&r.addEventListener("scroll",S)});const u=T==null?void 0:T();n||u&&setTimeout(()=>{var r,a,t,f,g,m,o;s=!0,(a=(r=e==null?void 0:e.apTableRef)==null?void 0:r.value)==null||a[h](),(o=(m=(g=(f=(t=e==null?void 0:e.apTableRef)==null?void 0:t.value)==null?void 0:f.scrollBar)==null?void 0:g.x)==null?void 0:m.scroll)==null||o.call(m,d.value),Y(v.value,l.value)})}),c.onDeactivated(()=>{var r,a,t,f;s=!1,d.value=((f=(t=(a=(r=e==null?void 0:e.apTableRef)==null?void 0:r.value)==null?void 0:a.scrollBar)==null?void 0:t.x)==null?void 0:f.currentScroll)??0,v.value=R(l.value)??0;const u=b(l.value);u&&u.removeEventListener("scroll",S)}),{tableScrollX:d,tableScrollY:v}}exports.useTableRefresh=q;
|
|
@@ -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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../config-provider/index.js");const T=require("./hooks/use-track.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../config-provider/index.js");const T=require("./hooks/use-track.js"),y=require("./utils/index.js"),P=require("../config-provider/hooks/use-namespace.js"),B=t.defineComponent({__name:"internal",props:{direction:{default:"vertical"},scroll:{default:0},barLength:{default:35},width:{},barColor:{},trackColor:{},trackWidth:{},disabled:{type:Boolean,default:!1},showTrack:{type:Boolean,default:!0},trackSpeed:{default:2},onScrollStart:{},onScroll:{},onScrollEnd:{}},setup(E,{expose:p}){const n=E,h=t.ref(),c=t.ref(),l=t.ref(),{b:L,e:b,m:C,em:u,cssVar:R}=P.useNamespace("scroll-bar"),o=t.ref(n.scroll),{handleMouseDown:k}=T.useTrack({currentScroll:o,track:c,bar:l,type:t.toRef(n,"direction"),trackSpeed:t.toRef(n,"trackSpeed"),barLength:t.toRef(n,"barLength"),disabled:t.toRef(n,"disabled"),onDown:e=>{var r;(r=n.onScrollStart)==null||r.call(n,e)},onUp:e=>{var r;(r=n.onScrollEnd)==null||r.call(n,e)},onScroll:e=>{var r;(r=n.onScroll)==null||r.call(n,e)}});t.watch(()=>n.scroll,e=>{o.value=e}),t.watchEffect(()=>{if(!t.unref(l))return;const e=`${(100-n.barLength)*o.value/n.barLength}%`,r=`${n.barLength}%`;n.direction==="vertical"?(l.value.style.height=r,l.value.style.transform=`translate3d(0, ${e}, 0)`):(l.value.style.width=r,l.value.style.transform=`translate3d(${e}, 0, 0)`)});let f,s,d;function M(e){var w;if(n.disabled||e.button!==0)return;e.preventDefault(),e.stopPropagation();const r=t.unref(c),i=t.unref(l);if(!r||!i)return;document.addEventListener("pointermove",v),document.addEventListener("pointerup",m);const a=r.getBoundingClientRect(),S=i.getBoundingClientRect();n.direction==="vertical"?(f=a.height,s=S.top-a.top,d=e.clientY):(f=a.width,s=S.left-a.left,d=e.clientX),(w=n.onScrollStart)==null||w.call(n,t.unref(o))}function v(e){var a;e.stopPropagation(),e.preventDefault();let r;n.direction==="vertical"?r=s+e.clientY-d:r=s+e.clientX-d;const i=r/f/(100-n.barLength)*1e4;o.value=y.ensureRangeValue(i),(a=n.onScroll)==null||a.call(n,t.unref(o))}function m(e){var r;e.preventDefault(),document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",m),(r=n.onScrollEnd)==null||r.call(n,t.unref(o))}function g(e){e.cancelable&&(e.stopPropagation(),e.preventDefault())}function D(e){var r;Math.abs(t.unref(o)-e)<=.001||(o.value=y.ensureRangeValue(e),(r=n.onScroll)==null||r.call(n,e))}return p({currentScroll:o,container:h,bar:l,track:c,scroll:D}),(e,r)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"container",ref:h,class:t.normalizeClass([t.unref(L)(),t.unref(C)(e.direction)]),style:t.normalizeStyle(t.unref(R)({"bar-color":e.barColor,"track-color":e.trackColor,"bar-width":e.width?`${e.width}px`:void 0,"track-width":e.trackWidth?`${e.trackWidth}px`:void 0}))},[t.createElementVNode("div",{ref_key:"track",ref:c,class:t.normalizeClass([t.unref(b)("track"),e.disabled?t.unref(u)("track","disabled"):null,e.showTrack?null:t.unref(u)("track","hidden")]),onPointerdown:r[0]||(r[0]=(...i)=>t.unref(k)&&t.unref(k)(...i)),onTouchstart:g},null,34),t.createElementVNode("div",{ref_key:"bar",ref:l,class:t.normalizeClass([t.unref(b)("bar"),t.unref(u)("bar",e.direction),e.disabled?t.unref(u)("bar","disabled"):null]),onPointerdown:M,onTouchstart:g},null,34)],6))}});exports.default=B;
|
|
@@ -5,6 +5,7 @@ declare function scroll(x?: number, y?: number): void;
|
|
|
5
5
|
declare function scrollTo({ smooth, left, top }: ScrollOptions): void;
|
|
6
6
|
declare function scrollIntoView(element: HTMLElement, position?: 'start' | 'center' | 'end'): void;
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
8
9
|
slots: {
|
|
9
10
|
default?(_: {}): any;
|
|
10
11
|
};
|
|
@@ -24,7 +25,11 @@ declare function __VLS_template(): {
|
|
|
24
25
|
trackSpeed: number;
|
|
25
26
|
barLength: number;
|
|
26
27
|
showTrack: boolean;
|
|
27
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
28
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
29
|
+
container: HTMLDivElement;
|
|
30
|
+
track: HTMLDivElement;
|
|
31
|
+
bar: HTMLDivElement;
|
|
32
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
28
33
|
P: {};
|
|
29
34
|
B: {};
|
|
30
35
|
D: {};
|
|
@@ -58,7 +63,11 @@ declare function __VLS_template(): {
|
|
|
58
63
|
trackSpeed: number;
|
|
59
64
|
barLength: number;
|
|
60
65
|
showTrack: boolean;
|
|
61
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
66
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
67
|
+
container: HTMLDivElement;
|
|
68
|
+
track: HTMLDivElement;
|
|
69
|
+
bar: HTMLDivElement;
|
|
70
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
62
71
|
P: {};
|
|
63
72
|
B: {};
|
|
64
73
|
D: {};
|
|
@@ -80,7 +89,7 @@ declare function __VLS_template(): {
|
|
|
80
89
|
showTrack: boolean;
|
|
81
90
|
}> | null;
|
|
82
91
|
};
|
|
83
|
-
|
|
92
|
+
rootEl: HTMLDivElement;
|
|
84
93
|
};
|
|
85
94
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
86
95
|
declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
@@ -116,7 +125,86 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
116
125
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
117
126
|
onScrollEnd?: ((percent: number) => void) | undefined;
|
|
118
127
|
};
|
|
119
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
128
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
129
|
+
containerRef: HTMLDivElement;
|
|
130
|
+
contentRef: HTMLDivElement;
|
|
131
|
+
yBarRef: CreateComponentPublicInstanceWithMixins<Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
132
|
+
currentScroll: Ref<number, number>;
|
|
133
|
+
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
134
|
+
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
135
|
+
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
136
|
+
scroll: (percent: number) => void;
|
|
137
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
138
|
+
scroll: number;
|
|
139
|
+
disabled: boolean;
|
|
140
|
+
direction: ScrollBarDirection;
|
|
141
|
+
trackSpeed: number;
|
|
142
|
+
barLength: number;
|
|
143
|
+
showTrack: boolean;
|
|
144
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
145
|
+
container: HTMLDivElement;
|
|
146
|
+
track: HTMLDivElement;
|
|
147
|
+
bar: HTMLDivElement;
|
|
148
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
149
|
+
P: {};
|
|
150
|
+
B: {};
|
|
151
|
+
D: {};
|
|
152
|
+
C: {};
|
|
153
|
+
M: {};
|
|
154
|
+
Defaults: {};
|
|
155
|
+
}, Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
156
|
+
currentScroll: Ref<number, number>;
|
|
157
|
+
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
158
|
+
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
159
|
+
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
160
|
+
scroll: (percent: number) => void;
|
|
161
|
+
}, {}, {}, {}, {
|
|
162
|
+
scroll: number;
|
|
163
|
+
disabled: boolean;
|
|
164
|
+
direction: ScrollBarDirection;
|
|
165
|
+
trackSpeed: number;
|
|
166
|
+
barLength: number;
|
|
167
|
+
showTrack: boolean;
|
|
168
|
+
}> | null;
|
|
169
|
+
xBarRef: CreateComponentPublicInstanceWithMixins<Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
170
|
+
currentScroll: Ref<number, number>;
|
|
171
|
+
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
172
|
+
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
173
|
+
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
174
|
+
scroll: (percent: number) => void;
|
|
175
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
176
|
+
scroll: number;
|
|
177
|
+
disabled: boolean;
|
|
178
|
+
direction: ScrollBarDirection;
|
|
179
|
+
trackSpeed: number;
|
|
180
|
+
barLength: number;
|
|
181
|
+
showTrack: boolean;
|
|
182
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
183
|
+
container: HTMLDivElement;
|
|
184
|
+
track: HTMLDivElement;
|
|
185
|
+
bar: HTMLDivElement;
|
|
186
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
187
|
+
P: {};
|
|
188
|
+
B: {};
|
|
189
|
+
D: {};
|
|
190
|
+
C: {};
|
|
191
|
+
M: {};
|
|
192
|
+
Defaults: {};
|
|
193
|
+
}, Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
194
|
+
currentScroll: Ref<number, number>;
|
|
195
|
+
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
196
|
+
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
197
|
+
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
198
|
+
scroll: (percent: number) => void;
|
|
199
|
+
}, {}, {}, {}, {
|
|
200
|
+
scroll: number;
|
|
201
|
+
disabled: boolean;
|
|
202
|
+
direction: ScrollBarDirection;
|
|
203
|
+
trackSpeed: number;
|
|
204
|
+
barLength: number;
|
|
205
|
+
showTrack: boolean;
|
|
206
|
+
}> | null;
|
|
207
|
+
}, HTMLDivElement>;
|
|
120
208
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
121
209
|
export default _default;
|
|
122
210
|
type __VLS_WithTemplateSlots<T, S> = T & {
|