@aplus-frontend/ui 0.3.8 → 0.3.10
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 +4 -3
- package/es/src/ap-button/ap-action-button.vue.mjs +11 -11
- package/es/src/ap-button/ap-button.vue.d.ts +4 -3
- package/es/src/ap-button/ap-button.vue.mjs +36 -36
- package/es/src/ap-button/interface.d.ts +4 -0
- 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 +2 -1
- package/es/src/ap-field/rate/index.vue.d.ts +2 -1
- package/es/src/ap-field/segmented/index.vue.d.ts +2 -1
- package/es/src/ap-field/select/index.vue.d.ts +2 -1
- package/es/src/ap-field/slider/index.vue.d.ts +2 -1
- 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-form/ap-form.vue.d.ts +6 -4
- package/es/src/ap-form/dependency/index.vue.d.ts +2 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -2
- package/es/src/ap-form/item/index.vue.d.ts +2 -1
- 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 +2 -1
- package/es/src/ap-form/items/radio/index.vue.d.ts +2 -1
- 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 +2 -1
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +2 -1
- package/es/src/ap-form/list/index.vue.d.ts +2 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -2
- package/es/src/ap-form/modal-form/index.vue.mjs +61 -57
- 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 +3 -2
- 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 +3 -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 +3 -5
- package/es/src/ap-list/index.vue.mjs +37 -39
- package/es/src/ap-list/interface.d.ts +3 -3
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/index.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +3 -5
- package/es/src/ap-table/ap-table.vue2.mjs +75 -78
- 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 +1 -1
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +209 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +13 -3
- package/es/src/ap-table/hooks/use-table-paging.mjs +131 -126
- package/es/src/ap-table/interface.d.ts +4 -3
- package/es/src/ap-table/utils.d.ts +1 -0
- package/es/src/ap-table/utils.mjs +10 -5
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -2
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/Picture.vue.d.ts +5 -9
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -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 +3 -2
- package/es/src/business/ap-batch-action/index.d.ts +1 -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 +3 -5
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
- 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 +3 -3
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
- 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 +3 -2
- package/es/src/business/ap-ladder/index.d.ts +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +3 -4
- package/es/src/business/ap-select-layout/interface.d.ts +1 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +58 -56
- 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 +3 -2
- 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 +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
- 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 +3 -5
- package/es/src/editable-table/index.vue.d.ts +3 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- 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 +4 -3
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +4 -3
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/interface.d.ts +4 -0
- 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 +2 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -1
- package/lib/src/ap-field/segmented/index.vue.d.ts +2 -1
- package/lib/src/ap-field/select/index.vue.d.ts +2 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -1
- 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-form/ap-form.vue.d.ts +6 -4
- package/lib/src/ap-form/dependency/index.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -2
- package/lib/src/ap-form/item/index.vue.d.ts +2 -1
- 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 +2 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -1
- 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 +2 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +2 -1
- package/lib/src/ap-form/list/index.vue.d.ts +2 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -2
- package/lib/src/ap-form/modal-form/index.vue.js +1 -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 +3 -2
- 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 +3 -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 +3 -5
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +3 -3
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/index.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +3 -5
- package/lib/src/ap-table/ap-table.vue2.js +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 +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +13 -3
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +4 -3
- package/lib/src/ap-table/utils.d.ts +1 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -2
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +5 -9
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -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 +3 -2
- package/lib/src/business/ap-batch-action/index.d.ts +1 -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 +3 -5
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
- 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 +3 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
- 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 +3 -2
- package/lib/src/business/ap-ladder/index.d.ts +1 -1
- package/lib/src/business/ap-select-layout/index.d.ts +3 -4
- package/lib/src/business/ap-select-layout/interface.d.ts +1 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- 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 +3 -2
- 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 +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +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 +3 -5
- package/lib/src/editable-table/index.vue.d.ts +3 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/package.json +1 -1
- package/index.ts +0 -19
|
@@ -1,352 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
|
-
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
7
|
-
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
8
|
-
import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
9
|
-
declare const _default: DefineComponent<Omit<Partial< ExtractPropTypes<{
|
|
10
|
-
value: {
|
|
11
|
-
type: PropType<SelectValue>;
|
|
12
|
-
default: SelectValue;
|
|
13
|
-
};
|
|
14
|
-
defaultValue: {
|
|
15
|
-
type: PropType<SelectValue>;
|
|
16
|
-
default: SelectValue;
|
|
17
|
-
};
|
|
18
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
19
|
-
suffixIcon: VueTypeValidableDef<any>;
|
|
20
|
-
itemIcon: VueTypeValidableDef<any>;
|
|
21
|
-
size: {
|
|
22
|
-
type: PropType<ButtonSize>;
|
|
23
|
-
default: ButtonSize;
|
|
24
|
-
};
|
|
25
|
-
mode: {
|
|
26
|
-
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
27
|
-
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
28
|
-
};
|
|
29
|
-
bordered: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
transitionName: StringConstructor;
|
|
34
|
-
choiceTransitionName: {
|
|
35
|
-
type: PropType<"">;
|
|
36
|
-
default: "";
|
|
37
|
-
};
|
|
38
|
-
popupClassName: StringConstructor;
|
|
39
|
-
dropdownClassName: StringConstructor;
|
|
40
|
-
placement: {
|
|
41
|
-
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
42
|
-
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
43
|
-
};
|
|
44
|
-
status: {
|
|
45
|
-
type: PropType<"" | "error" | "warning">;
|
|
46
|
-
default: "" | "error" | "warning";
|
|
47
|
-
};
|
|
48
|
-
'onUpdate:value': {
|
|
49
|
-
type: PropType<(val: SelectValue) => void>;
|
|
50
|
-
default: (val: SelectValue) => void;
|
|
51
|
-
};
|
|
52
|
-
children: PropType< VueNode[]>;
|
|
53
|
-
listHeight: NumberConstructor;
|
|
54
|
-
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
55
|
-
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
56
|
-
tabindex: NumberConstructor;
|
|
57
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
58
|
-
onFocus: {
|
|
59
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
60
|
-
};
|
|
61
|
-
onBlur: {
|
|
62
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
63
|
-
};
|
|
64
|
-
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
65
|
-
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
66
|
-
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
67
|
-
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
68
|
-
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
69
|
-
open: {
|
|
70
|
-
type: BooleanConstructor;
|
|
71
|
-
default: any;
|
|
72
|
-
};
|
|
73
|
-
animation: StringConstructor;
|
|
74
|
-
direction: {
|
|
75
|
-
type: PropType<"rtl" | "ltr">;
|
|
76
|
-
};
|
|
77
|
-
disabled: {
|
|
78
|
-
type: BooleanConstructor;
|
|
79
|
-
default: any;
|
|
80
|
-
};
|
|
81
|
-
prefixCls: StringConstructor;
|
|
82
|
-
id: StringConstructor;
|
|
83
|
-
autofocus: BooleanConstructor;
|
|
84
|
-
getPopupContainer: {
|
|
85
|
-
type: PropType<RenderDOMFunc>;
|
|
86
|
-
};
|
|
87
|
-
virtual: {
|
|
88
|
-
type: BooleanConstructor;
|
|
89
|
-
default: any;
|
|
90
|
-
};
|
|
91
|
-
dropdownMatchSelectWidth: {
|
|
92
|
-
type: PropType<number | boolean>;
|
|
93
|
-
default: any;
|
|
94
|
-
};
|
|
95
|
-
options: PropType< DefaultOptionType[]>;
|
|
96
|
-
showAction: {
|
|
97
|
-
type: PropType<("click" | "focus")[]>;
|
|
98
|
-
};
|
|
99
|
-
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
100
|
-
loading: {
|
|
101
|
-
type: BooleanConstructor;
|
|
102
|
-
default: any;
|
|
103
|
-
};
|
|
104
|
-
placeholder: VueTypeValidableDef<any>;
|
|
105
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
106
|
-
allowClear: {
|
|
107
|
-
type: BooleanConstructor;
|
|
108
|
-
default: any;
|
|
109
|
-
};
|
|
110
|
-
onSearch: PropType<(value: string) => void>;
|
|
111
|
-
fieldNames: PropType<FieldNames>;
|
|
112
|
-
dropdownStyle: {
|
|
113
|
-
type: PropType<CSSProperties>;
|
|
114
|
-
};
|
|
115
|
-
dropdownRender: {
|
|
116
|
-
type: PropType<DropdownRender>;
|
|
117
|
-
};
|
|
118
|
-
dropdownAlign: PropType<AlignType>;
|
|
119
|
-
showSearch: {
|
|
120
|
-
type: BooleanConstructor;
|
|
121
|
-
default: any;
|
|
122
|
-
};
|
|
123
|
-
searchValue: StringConstructor;
|
|
124
|
-
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
125
|
-
removeIcon: VueTypeValidableDef<any>;
|
|
126
|
-
maxTagCount: {
|
|
127
|
-
type: PropType<number | "responsive">;
|
|
128
|
-
};
|
|
129
|
-
maxTagTextLength: NumberConstructor;
|
|
130
|
-
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
131
|
-
tokenSeparators: {
|
|
132
|
-
type: PropType<string[]>;
|
|
133
|
-
};
|
|
134
|
-
tagRender: {
|
|
135
|
-
type: PropType<(props: CustomTagProps) => any>;
|
|
136
|
-
};
|
|
137
|
-
optionLabelRender: {
|
|
138
|
-
type: PropType<(option: Record<string, any>) => any>;
|
|
139
|
-
};
|
|
140
|
-
onClear: PropType<() => void>;
|
|
141
|
-
defaultOpen: {
|
|
142
|
-
type: BooleanConstructor;
|
|
143
|
-
default: any;
|
|
144
|
-
};
|
|
145
|
-
onDropdownVisibleChange: {
|
|
146
|
-
type: PropType<(open: boolean) => void>;
|
|
147
|
-
};
|
|
148
|
-
showArrow: {
|
|
149
|
-
type: BooleanConstructor;
|
|
150
|
-
default: any;
|
|
151
|
-
};
|
|
152
|
-
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
153
|
-
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
154
|
-
listItemHeight: NumberConstructor;
|
|
155
|
-
inputValue: StringConstructor;
|
|
156
|
-
autoClearSearchValue: {
|
|
157
|
-
type: BooleanConstructor;
|
|
158
|
-
default: any;
|
|
159
|
-
};
|
|
160
|
-
filterOption: {
|
|
161
|
-
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
162
|
-
default: any;
|
|
163
|
-
};
|
|
164
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
165
|
-
optionFilterProp: StringConstructor;
|
|
166
|
-
optionLabelProp: StringConstructor;
|
|
167
|
-
defaultActiveFirstOption: {
|
|
168
|
-
type: BooleanConstructor;
|
|
169
|
-
default: any;
|
|
170
|
-
};
|
|
171
|
-
labelInValue: {
|
|
172
|
-
type: BooleanConstructor;
|
|
173
|
-
default: any;
|
|
174
|
-
};
|
|
175
|
-
}>>, "mode" | "suffixIcon"> & {
|
|
1
|
+
import { SelectProps } from '@aplus-frontend/antdv';
|
|
2
|
+
import { SelectValue } from '@aplus-frontend/antdv/es/select';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
type __VLS_Props = Omit<SelectProps, 'mode' | 'suffixIcon'> & {
|
|
176
5
|
__parentRef: HTMLElement;
|
|
177
|
-
}
|
|
6
|
+
};
|
|
7
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
178
8
|
submit: (value: SelectValue) => any;
|
|
179
9
|
"open-change": (value: boolean) => any;
|
|
180
|
-
}, string, PublicProps, Readonly<
|
|
181
|
-
value: {
|
|
182
|
-
type: PropType<SelectValue>;
|
|
183
|
-
default: SelectValue;
|
|
184
|
-
};
|
|
185
|
-
defaultValue: {
|
|
186
|
-
type: PropType<SelectValue>;
|
|
187
|
-
default: SelectValue;
|
|
188
|
-
};
|
|
189
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
190
|
-
suffixIcon: VueTypeValidableDef<any>;
|
|
191
|
-
itemIcon: VueTypeValidableDef<any>;
|
|
192
|
-
size: {
|
|
193
|
-
type: PropType<ButtonSize>;
|
|
194
|
-
default: ButtonSize;
|
|
195
|
-
};
|
|
196
|
-
mode: {
|
|
197
|
-
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
198
|
-
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
199
|
-
};
|
|
200
|
-
bordered: {
|
|
201
|
-
type: BooleanConstructor;
|
|
202
|
-
default: boolean;
|
|
203
|
-
};
|
|
204
|
-
transitionName: StringConstructor;
|
|
205
|
-
choiceTransitionName: {
|
|
206
|
-
type: PropType<"">;
|
|
207
|
-
default: "";
|
|
208
|
-
};
|
|
209
|
-
popupClassName: StringConstructor;
|
|
210
|
-
dropdownClassName: StringConstructor;
|
|
211
|
-
placement: {
|
|
212
|
-
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
213
|
-
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
214
|
-
};
|
|
215
|
-
status: {
|
|
216
|
-
type: PropType<"" | "error" | "warning">;
|
|
217
|
-
default: "" | "error" | "warning";
|
|
218
|
-
};
|
|
219
|
-
'onUpdate:value': {
|
|
220
|
-
type: PropType<(val: SelectValue) => void>;
|
|
221
|
-
default: (val: SelectValue) => void;
|
|
222
|
-
};
|
|
223
|
-
children: PropType< VueNode[]>;
|
|
224
|
-
listHeight: NumberConstructor;
|
|
225
|
-
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
226
|
-
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
227
|
-
tabindex: NumberConstructor;
|
|
228
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
229
|
-
onFocus: {
|
|
230
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
231
|
-
};
|
|
232
|
-
onBlur: {
|
|
233
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
234
|
-
};
|
|
235
|
-
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
236
|
-
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
237
|
-
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
238
|
-
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
239
|
-
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
240
|
-
open: {
|
|
241
|
-
type: BooleanConstructor;
|
|
242
|
-
default: any;
|
|
243
|
-
};
|
|
244
|
-
animation: StringConstructor;
|
|
245
|
-
direction: {
|
|
246
|
-
type: PropType<"rtl" | "ltr">;
|
|
247
|
-
};
|
|
248
|
-
disabled: {
|
|
249
|
-
type: BooleanConstructor;
|
|
250
|
-
default: any;
|
|
251
|
-
};
|
|
252
|
-
prefixCls: StringConstructor;
|
|
253
|
-
id: StringConstructor;
|
|
254
|
-
autofocus: BooleanConstructor;
|
|
255
|
-
getPopupContainer: {
|
|
256
|
-
type: PropType<RenderDOMFunc>;
|
|
257
|
-
};
|
|
258
|
-
virtual: {
|
|
259
|
-
type: BooleanConstructor;
|
|
260
|
-
default: any;
|
|
261
|
-
};
|
|
262
|
-
dropdownMatchSelectWidth: {
|
|
263
|
-
type: PropType<number | boolean>;
|
|
264
|
-
default: any;
|
|
265
|
-
};
|
|
266
|
-
options: PropType< DefaultOptionType[]>;
|
|
267
|
-
showAction: {
|
|
268
|
-
type: PropType<("click" | "focus")[]>;
|
|
269
|
-
};
|
|
270
|
-
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
271
|
-
loading: {
|
|
272
|
-
type: BooleanConstructor;
|
|
273
|
-
default: any;
|
|
274
|
-
};
|
|
275
|
-
placeholder: VueTypeValidableDef<any>;
|
|
276
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
277
|
-
allowClear: {
|
|
278
|
-
type: BooleanConstructor;
|
|
279
|
-
default: any;
|
|
280
|
-
};
|
|
281
|
-
onSearch: PropType<(value: string) => void>;
|
|
282
|
-
fieldNames: PropType<FieldNames>;
|
|
283
|
-
dropdownStyle: {
|
|
284
|
-
type: PropType<CSSProperties>;
|
|
285
|
-
};
|
|
286
|
-
dropdownRender: {
|
|
287
|
-
type: PropType<DropdownRender>;
|
|
288
|
-
};
|
|
289
|
-
dropdownAlign: PropType<AlignType>;
|
|
290
|
-
showSearch: {
|
|
291
|
-
type: BooleanConstructor;
|
|
292
|
-
default: any;
|
|
293
|
-
};
|
|
294
|
-
searchValue: StringConstructor;
|
|
295
|
-
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
296
|
-
removeIcon: VueTypeValidableDef<any>;
|
|
297
|
-
maxTagCount: {
|
|
298
|
-
type: PropType<number | "responsive">;
|
|
299
|
-
};
|
|
300
|
-
maxTagTextLength: NumberConstructor;
|
|
301
|
-
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
302
|
-
tokenSeparators: {
|
|
303
|
-
type: PropType<string[]>;
|
|
304
|
-
};
|
|
305
|
-
tagRender: {
|
|
306
|
-
type: PropType<(props: CustomTagProps) => any>;
|
|
307
|
-
};
|
|
308
|
-
optionLabelRender: {
|
|
309
|
-
type: PropType<(option: Record<string, any>) => any>;
|
|
310
|
-
};
|
|
311
|
-
onClear: PropType<() => void>;
|
|
312
|
-
defaultOpen: {
|
|
313
|
-
type: BooleanConstructor;
|
|
314
|
-
default: any;
|
|
315
|
-
};
|
|
316
|
-
onDropdownVisibleChange: {
|
|
317
|
-
type: PropType<(open: boolean) => void>;
|
|
318
|
-
};
|
|
319
|
-
showArrow: {
|
|
320
|
-
type: BooleanConstructor;
|
|
321
|
-
default: any;
|
|
322
|
-
};
|
|
323
|
-
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
324
|
-
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
325
|
-
listItemHeight: NumberConstructor;
|
|
326
|
-
inputValue: StringConstructor;
|
|
327
|
-
autoClearSearchValue: {
|
|
328
|
-
type: BooleanConstructor;
|
|
329
|
-
default: any;
|
|
330
|
-
};
|
|
331
|
-
filterOption: {
|
|
332
|
-
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
333
|
-
default: any;
|
|
334
|
-
};
|
|
335
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
336
|
-
optionFilterProp: StringConstructor;
|
|
337
|
-
optionLabelProp: StringConstructor;
|
|
338
|
-
defaultActiveFirstOption: {
|
|
339
|
-
type: BooleanConstructor;
|
|
340
|
-
default: any;
|
|
341
|
-
};
|
|
342
|
-
labelInValue: {
|
|
343
|
-
type: BooleanConstructor;
|
|
344
|
-
default: any;
|
|
345
|
-
};
|
|
346
|
-
}>>, "mode" | "suffixIcon"> & {
|
|
347
|
-
__parentRef: HTMLElement;
|
|
348
|
-
}> & Readonly<{
|
|
10
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
349
11
|
onSubmit?: ((value: SelectValue) => any) | undefined;
|
|
350
12
|
"onOpen-change"?: ((value: boolean) => any) | undefined;
|
|
351
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
13
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
352
14
|
export default _default;
|
|
@@ -2,6 +2,7 @@ import { ApImageProps } from './interface';
|
|
|
2
2
|
import { ImgInfo } from '@aplus-frontend/antdv/es/vc-image/src/Preview';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
5
6
|
slots: {
|
|
6
7
|
toolbarRender?(_: {
|
|
7
8
|
originalNodes: import("vue/jsx-runtime").JSX.Element[];
|
|
@@ -29,7 +30,7 @@ declare function __VLS_template(): {
|
|
|
29
30
|
}): any;
|
|
30
31
|
};
|
|
31
32
|
refs: {};
|
|
32
|
-
|
|
33
|
+
rootEl: any;
|
|
33
34
|
};
|
|
34
35
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
36
|
declare const __VLS_component: DefineComponent<ApImageProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApImageProps> & Readonly<{}>, {
|
|
@@ -10,5 +10,5 @@ declare const _default: DefineComponent<ApInputRadioProps, {}, {}, {}, {}, Compo
|
|
|
10
10
|
bordered: boolean;
|
|
11
11
|
stringMode: boolean;
|
|
12
12
|
controls: boolean;
|
|
13
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
13
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
14
|
export default _default;
|
|
@@ -12,7 +12,7 @@ declare const ApInputRadio: {
|
|
|
12
12
|
bordered: boolean;
|
|
13
13
|
stringMode: boolean;
|
|
14
14
|
controls: boolean;
|
|
15
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {},
|
|
15
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
16
16
|
P: {};
|
|
17
17
|
B: {};
|
|
18
18
|
D: {};
|
|
@@ -7,9 +7,10 @@ import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
7
7
|
import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
|
|
8
8
|
import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
9
9
|
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
10
11
|
slots: Readonly<ApLadderSlots> & ApLadderSlots;
|
|
11
12
|
refs: {};
|
|
12
|
-
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
16
|
declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApLadderProps> & Readonly<{}>, {
|
|
@@ -82,7 +83,7 @@ declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, Co
|
|
|
82
83
|
majorColor: string;
|
|
83
84
|
minorColor: string;
|
|
84
85
|
labelValues: Array< ApLadderLabelValue>;
|
|
85
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
86
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
86
87
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
87
88
|
export default _default;
|
|
88
89
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -78,7 +78,7 @@ declare const ApLadder: {
|
|
|
78
78
|
majorColor: string;
|
|
79
79
|
minorColor: string;
|
|
80
80
|
labelValues: Array< ApLadderLabelValue>;
|
|
81
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {},
|
|
81
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
82
82
|
P: {};
|
|
83
83
|
B: {};
|
|
84
84
|
D: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem } from './interface';
|
|
2
|
-
import { PublicProps, ShallowUnwrapRef, VNode,
|
|
2
|
+
import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
5
5
|
attrs: any;
|
|
@@ -23,6 +23,7 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
|
|
|
23
23
|
request: () => Promise<T[]>;
|
|
24
24
|
onSearch?: ((item: T, val: string) => boolean) | undefined;
|
|
25
25
|
defaultFold?: boolean | undefined;
|
|
26
|
+
defaultValue?: string | undefined;
|
|
26
27
|
} & PublicProps;
|
|
27
28
|
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
28
29
|
attrs: any;
|
|
@@ -37,9 +38,7 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
|
|
|
37
38
|
(event: "afterEnter", el: Element): void;
|
|
38
39
|
(event: "afterLeave", el: Element): void;
|
|
39
40
|
};
|
|
40
|
-
}>) => VNode
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
}> & {
|
|
41
|
+
}>) => VNode & {
|
|
43
42
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
43
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
45
44
|
$props: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ApSelectItem, ApSelectLayoutProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends ApSelectItem>(__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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onOnSelect?: ((value: T) => any) | undefined;
|
|
6
6
|
readonly onAfterEnter?: ((el: Element) => any) | undefined;
|
|
7
7
|
readonly onAfterLeave?: ((el: Element) => any) | undefined;
|
|
8
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onAfterEnter" | "onAfterLeave" | "onOnSelect"> & ApSelectLayoutProps<T>> & PublicProps;
|
|
8
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onAfterEnter" | "onAfterLeave" | "onOnSelect"> & Partial<{}> & ApSelectLayoutProps<T>> & PublicProps;
|
|
9
9
|
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
10
10
|
attrs: any;
|
|
11
11
|
slots: {
|
|
@@ -19,9 +19,7 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
|
|
|
19
19
|
(event: "afterEnter", el: Element): void;
|
|
20
20
|
(event: "afterLeave", el: Element): void;
|
|
21
21
|
};
|
|
22
|
-
}>) => VNode
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
}> & {
|
|
22
|
+
}>) => VNode & {
|
|
25
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
24
|
};
|
|
27
25
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-field/index.js");const E=require("@aplus-frontend/icon");require("../../config-provider/index.js");const C=require("@aplus-frontend/antdv"),b=require("lodash-unified"),q=require("../../config-provider/hooks/use-namespace.js"),w=require("../../ap-field/text/index.js"),x=["onClick"],B=e.defineComponent({__name:"select-layout",props:{title:{},request:{},onSearch:{},defaultFold:{type:Boolean,default:!1}},emits:["onSelect","afterEnter","afterLeave"],setup(k,{emit:y}){const{b:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-field/index.js");const E=require("@aplus-frontend/icon");require("../../config-provider/index.js");const C=require("@aplus-frontend/antdv"),b=require("lodash-unified"),q=require("../../config-provider/hooks/use-namespace.js"),w=require("../../ap-field/text/index.js"),x=["onClick"],B=e.defineComponent({__name:"select-layout",props:{title:{},request:{},onSearch:{},defaultFold:{type:Boolean,default:!1},defaultValue:{default:""}},emits:["onSelect","afterEnter","afterLeave"],setup(k,{emit:y}){const{b:d,be:i,bem:o}=q.useNamespace("ap-select-layout"),a=k,c=y,f=e.ref(),s=e.ref(a.defaultFold),v=e.ref(!a.defaultFold),m=e.ref(),p=e.ref(),h=e.ref(),u=e.ref(a.defaultValue),V=()=>{s.value=!s.value,m.value=!1,p.value=!1},N=n=>{h.value=n,c("onSelect",n)},S=b.debounce(n=>{var t;u.value=(t=n.target)==null?void 0:t.value},500),g=e.computed(()=>{var n;return(n=f.value)==null?void 0:n.filter(t=>{var r,l;return a!=null&&a.onSearch?(r=a.onSearch)==null?void 0:r.call(a,t,u.value):(l=t==null?void 0:t.name)==null?void 0:l.includes(u.value)})}),z=n=>{v.value=!0,c("afterEnter",n)},T=n=>{v.value=!1,c("afterLeave",n)};return e.onMounted(()=>{a.request().then(n=>{var t;f.value=n,N((t=f.value)==null?void 0:t[0])})}),(n,t)=>{var r;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(d)())},[e.createVNode(e.Transition,{mode:"out-in",onAfterEnter:z,onAfterLeave:T},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(d)("side"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("side","header"))},[e.createElementVNode("h3",null,e.toDisplayString(a.title),1),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o)("side","header","imgWrap"))},[e.createVNode(e.unref(C.Tooltip),{open:m.value,"onUpdate:open":t[0]||(t[0]=l=>m.value=l)},{title:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("收起")])),default:e.withCtx(()=>[e.createVNode(e.unref(E.IconApLeftarrow),{onClick:V})]),_:1},8,["open"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("side","body"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(o)("side","body","search"))},[e.createVNode(e.unref(w.ApFieldText),{placeholder:"请输入",value:u.value,onChange:e.unref(S)},null,8,["value","onChange"])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o)("side","body","scroll"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,l=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:l.value,class:e.normalizeClass(`${e.unref(o)("side","body","scroll-item")} ${h.value===l?"active":""}`),onClick:L=>N(l)},[e.renderSlot(n.$slots,"itemRender",{item:l},()=>[e.createVNode(e.unref(C.TypographyText),{ellipsis:{tooltip:l.name},content:`${l.name}`},null,8,["ellipsis","content"])])],10,x)),[[e.vShow,v.value]])),128))],2)],2)],2),[[e.vShow,!s.value]])]),_:3}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(d)("content"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("content","header"))},[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o)("content","header","imgWrap"))},[e.createVNode(e.unref(C.Tooltip),{open:p.value,"onUpdate:open":t[1]||(t[1]=l=>p.value=l)},{title:e.withCtx(()=>t[3]||(t[3]=[e.createTextVNode("展开")])),default:e.withCtx(()=>[e.createVNode(e.unref(E.IconApMenu),{onClick:V})]),_:1},8,["open"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o)("content","header","title"))},e.toDisplayString((r=h.value)==null?void 0:r.name),3)],2),e.renderSlot(n.$slots,"default")],2)],2)}}});exports.default=B;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
default?(_: {
|
|
5
6
|
maxCount: number;
|
|
@@ -7,7 +8,7 @@ declare function __VLS_template(): {
|
|
|
7
8
|
}): any;
|
|
8
9
|
};
|
|
9
10
|
refs: {};
|
|
10
|
-
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
11
12
|
};
|
|
12
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
14
|
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
@@ -36,7 +37,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
36
37
|
type: NumberConstructor;
|
|
37
38
|
required: true;
|
|
38
39
|
};
|
|
39
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {},
|
|
40
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
40
41
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
42
|
export default _default;
|
|
42
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { TableLayoutConfig } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = TableLayoutConfig & {
|
|
4
|
+
selectedList: any[];
|
|
5
|
+
};
|
|
3
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
4
8
|
slots: {
|
|
5
9
|
default?(_: {}): any;
|
|
6
10
|
default?(_: {}): any;
|
|
7
11
|
};
|
|
8
12
|
refs: {};
|
|
9
|
-
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
10
14
|
};
|
|
11
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: DefineComponent<
|
|
13
|
-
selectedList: any[];
|
|
14
|
-
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
17
|
clear: () => any;
|
|
16
18
|
deleteItem: (record: any) => any;
|
|
17
|
-
}, string, PublicProps, Readonly<
|
|
18
|
-
selectedList: any[];
|
|
19
|
-
}> & Readonly<{
|
|
19
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
20
|
onClear?: (() => any) | undefined;
|
|
21
21
|
onDeleteItem?: ((record: any) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
leftTitle: string;
|
|
24
24
|
selectedList: any[];
|
|
25
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
27
|
export default _default;
|
|
28
28
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -2,7 +2,8 @@ import { OpenOptions, OpenReturnType, ApTableModalProps } from './interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
4
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
5
|
-
|
|
5
|
+
type __VLS_Props = ApTableModalProps;
|
|
6
|
+
declare const _default: DefineComponent<__VLS_Props, {
|
|
6
7
|
open: <T>(selected?: any[], options?: OpenOptions) => Promise<OpenReturnType<T>>;
|
|
7
8
|
close: () => void;
|
|
8
9
|
getApTableInstance: () => {
|
|
@@ -26,7 +27,7 @@ declare const _default: DefineComponent<ApTableModalProps<any>, {
|
|
|
26
27
|
} | null;
|
|
27
28
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
29
|
finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
|
|
29
|
-
}, string, PublicProps, Readonly<
|
|
30
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
31
|
onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
|
|
31
32
|
}>, {
|
|
32
33
|
mask: boolean;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ApTitleProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
4
5
|
slots: {
|
|
5
6
|
prefix?(_: {}): any;
|
|
6
7
|
suffix?(_: {}): any;
|
|
7
8
|
};
|
|
8
9
|
refs: {};
|
|
9
|
-
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
10
11
|
};
|
|
11
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
13
|
declare const __VLS_component: DefineComponent<ApTitleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTitleProps> & Readonly<{}>, {
|
|
@@ -15,7 +16,7 @@ declare const __VLS_component: DefineComponent<ApTitleProps, {}, {}, {}, {}, Com
|
|
|
15
16
|
trigger: "hover" | "focus" | "click" | "contextmenu";
|
|
16
17
|
helpMessage: string;
|
|
17
18
|
helpIconColor: string;
|
|
18
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
19
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
21
|
export default _default;
|
|
21
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -8,7 +8,7 @@ declare const ApTitle: {
|
|
|
8
8
|
trigger: "hover" | "focus" | "click" | "contextmenu";
|
|
9
9
|
helpMessage: string;
|
|
10
10
|
helpIconColor: string;
|
|
11
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {},
|
|
11
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
12
12
|
P: {};
|
|
13
13
|
B: {};
|
|
14
14
|
D: {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ApUploadFile, ApUploadSingleProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = ApUploadSingleProps;
|
|
3
4
|
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
4
6
|
slots: {
|
|
5
7
|
default?(_: {
|
|
6
8
|
file: ApUploadFile | undefined;
|
|
@@ -8,12 +10,12 @@ declare function __VLS_template(): {
|
|
|
8
10
|
}): any;
|
|
9
11
|
};
|
|
10
12
|
refs: {};
|
|
11
|
-
|
|
13
|
+
rootEl: any;
|
|
12
14
|
};
|
|
13
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
-
declare const __VLS_component: DefineComponent<
|
|
16
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
17
|
"update:fileList": (...args: any[]) => void;
|
|
16
|
-
}, string, PublicProps, Readonly<
|
|
18
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
19
|
"onUpdate:fileList"?: ((...args: any[]) => any) | undefined;
|
|
18
20
|
}>, {
|
|
19
21
|
accept: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {},
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
3
3
|
export default _default;
|