@aplus-frontend/ui 0.4.18 → 0.4.19
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 +1 -2
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -2
- package/es/src/ap-action/item-modal/index.vue.d.ts +1 -2
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +1 -2
- package/es/src/ap-button/ap-action-button.vue.d.ts +1 -2
- package/es/src/ap-button/ap-button.vue.d.ts +1 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +2 -3
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +5 -3
- package/es/src/ap-download/ap-download.vue.d.ts +3 -5
- package/es/src/ap-field/date/index.vue.d.ts +1 -2
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -2
- package/es/src/ap-field/number/index.vue.d.ts +2 -324
- package/es/src/ap-field/radio/index.vue.d.ts +2 -98
- package/es/src/ap-field/rate/index.vue.d.ts +2 -84
- package/es/src/ap-field/segmented/index.vue.d.ts +1 -2
- package/es/src/ap-field/select/index.vue.d.ts +2 -409
- package/es/src/ap-field/select/index.vue.mjs +6 -7
- package/es/src/ap-field/slider/index.vue.d.ts +2 -259
- package/es/src/ap-field/switch/index.vue.d.ts +1 -2
- package/es/src/ap-field/text/index.vue.d.ts +1 -2
- package/es/src/ap-field/text/password.vue.d.ts +1 -2
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -267
- package/es/src/ap-form/ap-form.vue.d.ts +4 -639
- package/es/src/ap-form/dependency/index.vue.d.ts +1 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +6 -1457
- package/es/src/ap-form/item/index.vue.d.ts +2 -779
- package/es/src/ap-form/item-group/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/date/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/date-range/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -785
- package/es/src/ap-form/items/radio/index.vue.d.ts +4 -223
- package/es/src/ap-form/items/select/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/switch/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/text/group.vue.d.ts +1 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -141
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -150
- package/es/src/ap-form/items/text-area/index.vue.d.ts +4 -568
- package/es/src/ap-form/list/index.vue.d.ts +1 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +7 -1457
- package/es/src/ap-form/provider/index.vue.d.ts +1 -2
- package/es/src/ap-form/render/control.vue.d.ts +1 -2
- package/es/src/ap-form/render/item.vue.d.ts +1 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +5 -1457
- package/es/src/ap-form/set/index.vue.d.ts +1 -2
- package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +2 -3
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +2 -6
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +2 -3
- package/es/src/ap-list/index.vue.d.ts +5 -3
- package/es/src/ap-table/ap-table.vue.d.ts +10 -3
- package/es/src/ap-table/ap-table.vue2.mjs +72 -68
- 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 +1 -2
- 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 +14 -2264
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/interface.d.ts +9 -0
- package/es/src/ap-table/utils.d.ts +8 -1180
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -5
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +2 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -453
- package/es/src/ap-upload/components/Picture.vue.d.ts +9 -7
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -3
- package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +3 -5
- 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 +2 -5
- package/es/src/business/ap-batch-action/index.d.ts +1 -3
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +1 -2
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -3
- package/es/src/business/ap-batch-action-group/index.d.ts +5 -887
- package/es/src/business/ap-card/ApCard.vue.d.ts +2 -3
- package/es/src/business/ap-card/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -3
- package/es/src/business/ap-expand-alert/index.d.ts +6 -4
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +2 -5
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +8 -9
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +346 -10
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +7 -8
- 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 +4 -418
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +340 -412
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +14 -15
- package/es/src/business/ap-image/ApImage.vue.d.ts +1 -2
- 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 +2 -6
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +1 -4
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +5 -3
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
- package/es/src/business/ap-table-modal/index.d.ts +44 -22
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +2 -3
- 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 +18 -25
- package/es/src/business/ap-title/ApTitle.vue.d.ts +2 -3
- 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 +3 -5
- 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 +3 -146
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +2 -267
- package/es/src/business/hooks/usePageListApTable.d.ts +14 -0
- package/es/src/business/hooks/useTableRefresh.d.ts +4 -1
- package/es/src/business/hooks/useTableRefresh.mjs +33 -12
- package/es/src/check-card/group.vue.d.ts +1 -2
- package/es/src/check-card/index.vue.d.ts +2 -3
- package/es/src/config-provider/config-provider-props.d.ts +3 -0
- package/es/src/config-provider/config-provider-props.mjs +3 -0
- package/es/src/config-provider/config-provider.d.ts +6 -0
- package/es/src/config-provider/config-provider.mjs +24 -23
- package/es/src/config-provider/hooks/use-global-config.d.ts +3 -0
- package/es/src/config-provider/index.d.ts +9 -0
- package/es/src/editable-table/form-item.vue.d.ts +5 -3
- package/es/src/editable-table/index.vue.d.ts +5 -3
- package/es/src/full-screen/index.vue.d.ts +2 -6
- package/es/src/portal/index.vue.d.ts +1 -2
- package/es/src/resize-observer/index.vue.d.ts +1 -2
- package/es/src/scroll-bar/index.vue.d.ts +4 -43
- package/es/src/scroll-bar/index.vue.mjs +51 -49
- package/es/src/scroll-bar/internal.vue.d.ts +1 -5
- package/es/src/scroll-view/index.vue.d.ts +9 -97
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/utils/index.d.ts +8 -0
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -827
- package/lib/src/ap-action/item/index.vue.d.ts +1 -2
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -2
- package/lib/src/ap-action/item-modal/index.vue.d.ts +1 -2
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +1 -2
- package/lib/src/ap-button/ap-action-button.vue.d.ts +1 -2
- package/lib/src/ap-button/ap-button.vue.d.ts +1 -2
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +2 -3
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +5 -3
- package/lib/src/ap-download/ap-download.vue.d.ts +3 -5
- package/lib/src/ap-field/date/index.vue.d.ts +1 -2
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -2
- package/lib/src/ap-field/number/index.vue.d.ts +2 -324
- package/lib/src/ap-field/radio/index.vue.d.ts +2 -98
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -84
- package/lib/src/ap-field/segmented/index.vue.d.ts +1 -2
- package/lib/src/ap-field/select/index.vue.d.ts +2 -409
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -259
- package/lib/src/ap-field/switch/index.vue.d.ts +1 -2
- package/lib/src/ap-field/text/index.vue.d.ts +1 -2
- package/lib/src/ap-field/text/password.vue.d.ts +1 -2
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -267
- package/lib/src/ap-form/ap-form.vue.d.ts +4 -639
- package/lib/src/ap-form/dependency/index.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +6 -1457
- package/lib/src/ap-form/item/index.vue.d.ts +2 -779
- package/lib/src/ap-form/item-group/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/date/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -785
- package/lib/src/ap-form/items/radio/index.vue.d.ts +4 -223
- package/lib/src/ap-form/items/select/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/switch/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/text/group.vue.d.ts +1 -2
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -141
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -150
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +4 -568
- package/lib/src/ap-form/list/index.vue.d.ts +1 -2
- package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -1457
- package/lib/src/ap-form/provider/index.vue.d.ts +1 -2
- package/lib/src/ap-form/render/control.vue.d.ts +1 -2
- package/lib/src/ap-form/render/item.vue.d.ts +1 -2
- package/lib/src/ap-form/search-form/index.vue.d.ts +5 -1457
- package/lib/src/ap-form/set/index.vue.d.ts +1 -2
- package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +2 -3
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +2 -6
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +2 -3
- package/lib/src/ap-list/index.vue.d.ts +5 -3
- package/lib/src/ap-table/ap-table.vue.d.ts +10 -3
- 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 +1 -2
- 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 +14 -2264
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/interface.d.ts +9 -0
- package/lib/src/ap-table/utils.d.ts +8 -1180
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -5
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +2 -5
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -453
- package/lib/src/ap-upload/components/Picture.vue.d.ts +9 -7
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -3
- package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +3 -5
- 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 +2 -5
- package/lib/src/business/ap-batch-action/index.d.ts +1 -3
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +1 -2
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -3
- package/lib/src/business/ap-batch-action-group/index.d.ts +5 -887
- package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -3
- package/lib/src/business/ap-card/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -3
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +2 -5
- 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 +346 -10
- 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 +4 -418
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +340 -412
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-image/ApImage.vue.d.ts +1 -2
- 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 +2 -6
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -4
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +5 -3
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
- package/lib/src/business/ap-table-modal/index.d.ts +44 -22
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +2 -3
- 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 +18 -25
- package/lib/src/business/ap-title/ApTitle.vue.d.ts +2 -3
- 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 +3 -5
- 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 +3 -146
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +2 -267
- package/lib/src/business/hooks/usePageListApTable.d.ts +14 -0
- package/lib/src/business/hooks/useTableRefresh.d.ts +4 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +1 -2
- package/lib/src/check-card/index.vue.d.ts +2 -3
- package/lib/src/config-provider/config-provider-props.d.ts +3 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +6 -0
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +3 -0
- package/lib/src/config-provider/index.d.ts +9 -0
- package/lib/src/editable-table/form-item.vue.d.ts +5 -3
- package/lib/src/editable-table/index.vue.d.ts +5 -3
- package/lib/src/full-screen/index.vue.d.ts +2 -6
- package/lib/src/portal/index.vue.d.ts +1 -2
- package/lib/src/resize-observer/index.vue.d.ts +1 -2
- package/lib/src/scroll-bar/index.vue.d.ts +4 -43
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.d.ts +1 -5
- package/lib/src/scroll-view/index.vue.d.ts +9 -97
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/index.d.ts +8 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -827
- package/package.json +2 -2
- package/theme/ap-scroll-bar/index.css +0 -31
- package/theme/ap-scroll-bar/index.less +0 -39
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ApCardProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
attrs: Partial<{}>;
|
|
5
4
|
slots: {
|
|
6
5
|
default?(_: {}): any;
|
|
7
6
|
};
|
|
8
7
|
refs: {};
|
|
9
|
-
|
|
8
|
+
attrs: Partial<{}>;
|
|
10
9
|
};
|
|
11
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: DefineComponent<ApCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApCardProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
11
|
+
declare const __VLS_component: DefineComponent<ApCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApCardProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
13
12
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
13
|
export default _default;
|
|
15
14
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -2,7 +2,7 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
|
|
|
2
2
|
import { ApCardProps } from './interface';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApCard: {
|
|
5
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {},
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
6
6
|
P: {};
|
|
7
7
|
B: {};
|
|
8
8
|
D: {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApExpandAlertProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, 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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
readonly onChoose?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T
|
|
7
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T>> & PublicProps;
|
|
8
8
|
expose(exposed: ShallowUnwrapRef<{
|
|
9
9
|
setExpand: (state?: boolean) => void;
|
|
10
10
|
}>): void;
|
|
@@ -23,7 +23,9 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
23
23
|
}): any;
|
|
24
24
|
};
|
|
25
25
|
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
26
|
-
}>) => VNode
|
|
26
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}> & {
|
|
27
29
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
30
|
};
|
|
29
31
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, Plugin } from 'vue';
|
|
1
|
+
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, RendererNode, RendererElement, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
@@ -20,7 +20,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
20
20
|
props: {
|
|
21
21
|
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
22
22
|
readonly onChoose?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
type?: "warning" | "error" | "success" | "info" | "card" | undefined
|
|
23
|
+
type?: "warning" | "error" | "success" | "info" | "card" | undefined;
|
|
24
24
|
data?: string | T[] | undefined;
|
|
25
25
|
prefix?: string | undefined;
|
|
26
26
|
tipTitle?: string | undefined;
|
|
@@ -29,7 +29,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
29
29
|
separatorStyle?: CSSProperties | undefined;
|
|
30
30
|
contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
|
|
31
31
|
prefixStyle?: CSSProperties | undefined;
|
|
32
|
-
rows?: string | number | undefined;
|
|
32
|
+
rows?: (string | number) | undefined;
|
|
33
33
|
defaultExpand?: boolean | undefined;
|
|
34
34
|
showIcon?: boolean | undefined;
|
|
35
35
|
} & PublicProps;
|
|
@@ -51,7 +51,9 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
51
51
|
}): any;
|
|
52
52
|
};
|
|
53
53
|
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
54
|
-
}>) => VNode
|
|
54
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}> & {
|
|
55
57
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
56
58
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
57
59
|
$props: {
|
|
@@ -2,7 +2,6 @@ import { SelectValue } from '@aplus-frontend/antdv/es/select';
|
|
|
2
2
|
import { GroupSearchProps } from './interface';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
-
attrs: Partial<{}>;
|
|
6
5
|
slots: {
|
|
7
6
|
search?(_: {
|
|
8
7
|
key: SelectValue;
|
|
@@ -13,7 +12,7 @@ declare function __VLS_template(): {
|
|
|
13
12
|
refs: {
|
|
14
13
|
containerRef: HTMLDivElement;
|
|
15
14
|
};
|
|
16
|
-
|
|
15
|
+
attrs: Partial<{}>;
|
|
17
16
|
};
|
|
18
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
18
|
declare const __VLS_component: DefineComponent<GroupSearchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -23,9 +22,7 @@ declare const __VLS_component: DefineComponent<GroupSearchProps, {}, {}, {}, {},
|
|
|
23
22
|
}>, {
|
|
24
23
|
dropdownMatchSelectWidth: number | boolean;
|
|
25
24
|
hasAll: boolean;
|
|
26
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
27
|
-
containerRef: HTMLDivElement;
|
|
28
|
-
}, HTMLDivElement>;
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
29
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
27
|
export default _default;
|
|
31
28
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv"),k=require("./images/icon-down.vue.js");require("./extension-select/index.vue.js");const x=require("../../hooks/useControllableValue.js");require("../../config-provider/index.js");const N=require("../../config-provider/hooks/use-locale.js"),q=require("../../config-provider/hooks/use-global-config.js"),I=require("../../config-provider/hooks/use-namespace.js"),L=require("./extension-select/index.vue2.js"),i="GROUP_SEARCH_ALL",M=e.defineComponent({__name:"ap-group-search",props:{value:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},mode:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{default:!1},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},labelInValue:{type:Boolean},hasAll:{type:Boolean,default:!0},style:{}},emits:["update:value"],setup(v,{emit:g}){const{t:p}=N.useLocale(),d=q.useGlobalConfig("uiMode","aplus"),f=e.ref(),a=v,C=e.computed(()=>({width:"auto",...a.style})),_=g,{value:n,updateValue:c}=x.useControllableValue(a,_),w=o=>{let t=o;o===i?t=a.options.map(l=>l.value):t=toString.call(t)==="[object Array]"?o:[o],c({...n.value,key:t})},S=e.computed(()=>{let o=[];return a.hasAll&&(o=[{value:i,label:p("ap.apGroupSearch.all")}]),[...o,...a.options]}),b=e.computed(()=>{var u,s;const o=(u=n==null?void 0:n.value)==null?void 0:u.key,t=toString.call(o)==="[object Array]"?o:[o],l=p("ap.apGroupSearch.defaultPlaceholder");return!t||t.length===1?l:((s=a.options)==null?void 0:s.filter(r=>t.includes(r.value)).map(r=>r.label).join("/"))||l});e.onMounted(()=>{e.watch(()=>{var o;return[a.hasAll,(o=e.unref(n))==null?void 0:o.key]},()=>{var o,t;a.hasAll&&!((o=e.unref(n))!=null&&o.key)&&c({...e.unref(n),key:(t=a.options)==null?void 0:t.map(l=>l.value)})},{immediate:!0})});const B=e.computed(()=>{var t,l;const o=(t=e.unref(n))==null?void 0:t.key;if(o)return toString.call(o)==="[object Array]"?(o==null?void 0:o.length)===((l=a.options)==null?void 0:l.length)?i:o==null?void 0:o[0]:o}),h=o=>{var t;o!==((t=e.unref(n))==null?void 0:t.value)&&c({...n.value,value:o})},{b:A,e:m,em:V}=I.useNamespace("ap-group-search");return(o,t)=>{const l=e.resolveComponent("Divider");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:f,class:e.normalizeClass(e.unref(A)())},[e.createVNode(e.unref(y.Flex),null,{default:e.withCtx(()=>{var u,s;return[e.createVNode(e.unref(y.Select),{value:B.value,style:e.normalizeStyle(C.value),class:e.normalizeClass(`${o.$attrs.class} ${e.unref(d)==="admin"?e.unref(V)("search","admin"):e.unref(m)("search")}`),options:S.value,bordered:!1,"dropdown-match-select-width":a.dropdownMatchSelectWidth,onChange:w},{suffixIcon:e.withCtx(()=>[e.createVNode(k.default)]),_:1},8,["value","style","class","options","dropdown-match-select-width"]),e.unref(d)==="aplus"?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(e.unref(m)("divider")),type:"vertical",style:{}},null,8,["class"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"search",{key:(u=e.unref(n))==null?void 0:u.key,value:(s=e.unref(n))==null?void 0:s.value,change:h},()=>{var r;return[e.createVNode(L.default,{style:{width:"100%"},"max-tag-count":"responsive",value:(r=e.unref(n))==null?void 0:r.value,placeholder:b.value,"__parent-ref":f.value,onChange:h},null,8,["value","placeholder","__parent-ref"])]})]}),_:3})],2)}}});exports.default=M;
|
|
@@ -1,14 +1,350 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { SelectValue, DefaultOptionType, LabeledValue } from '@aplus-frontend/antdv/es/select';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
4
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
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"> & {
|
|
5
176
|
__parentRef?: HTMLElement;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
177
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
178
|
change: (value: SelectValue) => any;
|
|
9
|
-
}, string, PublicProps, Readonly<
|
|
179
|
+
}, string, PublicProps, Readonly<Omit<Partial< ExtractPropTypes<{
|
|
180
|
+
value: {
|
|
181
|
+
type: PropType<SelectValue>;
|
|
182
|
+
default: SelectValue;
|
|
183
|
+
};
|
|
184
|
+
defaultValue: {
|
|
185
|
+
type: PropType<SelectValue>;
|
|
186
|
+
default: SelectValue;
|
|
187
|
+
};
|
|
188
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
189
|
+
suffixIcon: VueTypeValidableDef<any>;
|
|
190
|
+
itemIcon: VueTypeValidableDef<any>;
|
|
191
|
+
size: {
|
|
192
|
+
type: PropType<ButtonSize>;
|
|
193
|
+
default: ButtonSize;
|
|
194
|
+
};
|
|
195
|
+
mode: {
|
|
196
|
+
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
197
|
+
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
198
|
+
};
|
|
199
|
+
bordered: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
203
|
+
transitionName: StringConstructor;
|
|
204
|
+
choiceTransitionName: {
|
|
205
|
+
type: PropType<"">;
|
|
206
|
+
default: "";
|
|
207
|
+
};
|
|
208
|
+
popupClassName: StringConstructor;
|
|
209
|
+
dropdownClassName: StringConstructor;
|
|
210
|
+
placement: {
|
|
211
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
212
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
213
|
+
};
|
|
214
|
+
status: {
|
|
215
|
+
type: PropType<"" | "error" | "warning">;
|
|
216
|
+
default: "" | "error" | "warning";
|
|
217
|
+
};
|
|
218
|
+
'onUpdate:value': {
|
|
219
|
+
type: PropType<(val: SelectValue) => void>;
|
|
220
|
+
default: (val: SelectValue) => void;
|
|
221
|
+
};
|
|
222
|
+
children: PropType< VueNode[]>;
|
|
223
|
+
listHeight: NumberConstructor;
|
|
224
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
225
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
226
|
+
tabindex: NumberConstructor;
|
|
227
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
228
|
+
onFocus: {
|
|
229
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
230
|
+
};
|
|
231
|
+
onBlur: {
|
|
232
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
233
|
+
};
|
|
234
|
+
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
235
|
+
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
236
|
+
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
237
|
+
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
238
|
+
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
239
|
+
open: {
|
|
240
|
+
type: BooleanConstructor;
|
|
241
|
+
default: any;
|
|
242
|
+
};
|
|
243
|
+
animation: StringConstructor;
|
|
244
|
+
direction: {
|
|
245
|
+
type: PropType<"rtl" | "ltr">;
|
|
246
|
+
};
|
|
247
|
+
disabled: {
|
|
248
|
+
type: BooleanConstructor;
|
|
249
|
+
default: any;
|
|
250
|
+
};
|
|
251
|
+
prefixCls: StringConstructor;
|
|
252
|
+
id: StringConstructor;
|
|
253
|
+
autofocus: BooleanConstructor;
|
|
254
|
+
getPopupContainer: {
|
|
255
|
+
type: PropType<RenderDOMFunc>;
|
|
256
|
+
};
|
|
257
|
+
virtual: {
|
|
258
|
+
type: BooleanConstructor;
|
|
259
|
+
default: any;
|
|
260
|
+
};
|
|
261
|
+
dropdownMatchSelectWidth: {
|
|
262
|
+
type: PropType<number | boolean>;
|
|
263
|
+
default: any;
|
|
264
|
+
};
|
|
265
|
+
options: PropType< DefaultOptionType[]>;
|
|
266
|
+
showAction: {
|
|
267
|
+
type: PropType<("click" | "focus")[]>;
|
|
268
|
+
};
|
|
269
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
270
|
+
loading: {
|
|
271
|
+
type: BooleanConstructor;
|
|
272
|
+
default: any;
|
|
273
|
+
};
|
|
274
|
+
placeholder: VueTypeValidableDef<any>;
|
|
275
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
276
|
+
allowClear: {
|
|
277
|
+
type: BooleanConstructor;
|
|
278
|
+
default: any;
|
|
279
|
+
};
|
|
280
|
+
onSearch: PropType<(value: string) => void>;
|
|
281
|
+
fieldNames: PropType<FieldNames>;
|
|
282
|
+
dropdownStyle: {
|
|
283
|
+
type: PropType<CSSProperties>;
|
|
284
|
+
};
|
|
285
|
+
dropdownRender: {
|
|
286
|
+
type: PropType<DropdownRender>;
|
|
287
|
+
};
|
|
288
|
+
dropdownAlign: PropType<AlignType>;
|
|
289
|
+
showSearch: {
|
|
290
|
+
type: BooleanConstructor;
|
|
291
|
+
default: any;
|
|
292
|
+
};
|
|
293
|
+
searchValue: StringConstructor;
|
|
294
|
+
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
295
|
+
removeIcon: VueTypeValidableDef<any>;
|
|
296
|
+
maxTagCount: {
|
|
297
|
+
type: PropType<number | "responsive">;
|
|
298
|
+
};
|
|
299
|
+
maxTagTextLength: NumberConstructor;
|
|
300
|
+
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
301
|
+
tokenSeparators: {
|
|
302
|
+
type: PropType<string[]>;
|
|
303
|
+
};
|
|
304
|
+
tagRender: {
|
|
305
|
+
type: PropType<(props: CustomTagProps) => any>;
|
|
306
|
+
};
|
|
307
|
+
optionLabelRender: {
|
|
308
|
+
type: PropType<(option: Record<string, any>) => any>;
|
|
309
|
+
};
|
|
310
|
+
onClear: PropType<() => void>;
|
|
311
|
+
defaultOpen: {
|
|
312
|
+
type: BooleanConstructor;
|
|
313
|
+
default: any;
|
|
314
|
+
};
|
|
315
|
+
onDropdownVisibleChange: {
|
|
316
|
+
type: PropType<(open: boolean) => void>;
|
|
317
|
+
};
|
|
318
|
+
showArrow: {
|
|
319
|
+
type: BooleanConstructor;
|
|
320
|
+
default: any;
|
|
321
|
+
};
|
|
322
|
+
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
323
|
+
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
324
|
+
listItemHeight: NumberConstructor;
|
|
325
|
+
inputValue: StringConstructor;
|
|
326
|
+
autoClearSearchValue: {
|
|
327
|
+
type: BooleanConstructor;
|
|
328
|
+
default: any;
|
|
329
|
+
};
|
|
330
|
+
filterOption: {
|
|
331
|
+
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
332
|
+
default: any;
|
|
333
|
+
};
|
|
334
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
335
|
+
optionFilterProp: StringConstructor;
|
|
336
|
+
optionLabelProp: StringConstructor;
|
|
337
|
+
defaultActiveFirstOption: {
|
|
338
|
+
type: BooleanConstructor;
|
|
339
|
+
default: any;
|
|
340
|
+
};
|
|
341
|
+
labelInValue: {
|
|
342
|
+
type: BooleanConstructor;
|
|
343
|
+
default: any;
|
|
344
|
+
};
|
|
345
|
+
}>>, "mode" | "suffixIcon"> & {
|
|
346
|
+
__parentRef?: HTMLElement;
|
|
347
|
+
}> & Readonly<{
|
|
10
348
|
onChange?: ((value: SelectValue) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
12
|
-
containerRef: HTMLDivElement;
|
|
13
|
-
}, HTMLDivElement>;
|
|
349
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
350
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../popover-select/index.vue.js");require("../../../config-provider/index.js");const g=require("../../../config-provider/hooks/use-global-config.js"),y=require("../../../config-provider/hooks/use-namespace.js"),C=require("../popover-select/index.vue2.js"),_=e.defineComponent({__name:"index",props:{value:{},defaultValue:{},notFoundContent:{},itemIcon:{},size:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../popover-select/index.vue.js");require("../../../config-provider/index.js");const g=require("../../../config-provider/hooks/use-global-config.js"),y=require("../../../config-provider/hooks/use-namespace.js"),C=require("../popover-select/index.vue2.js"),_=e.defineComponent({__name:"index",props:{value:{},defaultValue:{},notFoundContent:{},itemIcon:{},size:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},labelInValue:{type:Boolean},__parentRef:{}},emits:["change"],setup(s,{emit:i}){const p=g.useGlobalConfig("uiMode","aplus"),n=s,l=e.ref(),t=e.ref(),a=e.ref(!1),c=e.computed(()=>n.__parentRef||l.value),d=i,f=o=>{o&&(a.value=!1)};e.watch(()=>n.value,()=>{t.value=n.value},{immediate:!0});const r=o=>{t.value=o,d("change",o)},{b:m}=y.useNamespace("ap-extension-select");return(o,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:l},[e.createVNode(e.unref(v.Select),{class:e.normalizeClass(e.unref(m)()),value:t.value,style:e.normalizeStyle(o.$attrs.style),bordered:e.unref(p)==="admin",mode:"tags","show-arrow":!0,"not-found-content":!0,open:a.value,"max-tag-count":n.maxTagCount,placeholder:n.placeholder,onDropdownVisibleChange:u[0]||(u[0]=h=>a.value=h),onChange:r},{suffixIcon:e.withCtx(()=>[e.createVNode(C.default,{value:t.value,"__parent-ref":c.value,onSubmit:r,onOpenChange:f},null,8,["value","__parent-ref"])]),_:1},8,["class","value","style","bordered","open","max-tag-count","placeholder"])],512))}});exports.default=_;
|
|
@@ -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, {}, any>;
|
|
3
3
|
export default _default;
|
|
@@ -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, {}, any>;
|
|
3
3
|
export default _default;
|