@aplus-frontend/ui 0.6.0-beta.1 → 0.6.0-beta.11
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 +294 -289
- package/es/src/ap-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/es/src/ap-button/ap-button.vue.mjs +1 -1
- package/es/src/ap-field/date/helper.mjs +12 -12
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-form/interface.d.ts +4 -0
- package/es/src/ap-form/item/index.vue.d.ts +1 -1
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/es/src/ap-form/render/item.vue.d.ts +1 -1
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +88 -69
- package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/es/src/ap-form/search-form/index.vue.mjs +77 -76
- package/es/src/ap-grid/constants.d.ts +3 -3
- package/es/src/ap-grid/constants.mjs +9 -9
- package/es/src/ap-grid/editable/form-item.vue.mjs +94 -83
- package/es/src/ap-grid/editable/index.vue.mjs +89 -78
- package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
- package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
- package/es/src/ap-grid/index.vue.mjs +161 -139
- package/es/src/ap-grid/interface.d.ts +2 -2
- package/es/src/ap-grid/utils/table.mjs +32 -32
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +209 -198
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +30 -30
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +147 -130
- package/es/src/ap-table/utils.d.ts +14 -14
- package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/es/src/ap-tag/ap-tag.vue.mjs +18 -12
- package/es/src/ap-tag/interface.d.ts +4 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +93 -73
- package/es/src/business/ap-expand-alert/index.d.ts +4 -4
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +109 -99
- package/es/src/business/ap-export-group/index.d.ts +3 -0
- package/es/src/business/ap-export-group/interface.d.ts +7 -2
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
- package/es/src/business/ap-label/ApLabel.d.ts +1 -1
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-label/index.d.ts +3 -3
- package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +3 -3
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +17 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +60 -0
- package/es/src/business/ap-radio-group/index.d.ts +55 -0
- package/es/src/business/ap-radio-group/index.mjs +8 -0
- package/es/src/business/ap-radio-group/interface.d.ts +11 -0
- package/es/src/business/ap-radio-group/interface.mjs +1 -0
- package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/css.js +1 -0
- package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/index.js +1 -0
- package/es/src/business/ap-status/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue.d.ts +1 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +128 -112
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +64 -54
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/es/src/business/ap-view/index.d.ts +3 -0
- package/es/src/business/ap-view/interface.d.ts +8 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/business/hooks/usePageListApGrid.d.ts +2 -0
- package/es/src/business/hooks/usePageListApGrid.mjs +70 -47
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +15 -13
- package/es/src/check-card/group.vue.d.ts +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +0 -5
- package/es/src/config-provider/config-provider-props.mjs +0 -4
- package/es/src/config-provider/config-provider.d.ts +0 -138
- package/es/src/config-provider/config-provider.mjs +21 -26
- package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/es/src/config-provider/index.d.ts +0 -652
- package/es/src/editable-table/form-item.vue.d.ts +2 -14
- package/es/src/editable-table/form-item.vue.mjs +84 -76
- package/es/src/editable-table/index.vue.d.ts +2 -16
- package/es/src/editable-table/index.vue.mjs +91 -83
- package/es/src/editable-table/interface.d.ts +7 -0
- package/es/src/index.mjs +166 -164
- package/es/src/locale/lang/en.mjs +1 -1
- package/es/src/locale/lang/zh-cn.mjs +1 -1
- package/es/src/path-map.mjs +2 -1
- package/es/src/version.d.ts +2 -0
- package/es/src/version.mjs +4 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/item/index.vue.d.ts +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/render/item.vue.d.ts +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/constants.d.ts +3 -3
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +2 -2
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +30 -30
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/utils.d.ts +14 -14
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +4 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/index.d.ts +3 -0
- package/lib/src/business/ap-export-group/interface.d.ts +7 -2
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +3 -3
- package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +3 -3
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +17 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
- package/lib/src/business/ap-radio-group/index.d.ts +55 -0
- package/lib/src/business/ap-radio-group/index.js +1 -0
- package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
- package/lib/src/business/ap-radio-group/interface.js +1 -0
- package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/lib/src/business/ap-status/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/lib/src/business/ap-view/index.d.ts +3 -0
- package/lib/src/business/ap-view/interface.d.ts +8 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/business/hooks/usePageListApGrid.d.ts +2 -0
- package/lib/src/business/hooks/usePageListApGrid.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 +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +0 -5
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +0 -138
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/lib/src/config-provider/index.d.ts +0 -652
- package/lib/src/editable-table/form-item.vue.d.ts +2 -14
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +2 -16
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +7 -0
- 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/version.d.ts +2 -0
- package/lib/src/version.js +1 -0
- package/package.json +7 -5
- package/theme/antd-global-overwrite/admin/alert.css +6 -19
- package/theme/antd-global-overwrite/admin/alert.less +25 -36
- package/theme/antd-global-overwrite/admin/button.css +13 -13
- package/theme/antd-global-overwrite/admin/button.less +24 -24
- package/theme/antd-global-overwrite/admin/field.css +27 -0
- package/theme/antd-global-overwrite/admin/field.less +23 -0
- package/theme/antd-global-overwrite/admin/index.css +82 -471
- package/theme/antd-global-overwrite/admin/index.less +2 -3
- package/theme/antd-global-overwrite/admin/message.css +2 -9
- package/theme/antd-global-overwrite/admin/message.less +2 -10
- package/theme/antd-global-overwrite/admin/modal.css +10 -49
- package/theme/antd-global-overwrite/admin/modal.less +10 -53
- package/theme/antd-global-overwrite/admin/table.css +21 -75
- package/theme/antd-global-overwrite/admin/table.less +4 -7
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/alert.css +9 -19
- package/theme/antd-global-overwrite/aplus/alert.less +27 -34
- package/theme/antd-global-overwrite/aplus/button.css +20 -20
- package/theme/antd-global-overwrite/aplus/button.less +24 -24
- package/theme/antd-global-overwrite/aplus/field.css +21 -0
- package/theme/antd-global-overwrite/aplus/field.less +16 -0
- package/theme/antd-global-overwrite/aplus/index.css +82 -522
- package/theme/antd-global-overwrite/aplus/index.less +1 -3
- package/theme/antd-global-overwrite/aplus/message.css +2 -9
- package/theme/antd-global-overwrite/aplus/message.less +2 -10
- package/theme/antd-global-overwrite/aplus/modal.css +10 -50
- package/theme/antd-global-overwrite/aplus/modal.less +11 -57
- package/theme/antd-global-overwrite/aplus/table.css +19 -67
- package/theme/antd-global-overwrite/aplus/table.less +4 -7
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-action/item-dropdown.css +19 -1
- package/theme/ap-action/item.css +20 -2
- package/theme/ap-appendix/ap-appendix.css +25 -5
- package/theme/ap-appendix/ap-appendix.less +6 -4
- package/theme/ap-attachment/ap-attachment.css +25 -6
- package/theme/ap-attachment/ap-attachment.less +6 -6
- package/theme/ap-batch-action/ap-batch-action.css +25 -4
- package/theme/ap-batch-action/ap-batch-action.less +6 -3
- package/theme/ap-button/ap-button.css +19 -1
- package/theme/ap-card/ap-card.css +19 -1
- package/theme/ap-descriptions/ap-descriptions.css +24 -6
- package/theme/ap-descriptions/ap-descriptions.less +5 -5
- package/theme/ap-download/ap-download.css +26 -11
- package/theme/ap-download/ap-download.less +8 -11
- package/theme/ap-expand-alert/ap-expand-alert.css +21 -3
- package/theme/ap-expand-alert/ap-expand-alert.less +5 -5
- package/theme/ap-field/checkbox.css +19 -1
- package/theme/ap-field/index.css +19 -1
- package/theme/ap-field/number.css +19 -1
- package/theme/ap-field/radio.css +19 -1
- package/theme/ap-field/text-area.css +19 -1
- package/theme/ap-form/ap-form-item-group.css +19 -1
- package/theme/ap-form/ap-form-item.css +26 -5
- package/theme/ap-form/ap-form-item.less +11 -5
- package/theme/ap-form/drawer-form.css +19 -1
- package/theme/ap-form/index.css +43 -10
- package/theme/ap-form/item-text-group.css +19 -1
- package/theme/ap-form/item-text.css +19 -1
- package/theme/ap-form/modal-form.css +19 -1
- package/theme/ap-form/search-form-sorter.css +24 -5
- package/theme/ap-form/search-form-sorter.less +1 -0
- package/theme/ap-form/search-form.css +43 -10
- package/theme/ap-form/search-form.less +12 -1
- package/theme/ap-grid/editable.css +19 -1
- package/theme/ap-grid/editable.less +3 -2
- package/theme/ap-grid/index.css +78 -15
- package/theme/ap-grid/index.less +21 -6
- package/theme/ap-group-search/ap-extension-select.css +19 -1
- package/theme/ap-group-search/ap-group-search.css +19 -1
- package/theme/ap-group-search/ap-popover-select.css +19 -1
- package/theme/ap-image/ap-image.css +19 -1
- package/theme/ap-input-radio/ap-input-radio.css +19 -1
- package/theme/ap-label/ap-label.css +19 -1
- package/theme/ap-ladder/ap-ladder.css +23 -4
- package/theme/ap-ladder/ap-ladder.less +4 -3
- package/theme/ap-layout/ap-info-layout.css +19 -1
- package/theme/ap-list/index.css +19 -1
- package/theme/ap-product-info/ap-product-info.css +19 -1
- package/theme/ap-radio-group/ap-radio-group.css +64 -0
- package/theme/ap-radio-group/ap-radio-group.less +23 -0
- package/theme/ap-select-layout/ap-select-layout.css +27 -9
- package/theme/ap-select-layout/ap-select-layout.less +8 -8
- package/theme/ap-size-input/ap-size-input.css +19 -1
- package/theme/ap-status/ap-status.css +21 -4
- package/theme/ap-status/ap-status.less +2 -4
- package/theme/ap-summary/index.css +22 -4
- package/theme/ap-summary/index.less +3 -3
- package/theme/ap-table/ap-table-index.css +24 -6
- package/theme/ap-table/ap-table-index.less +5 -5
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +19 -1
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +77 -29
- package/theme/ap-table/ap-table.less +7 -9
- package/theme/ap-table/setting/index.css +23 -6
- package/theme/ap-table/setting/modal.css +21 -4
- package/theme/ap-table/setting/modal.less +1 -2
- package/theme/ap-table/setting/select-group.css +21 -2
- package/theme/ap-table/setting/select-group.less +2 -1
- package/theme/ap-table/setting/sortable-item-meta.css +19 -1
- package/theme/ap-table/setting/sortable-item.css +19 -1
- package/theme/ap-table/setting/sorter.css +19 -2
- package/theme/ap-table-modal/index.css +77 -29
- package/theme/ap-tag/ap-tag-group.css +21 -3
- package/theme/ap-tag/ap-tag-group.less +4 -5
- package/theme/ap-tag/ap-tag.css +42 -15
- package/theme/ap-tag/ap-tag.less +37 -24
- package/theme/ap-title/ap-title.css +26 -6
- package/theme/ap-title/ap-title.less +7 -5
- package/theme/ap-upload/index.css +27 -9
- package/theme/ap-upload/multiple-file.css +21 -3
- package/theme/ap-upload/multiple-file.less +2 -2
- package/theme/ap-upload/picture.css +23 -5
- package/theme/ap-upload/picture.less +4 -4
- package/theme/ap-upload/single-file.css +21 -3
- package/theme/ap-upload/single-file.less +2 -2
- package/theme/ap-upload/upload.css +19 -1
- package/theme/ap-upload-single/index.css +19 -1
- package/theme/ap-view/ap-view.css +23 -1
- package/theme/ap-view/ap-view.less +4 -0
- package/theme/batch-input-group/index.css +20 -1
- package/theme/batch-input-group/popover-input.css +20 -1
- package/theme/batch-input-group/popover-input.less +1 -0
- package/theme/check-card/index.css +22 -4
- package/theme/editable-table/index.css +44 -11
- package/theme/full-screen/index.css +19 -1
- package/theme/index.css +331 -114
- package/theme/index.less +2 -0
- package/theme/mask/index.css +19 -1
- package/theme/mixins/config.less +1 -1
- package/theme/mixins/mixins.css +19 -1
- package/theme/mixins/mixins.less +25 -0
- package/theme/scroll-bar/index.css +19 -1
- package/theme/scroll-view/index.css +19 -1
- package/theme/splitter/index.css +21 -3
- package/theme/text/group.css +19 -1
- package/theme/text/index.css +20 -2
- package/theme/ui-mode.css +102 -0
- package/theme/ui-mode.less +103 -0
- package/theme/work-order-modal/index.css +19 -1
- package/es/src/config-provider/css-var.d.ts +0 -139
- package/es/src/config-provider/css-var.mjs +0 -278
- package/lib/src/config-provider/css-var.d.ts +0 -139
- package/lib/src/config-provider/css-var.js +0 -1
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as O, ref as A, computed as s, watch as V, createElementBlock as $, openBlock as d, Fragment as q, createBlock as y, createCommentVNode as M, unref as a, mergeProps as B, withCtx as n, createTextVNode as x, toDisplayString as g, normalizeClass as z, createVNode as h } from "vue";
|
|
2
2
|
import { DownOutlined as U } from "@ant-design/icons-vue";
|
|
3
|
-
import { message as
|
|
3
|
+
import { message as H, Dropdown as J, Menu as Q, MenuItem as G } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { ApExportGroupActionType as
|
|
5
|
+
import { ApExportGroupActionType as i } from "./interface.mjs";
|
|
6
6
|
import { usePermission as W } from "@aplus-frontend/hooks";
|
|
7
7
|
import { handleExportDownload as X } from "./handleExportDownload.mjs";
|
|
8
8
|
import { useInjectApTable as Y } from "../../ap-table/context.mjs";
|
|
9
9
|
import { convertExportField as Z } from "./convertExportField.mjs";
|
|
10
|
+
import "../../ap-button/index.mjs";
|
|
10
11
|
import { useNamespace as ee } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
12
|
import { useLocale as te } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
|
-
import { useGlobalConfig as
|
|
13
|
-
|
|
13
|
+
import { useGlobalConfig as ae } from "../../config-provider/hooks/use-global-config.mjs";
|
|
14
|
+
import P from "../../ap-button/ap-button.vue.mjs";
|
|
15
|
+
const ge = /* @__PURE__ */ O({
|
|
14
16
|
__name: "ApExportGroup",
|
|
15
17
|
props: {
|
|
18
|
+
type: { default: "button" },
|
|
16
19
|
selectedRowKeys: {},
|
|
17
20
|
disabled: { type: Boolean },
|
|
18
21
|
auth: {},
|
|
@@ -26,124 +29,131 @@ const ve = /* @__PURE__ */ N({
|
|
|
26
29
|
successMessage: { type: [Boolean, String], default: !1 },
|
|
27
30
|
exportField: { type: [Boolean, Object], default: void 0 }
|
|
28
31
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const { hasPermission:
|
|
31
|
-
const t = {
|
|
32
|
-
aplus: "#0070FF",
|
|
33
|
-
admin: "#34b77c"
|
|
34
|
-
};
|
|
35
|
-
return d.value ? "" : t[P.value] || t.aplus;
|
|
36
|
-
}), d = s(
|
|
32
|
+
setup(K) {
|
|
33
|
+
const { hasPermission: T } = W(), e = K, { columns: c, dataSource: f } = Y(), { b: D } = ee("ap-export-group"), { t: r } = te(), C = ae("exportField"), u = A(!1), p = A(!1), m = s(
|
|
37
34
|
() => {
|
|
38
35
|
var t;
|
|
39
|
-
return !!(e != null && e.disabled) || (
|
|
36
|
+
return !!(e != null && e.disabled) || (f !== void 0 ? !((t = f == null ? void 0 : f.value) != null && t.length) : !1) || u.value;
|
|
40
37
|
}
|
|
41
38
|
);
|
|
42
|
-
|
|
43
|
-
() =>
|
|
39
|
+
V(
|
|
40
|
+
() => m.value,
|
|
44
41
|
() => {
|
|
45
|
-
|
|
42
|
+
m.value && (p.value = !1);
|
|
46
43
|
},
|
|
47
44
|
{
|
|
48
45
|
immediate: !0
|
|
49
46
|
}
|
|
50
47
|
);
|
|
51
|
-
const
|
|
52
|
-
const t = "exportFieldList",
|
|
53
|
-
return
|
|
48
|
+
const R = s(() => (e == null ? void 0 : e.successMessage) === !0 ? r("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), b = s(() => {
|
|
49
|
+
const t = "exportFieldList", l = (e == null ? void 0 : e.exportField) ?? (C.value === "" ? !0 : C.value) ?? !1;
|
|
50
|
+
return l === !0 ? {
|
|
54
51
|
key: t
|
|
55
|
-
} : typeof
|
|
56
|
-
...
|
|
57
|
-
key:
|
|
58
|
-
} :
|
|
59
|
-
}),
|
|
52
|
+
} : typeof l == "object" ? {
|
|
53
|
+
...l,
|
|
54
|
+
key: l.key ?? t
|
|
55
|
+
} : l;
|
|
56
|
+
}), j = {
|
|
60
57
|
textAlign: "center"
|
|
61
|
-
},
|
|
58
|
+
}, k = s(() => (e == null ? void 0 : e.selectedRowKeys) || []), L = s(() => {
|
|
62
59
|
let t = e == null ? void 0 : e.ifShow;
|
|
63
|
-
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () =>
|
|
60
|
+
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => T(e.auth)), (t == null ? void 0 : t()) ?? !0;
|
|
64
61
|
});
|
|
65
|
-
async function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
62
|
+
async function I() {
|
|
63
|
+
k.value.length > 0 ? w({ key: i.SELECT }) : w({ key: i.ALL });
|
|
64
|
+
}
|
|
65
|
+
async function w({ key: t }) {
|
|
66
|
+
var F, S, _;
|
|
67
|
+
const { getRequestParams: l, request: o } = e || {};
|
|
68
|
+
let E = {};
|
|
69
|
+
t === i.SELECT ? E = {
|
|
70
|
+
[(e == null ? void 0 : e.idKey) || "ids"]: k.value
|
|
71
|
+
} : t === i.ALL && (E = (l == null ? void 0 : l()) || {});
|
|
72
|
+
const N = ((F = e == null ? void 0 : e.getInitialParams) == null ? void 0 : F.call(e)) || {};
|
|
73
73
|
try {
|
|
74
|
-
|
|
75
|
-
let
|
|
74
|
+
u.value = !0;
|
|
75
|
+
let v = Object.assign(
|
|
76
76
|
{
|
|
77
|
-
...
|
|
78
|
-
...
|
|
77
|
+
...E,
|
|
78
|
+
...N
|
|
79
79
|
},
|
|
80
|
-
|
|
81
|
-
[
|
|
82
|
-
|
|
83
|
-
(
|
|
80
|
+
b.value && (c != null && c.value) ? {
|
|
81
|
+
[b.value.key]: Z(
|
|
82
|
+
c.value,
|
|
83
|
+
(S = b.value) == null ? void 0 : S.convertField
|
|
84
84
|
)
|
|
85
85
|
} : {}
|
|
86
86
|
);
|
|
87
|
-
|
|
87
|
+
v = ((_ = e == null ? void 0 : e.beforeRequest) == null ? void 0 : _.call(e, v)) || v, await X(async () => await (o == null ? void 0 : o(v))), e != null && e.successMessage && H.success(R.value);
|
|
88
88
|
} finally {
|
|
89
|
-
|
|
89
|
+
u.value = !1;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
return (t,
|
|
93
|
-
key: 0,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
92
|
+
return (t, l) => (d(), $(q, null, [
|
|
93
|
+
L.value && e.type === "button" ? (d(), y(a(P), B({ key: 0 }, {
|
|
94
|
+
...t.$attrs
|
|
95
|
+
}, {
|
|
96
|
+
disabled: m.value,
|
|
97
|
+
loading: u.value,
|
|
98
|
+
"min-width": "",
|
|
99
|
+
onClick: I
|
|
100
|
+
}), {
|
|
101
|
+
default: n(() => [
|
|
102
|
+
x(g((e == null ? void 0 : e.text) ?? a(r)("ap.apExportGroup.export")), 1)
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 16, ["disabled", "loading"])) : M("", !0),
|
|
106
|
+
L.value && e.type === "dropdown" ? (d(), y(a(J), {
|
|
107
|
+
key: 1,
|
|
108
|
+
open: p.value,
|
|
109
|
+
"onUpdate:open": l[0] || (l[0] = (o) => p.value = o),
|
|
110
|
+
class: z([a(D)()]),
|
|
111
|
+
"overlay-style": j,
|
|
112
|
+
disabled: m.value
|
|
113
|
+
}, {
|
|
114
|
+
overlay: n(() => [
|
|
115
|
+
h(a(Q), { onClick: w }, {
|
|
116
|
+
default: n(() => {
|
|
117
|
+
var o;
|
|
118
|
+
return [
|
|
119
|
+
(d(), y(a(G), {
|
|
120
|
+
key: a(i).SELECT,
|
|
121
|
+
disabled: ((o = k.value) == null ? void 0 : o.length) === 0
|
|
122
|
+
}, {
|
|
123
|
+
default: n(() => [
|
|
124
|
+
x(g(a(r)("ap.apExportGroup.exportSelected")), 1)
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
}, 8, ["disabled"])),
|
|
128
|
+
(d(), y(a(G), {
|
|
129
|
+
key: a(i).ALL
|
|
130
|
+
}, {
|
|
131
|
+
default: n(() => [
|
|
132
|
+
x(g(a(r)("ap.apExportGroup.exportAll")), 1)
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}))
|
|
136
|
+
];
|
|
137
|
+
}),
|
|
138
|
+
_: 1
|
|
139
|
+
})
|
|
140
|
+
]),
|
|
141
|
+
default: n(() => [
|
|
142
|
+
h(a(P), B({
|
|
143
|
+
...t.$attrs
|
|
144
|
+
}, { loading: u.value }), {
|
|
145
|
+
default: n(() => [
|
|
146
|
+
x(g((e == null ? void 0 : e.text) ?? a(r)("ap.apExportGroup.export")) + " ", 1),
|
|
147
|
+
h(a(U))
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 16, ["loading"])
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["open", "class", "disabled"])) : M("", !0)
|
|
154
|
+
], 64));
|
|
145
155
|
}
|
|
146
156
|
});
|
|
147
157
|
export {
|
|
148
|
-
|
|
158
|
+
ge as default
|
|
149
159
|
};
|
|
@@ -5,6 +5,7 @@ import { ApExportGroupProps } from './interface';
|
|
|
5
5
|
export * from './interface';
|
|
6
6
|
declare const ApExportGroup: {
|
|
7
7
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApExportGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
8
|
+
type: "button" | "dropdown";
|
|
8
9
|
exportField: boolean | {
|
|
9
10
|
key?: string;
|
|
10
11
|
convertField?: {
|
|
@@ -20,6 +21,7 @@ declare const ApExportGroup: {
|
|
|
20
21
|
M: {};
|
|
21
22
|
Defaults: {};
|
|
22
23
|
}, Readonly< ApExportGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
24
|
+
type: "button" | "dropdown";
|
|
23
25
|
exportField: boolean | {
|
|
24
26
|
key?: string;
|
|
25
27
|
convertField?: {
|
|
@@ -32,6 +34,7 @@ declare const ApExportGroup: {
|
|
|
32
34
|
__isTeleport?: never;
|
|
33
35
|
__isSuspense?: never;
|
|
34
36
|
} & ComponentOptionsBase<Readonly< ApExportGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
37
|
+
type: "button" | "dropdown";
|
|
35
38
|
exportField: boolean | {
|
|
36
39
|
key?: string;
|
|
37
40
|
convertField?: {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { MenuProps } from '@aplus-frontend/antdv';
|
|
2
1
|
export interface ApExportGroupProps {
|
|
2
|
+
/**
|
|
3
|
+
* 类型
|
|
4
|
+
*/
|
|
5
|
+
type?: 'button' | 'dropdown';
|
|
3
6
|
/**
|
|
4
7
|
* 选中行的Key列表
|
|
5
8
|
*/
|
|
@@ -52,5 +55,7 @@ export declare enum ApExportGroupActionType {
|
|
|
52
55
|
ALL = "ALL",
|
|
53
56
|
SELECT = "SELECT"
|
|
54
57
|
}
|
|
55
|
-
export type ApExportGroupAntMenuInfo =
|
|
58
|
+
export type ApExportGroupAntMenuInfo = {
|
|
59
|
+
key: string | number;
|
|
60
|
+
};
|
|
56
61
|
export type ApExportGroupMixedParams<ParamsType> = Partial<ParamsType>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, onMounted as R, createElementBlock as V, openBlock as h, normalizeClass as b, unref as t, createVNode as i, mergeProps as I } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import { Form as
|
|
3
|
+
import { Form as B, InputNumber as k, RadioGroup as x } from "@aplus-frontend/antdv";
|
|
4
4
|
import { omit as _ } from "lodash-unified";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { useLocale as y } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
import { useNamespace as F } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const S = /* @__PURE__ */ g({
|
|
7
8
|
name: "ApInputRadio",
|
|
8
9
|
__name: "ApInputRadio",
|
|
9
10
|
props: {
|
|
@@ -31,36 +32,37 @@ const G = /* @__PURE__ */ f({
|
|
|
31
32
|
},
|
|
32
33
|
emits: ["update:value", "InputRadioChange"],
|
|
33
34
|
setup(p, { emit: s }) {
|
|
34
|
-
const
|
|
35
|
-
let
|
|
36
|
-
u("update:value",
|
|
37
|
-
},
|
|
38
|
-
n({ inputVal:
|
|
39
|
-
}, v = (
|
|
40
|
-
const
|
|
35
|
+
const c = B.useInjectFormItemContext(), e = p, { t: d } = y(), { b: m, e: C } = F("ap-input-radio"), u = s, n = (o) => {
|
|
36
|
+
let a = { ...e.value, ...o };
|
|
37
|
+
u("update:value", a), u("InputRadioChange", a), c.onFieldChange();
|
|
38
|
+
}, f = (o) => {
|
|
39
|
+
n({ inputVal: o });
|
|
40
|
+
}, v = (o) => {
|
|
41
|
+
const a = o.target.value;
|
|
41
42
|
if (e.setRadioValCallback) {
|
|
42
|
-
let l = e.setRadioValCallback(
|
|
43
|
-
n({ inputVal: l, radioVal:
|
|
43
|
+
let l = e.setRadioValCallback(a);
|
|
44
|
+
n({ inputVal: l, radioVal: a });
|
|
44
45
|
} else
|
|
45
|
-
n({ radioVal:
|
|
46
|
+
n({ radioVal: a });
|
|
46
47
|
};
|
|
47
|
-
return
|
|
48
|
+
return R(() => {
|
|
48
49
|
if (e.setRadioValCallback) {
|
|
49
|
-
let
|
|
50
|
-
n({ inputVal:
|
|
50
|
+
let o = e.setRadioValCallback(e.value.radioVal);
|
|
51
|
+
n({ inputVal: o });
|
|
51
52
|
}
|
|
52
|
-
}), (
|
|
53
|
+
}), (o, a) => {
|
|
53
54
|
var l, r;
|
|
54
|
-
return
|
|
55
|
+
return h(), V("div", {
|
|
55
56
|
class: b([t(m)()])
|
|
56
57
|
}, [
|
|
57
|
-
i(t(
|
|
58
|
-
class: t(
|
|
58
|
+
i(t(k), I({
|
|
59
|
+
class: t(C)("input-number")
|
|
59
60
|
}, t(_)(e, ["value", "options"]), {
|
|
60
61
|
value: e.value ? (l = e.value) == null ? void 0 : l.inputVal : "",
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
placeholder: t(d)("ap.common.inputText"),
|
|
63
|
+
onChange: f
|
|
64
|
+
}), null, 16, ["class", "value", "placeholder"]),
|
|
65
|
+
i(t(x), {
|
|
64
66
|
value: e.value ? (r = e.value) == null ? void 0 : r.radioVal : "",
|
|
65
67
|
options: e.options,
|
|
66
68
|
onChange: v
|
|
@@ -70,5 +72,5 @@ const G = /* @__PURE__ */ f({
|
|
|
70
72
|
}
|
|
71
73
|
});
|
|
72
74
|
export {
|
|
73
|
-
|
|
75
|
+
S as default
|
|
74
76
|
};
|
|
@@ -127,8 +127,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
127
127
|
placement: TooltipPlacement;
|
|
128
128
|
show: boolean;
|
|
129
129
|
dot: boolean;
|
|
130
|
-
count: any;
|
|
131
130
|
iconType: "ellipsis" | "success" | "warning" | "question";
|
|
131
|
+
count: any;
|
|
132
132
|
showZero: boolean;
|
|
133
133
|
overflowCount: number;
|
|
134
134
|
numberStyle: CSSProperties;
|
|
@@ -70,8 +70,8 @@ declare const ApLabel: {
|
|
|
70
70
|
placement: TooltipPlacement;
|
|
71
71
|
show: boolean;
|
|
72
72
|
dot: boolean;
|
|
73
|
-
count: any;
|
|
74
73
|
iconType: "ellipsis" | "success" | "warning" | "question";
|
|
74
|
+
count: any;
|
|
75
75
|
showZero: boolean;
|
|
76
76
|
overflowCount: number;
|
|
77
77
|
numberStyle: CSSProperties;
|
|
@@ -152,8 +152,8 @@ declare const ApLabel: {
|
|
|
152
152
|
placement: TooltipPlacement;
|
|
153
153
|
show: boolean;
|
|
154
154
|
dot: boolean;
|
|
155
|
-
count: any;
|
|
156
155
|
iconType: "ellipsis" | "success" | "warning" | "question";
|
|
156
|
+
count: any;
|
|
157
157
|
showZero: boolean;
|
|
158
158
|
overflowCount: number;
|
|
159
159
|
numberStyle: CSSProperties;
|
|
@@ -231,8 +231,8 @@ declare const ApLabel: {
|
|
|
231
231
|
placement: TooltipPlacement;
|
|
232
232
|
show: boolean;
|
|
233
233
|
dot: boolean;
|
|
234
|
-
count: any;
|
|
235
234
|
iconType: "ellipsis" | "success" | "warning" | "question";
|
|
235
|
+
count: any;
|
|
236
236
|
showZero: boolean;
|
|
237
237
|
overflowCount: number;
|
|
238
238
|
numberStyle: CSSProperties;
|
|
@@ -69,13 +69,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
69
69
|
}>> & Readonly<{}>, {
|
|
70
70
|
layout: "horizontal" | "vertical";
|
|
71
71
|
tooltip: boolean;
|
|
72
|
+
labelAlign: "left" | "right";
|
|
72
73
|
major: string | number | VNode<RendererNode, RendererElement, {
|
|
73
74
|
[key: string]: any;
|
|
74
75
|
}> | (() => VNode);
|
|
75
76
|
minor: string | number | VNode<RendererNode, RendererElement, {
|
|
76
77
|
[key: string]: any;
|
|
77
78
|
}> | (() => VNode);
|
|
78
|
-
labelAlign: "left" | "right";
|
|
79
79
|
labelValues: ApLadderLabelValue[];
|
|
80
80
|
majorColor: string;
|
|
81
81
|
minorColor: string;
|
|
@@ -38,13 +38,13 @@ declare const ApLadder: {
|
|
|
38
38
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
39
39
|
layout: "horizontal" | "vertical";
|
|
40
40
|
tooltip: boolean;
|
|
41
|
+
labelAlign: "left" | "right";
|
|
41
42
|
major: string | number | VNode<RendererNode, RendererElement, {
|
|
42
43
|
[key: string]: any;
|
|
43
44
|
}> | (() => VNode);
|
|
44
45
|
minor: string | number | VNode<RendererNode, RendererElement, {
|
|
45
46
|
[key: string]: any;
|
|
46
47
|
}> | (() => VNode);
|
|
47
|
-
labelAlign: "left" | "right";
|
|
48
48
|
labelValues: ApLadderLabelValue[];
|
|
49
49
|
majorColor: string;
|
|
50
50
|
minorColor: string;
|
|
@@ -91,13 +91,13 @@ declare const ApLadder: {
|
|
|
91
91
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
92
92
|
layout: "horizontal" | "vertical";
|
|
93
93
|
tooltip: boolean;
|
|
94
|
+
labelAlign: "left" | "right";
|
|
94
95
|
major: string | number | VNode<RendererNode, RendererElement, {
|
|
95
96
|
[key: string]: any;
|
|
96
97
|
}> | (() => VNode);
|
|
97
98
|
minor: string | number | VNode<RendererNode, RendererElement, {
|
|
98
99
|
[key: string]: any;
|
|
99
100
|
}> | (() => VNode);
|
|
100
|
-
labelAlign: "left" | "right";
|
|
101
101
|
labelValues: ApLadderLabelValue[];
|
|
102
102
|
majorColor: string;
|
|
103
103
|
minorColor: string;
|
|
@@ -141,13 +141,13 @@ declare const ApLadder: {
|
|
|
141
141
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
142
142
|
layout: "horizontal" | "vertical";
|
|
143
143
|
tooltip: boolean;
|
|
144
|
+
labelAlign: "left" | "right";
|
|
144
145
|
major: string | number | VNode<RendererNode, RendererElement, {
|
|
145
146
|
[key: string]: any;
|
|
146
147
|
}> | (() => VNode);
|
|
147
148
|
minor: string | number | VNode<RendererNode, RendererElement, {
|
|
148
149
|
[key: string]: any;
|
|
149
150
|
}> | (() => VNode);
|
|
150
|
-
labelAlign: "left" | "right";
|
|
151
151
|
labelValues: ApLadderLabelValue[];
|
|
152
152
|
majorColor: string;
|
|
153
153
|
minorColor: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RadioOptionType, RadioOptionStyleType } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
value: string | number;
|
|
5
|
+
options: RadioOptionType[];
|
|
6
|
+
optionStyle?: RadioOptionStyleType;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:value": (value: string | number) => any;
|
|
10
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
value: string | number;
|
|
14
|
+
options: RadioOptionType[];
|
|
15
|
+
optionStyle: RadioOptionStyleType;
|
|
16
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as k, isVNode as S, h as a, createElementBlock as l, openBlock as r, normalizeClass as m, unref as o, createVNode as b, withCtx as V, Fragment as _, renderList as w, normalizeStyle as B, createBlock as N, resolveDynamicComponent as z } from "vue";
|
|
2
|
+
import { Flex as F } from "@aplus-frontend/antdv";
|
|
3
|
+
import "../../config-provider/index.mjs";
|
|
4
|
+
import "../../hooks/index.mjs";
|
|
5
|
+
import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import { useControllableValue as x } from "../../hooks/useControllableValue.mjs";
|
|
7
|
+
const D = ["onClick"], J = /* @__PURE__ */ k({
|
|
8
|
+
__name: "ap-radio-group",
|
|
9
|
+
props: {
|
|
10
|
+
value: { default: "" },
|
|
11
|
+
options: { default: () => [] },
|
|
12
|
+
optionStyle: { default: () => ({
|
|
13
|
+
height: 28,
|
|
14
|
+
gap: 8
|
|
15
|
+
}) }
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:value"],
|
|
18
|
+
setup(c, { emit: f }) {
|
|
19
|
+
const d = c, h = (e) => S(e) ? a(e) : typeof e == "function" ? a("span", e()) : a("span", e), g = f, { b: y, e: i } = L("ap-radio-group"), { value: v, updateValue: C } = x(
|
|
20
|
+
d,
|
|
21
|
+
g,
|
|
22
|
+
{
|
|
23
|
+
defaultValue: ""
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
return (e, E) => {
|
|
27
|
+
var n;
|
|
28
|
+
return r(), l("div", {
|
|
29
|
+
class: m([o(y)()])
|
|
30
|
+
}, [
|
|
31
|
+
b(o(F), {
|
|
32
|
+
gap: (n = e.optionStyle) == null ? void 0 : n.gap,
|
|
33
|
+
wrap: "wrap"
|
|
34
|
+
}, {
|
|
35
|
+
default: V(() => [
|
|
36
|
+
(r(!0), l(_, null, w(e.options.filter((t) => t.visible !== !1), (t) => {
|
|
37
|
+
var p, s, u;
|
|
38
|
+
return r(), l("div", {
|
|
39
|
+
key: t.value,
|
|
40
|
+
class: m([o(i)("item"), o(v) === t.value ? o(i)("item--active") : ""]),
|
|
41
|
+
style: B({
|
|
42
|
+
height: ((p = e.optionStyle) == null ? void 0 : p.height) + "px",
|
|
43
|
+
lineHeight: ((s = e.optionStyle) == null ? void 0 : s.height) + "px",
|
|
44
|
+
color: (u = e.optionStyle) == null ? void 0 : u.color
|
|
45
|
+
}),
|
|
46
|
+
onClick: (H) => o(C)(t.value)
|
|
47
|
+
}, [
|
|
48
|
+
(r(), N(z(h(t.label))))
|
|
49
|
+
], 14, D);
|
|
50
|
+
}), 128))
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["gap"])
|
|
54
|
+
], 2);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
J as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
|
+
import { RadioOptionType, RadioOptionStyleType } from './interface';
|
|
3
|
+
export * from './interface';
|
|
4
|
+
declare const ApRadioGroup: {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
+
value: string | number;
|
|
7
|
+
options: RadioOptionType[];
|
|
8
|
+
optionStyle?: RadioOptionStyleType;
|
|
9
|
+
}> & Readonly<{
|
|
10
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
12
|
+
"update:value": (value: string | number) => any;
|
|
13
|
+
}, PublicProps, {
|
|
14
|
+
value: string | number;
|
|
15
|
+
options: RadioOptionType[];
|
|
16
|
+
optionStyle: RadioOptionStyleType;
|
|
17
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
18
|
+
P: {};
|
|
19
|
+
B: {};
|
|
20
|
+
D: {};
|
|
21
|
+
C: {};
|
|
22
|
+
M: {};
|
|
23
|
+
Defaults: {};
|
|
24
|
+
}, Readonly<{
|
|
25
|
+
value: string | number;
|
|
26
|
+
options: RadioOptionType[];
|
|
27
|
+
optionStyle?: RadioOptionStyleType;
|
|
28
|
+
}> & Readonly<{
|
|
29
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, {
|
|
31
|
+
value: string | number;
|
|
32
|
+
options: RadioOptionType[];
|
|
33
|
+
optionStyle: RadioOptionStyleType;
|
|
34
|
+
}>;
|
|
35
|
+
__isFragment?: never;
|
|
36
|
+
__isTeleport?: never;
|
|
37
|
+
__isSuspense?: never;
|
|
38
|
+
} & ComponentOptionsBase<Readonly<{
|
|
39
|
+
value: string | number;
|
|
40
|
+
options: RadioOptionType[];
|
|
41
|
+
optionStyle?: RadioOptionStyleType;
|
|
42
|
+
}> & Readonly<{
|
|
43
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
44
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
45
|
+
"update:value": (value: string | number) => any;
|
|
46
|
+
}, string, {
|
|
47
|
+
value: string | number;
|
|
48
|
+
options: RadioOptionType[];
|
|
49
|
+
optionStyle: RadioOptionStyleType;
|
|
50
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
51
|
+
$props: {
|
|
52
|
+
onClick?: () => void;
|
|
53
|
+
};
|
|
54
|
+
}));
|
|
55
|
+
export { ApRadioGroup };
|