@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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),z=require("@ant-design/icons-vue"),h=require("@aplus-frontend/antdv"),N=require("../../ap-action/index.js");require("../../config-provider/index.js");const i=require("lodash-unified"),T=require("../../config-provider/hooks/use-locale.js"),$=require("../../config-provider/hooks/use-namespace.js"),q=require("../../config-provider/hooks/use-global-config.js"),A=["onClick"],D=e.defineComponent({__name:"ApExpandAlert",props:{type:{default:"warning"},data:{default:()=>[]},prefix:{default:""},tipTitle:{default:""},mapLabel:{},separator:{default:"|"},separatorStyle:{default:()=>({})},contentStyle:{default:()=>({})},prefixStyle:{default:()=>({})},rows:{default:2},defaultExpand:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0}},emits:["choose","expand"],setup(g,{expose:v,emit:B}){const f=B,r=g,{t:m}=T.useLocale(),S=e.computed(()=>{if(r.type!="card")return r.type}),l=e.ref(""),s=e.ref(null),w=e.computed(()=>({fontWeight:"400",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box",webkitLineClamp:l.value,webkitBoxOrient:"vertical",lineHeight:"18px"}));function C(){l.value==="1"?(l.value="",f("expand","expand")):(l.value="1",f("expand","collapse"))}const x=e.computed(()=>l.value==="1"?m("ap.apExpandAlert.expand"):m("ap.apExpandAlert.collapse")),u=e.ref(!0),y=e.computed(()=>l.value!=="1");function c(t){t?l.value="":l.value="1"}e.watch(()=>r.data,()=>{l.value="",e.nextTick(()=>{if(s.value){const t=Number(s.value.clientHeight),o=Number(parseInt(s.value.style.lineHeight));t<o*Number(r.rows)&&y.value?u.value=!1:u.value=!0}})},{immediate:!0}),e.watch(()=>r.defaultExpand,t=>{t?e.nextTick(()=>{c(t)}):e.nextTick(()=>{c(t)})},{immediate:!0}),e.onMounted(()=>{e.watch(()=>r.contentStyle,t=>{i.isNil(t.lineHeight)||e.nextTick(()=>{const o=document.querySelector(`#${p} .ant-alert-action`),a=document.querySelector(`#${p} .ant-alert-icon`);o&&o.setAttribute("style",`line-height: ${t.lineHeight}`),a&&a.setAttribute("style",`line-height: ${t.lineHeight}`)})},{deep:!0,immediate:!0,flush:"post"})});const{b:k,e:n,m:E}=$.useNamespace("ap-expand-alert"),p=`${k()}-key-${Date.now()}-${(Math.random()*1e6).toFixed(0)}`,b=q.useGlobalConfig("uiMode","aplus");return v({setExpand:c}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{id:p,class:e.normalizeClass([e.unref(k)(),`${e.unref(E)(e.unref(b))}`])},[e.createVNode(e.unref(h.Alert),{type:S.value,"show-icon":t.showIcon,class:e.normalizeClass([e.unref(n)("antAlert"),t.type=="card"?"card-alert":""])},{action:e.withCtx(()=>[u.value?(e.openBlock(),e.createBlock(e.unref(N.ApActionItem),{key:0,size:"small",style:{"font-size":"12px","padding-left":"16px"},onClick:o[0]||(o[0]=a=>C())},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("expandText"))},e.toDisplayString(x.value),3),e.createVNode(e.unref(z.DownOutlined),{class:e.normalizeClass(y.value?e.unref(n)("expandIcon"):e.unref(n)("collapseIcon"))},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)]),message:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"ellipsisBoxRef",ref:s,style:e.normalizeStyle({...w.value,...t.contentStyle}),class:e.normalizeClass(e.unref(n)("alertContent"))},[e.renderSlot(t.$slots,"default",{},()=>[e.unref(i.isString)(t.prefix)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n)("prefix")),style:e.normalizeStyle(t.prefixStyle)},e.toDisplayString(t.prefix),7)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.prefix),{key:1,style:e.normalizeStyle(t.prefixStyle)},null,8,["style"])),e.unref(i.isString)(t.data)?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(n)("text"))},e.toDisplayString(t.data),3)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(t.data,(a,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[e.createVNode(e.unref(h.Tooltip),{title:t.tipTitle?t.tipTitle:null},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"item",{record:a,index:d},()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("showItem")),onClick:V=>t.$emit("choose",a)},e.toDisplayString(t.mapLabel?a[t.mapLabel]:a),11,A)])]),_:2},1032,["title"]),d!==t.data.length-1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n)("spliter")),style:e.normalizeStyle(t.separatorStyle)},[e.unref(i.isString)(t.separator)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.separator),1)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.separator),{key:1}))],6)):e.createCommentVNode("",!0)],64))),128))])],6)]),_:3},8,["type","show-icon","class"])],2))}});exports.default=D;
|
|
@@ -15,11 +15,11 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
15
15
|
index: number;
|
|
16
16
|
}): any;
|
|
17
17
|
};
|
|
18
|
-
emit: (
|
|
18
|
+
emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
19
19
|
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
20
20
|
props: {
|
|
21
|
-
readonly onExpand?: ((
|
|
22
|
-
readonly onChoose?: ((
|
|
21
|
+
readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
|
|
22
|
+
readonly onChoose?: ((args_0: T) => any) | undefined;
|
|
23
23
|
type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
|
|
24
24
|
data?: string | T[] | undefined;
|
|
25
25
|
prefix?: string | undefined;
|
|
@@ -50,7 +50,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
50
50
|
index: number;
|
|
51
51
|
}): any;
|
|
52
52
|
};
|
|
53
|
-
emit: (
|
|
53
|
+
emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
54
54
|
}>) => VNode & {
|
|
55
55
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
56
56
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApExportGroupProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<ApExportGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApExportGroupProps> & Readonly<{}>, {
|
|
4
|
+
type: "button" | "dropdown";
|
|
4
5
|
exportField: boolean | {
|
|
5
6
|
key?: string;
|
|
6
7
|
convertField?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),G=require("@ant-design/icons-vue"),i=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const u=require("./interface.js"),L=require("@aplus-frontend/hooks"),F=require("./handleExportDownload.js"),M=require("../../ap-table/context.js"),N=require("./convertExportField.js");require("../../ap-button/index.js");const D=require("../../config-provider/hooks/use-namespace.js"),P=require("../../config-provider/hooks/use-locale.js"),V=require("../../config-provider/hooks/use-global-config.js"),E=require("../../ap-button/ap-button.vue.js"),I=e.defineComponent({__name:"ApExportGroup",props:{type:{default:"button"},selectedRowKeys:{},disabled:{type:Boolean},auth:{},ifShow:{},text:{},idKey:{},request:{},getRequestParams:{},getInitialParams:{},beforeRequest:{},successMessage:{type:[Boolean,String],default:!1},exportField:{type:[Boolean,Object],default:void 0}},setup(C){const{hasPermission:A}=L.usePermission(),t=C,{columns:s,dataSource:c}=M.useInjectApTable(),{b:_}=D.useNamespace("ap-export-group"),{t:l}=P.useLocale(),m=V.useGlobalConfig("exportField"),r=e.ref(!1),p=e.ref(!1),d=e.computed(()=>{var o;return!!(t!=null&&t.disabled)||(c!==void 0?!((o=c==null?void 0:c.value)!=null&&o.length):!1)||r.value});e.watch(()=>d.value,()=>{d.value&&(p.value=!1)},{immediate:!0});const q=e.computed(()=>(t==null?void 0:t.successMessage)===!0?l("ap.apExportGroup.exportSuccess"):t!=null&&t.successMessage?t.successMessage:""),x=e.computed(()=>{const o="exportFieldList",a=(t==null?void 0:t.exportField)??(m.value===""?!0:m.value)??!1;return a===!0?{key:o}:typeof a=="object"?{...a,key:a.key??o}:a}),B={textAlign:"center"},y=e.computed(()=>(t==null?void 0:t.selectedRowKeys)||[]),k=e.computed(()=>{let o=t==null?void 0:t.ifShow;return!(t!=null&&t.ifShow)&&(t!=null&&t.auth)&&(o=()=>A(t.auth)),(o==null?void 0:o())??!0});async function S(){y.value.length>0?v({key:u.ApExportGroupActionType.SELECT}):v({key:u.ApExportGroupActionType.ALL})}async function v({key:o}){var b,w,h;const{getRequestParams:a,request:n}=t||{};let g={};o===u.ApExportGroupActionType.SELECT?g={[(t==null?void 0:t.idKey)||"ids"]:y.value}:o===u.ApExportGroupActionType.ALL&&(g=(a==null?void 0:a())||{});const T=((b=t==null?void 0:t.getInitialParams)==null?void 0:b.call(t))||{};try{r.value=!0;let f=Object.assign({...g,...T},x.value&&(s!=null&&s.value)?{[x.value.key]:N.convertExportField(s.value,(w=x.value)==null?void 0:w.convertField)}:{});f=((h=t==null?void 0:t.beforeRequest)==null?void 0:h.call(t,f))||f,await F.handleExportDownload(async()=>await(n==null?void 0:n(f))),t!=null&&t.successMessage&&i.message.success(q.value)}finally{r.value=!1}}return(o,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[k.value&&t.type==="button"?(e.openBlock(),e.createBlock(e.unref(E.default),e.mergeProps({key:0},{...o.$attrs},{disabled:d.value,loading:r.value,"min-width":"",onClick:S}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((t==null?void 0:t.text)??e.unref(l)("ap.apExportGroup.export")),1)]),_:1},16,["disabled","loading"])):e.createCommentVNode("",!0),k.value&&t.type==="dropdown"?(e.openBlock(),e.createBlock(e.unref(i.Dropdown),{key:1,open:p.value,"onUpdate:open":a[0]||(a[0]=n=>p.value=n),class:e.normalizeClass([e.unref(_)()]),"overlay-style":B,disabled:d.value},{overlay:e.withCtx(()=>[e.createVNode(e.unref(i.Menu),{onClick:v},{default:e.withCtx(()=>{var n;return[(e.openBlock(),e.createBlock(e.unref(i.MenuItem),{key:e.unref(u.ApExportGroupActionType).SELECT,disabled:((n=y.value)==null?void 0:n.length)===0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("ap.apExportGroup.exportSelected")),1)]),_:1},8,["disabled"])),(e.openBlock(),e.createBlock(e.unref(i.MenuItem),{key:e.unref(u.ApExportGroupActionType).ALL},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("ap.apExportGroup.exportAll")),1)]),_:1}))]}),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(E.default),e.mergeProps({...o.$attrs},{loading:r.value}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((t==null?void 0:t.text)??e.unref(l)("ap.apExportGroup.export"))+" ",1),e.createVNode(e.unref(G.DownOutlined))]),_:1},16,["loading"])]),_:1},8,["open","class","disabled"])):e.createCommentVNode("",!0)],64))}});exports.default=I;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const u=require("@aplus-frontend/antdv"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const u=require("@aplus-frontend/antdv"),g=require("lodash-unified"),V=require("../../config-provider/hooks/use-locale.js"),h=require("../../config-provider/hooks/use-namespace.js"),R=e.defineComponent({name:"ApInputRadio",__name:"ApInputRadio",props:{disabled:{type:Boolean},stringMode:{type:Boolean,default:!0},precision:{},max:{},min:{},step:{},bordered:{type:Boolean,default:!0},autofocus:{type:Boolean},decimalSeparator:{},controls:{type:Boolean,default:!0},formatter:{},onInput:{},onChange:{},onPressEnter:{},onStep:{},onBlur:{},onFocus:{},value:{},options:{},onInputRadioChange:{},setRadioValCallback:{}},emits:["update:value","InputRadioChange"],setup(i,{emit:p}){const c=u.Form.useInjectFormItemContext(),a=i,{t:d}=V.useLocale(),{b:m,e:v}=h.useNamespace("ap-input-radio"),r=p,n=o=>{let t={...a.value,...o};r("update:value",t),r("InputRadioChange",t),c.onFieldChange()},f=o=>{n({inputVal:o})},C=o=>{const t=o.target.value;if(a.setRadioValCallback){let l=a.setRadioValCallback(t);n({inputVal:l,radioVal:t})}else n({radioVal:t})};return e.onMounted(()=>{if(a.setRadioValCallback){let o=a.setRadioValCallback(a.value.radioVal);n({inputVal:o})}}),(o,t)=>{var l,s;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(m)()])},[e.createVNode(e.unref(u.InputNumber),e.mergeProps({class:e.unref(v)("input-number")},e.unref(g.omit)(a,["value","options"]),{value:a.value?(l=a.value)==null?void 0:l.inputVal:"",placeholder:e.unref(d)("ap.common.inputText"),onChange:f}),null,16,["class","value","placeholder"]),e.createVNode(e.unref(u.RadioGroup),{value:a.value?(s=a.value)==null?void 0:s.radioVal:"",options:a.options,onChange:C},null,8,["value","options"])],2)}}});exports.default=R;
|
|
@@ -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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/antdv/es/badge/Badge"),t=()=>({value:{type:String,default:void 0},tagValue:{type:String,default:void 0},columns:{type:Array,default:null},record:{type:Object,default:null}}),o=()=>({...e.badgeProps(),helpMessage:{type:String,default:void 0},placement:{type:String,default:"top"},iconColor:{type:String,default:"#FF4D4F"},iconType:{type:String,default:"question"},iconSize:{type:Number,default:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/antdv/es/badge/Badge"),t=()=>({value:{type:String,default:void 0},tagValue:{type:String,default:void 0},columns:{type:Array,default:null},record:{type:Object,default:null}}),o=()=>({...e.badgeProps(),helpMessage:{type:String,default:void 0},placement:{type:String,default:"top"},iconColor:{type:String,default:"#FF4D4F"},iconType:{type:String,default:"question"},iconSize:{type:Number,default:14},show:{type:Boolean,default:!0},toolTipBgColor:{type:String}});exports.ApLabelGroupProps=t;exports.ApLabelProps=o;
|
|
@@ -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 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ap-radio-group.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("@aplus-frontend/antdv");require("../../config-provider/index.js");require("../../hooks/index.js");const v=require("../../config-provider/hooks/use-namespace.js"),k=require("../../hooks/useControllableValue.js"),y=["onClick"],C=e.defineComponent({__name:"ap-radio-group",props:{value:{default:""},options:{default:()=>[]},optionStyle:{default:()=>({height:28,gap:8})}},emits:["update:value"],setup(i,{emit:s}){const c=i,p=t=>e.isVNode(t)?e.h(t):typeof t=="function"?e.h("span",t()):e.h("span",t),d=s,{b:f,e:l}=v.useNamespace("ap-radio-group"),{value:m,updateValue:h}=k.useControllableValue(c,d,{defaultValue:""});return(t,b)=>{var r;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(f)()])},[e.createVNode(e.unref(g.Flex),{gap:(r=t.optionStyle)==null?void 0:r.gap,wrap:"wrap"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options.filter(o=>o.visible!==!1),o=>{var n,a,u;return e.openBlock(),e.createElementBlock("div",{key:o.value,class:e.normalizeClass([e.unref(l)("item"),e.unref(m)===o.value?e.unref(l)("item--active"):""]),style:e.normalizeStyle({height:((n=t.optionStyle)==null?void 0:n.height)+"px",lineHeight:((a=t.optionStyle)==null?void 0:a.height)+"px",color:(u=t.optionStyle)==null?void 0:u.color}),onClick:B=>e.unref(h)(o.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p(o.label))))],14,y)}),128))]),_:1},8,["gap"])],2)}}});exports.default=C;
|
|
@@ -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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/utils");require("./ap-radio-group.vue.js");require("./interface.js");const r=require("./ap-radio-group.vue2.js"),t=e.withInstall(r.default);exports.ApRadioGroup=t;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export interface RadioOptionType {
|
|
3
|
+
label: string | number | (() => any) | VNode;
|
|
4
|
+
value: string | number;
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type RadioOptionStyleType = {
|
|
8
|
+
gap?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
color?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-radio-group/ap-radio-group.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-radio-group/ap-radio-group.less';
|
|
File without changes
|
|
@@ -10,7 +10,7 @@ type ApStatusGroupItemUnion = Pick<ApStatusProps, 'text' | 'color'> & {
|
|
|
10
10
|
};
|
|
11
11
|
export type ApStatusGroupItemProps = Required<ApStatusGroupItemUnion>;
|
|
12
12
|
export type ApStatusGroupProps = {
|
|
13
|
-
padding
|
|
13
|
+
padding?: number;
|
|
14
14
|
currentValue: number | string;
|
|
15
15
|
statusList: ApStatusGroupItemProps[] | null;
|
|
16
16
|
style?: object;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const r=require("../../config-provider/hooks/use-locale.js"),l=require("../../config-provider/hooks/use-global-config.js"),u=e.defineComponent({__name:"modal-title",props:{title:{type:String,required:!0},count:{type:Number,required:!0},maxCount:{type:Number,required:!0}},setup(t){const{t:n}=r.useLocale(),o=l.useGlobalConfig("uiMode","aplus");return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),e.renderSlot(a.$slots,"default",{maxCount:t.maxCount,count:t.count},()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#999999":"#8896b0",fontSize:"
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const r=require("../../config-provider/hooks/use-locale.js"),l=require("../../config-provider/hooks/use-global-config.js"),u=e.defineComponent({__name:"modal-title",props:{title:{type:String,required:!0},count:{type:Number,required:!0},maxCount:{type:Number,required:!0}},setup(t){const{t:n}=r.useLocale(),o=l.useGlobalConfig("uiMode","aplus");return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),e.renderSlot(a.$slots,"default",{maxCount:t.maxCount,count:t.count},()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#999999":"#8896b0",fontSize:"12px",fontWeight:"normal",marginLeft:"12px"}),class:"product-number"},[e.createTextVNode(e.toDisplayString(isFinite(t.maxCount)?e.unref(n)("ap.apTableModal.titleSuffixOne",{maxCount:t.maxCount}):"")+e.toDisplayString(e.unref(n)("ap.apTableModal.titleSuffixTwo"))+" ",1),e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#34B77C":"#0070ff"})},e.toDisplayString(t.count),5),e.createTextVNode(" "+e.toDisplayString(e.unref(n)("ap.apTableModal.titleSuffixThree")),1)],4)])]))}});exports.default=u;
|
|
@@ -2,5 +2,6 @@ import { ApViewProps } from './interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<ApViewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApViewProps> & Readonly<{}>, {
|
|
4
4
|
maxViewNum: number;
|
|
5
|
+
isDefaultSystemView: boolean;
|
|
5
6
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
7
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../config-provider/index.js");const L=require("./icons/line-down.vue.js"),W=require("../ap-batch-action-group/index.js");require("./components/main-button-content.vue.js");require("./components/menu-list-content.vue.js");const j=require("./hooks/use-view-provide.js"),k=require("../../ap-table/context.js"),V=require("./utils/enum.js"),A=require("@aplus-frontend/utils"),G=require("../../config-provider/hooks/use-global-config.js"),S=require("../../config-provider/hooks/use-namespace.js"),z=require("../../config-provider/hooks/use-locale.js"),$=require("./components/main-button-content.vue2.js"),h=require("./components/menu-list-content.vue2.js"),H=n.defineComponent({name:"ApView",__name:"ap-view",props:{tableKey:{},saveDataSource:{},viewCacheOption:{},maxViewNum:{default:20},isDefaultSystemView:{type:Boolean,default:!1}},setup(E){const m=E,q=G.useGlobalConfig("viewCacheOption"),{b:v}=S.useNamespace("ap-view"),{t:N}=z.useLocale(),_=n.computed(()=>({viewKey:V.SYSTEM_VIEW_KEY,viewName:N("ap.apView.systemView")})),{getSearchFormValues:Y,setSearchFormValues:T,submit:M,reset:x}=k.useInjectApTable(),I=n.ref(!1),K=n.ref(!1),p=n.ref("");let b=!1;const P={dropdownType:"dropdown",content:n.createVNode($.default,{maxViewNum:m.maxViewNum},null)},u=n.ref([_.value]),B=n.computed(()=>u.value.map(t=>({id:t.viewKey,content:n.createVNode(h.default,{view:t},null)}))),e={getSearchFormValues:Y,setSearchFormValues:T,submit:M,reset:x,...m.saveDataSource},s={...q.value,...m.viewCacheOption},g=()=>{if(m.isDefaultSystemView)return V.SYSTEM_VIEW_KEY;const t=u.value.find(i=>i.isDefault);return(t==null?void 0:t.viewKey)??V.SYSTEM_VIEW_KEY},w=t=>{p.value=t;const i=u.value.find(l=>l.viewKey===p.value);i&&setTimeout(()=>{var l,r,o,c,a,f;i.viewKey===V.SYSTEM_VIEW_KEY?b?(l=e==null?void 0:e.submit)==null||l.call(e):(r=e==null?void 0:e.reset)==null||r.call(e):((a=e==null?void 0:e.setSearchFormValues)==null||a.call(e,{...Object.fromEntries(Object.keys(((o=e==null?void 0:e.getSearchFormValues)==null?void 0:o.call(e))??{}).map(d=>[d,void 0]))??{},...((c=i.viewConfig)==null?void 0:c.searchForm)??{}}),(f=e==null?void 0:e.submit)==null||f.call(e)),b=!1})},y={getViewList:async t=>{var i;try{const{tableKey:l}=t,r=await((i=s==null?void 0:s.getViewList)==null?void 0:i.call(s,{tableKey:l}));return u.value=[_.value,...r??[]],w(g()),u.value}catch{return u.value=[_.value],w(V.SYSTEM_VIEW_KEY),u.value}},addView:async t=>{var a;const{tableKey:i,viewKey:l,viewName:r,isDefault:o,viewConfig:c}=t;await((a=s==null?void 0:s.addView)==null?void 0:a.call(s,{tableKey:i,viewKey:l,viewName:r,isDefault:o,viewConfig:c})),o&&(u.value=u.value.map(f=>({...f,isDefault:!1}))),u.value=[...u.value,{viewKey:l,viewName:r,isDefault:o,viewConfig:c}],w(l)},changeView:async t=>{var f;const{tableKey:i,viewKey:l,viewName:r,isDefault:o,viewConfig:c}=t;await((f=s==null?void 0:s.changeView)==null?void 0:f.call(s,{tableKey:i,viewKey:l,viewName:r,isDefault:o,viewConfig:c})),o&&(u.value=u.value.map(d=>({...d,isDefault:!1})));const a=u.value.find(d=>d.viewKey===l);a&&(a.viewName=r,a.isDefault=o,a.viewConfig=c),w(l)},removeView:async t=>{var r;const{tableKey:i,viewKey:l}=t;await((r=s==null?void 0:s.removeView)==null?void 0:r.call(s,{tableKey:i,viewKey:l})),u.value=u.value.filter(o=>o.viewKey!==l),l===p.value&&w(g())}},F={tableKey:m.tableKey,currentViewKey:p,changeCurrentViewKey:w,popoverOpen:I,menuOpen:K,viewList:u,viewListCRUD:y,saveDataSource:e};return j.useViewProvide(F),n.watch(()=>m.tableKey,t=>{var i;A.isValid(t)&&(b=!0,(i=y==null?void 0:y.getViewList)==null||i.call(y,{tableKey:t}))},{immediate:!0}),(t,i)=>(n.openBlock(),n.createBlock(n.unref(W.ApBatchActionGroup),n.mergeProps({...t.$attrs},{open:K.value,"onUpdate:open":i[0]||(i[0]=l=>K.value=l),class:[n.unref(v)()],"button-props":P,"menu-list":B.value,"overlay-class-name":[n.unref(v)("overlay")],trigger:"click",placement:"bottom"}),{icon:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass([n.unref(v)("icon")])},[n.createVNode(L.default)],2)]),_:1},16,["open","class","menu-list","overlay-class-name"]))}});exports.default=H;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const y=require("../icons/line-eye.vue.js");require("../../../ap-form/ap-form.vue.js");const C=require("../../../ap-field/index.js");require("../../../ap-button/index.js");const q=require("dayjs"),b=require("../hooks/use-view-provide.js"),F=require("../utils/uuid.js"),z=require("lodash-unified"),T=require("../../../config-provider/hooks/use-locale.js"),k=require("../../../config-provider/hooks/use-namespace.js"),p=require("../../../ap-form/ap-form.vue2.js"),N=require("../../../ap-button/ap-button.vue.js"),D=e.defineComponent({__name:"main-button-content",props:{maxViewNum:{}},setup(h){const c=h,{t}=T.useLocale(),{b:r}=k.useNamespace("ap-view"),d=e.ref(),{tableKey:x,popoverOpen:o,viewList:u,saveDataSource:n,viewListCRUD:m}=b.useViewInject(),w=e.computed({get:()=>o.value&&u.value.length<c.maxViewNum+1,set:l=>{u.value.length<c.maxViewNum+1&&(o.value=l)}});e.watch(o,l=>{var a;l&&((a=d.value)==null||a.resetFields(),setTimeout(()=>{var i;(i=d.value)==null||i.setFieldsValue({isDefault:!u.value.some(f=>f.isDefault)})}))});const _=async l=>{var v,V;const{viewName:a,isDefault:i}=l,f=F.generateUniqueKey(),g={searchForm:z.cloneDeep((v=n==null?void 0:n.getSearchFormValues)==null?void 0:v.call(n,!!(n!=null&&n.searchFormTransform)))};await((V=m.addView)==null?void 0:V.call(m,{tableKey:x,viewKey:f,viewName:a,isDefault:i,viewConfig:g})),o.value=!1};return(l,a)=>(e.openBlock(),e.createBlock(e.unref(s.Popover),{open:w.value,"onUpdate:open":a[1]||(a[1]=i=>w.value=i),placement:"bottom",trigger:"click",arrow:!1,"overlay-inner-style":{padding:"12px 16px"}},{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("main-content-popover")])},[e.createVNode(p.default,{ref_key:"formRef",ref:d,layout:"vertical","initial-values":{viewName:`${e.unref(t)("ap.apView.newView")} ${e.unref(q)().format("YYYY-MM-DD").toString()}`},onFinish:_},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("main-content-popover-title-content")])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("main-content-popover-title-content-title")])},e.toDisplayString(e.unref(t)("ap.apView.saveNewView")),3),e.createVNode(p.default.FormItem,{name:"isDefault","value-prop-name":"checked"},{default:e.withCtx(()=>[e.createVNode(e.unref(s.Checkbox),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.setDefault")),1)]),_:1})]),_:1})],2),e.createVNode(p.default.FormItem,{label:e.unref(t)("ap.apView.viewName"),name:"viewName",rules:[{required:!0,message:e.unref(t)("ap.apView.notEmpty")}]},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ApField).Text,{placeholder:e.unref(t)("ap.apView.viewName"),maxlength:20,"show-count":""},null,8,["placeholder"])]),_:1},8,["label","rules"]),e.createVNode(p.default.FormItem,{class:e.normalizeClass([e.unref(r)("main-content-popover-btn")])},{default:e.withCtx(()=>[e.createVNode(e.unref(s.Space),{size:8},{default:e.withCtx(()=>[e.createVNode(e.unref(N.default),{size:"small",onClick:a[0]||(a[0]=i=>o.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.cancel")),1)]),_:1}),e.createVNode(e.unref(N.default),{type:"primary",size:"small","html-type":"submit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.save")),1)]),_:1})]),_:1})]),_:1},8,["class"])]),_:1},8,["initial-values"])],2)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(r)("main-content")]:!0,[e.unref(r)("main-content-disabled")]:e.unref(u).length>=c.maxViewNum+1})},[e.createVNode(e.unref(s.Tooltip),{placement:"bottom"},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(s.Space),{size:4},{default:e.withCtx(()=>[e.createVNode(y.default,{class:e.normalizeClass([e.unref(r)("icon")])},null,8,["class"]),e.createElementVNode("div",null,e.toDisplayString(e.unref(t)("ap.apView.saveView")),1)]),_:1})]),_:2},[e.unref(u).length>=c.maxViewNum+1?{name:"title",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.maxTip")),1)]),key:"0"}:void 0]),1024)],2)]),_:1},8,["open"]))}});exports.default=D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const M=require("../hooks/use-view-provide.js"),k=require("../utils/enum.js"),m=require("@aplus-frontend/antdv"),b=require("../icons/line-delete.vue.js");require("../../../ap-tag/index.js");require("../../../ap-form/ap-form.vue.js");const T=require("../../../ap-field/index.js"),z=require("../../../config-provider/hooks/use-namespace.js"),I=require("../../../config-provider/hooks/use-locale.js"),Y=require("../../../config-provider/hooks/use-global-config.js"),F=require("../../../ap-tag/ap-tag.vue.js"),y=require("../../../ap-form/ap-form.vue2.js"),P={class:"menu-list-content-name"},j=["title"],G={key:0,class:"menu-list-content-default"},O={class:"menu-list-content-action-delete"},W={class:"menu-list-content-edit"},$=e.defineComponent({__name:"menu-list-content",props:{view:{}},setup(E){const{b:u}=z.useNamespace("ap-view"),{t:i}=I.useLocale(),n=E,g={aplus:"#2ed1a3",admin:"#34b77c"},x=Y.useGlobalConfig("uiMode"),{currentViewKey:S,changeCurrentViewKey:h,viewListCRUD:t,tableKey:s,menuOpen:f}=M.useViewInject(),l=e.ref(!1),v=e.ref(),q=()=>{h(n.view.viewKey),f.value=!1},C=()=>{var a;(a=t==null?void 0:t.changeView)==null||a.call(t,{...n.view,tableKey:s,isDefault:!0})},K=()=>{var a;(a=t==null?void 0:t.removeView)==null||a.call(t,{tableKey:s,viewKey:n.view.viewKey})},B=async()=>{var o,r,c;const a=await((r=(o=v.value)==null?void 0:o.validate)==null?void 0:r.call(o));(c=t==null?void 0:t.changeView)==null||c.call(t,{...n.view,tableKey:s,viewName:(a==null?void 0:a.viewName)||n.view.viewName}),l.value=!1};return e.watch(()=>f.value,a=>{a&&(l.value=!1)}),(a,o)=>{var r,c,p,w,_,V,N;return l.value===!1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({[e.unref(u)("menu-list-content")]:!0,[e.unref(u)("menu-list-content-active")]:((r=n.view)==null?void 0:r.viewKey)===e.unref(S)}),onClick:q},[e.createElementVNode("div",P,[e.createElementVNode("span",{title:(c=n.view)==null?void 0:c.viewName},e.toDisplayString((p=n.view)==null?void 0:p.viewName),9,j)]),((w=n.view)==null?void 0:w.viewKey)!==e.unref(k.SYSTEM_VIEW_KEY)&&((_=n.view)!=null&&_.isDefault)?(e.openBlock(),e.createElementBlock("div",G,[e.createVNode(e.unref(F.default),{text:e.unref(i)("ap.apView.default"),size:"small",color:g[e.unref(x)??"aplus"]},null,8,["text","color"])])):e.createCommentVNode("",!0),((V=n.view)==null?void 0:V.viewKey)!==e.unref(k.SYSTEM_VIEW_KEY)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"menu-list-content-action",onClick:o[1]||(o[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(e.unref(m.Space),{size:8},{default:e.withCtx(()=>{var d;return[e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:o[0]||(o[0]=A=>l.value=!0)},e.toDisplayString(e.unref(i)("ap.apView.rename")),1),(d=n.view)!=null&&d.isDefault?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"menu-list-content-action-text",onClick:C},e.toDisplayString(e.unref(i)("ap.apView.setDefault")),1)),e.createElementVNode("div",O,[e.createVNode(e.unref(m.Popconfirm),{title:e.unref(i)("ap.apView.deleteTip"),"ok-text":e.unref(i)("ap.apView.ok"),onConfirm:K},{default:e.withCtx(()=>[e.createVNode(b.default)]),_:1},8,["title","ok-text"])])]}),_:1})])):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(u)("menu-list-content"),e.unref(u)("menu-list-content-edit")])},[e.createVNode(y.default,{ref_key:"formRef",ref:v,"initial-values":{viewName:(N=n.view)==null?void 0:N.viewName}},{default:e.withCtx(()=>[e.createElementVNode("div",W,[e.createVNode(e.unref(m.Space),{size:8},{default:e.withCtx(()=>[e.createVNode(y.default.FormItem,{name:"viewName"},{default:e.withCtx(()=>[e.createVNode(e.unref(T.ApField).Text,{maxlength:20})]),_:1}),e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:B},e.toDisplayString(e.unref(i)("ap.apView.save")),1),e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:o[2]||(o[2]=d=>l.value=!1)},e.toDisplayString(e.unref(i)("ap.apView.cancel")),1)]),_:1})])]),_:1},8,["initial-values"])],2))}}});exports.default=$;
|
|
@@ -3,6 +3,7 @@ import { SaveDataSource, ViewCacheOption, ViewListModel } from '../interface';
|
|
|
3
3
|
type DataModel = {
|
|
4
4
|
tableKey: string;
|
|
5
5
|
currentViewKey: Ref<string>;
|
|
6
|
+
changeCurrentViewKey: (key: string) => void;
|
|
6
7
|
popoverOpen: Ref<boolean>;
|
|
7
8
|
menuOpen: Ref<boolean>;
|
|
8
9
|
viewList: Ref<ViewListModel[]>;
|
|
@@ -4,6 +4,7 @@ export * from './interface';
|
|
|
4
4
|
declare const ApView: {
|
|
5
5
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApViewProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
6
6
|
maxViewNum: number;
|
|
7
|
+
isDefaultSystemView: boolean;
|
|
7
8
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
8
9
|
P: {};
|
|
9
10
|
B: {};
|
|
@@ -13,12 +14,14 @@ declare const ApView: {
|
|
|
13
14
|
Defaults: {};
|
|
14
15
|
}, Readonly< ApViewProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
15
16
|
maxViewNum: number;
|
|
17
|
+
isDefaultSystemView: boolean;
|
|
16
18
|
}>;
|
|
17
19
|
__isFragment?: never;
|
|
18
20
|
__isTeleport?: never;
|
|
19
21
|
__isSuspense?: never;
|
|
20
22
|
} & ComponentOptionsBase<Readonly< ApViewProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
21
23
|
maxViewNum: number;
|
|
24
|
+
isDefaultSystemView: boolean;
|
|
22
25
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
23
26
|
$props: {
|
|
24
27
|
onClick?: () => void;
|
|
@@ -4,6 +4,10 @@ export interface SaveDataSource {
|
|
|
4
4
|
setSearchFormValues?: (values: Partial<Recordable>) => void;
|
|
5
5
|
submit?: () => void;
|
|
6
6
|
reset?: () => void;
|
|
7
|
+
/**
|
|
8
|
+
* 是否转换搜索表单,默认为 false
|
|
9
|
+
*/
|
|
10
|
+
searchFormTransform?: boolean;
|
|
7
11
|
}
|
|
8
12
|
export interface ViewCacheOption {
|
|
9
13
|
getViewList?: (option: {
|
|
@@ -51,4 +55,8 @@ export interface ApViewProps {
|
|
|
51
55
|
* 视图最大保存数
|
|
52
56
|
*/
|
|
53
57
|
maxViewNum?: number;
|
|
58
|
+
/**
|
|
59
|
+
* 指定默认视图为系统视图
|
|
60
|
+
*/
|
|
61
|
+
isDefaultSystemView?: boolean;
|
|
54
62
|
}
|
|
@@ -3,12 +3,12 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
declare const _default: DefineComponent<ApFormItemBatchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemBatchInputProps> & Readonly<{}>, {
|
|
4
4
|
trim: boolean;
|
|
5
5
|
disabled: boolean;
|
|
6
|
-
bordered: boolean;
|
|
7
6
|
hasFeedback: boolean;
|
|
8
7
|
colon: boolean;
|
|
9
8
|
autoLink: boolean;
|
|
10
9
|
required: boolean;
|
|
11
10
|
validateFirst: boolean;
|
|
11
|
+
bordered: boolean;
|
|
12
12
|
field: Omit< BatchInputGroupProps, "value" | "onUpdate:value">;
|
|
13
13
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
export default _default;
|
|
@@ -43,12 +43,12 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
43
43
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
44
44
|
readonly value?: string | number | undefined;
|
|
45
45
|
readonly disabled?: boolean | undefined;
|
|
46
|
-
readonly bordered?: boolean | undefined;
|
|
47
46
|
readonly prefixCls?: string | undefined;
|
|
48
47
|
readonly name?: string | undefined;
|
|
49
48
|
readonly loading?: boolean | undefined;
|
|
50
49
|
readonly autofocus?: boolean | undefined;
|
|
51
50
|
readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
51
|
+
readonly bordered?: boolean | undefined;
|
|
52
52
|
readonly suffix?: any;
|
|
53
53
|
readonly focused?: boolean | undefined;
|
|
54
54
|
readonly placeholder?: string | number | undefined;
|
|
@@ -19,6 +19,8 @@ export interface UsePageListApGrid extends ApGridProps {
|
|
|
19
19
|
* 表格刷新相关
|
|
20
20
|
*/
|
|
21
21
|
tableRefresh?: boolean | Omit<UseTableRefreshOption, 'apTableRef'>;
|
|
22
|
+
/** 是否在deactivated的时候清空数据, 需要在setup中使用才会生效 */
|
|
23
|
+
clearDataSourceOnDeactivated?: boolean;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* 集成了列表页面的ApGrid的默认配置
|