@aplus-frontend/ui 0.6.0-beta.0 → 0.6.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/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/ap-form.vue2.mjs +57 -58
- package/es/src/ap-form/interface.d.ts +8 -0
- package/es/src/ap-form/item/index.vue.d.ts +1 -1
- package/es/src/ap-form/item/index.vue.mjs +33 -28
- package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
- package/es/src/ap-form/items/date/index.vue.mjs +8 -7
- package/es/src/ap-form/items/date-range/index.vue.mjs +1 -0
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/number/index.vue.mjs +9 -8
- package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.mjs +7 -6
- package/es/src/ap-form/items/switch/index.vue.mjs +1 -0
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +1 -0
- package/es/src/ap-form/items/text-area/index.vue.mjs +1 -0
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -5
- package/es/src/ap-form/render/item.vue.d.ts +1 -1
- package/es/src/ap-form/render/item.vue.mjs +5 -4
- 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 +41 -37
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +88 -69
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +8 -8
- package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/es/src/ap-form/search-form/index.vue.mjs +91 -89
- 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 +95 -84
- package/es/src/ap-grid/editable/index.vue.mjs +90 -79
- 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 +171 -148
- package/es/src/ap-grid/interface.d.ts +3 -3
- 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-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 +136 -117
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +60 -48
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +86 -80
- 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/form-item.vue.mjs +1 -0
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/business/hooks/usePageListApGrid.mjs +3 -5
- package/es/src/check-card/group.vue.d.ts +1 -1
- package/es/src/check-card/index.vue2.mjs +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/design-token/index.mjs +9 -3
- package/es/src/editable-table/form-item.vue.d.ts +2 -14
- package/es/src/editable-table/form-item.vue.mjs +85 -77
- package/es/src/editable-table/index.vue.d.ts +2 -16
- package/es/src/editable-table/index.vue.mjs +86 -78
- package/es/src/editable-table/interface.d.ts +7 -0
- package/es/src/locale/lang/en.mjs +1 -1
- package/es/src/locale/lang/zh-cn.mjs +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/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +8 -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/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.d.ts +1 -1
- package/lib/src/ap-form/render/item.vue.js +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/components/popover-sorter/sortable-item.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 +3 -3
- 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-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/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +1 -1
- package/lib/src/check-card/index.vue2.js +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/design-token/index.js +1 -1
- 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/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/package.json +4 -4
- package/theme/antd-global-overwrite/admin/index.css +14 -27
- package/theme/antd-global-overwrite/admin/index.less +1 -0
- package/theme/antd-global-overwrite/admin/modal.css +8 -24
- package/theme/antd-global-overwrite/admin/modal.less +9 -24
- package/theme/antd-global-overwrite/admin/table.css +3 -3
- package/theme/antd-global-overwrite/admin/table.less +3 -3
- 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/index.css +13 -20
- package/theme/antd-global-overwrite/aplus/index.less +1 -0
- package/theme/antd-global-overwrite/aplus/modal.css +7 -17
- package/theme/antd-global-overwrite/aplus/modal.less +8 -18
- package/theme/antd-global-overwrite/aplus/table.css +3 -3
- package/theme/antd-global-overwrite/aplus/table.less +3 -3
- 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 +24 -6
- package/theme/ap-action/item-dropdown.less +1 -1
- package/theme/ap-action/item.css +25 -7
- package/theme/ap-action/item.less +1 -1
- package/theme/ap-appendix/ap-appendix.css +28 -8
- package/theme/ap-appendix/ap-appendix.less +6 -4
- package/theme/ap-attachment/ap-attachment.css +28 -9
- package/theme/ap-attachment/ap-attachment.less +6 -6
- package/theme/ap-batch-action/ap-batch-action.css +28 -7
- package/theme/ap-batch-action/ap-batch-action.less +6 -3
- package/theme/ap-button/ap-button.css +22 -4
- package/theme/ap-card/ap-card.css +22 -4
- package/theme/ap-descriptions/ap-descriptions.css +27 -9
- package/theme/ap-descriptions/ap-descriptions.less +5 -5
- package/theme/ap-download/ap-download.css +29 -14
- package/theme/ap-download/ap-download.less +8 -11
- package/theme/ap-expand-alert/ap-expand-alert.css +24 -6
- package/theme/ap-expand-alert/ap-expand-alert.less +5 -5
- package/theme/ap-field/checkbox.css +23 -5
- package/theme/ap-field/checkbox.less +2 -1
- package/theme/ap-field/index.css +24 -6
- package/theme/ap-field/number.css +22 -4
- package/theme/ap-field/radio.css +23 -5
- package/theme/ap-field/radio.less +1 -1
- package/theme/ap-field/text-area.css +22 -4
- package/theme/ap-form/ap-form-item-group.css +22 -4
- package/theme/ap-form/ap-form-item.css +33 -10
- package/theme/ap-form/ap-form-item.less +17 -9
- package/theme/ap-form/drawer-form.css +22 -4
- package/theme/ap-form/index.css +61 -26
- package/theme/ap-form/item-text-group.css +22 -4
- package/theme/ap-form/item-text.css +22 -4
- package/theme/ap-form/modal-form.css +22 -4
- package/theme/ap-form/search-form-sorter.css +36 -17
- package/theme/ap-form/search-form-sorter.less +8 -7
- package/theme/ap-form/search-form.css +61 -26
- package/theme/ap-form/search-form.less +17 -6
- package/theme/ap-grid/editable.css +24 -6
- package/theme/ap-grid/editable.less +3 -2
- package/theme/ap-grid/index.css +117 -43
- package/theme/ap-grid/index.less +35 -11
- package/theme/ap-group-search/ap-extension-select.css +22 -4
- package/theme/ap-group-search/ap-group-search.css +22 -4
- package/theme/ap-group-search/ap-popover-select.css +22 -4
- package/theme/ap-image/ap-image.css +22 -4
- package/theme/ap-input-radio/ap-input-radio.css +22 -4
- package/theme/ap-label/ap-label.css +22 -4
- package/theme/ap-ladder/ap-ladder.css +26 -7
- package/theme/ap-ladder/ap-ladder.less +4 -3
- package/theme/ap-layout/ap-info-layout.css +22 -4
- package/theme/ap-list/index.css +23 -5
- package/theme/ap-list/index.less +2 -1
- package/theme/ap-product-info/ap-product-info.css +22 -4
- package/theme/ap-select-layout/ap-select-layout.css +30 -12
- package/theme/ap-select-layout/ap-select-layout.less +8 -8
- package/theme/ap-size-input/ap-size-input.css +22 -4
- package/theme/ap-status/ap-status.css +24 -7
- package/theme/ap-status/ap-status.less +2 -4
- package/theme/ap-summary/index.css +25 -7
- package/theme/ap-summary/index.less +3 -3
- package/theme/ap-table/ap-table-index.css +27 -9
- package/theme/ap-table/ap-table-index.less +5 -5
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +22 -4
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +109 -55
- package/theme/ap-table/ap-table.less +11 -9
- package/theme/ap-table/setting/index.css +30 -13
- package/theme/ap-table/setting/modal.css +26 -9
- package/theme/ap-table/setting/modal.less +1 -2
- package/theme/ap-table/setting/select-group.css +24 -5
- package/theme/ap-table/setting/select-group.less +2 -1
- package/theme/ap-table/setting/sortable-item-meta.css +22 -4
- package/theme/ap-table/setting/sortable-item.css +22 -4
- package/theme/ap-table/setting/sorter.css +24 -7
- package/theme/ap-table-modal/index.css +109 -55
- package/theme/ap-tag/ap-tag-group.css +24 -6
- package/theme/ap-tag/ap-tag-group.less +4 -5
- package/theme/ap-tag/ap-tag.css +45 -18
- package/theme/ap-tag/ap-tag.less +37 -24
- package/theme/ap-title/ap-title.css +29 -9
- package/theme/ap-title/ap-title.less +7 -5
- package/theme/ap-upload/index.css +30 -12
- package/theme/ap-upload/multiple-file.css +24 -6
- package/theme/ap-upload/multiple-file.less +2 -2
- package/theme/ap-upload/picture.css +26 -8
- package/theme/ap-upload/picture.less +4 -4
- package/theme/ap-upload/single-file.css +24 -6
- package/theme/ap-upload/single-file.less +2 -2
- package/theme/ap-upload/upload.css +22 -4
- package/theme/ap-upload-single/index.css +22 -4
- package/theme/ap-view/ap-view.css +26 -4
- package/theme/ap-view/ap-view.less +4 -0
- package/theme/batch-input-group/index.css +25 -6
- package/theme/batch-input-group/popover-input.css +23 -4
- package/theme/batch-input-group/popover-input.less +1 -0
- package/theme/check-card/index.css +44 -26
- package/theme/check-card/index.less +17 -15
- package/theme/editable-table/index.css +77 -40
- package/theme/editable-table/index.less +9 -7
- package/theme/full-screen/index.css +22 -4
- package/theme/index.css +390 -182
- package/theme/index.less +1 -0
- package/theme/mask/index.css +22 -4
- package/theme/mixins/config.less +27 -5
- package/theme/mixins/mixins.css +22 -4
- package/theme/mixins/mixins.less +25 -0
- package/theme/scroll-bar/index.css +22 -4
- package/theme/scroll-view/index.css +22 -4
- package/theme/splitter/index.css +29 -11
- package/theme/text/group.css +22 -4
- package/theme/text/index.css +25 -7
- package/theme/ui-mode.css +94 -0
- package/theme/ui-mode.less +95 -0
- package/theme/work-order-modal/index.css +22 -4
- 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"),S=require("@aplus-frontend/antdv");require("../config-provider/index.js");require("../hooks/index.js");const g=require("lodash-unified"),V=require("./context.js"),P=require("./checked.svg.js"),_=require("../config-provider/hooks/use-namespace.js"),q=require("../hooks/useControllableValue.js"),w=["src"],T=e.defineComponent({name:"CheckCard",__name:"index",props:{bordered:{type:Boolean,default:!0},disabled:{type:Boolean},loading:{type:Boolean},size:{default:"middle"},stopPropagation:{type:[Boolean,Function],default:!1},indicatorSize:{default:void 0},style:{default:void 0},checked:{type:Boolean,default:void 0},"onUpdate:checked":{},defaultChecked:{type:Boolean},value:{type:[String,Number,Boolean]},title:{},content:{}},emits:["update:checked"],setup(k,{emit:h}){const o=k,{b:y,m:u,e:i,em:s}=_.useNamespace("check-card"),b=h,l=V.useInjectCheckCard(),{value:r,updateValue:p}=q.useControllableValue(o,b,{valuePropName:"checked",defaultValuePropName:"defaultChecked"}),a=e.computed(()=>{const t={...o},n=e.unref(l);return n&&(t.disabled=t.disabled||n.disabled,t.bordered=t.bordered||n.bordered,t.loading=t.loading||n.loading,t.size=t.size||n.size,t.indicatorSize=t.indicatorSize||n.indicatorSize,t.stopPropagation=t.stopPropagation||n.stopPropagation,t.style=t.style?t.style:n.style),t}),C=e.computed(()=>{const t=e.unref(a);return[y(),u(t.size),e.unref(r)?u("checked"):null,t.bordered?u("bordered"):null,t.disabled?u("disabled"):null]}),B=e.computed(()=>{const t=e.unref(a);return{...t.style||{},"--check-card-indicator-size":`${t.indicatorSize||
|
|
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");require("../hooks/index.js");const g=require("lodash-unified"),V=require("./context.js"),P=require("./checked.svg.js"),_=require("../config-provider/hooks/use-namespace.js"),q=require("../hooks/useControllableValue.js"),w=["src"],T=e.defineComponent({name:"CheckCard",__name:"index",props:{bordered:{type:Boolean,default:!0},disabled:{type:Boolean},loading:{type:Boolean},size:{default:"middle"},stopPropagation:{type:[Boolean,Function],default:!1},indicatorSize:{default:void 0},style:{default:void 0},checked:{type:Boolean,default:void 0},"onUpdate:checked":{},defaultChecked:{type:Boolean},value:{type:[String,Number,Boolean]},title:{},content:{}},emits:["update:checked"],setup(k,{emit:h}){const o=k,{b:y,m:u,e:i,em:s}=_.useNamespace("check-card"),b=h,l=V.useInjectCheckCard(),{value:r,updateValue:p}=q.useControllableValue(o,b,{valuePropName:"checked",defaultValuePropName:"defaultChecked"}),a=e.computed(()=>{const t={...o},n=e.unref(l);return n&&(t.disabled=t.disabled||n.disabled,t.bordered=t.bordered||n.bordered,t.loading=t.loading||n.loading,t.size=t.size||n.size,t.indicatorSize=t.indicatorSize||n.indicatorSize,t.stopPropagation=t.stopPropagation||n.stopPropagation,t.style=t.style?t.style:n.style),t}),C=e.computed(()=>{const t=e.unref(a);return[y(),u(t.size),e.unref(r)?u("checked"):null,t.bordered?u("bordered"):null,t.disabled?u("disabled"):null]}),B=e.computed(()=>{const t=e.unref(a);return{...t.style||{},"--check-card-indicator-size":`${t.indicatorSize||14}px`}}),f=e.computed(()=>{const t=o.title;if(!t)return;const n=g.isFunction(t)?t(e.unref(r)):e.createVNode(e.Fragment,null,[t]);return e.createVNode("div",{class:[i("title"),a.value.disabled?s("title","disabled"):null]},[n])}),m=e.computed(()=>{if(!o.content)return;const t=g.isFunction(o.content)?o.content(e.unref(r)):o.content;return e.createVNode("div",{class:[i("content"),a.value.disabled?s("content","disabled"):null]},[t])});function z(t){const n=e.unref(a).stopPropagation;return n?n===!0?t.target!==t.currentTarget:n(t):!1}function N(t){var n,c;z(t)||a.value.loading||a.value.disabled||(l.value?(c=(n=l.value)==null?void 0:n.toggleOption)==null||c.call(n,o.value):p(!e.unref(r)))}return e.watch(()=>l.value,t=>{if(!t)return;const n=t.multiple?(t.value||[]).includes(o.value):t.value===o.value;p(n)},{immediate:!0}),e.watchEffect(t=>{var n,c;(c=(n=l.value)==null?void 0:n.registerValue)==null||c.call(n,o.value),t(()=>{var d,v;return(v=(d=l.value)==null?void 0:d.cancelValue)==null?void 0:v.call(d,o.value)})}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(B.value),class:e.normalizeClass(C.value),onClick:e.withModifiers(N,["stop"])},[a.value.loading?(e.openBlock(),e.createBlock(e.unref(S.Skeleton),{key:0,active:""})):e.renderSlot(t.$slots,"default",{key:1,checked:e.unref(r)},()=>[f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value),{key:0})):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{key:1})):e.createCommentVNode("",!0)]),e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(i)("checked-icon"))},[e.createElementVNode("img",{src:e.unref(P.default)},null,8,w)],2)):e.createCommentVNode("",!0)],6))}});exports.default=T;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { LocaleType } from '../locale/interface';
|
|
3
3
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
|
|
4
|
-
import { CssVarType } from './css-var';
|
|
5
4
|
import { ViewCacheOption } from '../business';
|
|
6
5
|
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
7
6
|
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
@@ -156,10 +155,6 @@ export declare const configProviderProps: () => {
|
|
|
156
155
|
type: PropType<downloadCenterTriggerConfig>;
|
|
157
156
|
default: () => {};
|
|
158
157
|
};
|
|
159
|
-
cssVar: {
|
|
160
|
-
type: PropType<CssVarType>;
|
|
161
|
-
default: () => {};
|
|
162
|
-
};
|
|
163
158
|
exportField: {
|
|
164
159
|
type: PropType<ExportField>;
|
|
165
160
|
default: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/antdv/es/config-provider/context"),t=()=>({aplusLocale:{type:Object},namespace:{type:String},api:{type:Object,default:()=>({})},uiMode:{type:String},apUpload:{type:Object,default:()=>({})},apDescriptions:{type:Object,default:()=>({})},valueTypeMap:{type:Object,default:()=>({})},downloadCenterTriggerConfig:{type:Object,default:()=>({})},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/antdv/es/config-provider/context"),t=()=>({aplusLocale:{type:Object},namespace:{type:String},api:{type:Object,default:()=>({})},uiMode:{type:String},apUpload:{type:Object,default:()=>({})},apDescriptions:{type:Object,default:()=>({})},valueTypeMap:{type:Object,default:()=>({})},downloadCenterTriggerConfig:{type:Object,default:()=>({})},exportField:{type:[Object,Boolean],default:!1},scrollYDomName:{type:String},viewCacheOption:{type:Object,default:()=>({})},...e.configProviderProps()});exports.configProviderProps=t;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Ref, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { ConfigProviderProps } from './config-provider-props';
|
|
3
|
-
import { CssVarType } from './css-var';
|
|
4
3
|
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
5
4
|
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
6
5
|
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
@@ -12,7 +11,6 @@ import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
|
12
11
|
import { LocaleType } from '../locale';
|
|
13
12
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
|
|
14
13
|
import { ViewCacheOption } from '..';
|
|
15
|
-
import { RecursivePartial } from '../type';
|
|
16
14
|
export declare const globalConfigCached: Ref<ConfigProviderProps>;
|
|
17
15
|
export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
18
16
|
iconPrefixCls: StringConstructor;
|
|
@@ -156,10 +154,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
156
154
|
type: PropType<downloadCenterTriggerConfig>;
|
|
157
155
|
default: () => {};
|
|
158
156
|
};
|
|
159
|
-
cssVar: {
|
|
160
|
-
type: PropType<CssVarType>;
|
|
161
|
-
default: () => {};
|
|
162
|
-
};
|
|
163
157
|
exportField: {
|
|
164
158
|
type: PropType<ExportField>;
|
|
165
159
|
default: boolean;
|
|
@@ -313,10 +307,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
313
307
|
type: PropType<downloadCenterTriggerConfig>;
|
|
314
308
|
default: () => {};
|
|
315
309
|
};
|
|
316
|
-
cssVar: {
|
|
317
|
-
type: PropType<CssVarType>;
|
|
318
|
-
default: () => {};
|
|
319
|
-
};
|
|
320
310
|
exportField: {
|
|
321
311
|
type: PropType<ExportField>;
|
|
322
312
|
default: boolean;
|
|
@@ -365,134 +355,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
365
355
|
apDescriptions: ApDescriptionsConfig;
|
|
366
356
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
367
357
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
368
|
-
cssVar: RecursivePartial<{
|
|
369
|
-
'ap-form': {
|
|
370
|
-
bordered: {
|
|
371
|
-
'border-color': {
|
|
372
|
-
base: string;
|
|
373
|
-
hover: string;
|
|
374
|
-
active: string;
|
|
375
|
-
};
|
|
376
|
-
'shadow-color': string;
|
|
377
|
-
};
|
|
378
|
-
};
|
|
379
|
-
'ap-action': {
|
|
380
|
-
color: {
|
|
381
|
-
primary: {
|
|
382
|
-
base: string;
|
|
383
|
-
hover: string;
|
|
384
|
-
};
|
|
385
|
-
success: string;
|
|
386
|
-
error: string;
|
|
387
|
-
warn: string;
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
'check-card': {
|
|
391
|
-
outline: {
|
|
392
|
-
color: string;
|
|
393
|
-
};
|
|
394
|
-
hover: {
|
|
395
|
-
outline: {
|
|
396
|
-
color: string;
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
checked: {
|
|
400
|
-
outline: {
|
|
401
|
-
color: string;
|
|
402
|
-
};
|
|
403
|
-
bg: string;
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
'ap-table': {
|
|
407
|
-
header: {
|
|
408
|
-
bg: string;
|
|
409
|
-
};
|
|
410
|
-
pagination: {
|
|
411
|
-
total: {
|
|
412
|
-
color: string;
|
|
413
|
-
count: {
|
|
414
|
-
color: string;
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
};
|
|
418
|
-
setting: {
|
|
419
|
-
button: {
|
|
420
|
-
color: string;
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
'ap-batch-action': {
|
|
425
|
-
color: {
|
|
426
|
-
font: string;
|
|
427
|
-
active: string;
|
|
428
|
-
border: string;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
basic: {
|
|
432
|
-
color: {
|
|
433
|
-
primary: string;
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
'ap-descriptions': {
|
|
437
|
-
item: {
|
|
438
|
-
'padding-bottom': string;
|
|
439
|
-
'label-width': string;
|
|
440
|
-
};
|
|
441
|
-
'last-row-item': {
|
|
442
|
-
'padding-bottom': string;
|
|
443
|
-
};
|
|
444
|
-
};
|
|
445
|
-
'ap-appendix': {
|
|
446
|
-
area: {
|
|
447
|
-
color: {
|
|
448
|
-
border: string;
|
|
449
|
-
font: string;
|
|
450
|
-
'font-hover': string;
|
|
451
|
-
'font-disabled': string;
|
|
452
|
-
icon: string;
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
|
-
};
|
|
456
|
-
'ap-upload-single': {
|
|
457
|
-
color: {
|
|
458
|
-
main: string;
|
|
459
|
-
sub: string;
|
|
460
|
-
border: string;
|
|
461
|
-
primary: string;
|
|
462
|
-
};
|
|
463
|
-
};
|
|
464
|
-
'batch-input-group': {
|
|
465
|
-
trigger: {
|
|
466
|
-
color: string;
|
|
467
|
-
'color-disabled': string;
|
|
468
|
-
};
|
|
469
|
-
};
|
|
470
|
-
'ap-text': {
|
|
471
|
-
label: {
|
|
472
|
-
color: string;
|
|
473
|
-
};
|
|
474
|
-
content: {
|
|
475
|
-
color: {
|
|
476
|
-
major: string;
|
|
477
|
-
minor: string;
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
'ap-view': {
|
|
482
|
-
icon: {
|
|
483
|
-
color: string;
|
|
484
|
-
};
|
|
485
|
-
bg: {
|
|
486
|
-
color: string;
|
|
487
|
-
};
|
|
488
|
-
message: {
|
|
489
|
-
color: string;
|
|
490
|
-
};
|
|
491
|
-
border: {
|
|
492
|
-
color: string;
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
}>;
|
|
496
358
|
exportField: ExportField;
|
|
497
359
|
viewCacheOption: ViewCacheOption;
|
|
498
360
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),m=require("@aplus-frontend/antdv"),i=require("./hooks/use-global-config.js"),C=require("./config-provider-props.js"),d=require("../utils/config-provider-preset.js"),l=require("./constants.js");function v(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const t=o.ref({}),p=o.defineComponent({name:"AplusConfigProvider",props:C.configProviderProps(),setup(e,{slots:f}){const a=i.useGlobalConfig("namespace"),u=i.useGlobalConfig("uiMode"),s=o.computed(()=>e.namespace?e.namespace:o.unref(a)?o.unref(a):l.DEFAULT_NAMESPACE),c=o.computed(()=>e.uiMode?e.uiMode:o.unref(u)?o.unref(u):l.DEFAULT_UIMODE),g=o.computed(()=>({namespace:o.unref(s),aplusLocale:e.aplusLocale,api:e.api,uiMode:o.unref(c),apUpload:e.apUpload,apDescriptions:e.apDescriptions,valueTypeMap:e.valueTypeMap,downloadCenterTriggerConfig:e.downloadCenterTriggerConfig,exportField:e.exportField,scrollYDomName:e.scrollYDomName,viewCacheOption:e.viewCacheOption})),r=i.provideGlobalConfig(g);return o.watch(()=>e,n=>{t.value=d.mergeAntdProviderConfigWithCache(d.mergeAntdProvideConfig(n),t.value)},{deep:!0,immediate:!0}),typeof window<"u"&&o.watch(()=>o.unref(c),n=>{document.documentElement.dataset.aplusUiMode=n},{immediate:!0}),()=>{let n;return o.createVNode(m.ConfigProvider,t.value,v(n=o.renderSlot(f,"default",{config:r==null?void 0:r.value}))?n:{default:()=>[n]})}}});exports.ConfigProvider=p;exports.globalConfigCached=t;
|
|
@@ -11,7 +11,6 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
|
11
11
|
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
12
12
|
import { LocaleType } from '../../locale';
|
|
13
13
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
|
|
14
|
-
import { CssVarType } from '../css-var';
|
|
15
14
|
import { ViewCacheOption } from '../..';
|
|
16
15
|
export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
|
|
17
16
|
export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
|
|
@@ -158,10 +157,6 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
158
157
|
type: PropType<downloadCenterTriggerConfig>;
|
|
159
158
|
default: () => {};
|
|
160
159
|
};
|
|
161
|
-
cssVar: {
|
|
162
|
-
type: PropType<CssVarType>;
|
|
163
|
-
default: () => {};
|
|
164
|
-
};
|
|
165
160
|
exportField: {
|
|
166
161
|
type: PropType<ExportField>;
|
|
167
162
|
default: boolean;
|