@aplus-frontend/ui 0.2.29 → 0.3.1
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/index.mjs +42 -40
- package/es/src/ap-action/group/index.vue.d.ts +3 -30
- package/es/src/ap-action/item/index.vue.d.ts +4 -36
- package/es/src/ap-action/item/index.vue2.mjs +29 -29
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +5 -39
- package/es/src/ap-action/item-modal/index.vue.d.ts +5 -33
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +5 -33
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.d.ts +5 -31
- package/es/src/ap-button/ap-button.vue.d.ts +5 -31
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +4 -12
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +24 -24
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +4 -15
- package/es/src/ap-download/ap-download.vue.d.ts +8 -31
- package/es/src/ap-drawer/utils/createDrawer.mjs +10 -10
- package/es/src/ap-field/checkbox/index.vue.d.ts +5 -32
- package/es/src/ap-field/checkbox/index.vue.mjs +3 -3
- package/es/src/ap-field/date/index.vue.d.ts +7 -65
- package/es/src/ap-field/date/index.vue.mjs +2 -2
- package/es/src/ap-field/date-range/index.vue.d.ts +7 -67
- package/es/src/ap-field/date-range/index.vue.mjs +2 -2
- package/es/src/ap-field/hooks/use-options.d.ts +1 -1
- package/es/src/ap-field/number/index.vue.d.ts +12 -169
- package/es/src/ap-field/number/index.vue.mjs +3 -3
- package/es/src/ap-field/radio/index.vue.d.ts +6 -33
- package/es/src/ap-field/radio/index.vue.mjs +5 -5
- package/es/src/ap-field/rate/index.vue.d.ts +12 -75
- package/es/src/ap-field/rate/index.vue.mjs +4 -4
- package/es/src/ap-field/segmented/index.vue.d.ts +7 -33
- package/es/src/ap-field/segmented/index.vue.mjs +3 -3
- package/es/src/ap-field/select/index.vue.d.ts +12 -234
- package/es/src/ap-field/select/index.vue.mjs +4 -4
- package/es/src/ap-field/slider/index.vue.d.ts +12 -144
- package/es/src/ap-field/slider/index.vue.mjs +3 -3
- package/es/src/ap-field/switch/index.vue.d.ts +7 -37
- package/es/src/ap-field/switch/index.vue.mjs +4 -4
- package/es/src/ap-field/text/index.vue.d.ts +8 -40
- package/es/src/ap-field/text/password.vue.d.ts +9 -47
- package/es/src/ap-field/text-area/index.vue.d.ts +6 -39
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-form/ap-form.vue.d.ts +21 -274
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/dependency/index.vue.d.ts +4 -12
- package/es/src/ap-form/drawer-form/index.vue.d.ts +37 -536
- package/es/src/ap-form/drawer-form/index.vue.mjs +2 -2
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/item/index.vue.d.ts +37 -278
- package/es/src/ap-form/item-group/index.vue.d.ts +5 -29
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +5 -37
- package/es/src/ap-form/items/date/index.vue.d.ts +5 -37
- package/es/src/ap-form/items/date-range/index.vue.d.ts +5 -37
- package/es/src/ap-form/items/number/index.vue.d.ts +53 -510
- package/es/src/ap-form/items/radio/index.vue.d.ts +14 -219
- package/es/src/ap-form/items/select/index.vue.d.ts +6 -38
- package/es/src/ap-form/items/switch/index.vue.d.ts +5 -39
- package/es/src/ap-form/items/text/group.vue.d.ts +5 -25
- package/es/src/ap-form/items/text/index.vue.d.ts +35 -522
- package/es/src/ap-form/items/text/password.vue.d.ts +44 -586
- package/es/src/ap-form/items/text-area/index.vue.d.ts +14 -507
- package/es/src/ap-form/list/index.vue.d.ts +4 -12
- package/es/src/ap-form/modal-form/index.vue.d.ts +37 -535
- package/es/src/ap-form/modal-form/index.vue.mjs +3 -3
- package/es/src/ap-form/render/control.vue.d.ts +4 -12
- package/es/src/ap-form/render/item.vue.d.ts +5 -37
- package/es/src/ap-form/search-form/index.vue.d.ts +37 -532
- package/es/src/ap-form/search-form/index.vue.mjs +2 -2
- package/es/src/ap-form/set/index.vue.d.ts +5 -25
- package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +4 -12
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +5 -27
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +6 -6
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +7 -29
- package/es/src/ap-list/index.vue.d.ts +4 -6
- package/es/src/ap-list/index.vue.mjs +27 -27
- package/es/src/ap-modal/utils/createModal.mjs +10 -10
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -24
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +3 -3
- package/es/src/ap-scroll-bar/index.d.ts +7 -42
- package/es/src/ap-table/ap-table.vue.d.ts +3 -5
- package/es/src/ap-table/ap-table.vue2.mjs +3 -3
- package/es/src/ap-table/components/index/index.vue.d.ts +3 -24
- package/es/src/ap-table/components/index/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +5 -25
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +4 -4
- package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +6 -15
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +8 -8
- package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +5 -14
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +6 -6
- package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/status/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/status/index.vue2.mjs +4 -4
- package/es/src/ap-table/constants.d.ts +162 -13517
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +11 -3
- package/es/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-content-height.mjs +13 -11
- package/es/src/ap-table/hooks/use-table-paging.d.ts +7 -3
- package/es/src/ap-table/utils.d.ts +65 -7907
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +5 -29
- package/es/src/ap-tag/ap-tag-group.vue.mjs +88 -88
- package/es/src/ap-tag/ap-tag.vue.d.ts +3 -28
- package/es/src/ap-upload/apUpload.vue.d.ts +66 -16
- package/es/src/ap-upload/apUpload.vue.mjs +56 -37
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +10 -10
- package/es/src/ap-upload/components/Picture.vue.d.ts +6 -10
- package/es/src/ap-upload/components/Picture.vue2.mjs +26 -26
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +27 -27
- package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +6 -29
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +49 -49
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +2 -2
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +10 -10
- package/es/src/business/ap-appendix/index.d.ts +7 -108
- package/es/src/business/ap-attachment/ApAttachment.d.ts +5 -5
- package/es/src/business/ap-attachment/index.d.ts +7 -48
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +4 -12
- package/es/src/business/ap-batch-action/index.d.ts +5 -32
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +3 -11
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -14
- package/es/src/business/ap-batch-action-group/index.d.ts +590 -905
- package/es/src/business/ap-button-group/ApButtonGroup.vue.d.ts +2 -19
- package/es/src/business/ap-button-group/index.d.ts +5 -603
- package/es/src/business/ap-card/ApCard.vue.d.ts +4 -12
- package/es/src/business/ap-card/index.d.ts +5 -33
- package/es/src/business/ap-card/interface.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -10
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +5 -5
- package/es/src/business/ap-expand-alert/index.d.ts +6 -8
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +3 -24
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +11 -11
- package/es/src/business/ap-export-group/index.d.ts +7 -146
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +8 -30
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +26 -26
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +9 -356
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +2 -2
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +18 -18
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +34 -34
- package/es/src/business/ap-group-search/index.d.ts +711 -2447
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +10 -357
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-image/ApImage.vue.d.ts +5 -25
- package/es/src/business/ap-image/ApImage.vue2.mjs +28 -28
- package/es/src/business/ap-image/index.d.ts +7 -139
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +6 -31
- package/es/src/business/ap-input-radio/index.d.ts +14 -339
- package/es/src/business/ap-label/ApLabel.d.ts +5 -5
- package/es/src/business/ap-label/group/ApLabelGroup.d.ts +5 -5
- package/es/src/business/ap-label/index.d.ts +13 -90
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +5 -71
- package/es/src/business/ap-ladder/index.d.ts +7 -479
- package/es/src/business/ap-select-layout/index.d.ts +5 -7
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -12
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +58 -58
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +84 -0
- package/es/src/business/ap-size-input/ApSizeInput.mjs +62 -0
- package/es/src/business/ap-size-input/constans.d.ts +38 -0
- package/es/src/business/ap-size-input/constans.mjs +40 -0
- package/es/src/business/ap-size-input/index.d.ts +155 -0
- package/es/src/business/ap-size-input/index.mjs +7 -0
- package/es/src/business/ap-size-input/interface.d.ts +11 -0
- package/es/src/business/ap-size-input/interface.mjs +1 -0
- package/es/src/business/ap-size-input/style/css.d.ts +0 -0
- package/es/src/business/ap-size-input/style/css.js +1 -0
- package/es/src/business/ap-size-input/style/index.d.ts +0 -0
- package/es/src/business/ap-size-input/style/index.js +1 -0
- package/es/src/business/ap-status/ApStatus.vue.d.ts +3 -28
- package/es/src/business/ap-status/group/ApStatusGroup.vue.d.ts +3 -30
- package/es/src/business/ap-status/index.d.ts +12 -192
- package/es/src/business/ap-summary/ap-summary.vue.d.ts +3 -28
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-summary/index.d.ts +7 -87
- package/es/src/business/ap-table-modal/index.d.ts +15 -1056
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +6 -5
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +12 -37
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +8 -58
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -9
- package/es/src/business/ap-title/ApTitle.vue.d.ts +5 -33
- package/es/src/business/ap-title/index.d.ts +7 -110
- package/es/src/business/ap-title/interface.d.ts +4 -4
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +13 -33
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +74 -70
- package/es/src/business/ap-upload-file/hook/useProps.mjs +8 -8
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +2 -2
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +18 -18
- package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +10 -10
- package/es/src/business/ap-upload-file/interface.d.ts +2 -0
- package/es/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
- package/es/src/business/ap-upload-file/utils/fileList.mjs +12 -12
- package/es/src/business/ap-upload-file/utils/upload.d.ts +3 -0
- package/es/src/business/ap-upload-file/utils/upload.mjs +23 -23
- package/es/src/business/batch-input-group/index.vue.d.ts +5 -38
- package/es/src/business/batch-input-group/index.vue.mjs +5 -5
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +4 -13
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -0
- package/es/src/business/hooks/usePageListApTable.mjs +41 -33
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +20 -18
- package/es/src/check-card/group.vue.d.ts +7 -45
- package/es/src/check-card/index.vue.d.ts +7 -37
- package/es/src/config-provider/config-provider.d.ts +5 -5
- package/es/src/config-provider/index.d.ts +7 -256
- package/es/src/editable-table/form-item.vue.d.ts +5 -7
- package/es/src/editable-table/form-item.vue.mjs +3 -3
- package/es/src/editable-table/index.vue.d.ts +4 -8
- package/es/src/editable-table/index.vue.mjs +6 -6
- package/es/src/hooks/useControllableValue.d.ts +1 -1
- package/es/src/index.mjs +40 -38
- package/es/src/locale/lang/en.mjs +5 -0
- package/es/src/locale/lang/zh-cn.mjs +5 -0
- package/es/src/path-map.mjs +1 -0
- package/es/src/tests/wrapper.d.ts +6 -6
- package/es/src/utils/ap-trans-data/index.d.ts +1 -1
- package/es/src/utils/ap-trans-data/index.mjs +26 -14
- package/es/src/work-order-modal/help-message.vue.d.ts +2 -2
- package/es/src/work-order-modal/help-message.vue2.mjs +19 -19
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -15
- package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +3 -30
- package/lib/src/ap-action/item/index.vue.d.ts +4 -36
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +5 -39
- package/lib/src/ap-action/item-modal/index.vue.d.ts +5 -33
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +5 -33
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +5 -31
- package/lib/src/ap-button/ap-button.vue.d.ts +5 -31
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +4 -12
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +4 -15
- package/lib/src/ap-download/ap-download.vue.d.ts +8 -31
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.d.ts +5 -32
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +7 -65
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +7 -67
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-options.d.ts +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +12 -169
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +6 -33
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +12 -75
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.d.ts +7 -33
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +12 -234
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +12 -144
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +7 -37
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +8 -40
- package/lib/src/ap-field/text/password.vue.d.ts +9 -47
- package/lib/src/ap-field/text-area/index.vue.d.ts +6 -39
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +21 -274
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.d.ts +4 -12
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +37 -536
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/item/index.vue.d.ts +37 -278
- package/lib/src/ap-form/item-group/index.vue.d.ts +5 -29
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +5 -37
- package/lib/src/ap-form/items/date/index.vue.d.ts +5 -37
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +5 -37
- package/lib/src/ap-form/items/number/index.vue.d.ts +53 -510
- package/lib/src/ap-form/items/radio/index.vue.d.ts +14 -219
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -38
- package/lib/src/ap-form/items/switch/index.vue.d.ts +5 -39
- package/lib/src/ap-form/items/text/group.vue.d.ts +5 -25
- package/lib/src/ap-form/items/text/index.vue.d.ts +35 -522
- package/lib/src/ap-form/items/text/password.vue.d.ts +44 -586
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +14 -507
- package/lib/src/ap-form/list/index.vue.d.ts +4 -12
- package/lib/src/ap-form/modal-form/index.vue.d.ts +37 -535
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/render/control.vue.d.ts +4 -12
- package/lib/src/ap-form/render/item.vue.d.ts +5 -37
- package/lib/src/ap-form/search-form/index.vue.d.ts +37 -532
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.d.ts +5 -25
- package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +4 -12
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +5 -27
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +7 -29
- package/lib/src/ap-list/index.vue.d.ts +4 -6
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -24
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -1
- package/lib/src/ap-scroll-bar/index.d.ts +7 -42
- 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 +3 -24
- package/lib/src/ap-table/components/index/index.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +5 -25
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +6 -15
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +5 -14
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/status/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/status/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +162 -13517
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +11 -3
- package/lib/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +7 -3
- package/lib/src/ap-table/utils.d.ts +65 -7907
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +5 -29
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +3 -28
- package/lib/src/ap-upload/apUpload.vue.d.ts +66 -16
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +6 -10
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +6 -29
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +2 -2
- package/lib/src/business/ap-appendix/icons/file-icon.vue.js +1 -1
- package/lib/src/business/ap-appendix/index.d.ts +7 -108
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +5 -5
- package/lib/src/business/ap-attachment/index.d.ts +7 -48
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +4 -12
- package/lib/src/business/ap-batch-action/index.d.ts +5 -32
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +3 -11
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -14
- package/lib/src/business/ap-batch-action-group/index.d.ts +590 -905
- package/lib/src/business/ap-button-group/ApButtonGroup.vue.d.ts +2 -19
- package/lib/src/business/ap-button-group/index.d.ts +5 -603
- package/lib/src/business/ap-card/ApCard.vue.d.ts +4 -12
- package/lib/src/business/ap-card/index.d.ts +5 -33
- package/lib/src/business/ap-card/interface.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -10
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -8
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +3 -24
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/index.d.ts +7 -146
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +8 -30
- 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 +9 -356
- 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 +2 -2
- package/lib/src/business/ap-group-search/images/icon-down.vue.js +1 -1
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +2 -2
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +711 -2447
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +10 -357
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-image/ApImage.vue.d.ts +5 -25
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/index.d.ts +7 -139
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +6 -31
- package/lib/src/business/ap-input-radio/index.d.ts +14 -339
- package/lib/src/business/ap-label/ApLabel.d.ts +5 -5
- package/lib/src/business/ap-label/group/ApLabelGroup.d.ts +5 -5
- package/lib/src/business/ap-label/index.d.ts +13 -90
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +5 -71
- package/lib/src/business/ap-ladder/index.d.ts +7 -479
- package/lib/src/business/ap-select-layout/index.d.ts +5 -7
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -12
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +84 -0
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -0
- package/lib/src/business/ap-size-input/constans.d.ts +38 -0
- package/lib/src/business/ap-size-input/constans.js +1 -0
- package/lib/src/business/ap-size-input/index.d.ts +155 -0
- package/lib/src/business/ap-size-input/index.js +1 -0
- package/lib/src/business/ap-size-input/interface.d.ts +11 -0
- package/lib/src/business/ap-size-input/interface.js +1 -0
- package/lib/src/business/ap-size-input/style/css.d.ts +0 -0
- package/lib/src/business/ap-size-input/style/css.js +1 -0
- package/lib/src/business/ap-size-input/style/index.d.ts +0 -0
- package/lib/src/business/ap-size-input/style/index.js +1 -0
- package/lib/src/business/ap-status/ApStatus.vue.d.ts +3 -28
- package/lib/src/business/ap-status/group/ApStatusGroup.vue.d.ts +3 -30
- package/lib/src/business/ap-status/index.d.ts +12 -192
- package/lib/src/business/ap-summary/ap-summary.vue.d.ts +3 -28
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/index.d.ts +7 -87
- package/lib/src/business/ap-table-modal/index.d.ts +15 -1056
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +6 -5
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +12 -37
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +8 -58
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue.d.ts +5 -33
- package/lib/src/business/ap-title/index.d.ts +7 -110
- package/lib/src/business/ap-title/interface.d.ts +4 -4
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +13 -33
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +2 -2
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.js +1 -1
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +2 -2
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
- package/lib/src/business/ap-upload-file/interface.d.ts +2 -0
- package/lib/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.d.ts +3 -0
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +5 -38
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +4 -13
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -0
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +7 -45
- package/lib/src/check-card/index.vue.d.ts +7 -37
- package/lib/src/config-provider/config-provider.d.ts +5 -5
- package/lib/src/config-provider/index.d.ts +7 -256
- package/lib/src/editable-table/form-item.vue.d.ts +5 -7
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +4 -8
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/hooks/useControllableValue.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/tests/wrapper.d.ts +6 -6
- package/lib/src/utils/ap-trans-data/index.d.ts +1 -1
- package/lib/src/utils/ap-trans-data/index.js +1 -1
- package/lib/src/work-order-modal/help-message.vue.d.ts +2 -2
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -15
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultOptionType, SelectValue, LabeledValue } from '@aplus-frontend/antdv/es/select';
|
|
2
2
|
import { ApFieldSelectProps } from '../interface';
|
|
3
|
-
import {
|
|
3
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
5
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
6
6
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
@@ -26,175 +26,10 @@ declare function requestIfNeeded(clear?: boolean): Promise<void>;
|
|
|
26
26
|
declare function focus(): void;
|
|
27
27
|
declare function blur(): void;
|
|
28
28
|
declare function __VLS_template(): {
|
|
29
|
+
attrs: Partial<{}>;
|
|
29
30
|
slots: Readonly<ApFieldSelectSlots> & ApFieldSelectSlots;
|
|
30
31
|
refs: {
|
|
31
|
-
selectRef:
|
|
32
|
-
value: {
|
|
33
|
-
type: PropType<SelectValue>;
|
|
34
|
-
default: SelectValue;
|
|
35
|
-
};
|
|
36
|
-
defaultValue: {
|
|
37
|
-
type: PropType<SelectValue>;
|
|
38
|
-
default: SelectValue;
|
|
39
|
-
};
|
|
40
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
41
|
-
suffixIcon: VueTypeValidableDef<any>;
|
|
42
|
-
itemIcon: VueTypeValidableDef<any>;
|
|
43
|
-
size: {
|
|
44
|
-
type: PropType<ButtonSize>;
|
|
45
|
-
default: ButtonSize;
|
|
46
|
-
};
|
|
47
|
-
mode: {
|
|
48
|
-
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
49
|
-
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
50
|
-
};
|
|
51
|
-
bordered: {
|
|
52
|
-
type: BooleanConstructor;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
|
-
transitionName: StringConstructor;
|
|
56
|
-
choiceTransitionName: {
|
|
57
|
-
type: PropType<"">;
|
|
58
|
-
default: "";
|
|
59
|
-
};
|
|
60
|
-
popupClassName: StringConstructor;
|
|
61
|
-
dropdownClassName: StringConstructor;
|
|
62
|
-
placement: {
|
|
63
|
-
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
64
|
-
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
65
|
-
};
|
|
66
|
-
status: {
|
|
67
|
-
type: PropType<"" | "error" | "warning">;
|
|
68
|
-
default: "" | "error" | "warning";
|
|
69
|
-
};
|
|
70
|
-
'onUpdate:value': {
|
|
71
|
-
type: PropType<(val: SelectValue) => void>;
|
|
72
|
-
default: (val: SelectValue) => void;
|
|
73
|
-
};
|
|
74
|
-
children: PropType< VueNode[]>;
|
|
75
|
-
listHeight: NumberConstructor;
|
|
76
|
-
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
77
|
-
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
78
|
-
tabindex: NumberConstructor;
|
|
79
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
80
|
-
onFocus: {
|
|
81
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
82
|
-
};
|
|
83
|
-
onBlur: {
|
|
84
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
85
|
-
};
|
|
86
|
-
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
87
|
-
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
88
|
-
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
89
|
-
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
90
|
-
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
91
|
-
open: {
|
|
92
|
-
type: BooleanConstructor;
|
|
93
|
-
default: any;
|
|
94
|
-
};
|
|
95
|
-
animation: StringConstructor;
|
|
96
|
-
direction: {
|
|
97
|
-
type: PropType<"rtl" | "ltr">;
|
|
98
|
-
};
|
|
99
|
-
disabled: {
|
|
100
|
-
type: BooleanConstructor;
|
|
101
|
-
default: any;
|
|
102
|
-
};
|
|
103
|
-
prefixCls: StringConstructor;
|
|
104
|
-
id: StringConstructor;
|
|
105
|
-
autofocus: BooleanConstructor;
|
|
106
|
-
getPopupContainer: {
|
|
107
|
-
type: PropType<RenderDOMFunc>;
|
|
108
|
-
};
|
|
109
|
-
virtual: {
|
|
110
|
-
type: BooleanConstructor;
|
|
111
|
-
default: any;
|
|
112
|
-
};
|
|
113
|
-
dropdownMatchSelectWidth: {
|
|
114
|
-
type: PropType<number | boolean>;
|
|
115
|
-
default: any;
|
|
116
|
-
};
|
|
117
|
-
options: PropType<DefaultOptionType[]>;
|
|
118
|
-
showAction: {
|
|
119
|
-
type: PropType<("click" | "focus")[]>;
|
|
120
|
-
};
|
|
121
|
-
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
122
|
-
loading: {
|
|
123
|
-
type: BooleanConstructor;
|
|
124
|
-
default: any;
|
|
125
|
-
};
|
|
126
|
-
placeholder: VueTypeValidableDef<any>;
|
|
127
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
128
|
-
allowClear: {
|
|
129
|
-
type: BooleanConstructor;
|
|
130
|
-
default: any;
|
|
131
|
-
};
|
|
132
|
-
onSearch: PropType<(value: string) => void>;
|
|
133
|
-
fieldNames: PropType<FieldNames>;
|
|
134
|
-
dropdownStyle: {
|
|
135
|
-
type: PropType<CSSProperties>;
|
|
136
|
-
};
|
|
137
|
-
dropdownRender: {
|
|
138
|
-
type: PropType<DropdownRender>;
|
|
139
|
-
};
|
|
140
|
-
dropdownAlign: PropType<AlignType>;
|
|
141
|
-
showSearch: {
|
|
142
|
-
type: BooleanConstructor;
|
|
143
|
-
default: any;
|
|
144
|
-
};
|
|
145
|
-
searchValue: StringConstructor;
|
|
146
|
-
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
147
|
-
removeIcon: VueTypeValidableDef<any>;
|
|
148
|
-
maxTagCount: {
|
|
149
|
-
type: PropType<number | "responsive">;
|
|
150
|
-
};
|
|
151
|
-
maxTagTextLength: NumberConstructor;
|
|
152
|
-
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
153
|
-
tokenSeparators: {
|
|
154
|
-
type: PropType<string[]>;
|
|
155
|
-
};
|
|
156
|
-
tagRender: {
|
|
157
|
-
type: PropType<(props: CustomTagProps) => any>;
|
|
158
|
-
};
|
|
159
|
-
optionLabelRender: {
|
|
160
|
-
type: PropType<(option: Record<string, any>) => any>;
|
|
161
|
-
};
|
|
162
|
-
onClear: PropType<() => void>;
|
|
163
|
-
defaultOpen: {
|
|
164
|
-
type: BooleanConstructor;
|
|
165
|
-
default: any;
|
|
166
|
-
};
|
|
167
|
-
onDropdownVisibleChange: {
|
|
168
|
-
type: PropType<(open: boolean) => void>;
|
|
169
|
-
};
|
|
170
|
-
showArrow: {
|
|
171
|
-
type: BooleanConstructor;
|
|
172
|
-
default: any;
|
|
173
|
-
};
|
|
174
|
-
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
175
|
-
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
176
|
-
listItemHeight: NumberConstructor;
|
|
177
|
-
inputValue: StringConstructor;
|
|
178
|
-
autoClearSearchValue: {
|
|
179
|
-
type: BooleanConstructor;
|
|
180
|
-
default: any;
|
|
181
|
-
};
|
|
182
|
-
filterOption: {
|
|
183
|
-
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
184
|
-
default: any;
|
|
185
|
-
};
|
|
186
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
187
|
-
optionFilterProp: StringConstructor;
|
|
188
|
-
optionLabelProp: StringConstructor;
|
|
189
|
-
defaultActiveFirstOption: {
|
|
190
|
-
type: BooleanConstructor;
|
|
191
|
-
default: any;
|
|
192
|
-
};
|
|
193
|
-
labelInValue: {
|
|
194
|
-
type: BooleanConstructor;
|
|
195
|
-
default: any;
|
|
196
|
-
};
|
|
197
|
-
}>>, () => VueNode, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
32
|
+
selectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
198
33
|
value: {
|
|
199
34
|
type: PropType<SelectValue>;
|
|
200
35
|
default: SelectValue;
|
|
@@ -360,7 +195,7 @@ declare function __VLS_template(): {
|
|
|
360
195
|
type: BooleanConstructor;
|
|
361
196
|
default: any;
|
|
362
197
|
};
|
|
363
|
-
}
|
|
198
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
364
199
|
size: ButtonSize;
|
|
365
200
|
value: SelectValue;
|
|
366
201
|
mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
@@ -397,7 +232,7 @@ declare function __VLS_template(): {
|
|
|
397
232
|
maxTagPlaceholder: any;
|
|
398
233
|
optionLabel: any;
|
|
399
234
|
default: any;
|
|
400
|
-
}>, {
|
|
235
|
+
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
401
236
|
P: {};
|
|
402
237
|
B: {};
|
|
403
238
|
D: {};
|
|
@@ -570,7 +405,7 @@ declare function __VLS_template(): {
|
|
|
570
405
|
type: BooleanConstructor;
|
|
571
406
|
default: any;
|
|
572
407
|
};
|
|
573
|
-
}
|
|
408
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
574
409
|
size: ButtonSize;
|
|
575
410
|
value: SelectValue;
|
|
576
411
|
mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
@@ -596,58 +431,18 @@ declare function __VLS_template(): {
|
|
|
596
431
|
labelInValue: boolean;
|
|
597
432
|
}> | null;
|
|
598
433
|
};
|
|
599
|
-
|
|
434
|
+
rootEl: any;
|
|
600
435
|
};
|
|
601
436
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
602
|
-
declare const __VLS_component: DefineComponent<
|
|
603
|
-
mode: string;
|
|
604
|
-
emptyText: string;
|
|
605
|
-
bordered: undefined;
|
|
606
|
-
open: undefined;
|
|
607
|
-
disabled: undefined;
|
|
608
|
-
autofocus: undefined;
|
|
609
|
-
virtual: undefined;
|
|
610
|
-
loading: undefined;
|
|
611
|
-
allowClear: boolean;
|
|
612
|
-
showSearch: undefined;
|
|
613
|
-
defaultOpen: undefined;
|
|
614
|
-
showArrow: undefined;
|
|
615
|
-
autoClearSearchValue: undefined;
|
|
616
|
-
defaultActiveFirstOption: undefined;
|
|
617
|
-
labelInValue: undefined;
|
|
618
|
-
multiple: undefined;
|
|
619
|
-
searchMode: string;
|
|
620
|
-
refetchOnFocus: boolean;
|
|
621
|
-
lazy: boolean;
|
|
622
|
-
}>, {
|
|
437
|
+
declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
623
438
|
focus: typeof focus;
|
|
624
439
|
blur: typeof blur;
|
|
625
440
|
request: typeof requestIfNeeded;
|
|
626
|
-
},
|
|
441
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
627
442
|
"update:value": (...args: any[]) => void;
|
|
628
|
-
}, string, PublicProps, Readonly<
|
|
629
|
-
mode: string;
|
|
630
|
-
emptyText: string;
|
|
631
|
-
bordered: undefined;
|
|
632
|
-
open: undefined;
|
|
633
|
-
disabled: undefined;
|
|
634
|
-
autofocus: undefined;
|
|
635
|
-
virtual: undefined;
|
|
636
|
-
loading: undefined;
|
|
637
|
-
allowClear: boolean;
|
|
638
|
-
showSearch: undefined;
|
|
639
|
-
defaultOpen: undefined;
|
|
640
|
-
showArrow: undefined;
|
|
641
|
-
autoClearSearchValue: undefined;
|
|
642
|
-
defaultActiveFirstOption: undefined;
|
|
643
|
-
labelInValue: undefined;
|
|
644
|
-
multiple: undefined;
|
|
645
|
-
searchMode: string;
|
|
646
|
-
refetchOnFocus: boolean;
|
|
647
|
-
lazy: boolean;
|
|
648
|
-
}>>> & {
|
|
443
|
+
}, string, PublicProps, Readonly<ApFieldSelectProps> & Readonly<{
|
|
649
444
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
650
|
-
}
|
|
445
|
+
}>, {
|
|
651
446
|
mode: FieldMode;
|
|
652
447
|
open: boolean;
|
|
653
448
|
multiple: boolean;
|
|
@@ -667,28 +462,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
667
462
|
emptyText: string;
|
|
668
463
|
searchMode: "filter" | "request";
|
|
669
464
|
refetchOnFocus: boolean;
|
|
670
|
-
}, {}>;
|
|
465
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
671
466
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
672
467
|
export default _default;
|
|
673
|
-
type __VLS_WithDefaults<P, D> = {
|
|
674
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
675
|
-
default: D[K];
|
|
676
|
-
}> : P[K];
|
|
677
|
-
};
|
|
678
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
679
|
-
type __VLS_TypePropsToOption<T> = {
|
|
680
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
681
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
682
|
-
} : {
|
|
683
|
-
type: PropType<T[K]>;
|
|
684
|
-
required: true;
|
|
685
|
-
};
|
|
686
|
-
};
|
|
687
468
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
688
469
|
new (): {
|
|
689
470
|
$slots: S;
|
|
690
471
|
};
|
|
691
472
|
};
|
|
692
|
-
type __VLS_PrettifyLocal<T> = {
|
|
693
|
-
[K in keyof T]: T[K];
|
|
694
|
-
} & {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash-unified"),w=require("@aplus-frontend/antdv");require("../../hooks/index.js");const k=require("../../utils/index.js"),T=require("../hooks/use-default-placeholder.js"),_=require("../hooks/use-options.js"),A=require("../../hooks/useControllableValue.js"),U={key:0},D=o.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean,default:void 0},placeholder:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},onBeforeSelect:{}},emits:["update:value"],setup(S,{expose:B,emit:g}){let r=0;const b=i.debounce(t=>{if(!i.isFunction(e.request))return;r+=1;const n=r;s([]),u.value=!0,e.request(t).then(l=>{r===n&&s(l)}).finally(()=>{u.value=!1})},300),e=S,C=(t,n)=>{var a;const l=((a=e.fieldNames)==null?void 0:a.label)||"label";return typeof(n==null?void 0:n[l])=="string"&&n[l].toLowerCase().indexOf(t.toLowerCase())>-1},{options:c,updateOptions:s}=_.default(e),f=o.ref(),u=o.ref((e==null?void 0:e.loading)||!1),F=g;async function p(t=!0){if(!i.isFunction(e.request))return;u.value=!0,r+=1;const n=r;try{t&&s([]);const l=await e.request();if(n!==r)return;s(l)}finally{u.value=!1}}function q(t){var n;(n=e.onFocus)==null||n.call(e,t),e.refetchOnFocus&&r>0&&!u.value&&p(!0)}o.onMounted(()=>{if(e.lazy){r+=1;return}p()});const{value:v,updateValue:x}=A.useControllableValue(e,F,{beforeUpdateValue:e.onBeforeSelect}),N=T.useDefaultPlaceholder("Select",e),O=o.computed(()=>{var d,h;const t=o.unref(v);if(!t)return e.emptyText;const n=((d=e.fieldNames)==null?void 0:d.label)||"label",l=((h=e.fieldNames)==null?void 0:h.value)||"value";if(i.isArray(t))return t.map(m=>{var y;return(y=o.unref(c).find(M=>M[l]===m))==null?void 0:y[n]}).filter(Boolean).join("、")||e.emptyText;const a=o.unref(c).find(m=>m[l]===t);return(a==null?void 0:a[n])||e.emptyText}),I=o.computed(()=>{const t=!!(e!=null&&e.showSearch),n=e.searchMode;let l={};return t&&(l=n==="request"?{showArrow:!1,defaultActiveFirstOption:!1,onSearch:b,notFoundContent:u.value?void 0:null}:{showArrow:!0,filterOption:i.isNil(e==null?void 0:e.filterOption)?C:e==null?void 0:e.filterOption}),{...k.omitUndefined(i.omit(e,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus"])),placeholder:o.unref(N),...l}});function P(){var t;(t=f.value)==null||t.focus()}function V(){var t;(t=f.value)==null||t.blur()}return B({focus:P,blur:V,request:p}),(t,n)=>t.mode==="read"?(o.openBlock(),o.createElementBlock("span",U,o.toDisplayString(O.value),1)):(o.openBlock(),o.createBlock(o.unref(w.Select),o.mergeProps({key:1,
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash-unified"),w=require("@aplus-frontend/antdv");require("../../hooks/index.js");const k=require("../../utils/index.js"),T=require("../hooks/use-default-placeholder.js"),_=require("../hooks/use-options.js"),A=require("../../hooks/useControllableValue.js"),U={key:0},D=o.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean,default:void 0},placeholder:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},onBeforeSelect:{}},emits:["update:value"],setup(S,{expose:B,emit:g}){let r=0;const b=i.debounce(t=>{if(!i.isFunction(e.request))return;r+=1;const n=r;s([]),u.value=!0,e.request(t).then(l=>{r===n&&s(l)}).finally(()=>{u.value=!1})},300),e=S,C=(t,n)=>{var a;const l=((a=e.fieldNames)==null?void 0:a.label)||"label";return typeof(n==null?void 0:n[l])=="string"&&n[l].toLowerCase().indexOf(t.toLowerCase())>-1},{options:c,updateOptions:s}=_.default(e),f=o.ref(),u=o.ref((e==null?void 0:e.loading)||!1),F=g;async function p(t=!0){if(!i.isFunction(e.request))return;u.value=!0,r+=1;const n=r;try{t&&s([]);const l=await e.request();if(n!==r)return;s(l)}finally{u.value=!1}}function q(t){var n;(n=e.onFocus)==null||n.call(e,t),e.refetchOnFocus&&r>0&&!u.value&&p(!0)}o.onMounted(()=>{if(e.lazy){r+=1;return}p()});const{value:v,updateValue:x}=A.useControllableValue(e,F,{beforeUpdateValue:e.onBeforeSelect}),N=T.useDefaultPlaceholder("Select",e),O=o.computed(()=>{var d,h;const t=o.unref(v);if(!t)return e.emptyText;const n=((d=e.fieldNames)==null?void 0:d.label)||"label",l=((h=e.fieldNames)==null?void 0:h.value)||"value";if(i.isArray(t))return t.map(m=>{var y;return(y=o.unref(c).find(M=>M[l]===m))==null?void 0:y[n]}).filter(Boolean).join("、")||e.emptyText;const a=o.unref(c).find(m=>m[l]===t);return(a==null?void 0:a[n])||e.emptyText}),I=o.computed(()=>{const t=!!(e!=null&&e.showSearch),n=e.searchMode;let l={};return t&&(l=n==="request"?{showArrow:!1,defaultActiveFirstOption:!1,onSearch:b,notFoundContent:u.value?void 0:null}:{showArrow:!0,filterOption:i.isNil(e==null?void 0:e.filterOption)?C:e==null?void 0:e.filterOption}),{...k.omitUndefined(i.omit(e,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus"])),placeholder:o.unref(N),...l}});function P(){var t;(t=f.value)==null||t.focus()}function V(){var t;(t=f.value)==null||t.blur()}return B({focus:P,blur:V,request:p}),(t,n)=>t.mode==="read"?(o.openBlock(),o.createElementBlock("span",U,o.toDisplayString(O.value),1)):(o.openBlock(),o.createBlock(o.unref(w.Select),o.mergeProps({key:1,ref_key:"selectRef",ref:f,"allow-clear":""},I.value,{mode:t.multiple?"multiple":void 0,value:o.unref(v),options:o.unref(c),loading:u.value,"onUpdate:value":o.unref(x),onFocus:q}),o.createSlots({_:2},[o.renderList(t.$slots,(l,a)=>({name:a,fn:o.withCtx(d=>[o.renderSlot(t.$slots,a,o.normalizeProps(o.guardReactiveProps(d||{})))])})),u.value?{name:"notFoundContent",fn:o.withCtx(()=>[o.createVNode(o.unref(w.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","options","loading","onUpdate:value"]))}});exports.default=D;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFieldSliderProps } from '../interface';
|
|
2
|
-
import {
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
3
3
|
import { SliderRange, SliderMarks } from '@aplus-frontend/antdv/es/slider';
|
|
4
4
|
import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip';
|
|
5
5
|
import { FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
@@ -14,107 +14,10 @@ type ApFieldSliderSlots = {
|
|
|
14
14
|
declare function focus(): void;
|
|
15
15
|
declare function blur(): void;
|
|
16
16
|
declare function __VLS_template(): {
|
|
17
|
+
attrs: Partial<{}>;
|
|
17
18
|
slots: Readonly<ApFieldSliderSlots> & ApFieldSliderSlots;
|
|
18
19
|
refs: {
|
|
19
|
-
sliderRef:
|
|
20
|
-
id: StringConstructor;
|
|
21
|
-
prefixCls: StringConstructor;
|
|
22
|
-
tooltipPrefixCls: StringConstructor;
|
|
23
|
-
range: {
|
|
24
|
-
type: PropType<boolean | SliderRange>;
|
|
25
|
-
default: boolean | SliderRange;
|
|
26
|
-
};
|
|
27
|
-
reverse: {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
|
-
min: NumberConstructor;
|
|
32
|
-
max: NumberConstructor;
|
|
33
|
-
step: {
|
|
34
|
-
type: PropType<number>;
|
|
35
|
-
default: number;
|
|
36
|
-
};
|
|
37
|
-
marks: {
|
|
38
|
-
type: PropType<SliderMarks>;
|
|
39
|
-
default: SliderMarks;
|
|
40
|
-
};
|
|
41
|
-
dots: {
|
|
42
|
-
type: BooleanConstructor;
|
|
43
|
-
default: boolean;
|
|
44
|
-
};
|
|
45
|
-
value: {
|
|
46
|
-
type: PropType<number | [number, number]>;
|
|
47
|
-
default: number | [number, number];
|
|
48
|
-
};
|
|
49
|
-
defaultValue: {
|
|
50
|
-
type: PropType<number | [number, number]>;
|
|
51
|
-
default: number | [number, number];
|
|
52
|
-
};
|
|
53
|
-
included: {
|
|
54
|
-
type: BooleanConstructor;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
|
-
disabled: {
|
|
58
|
-
type: BooleanConstructor;
|
|
59
|
-
default: boolean;
|
|
60
|
-
};
|
|
61
|
-
vertical: {
|
|
62
|
-
type: BooleanConstructor;
|
|
63
|
-
default: boolean;
|
|
64
|
-
};
|
|
65
|
-
tipFormatter: {
|
|
66
|
-
type: PropType<(value?: number) => any>;
|
|
67
|
-
default: (value?: number) => any;
|
|
68
|
-
};
|
|
69
|
-
tooltipOpen: {
|
|
70
|
-
type: BooleanConstructor;
|
|
71
|
-
default: boolean;
|
|
72
|
-
};
|
|
73
|
-
tooltipVisible: {
|
|
74
|
-
type: BooleanConstructor;
|
|
75
|
-
default: boolean;
|
|
76
|
-
};
|
|
77
|
-
tooltipPlacement: {
|
|
78
|
-
type: PropType<TooltipPlacement>;
|
|
79
|
-
default: TooltipPlacement;
|
|
80
|
-
};
|
|
81
|
-
getTooltipPopupContainer: {
|
|
82
|
-
type: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
83
|
-
default: (triggerNode: HTMLElement) => HTMLElement;
|
|
84
|
-
};
|
|
85
|
-
autofocus: {
|
|
86
|
-
type: BooleanConstructor;
|
|
87
|
-
default: boolean;
|
|
88
|
-
};
|
|
89
|
-
handleStyle: {
|
|
90
|
-
type: PropType< CSSProperties | CSSProperties[]>;
|
|
91
|
-
default: CSSProperties | CSSProperties[];
|
|
92
|
-
};
|
|
93
|
-
trackStyle: {
|
|
94
|
-
type: PropType< CSSProperties | CSSProperties[]>;
|
|
95
|
-
default: CSSProperties | CSSProperties[];
|
|
96
|
-
};
|
|
97
|
-
onChange: {
|
|
98
|
-
type: PropType<(value: number | [number, number]) => void>;
|
|
99
|
-
default: (value: number | [number, number]) => void;
|
|
100
|
-
};
|
|
101
|
-
onAfterChange: {
|
|
102
|
-
type: PropType<(value: number | [number, number]) => void>;
|
|
103
|
-
default: (value: number | [number, number]) => void;
|
|
104
|
-
};
|
|
105
|
-
onFocus: {
|
|
106
|
-
type: PropType<FocusEventHandler>;
|
|
107
|
-
default: FocusEventHandler;
|
|
108
|
-
};
|
|
109
|
-
onBlur: {
|
|
110
|
-
type: PropType<FocusEventHandler>;
|
|
111
|
-
default: FocusEventHandler;
|
|
112
|
-
};
|
|
113
|
-
'onUpdate:value': {
|
|
114
|
-
type: PropType<(value: number | [number, number]) => void>;
|
|
115
|
-
default: (value: number | [number, number]) => void;
|
|
116
|
-
};
|
|
117
|
-
}>>, () => VueNode, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
20
|
+
sliderRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
118
21
|
id: StringConstructor;
|
|
119
22
|
prefixCls: StringConstructor;
|
|
120
23
|
tooltipPrefixCls: StringConstructor;
|
|
@@ -212,7 +115,7 @@ declare function __VLS_template(): {
|
|
|
212
115
|
type: PropType<(value: number | [number, number]) => void>;
|
|
213
116
|
default: (value: number | [number, number]) => void;
|
|
214
117
|
};
|
|
215
|
-
}
|
|
118
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
216
119
|
value: number | [number, number];
|
|
217
120
|
vertical: boolean;
|
|
218
121
|
trackStyle: CSSProperties | CSSProperties[];
|
|
@@ -239,7 +142,7 @@ declare function __VLS_template(): {
|
|
|
239
142
|
}, true, {}, CustomSlotsType<{
|
|
240
143
|
mark?: any;
|
|
241
144
|
default?: any;
|
|
242
|
-
}>, {
|
|
145
|
+
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
243
146
|
P: {};
|
|
244
147
|
B: {};
|
|
245
148
|
D: {};
|
|
@@ -344,7 +247,7 @@ declare function __VLS_template(): {
|
|
|
344
247
|
type: PropType<(value: number | [number, number]) => void>;
|
|
345
248
|
default: (value: number | [number, number]) => void;
|
|
346
249
|
};
|
|
347
|
-
}
|
|
250
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
348
251
|
value: number | [number, number];
|
|
349
252
|
vertical: boolean;
|
|
350
253
|
trackStyle: CSSProperties | CSSProperties[];
|
|
@@ -370,35 +273,17 @@ declare function __VLS_template(): {
|
|
|
370
273
|
getTooltipPopupContainer: (triggerNode: HTMLElement) => HTMLElement;
|
|
371
274
|
}> | null;
|
|
372
275
|
};
|
|
373
|
-
|
|
276
|
+
rootEl: any;
|
|
374
277
|
};
|
|
375
278
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
376
|
-
declare const __VLS_component: DefineComponent<
|
|
377
|
-
included: boolean;
|
|
378
|
-
min: number;
|
|
379
|
-
max: number;
|
|
380
|
-
step: number;
|
|
381
|
-
tooltipOpen: undefined;
|
|
382
|
-
tooltipVisible: undefined;
|
|
383
|
-
emptyText: string;
|
|
384
|
-
disabled: undefined;
|
|
385
|
-
}>, {
|
|
279
|
+
declare const __VLS_component: DefineComponent<ApFieldSliderProps, {
|
|
386
280
|
focus: typeof focus;
|
|
387
281
|
blur: typeof blur;
|
|
388
|
-
},
|
|
282
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
389
283
|
"update:value": (...args: any[]) => void;
|
|
390
|
-
}, string, PublicProps, Readonly<
|
|
391
|
-
included: boolean;
|
|
392
|
-
min: number;
|
|
393
|
-
max: number;
|
|
394
|
-
step: number;
|
|
395
|
-
tooltipOpen: undefined;
|
|
396
|
-
tooltipVisible: undefined;
|
|
397
|
-
emptyText: string;
|
|
398
|
-
disabled: undefined;
|
|
399
|
-
}>>> & {
|
|
284
|
+
}, string, PublicProps, Readonly<ApFieldSliderProps> & Readonly<{
|
|
400
285
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
401
|
-
}
|
|
286
|
+
}>, {
|
|
402
287
|
disabled: boolean;
|
|
403
288
|
max: number;
|
|
404
289
|
min: number;
|
|
@@ -407,28 +292,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
407
292
|
tooltipOpen: boolean;
|
|
408
293
|
tooltipVisible: boolean;
|
|
409
294
|
emptyText: string;
|
|
410
|
-
}, {}>;
|
|
295
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
411
296
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
412
297
|
export default _default;
|
|
413
|
-
type __VLS_WithDefaults<P, D> = {
|
|
414
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
415
|
-
default: D[K];
|
|
416
|
-
}> : P[K];
|
|
417
|
-
};
|
|
418
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
419
|
-
type __VLS_TypePropsToOption<T> = {
|
|
420
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
421
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
422
|
-
} : {
|
|
423
|
-
type: PropType<T[K]>;
|
|
424
|
-
required: true;
|
|
425
|
-
};
|
|
426
|
-
};
|
|
427
298
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
428
299
|
new (): {
|
|
429
300
|
$slots: S;
|
|
430
301
|
};
|
|
431
302
|
};
|
|
432
|
-
type __VLS_PrettifyLocal<T> = {
|
|
433
|
-
[K in keyof T]: T[K];
|
|
434
|
-
} & {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("@aplus-frontend/antdv");require("../../hooks/index.js");const r=require("lodash-unified"),x=require("../../hooks/useControllableValue.js"),S=e.defineComponent({name:"ApFieldSlider",__name:"index",props:{mode:{},class:{},style:{},id:{},prefixCls:{},tooltipPrefixCls:{},range:{},reverse:{type:Boolean},min:{default:0},max:{default:100},step:{default:1},marks:{},dots:{type:Boolean},value:{},defaultValue:{},included:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},vertical:{type:Boolean},tipFormatter:{},tooltipOpen:{type:Boolean,default:void 0},tooltipVisible:{type:Boolean,default:void 0},tooltipPlacement:{},getTooltipPopupContainer:{},autofocus:{type:Boolean},handleStyle:{},trackStyle:{},onChange:{},onAfterChange:{},onFocus:{},onBlur:{},"onUpdate:value":{},emptyText:{default:"--"}},emits:["update:value"],setup(s,{expose:i,emit:d}){const p=e.useSlots(),l=e.ref(),a=s,c=d,{value:n,updateValue:f}=x.useControllableValue(a,c),m=e.computed(()=>{const t=e.unref(n);return r.isNil(t)?a.emptyText:r.isArray(t)?`${t[0]}-${t[1]}`:t});function v(){var t,o;(o=(t=l.value)==null?void 0:t.focus)==null||o.call(t)}function y(){var t,o;(o=(t=l.value)==null?void 0:t.blur)==null||o.call(t)}return i({focus:v,blur:y}),(t,o)=>t.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(m.value),1)],64)):(e.openBlock(),e.createBlock(e.unref(g.Slider),e.mergeProps({key:1},e.unref(r.omit)(a,["value","onUpdate:value","mode","emptyText","defaultValue"]),{value:e.unref(n),"onUpdate:value":e.unref(f)
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("@aplus-frontend/antdv");require("../../hooks/index.js");const r=require("lodash-unified"),x=require("../../hooks/useControllableValue.js"),S=e.defineComponent({name:"ApFieldSlider",__name:"index",props:{mode:{},class:{},style:{},id:{},prefixCls:{},tooltipPrefixCls:{},range:{},reverse:{type:Boolean},min:{default:0},max:{default:100},step:{default:1},marks:{},dots:{type:Boolean},value:{},defaultValue:{},included:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},vertical:{type:Boolean},tipFormatter:{},tooltipOpen:{type:Boolean,default:void 0},tooltipVisible:{type:Boolean,default:void 0},tooltipPlacement:{},getTooltipPopupContainer:{},autofocus:{type:Boolean},handleStyle:{},trackStyle:{},onChange:{},onAfterChange:{},onFocus:{},onBlur:{},"onUpdate:value":{},emptyText:{default:"--"}},emits:["update:value"],setup(s,{expose:i,emit:d}){const p=e.useSlots(),l=e.ref(),a=s,c=d,{value:n,updateValue:f}=x.useControllableValue(a,c),m=e.computed(()=>{const t=e.unref(n);return r.isNil(t)?a.emptyText:r.isArray(t)?`${t[0]}-${t[1]}`:t});function v(){var t,o;(o=(t=l.value)==null?void 0:t.focus)==null||o.call(t)}function y(){var t,o;(o=(t=l.value)==null?void 0:t.blur)==null||o.call(t)}return i({focus:v,blur:y}),(t,o)=>t.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(m.value),1)],64)):(e.openBlock(),e.createBlock(e.unref(g.Slider),e.mergeProps({key:1},e.unref(r.omit)(a,["value","onUpdate:value","mode","emptyText","defaultValue"]),{ref_key:"sliderRef",ref:l,value:e.unref(n),"onUpdate:value":e.unref(f)}),e.createSlots({_:2},[e.renderList(p,(k,u)=>({name:u,fn:e.withCtx(B=>[e.renderSlot(t.$slots,u,e.normalizeProps(e.guardReactiveProps(B||{})))])}))]),1040,["value","onUpdate:value"]))}});exports.default=S;
|
|
@@ -1,63 +1,33 @@
|
|
|
1
1
|
import { ApFieldSwitchProps } from '../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
type ApFieldSwitchSlots = {
|
|
4
4
|
checkedChildren: any;
|
|
5
5
|
unCheckedChildren: any;
|
|
6
6
|
default: any;
|
|
7
7
|
};
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
9
10
|
slots: Readonly<ApFieldSwitchSlots> & ApFieldSwitchSlots;
|
|
10
11
|
refs: {};
|
|
11
|
-
|
|
12
|
+
rootEl: any;
|
|
12
13
|
};
|
|
13
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
-
declare const __VLS_component: DefineComponent<
|
|
15
|
-
emptyText: string;
|
|
16
|
-
checkedValue: boolean;
|
|
17
|
-
unCheckedValue: boolean;
|
|
18
|
-
size: string;
|
|
19
|
-
loading: undefined;
|
|
20
|
-
disabled: undefined;
|
|
21
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
+
declare const __VLS_component: DefineComponent<ApFieldSwitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
22
16
|
"update:checked": (...args: any[]) => void;
|
|
23
|
-
}, string, PublicProps, Readonly<
|
|
24
|
-
emptyText: string;
|
|
25
|
-
checkedValue: boolean;
|
|
26
|
-
unCheckedValue: boolean;
|
|
27
|
-
size: string;
|
|
28
|
-
loading: undefined;
|
|
29
|
-
disabled: undefined;
|
|
30
|
-
}>>> & {
|
|
17
|
+
}, string, PublicProps, Readonly<ApFieldSwitchProps> & Readonly<{
|
|
31
18
|
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
32
|
-
}
|
|
19
|
+
}>, {
|
|
33
20
|
size: "small" | "default";
|
|
34
21
|
disabled: boolean;
|
|
35
22
|
loading: boolean;
|
|
36
23
|
checkedValue: string | number | boolean;
|
|
37
24
|
unCheckedValue: string | number | boolean;
|
|
38
25
|
emptyText: string;
|
|
39
|
-
}, {}>;
|
|
26
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
40
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
28
|
export default _default;
|
|
42
|
-
type __VLS_WithDefaults<P, D> = {
|
|
43
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
44
|
-
default: D[K];
|
|
45
|
-
}> : P[K];
|
|
46
|
-
};
|
|
47
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
|
-
type __VLS_TypePropsToOption<T> = {
|
|
49
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
|
-
} : {
|
|
52
|
-
type: PropType<T[K]>;
|
|
53
|
-
required: true;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
29
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
30
|
new (): {
|
|
58
31
|
$slots: S;
|
|
59
32
|
};
|
|
60
33
|
};
|
|
61
|
-
type __VLS_PrettifyLocal<T> = {
|
|
62
|
-
[K in keyof T]: T[K];
|
|
63
|
-
} & {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("@aplus-frontend/antdv");require("../../hooks/index.js");const s=require("lodash-unified"),i=require("@fruits-chain/utils"),V=require("../../hooks/useControllableValue.js"),B=e.defineComponent({name:"ApFieldSwitch",__name:"index",props:{mode:{},class:{},style:{},id:{},prefixCls:{},size:{default:"default"},disabled:{type:Boolean,default:void 0},checkedChildren:{},unCheckedChildren:{},tabindex:{},autofocus:{type:Boolean},loading:{type:Boolean,default:void 0},checked:{},checkedValue:{default:!0},unCheckedValue:{default:!1},onChange:{},onKeydown:{},onMouseup:{},"onUpdate:checked":{},onBlur:{},onFocus:{},emptyText:{default:"--"},onAction:{},confirm:{}},emits:["update:checked"],setup(m,{emit:p}){const r=e.useSlots(),n=m,C=p,{value:c,updateValue:a}=V.useControllableValue(n,C,{valuePropName:"checked"}),u=e.ref(!1);async function k(o,d){if(!i.isDef(n.confirm)){if(!i.isDef(n.onAction)){a(o);return}u.value=!0;try{await n.onAction(o,d)&&a(o)}finally{u.value=!1}}}async function g(){const o=e.unref(c)===n.checkedValue?n.unCheckedValue:n.checkedValue;if(!i.isDef(n.onAction)){a(o);return}await n.onAction(o)&&a(o)}const y=e.computed(()=>{var l,t;const o=e.unref(c);return s.isNil(o)?e.createVNode(e.Fragment,null,[n.emptyText]):o===n.checkedValue?e.createVNode(e.Fragment,null,[n.checkedChildren||((l=r.checkedChildren)==null?void 0:l.call(r))||`${n.checkedValue}`]):e.createVNode(e.Fragment,null,[n.unCheckedChildren||((t=r.unCheckedChildren)==null?void 0:t.call(r))||`${n.unCheckedValue}`])}),v=e.computed(()=>i.isDef(n.confirm)?s.isFunction(n.confirm)?n.confirm(e.unref(c)):n.confirm:{});return(o,d)=>o.mode==="read"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[!e.unref(i.isDef)(o.confirm)||o.disabled?(e.openBlock(),e.createBlock(e.unref(h.Switch),e.mergeProps({key:0},e.unref(s.omit)(n,"onUpdate:checked"),{checked:e.unref(c),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("@aplus-frontend/antdv");require("../../hooks/index.js");const s=require("lodash-unified"),i=require("@fruits-chain/utils"),V=require("../../hooks/useControllableValue.js"),B=e.defineComponent({name:"ApFieldSwitch",__name:"index",props:{mode:{},class:{},style:{},id:{},prefixCls:{},size:{default:"default"},disabled:{type:Boolean,default:void 0},checkedChildren:{},unCheckedChildren:{},tabindex:{},autofocus:{type:Boolean},loading:{type:Boolean,default:void 0},checked:{},checkedValue:{default:!0},unCheckedValue:{default:!1},onChange:{},onKeydown:{},onMouseup:{},"onUpdate:checked":{},onBlur:{},onFocus:{},emptyText:{default:"--"},onAction:{},confirm:{}},emits:["update:checked"],setup(m,{emit:p}){const r=e.useSlots(),n=m,C=p,{value:c,updateValue:a}=V.useControllableValue(n,C,{valuePropName:"checked"}),u=e.ref(!1);async function k(o,d){if(!i.isDef(n.confirm)){if(!i.isDef(n.onAction)){a(o);return}u.value=!0;try{await n.onAction(o,d)&&a(o)}finally{u.value=!1}}}async function g(){const o=e.unref(c)===n.checkedValue?n.unCheckedValue:n.checkedValue;if(!i.isDef(n.onAction)){a(o);return}await n.onAction(o)&&a(o)}const y=e.computed(()=>{var l,t;const o=e.unref(c);return s.isNil(o)?e.createVNode(e.Fragment,null,[n.emptyText]):o===n.checkedValue?e.createVNode(e.Fragment,null,[n.checkedChildren||((l=r.checkedChildren)==null?void 0:l.call(r))||`${n.checkedValue}`]):e.createVNode(e.Fragment,null,[n.unCheckedChildren||((t=r.unCheckedChildren)==null?void 0:t.call(r))||`${n.unCheckedValue}`])}),v=e.computed(()=>i.isDef(n.confirm)?s.isFunction(n.confirm)?n.confirm(e.unref(c)):n.confirm:{});return(o,d)=>o.mode==="read"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[!e.unref(i.isDef)(o.confirm)||o.disabled?(e.openBlock(),e.createBlock(e.unref(h.Switch),e.mergeProps({key:0},e.unref(s.omit)(n,"onUpdate:checked"),{checked:e.unref(c),loading:o.loading??u.value,onClick:k}),e.createSlots({_:2},[e.renderList(r,(l,t)=>({name:t,fn:e.withCtx(f=>[e.renderSlot(o.$slots,t,e.normalizeProps(e.guardReactiveProps(f||{})))])}))]),1040,["checked","loading"])):(e.openBlock(),e.createBlock(e.unref(h.Popconfirm),e.mergeProps({key:1,disabled:u.value},v.value,{onConfirm:g}),{default:e.withCtx(()=>[e.createVNode(e.unref(h.Switch),e.mergeProps(e.unref(s.omit)(n,"onUpdate:checked"),{checked:e.unref(c),loading:o.loading??u.value,onClick:k}),e.createSlots({_:2},[e.renderList(r,(l,t)=>({name:t,fn:e.withCtx(f=>[e.renderSlot(o.$slots,t,e.normalizeProps(e.guardReactiveProps(f||{})))])}))]),1040,["checked","loading"])]),_:3},16,["disabled"]))],64))}});exports.default=B;
|