@aplus-frontend/ui 7.0.0-beta.2 → 7.0.0
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 +216 -218
- package/es/src/ag-grid/editable/form-item.vue.mjs +68 -63
- package/es/src/ag-grid/editable/index.vue.mjs +66 -61
- package/es/src/ag-grid/editable/interface.d.ts +3 -1
- package/es/src/ag-grid/hooks/use-columns-def.mjs +71 -70
- package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +65 -63
- package/es/src/ag-grid/index.vue.mjs +1 -0
- package/es/src/ag-grid/interface.d.ts +1 -0
- package/es/src/ag-grid/style/custom-header.d.ts +2 -2
- package/es/src/ag-grid/style/editable.d.ts +2 -2
- package/es/src/ag-grid/style/index.d.ts +30 -3
- package/es/src/ag-grid/style/index.mjs +56 -43
- package/es/src/ag-grid/theme.mjs +12 -11
- package/es/src/ap-action/item/index.vue2.mjs +14 -12
- package/es/src/ap-action/item-dropdown/index.vue.mjs +18 -17
- package/es/src/ap-action/style/dropdown-item.d.ts +2 -2
- package/es/src/ap-action/style/dropdown-item.mjs +4 -4
- package/es/src/ap-action/style/index.d.ts +7 -4
- package/es/src/ap-action/style/index.mjs +29 -23
- package/es/src/ap-button/ap-button.vue.mjs +45 -49
- package/es/src/ap-button/style/index.d.ts +2 -2
- package/es/src/ap-button/style/index.mjs +5 -4
- package/es/src/ap-button/utils/index.mjs +16 -16
- package/es/src/ap-descriptions/style/index.d.ts +2 -2
- package/es/src/ap-download/ap-download.vue.d.ts +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +27 -27
- package/es/src/ap-download/hooks/useStyle.mjs +9 -9
- package/es/src/ap-download/interface.d.ts +4 -0
- package/es/src/ap-download/style/index.d.ts +2 -2
- package/es/src/ap-drawer/style/index.d.ts +2 -2
- package/es/src/ap-field/style/index.d.ts +2 -2
- package/es/src/ap-form/style/drawer-form.d.ts +2 -2
- package/es/src/ap-form/style/item-group.d.ts +2 -2
- package/es/src/ap-form/style/item-text-group.d.ts +2 -2
- package/es/src/ap-form/style/item.d.ts +3 -4
- package/es/src/ap-form/style/item.mjs +12 -16
- package/es/src/ap-form/style/modal-form.d.ts +4 -3
- package/es/src/ap-form/style/modal-form.mjs +26 -13
- package/es/src/ap-form/style/search-form-sorter.d.ts +4 -3
- package/es/src/ap-form/style/search-form-sorter.mjs +20 -13
- package/es/src/ap-form/style/search-form.d.ts +2 -2
- package/es/src/ap-form/style/token.d.ts +25 -1
- package/es/src/ap-grid/hooks/use-table-style.mjs +1 -1
- package/es/src/ap-grid/index.vue.mjs +2 -2
- package/es/src/ap-grid/style/editable.d.ts +2 -2
- package/es/src/ap-grid/style/index.d.ts +6 -3
- package/es/src/ap-grid/style/index.mjs +10 -7
- package/es/src/ap-grid/utils/col.mjs +33 -33
- package/es/src/ap-list/style/index.d.ts +2 -2
- package/es/src/ap-modal/interface.d.ts +31 -11
- package/es/src/ap-modal/utils/createModal.mjs +52 -45
- package/es/src/ap-pro-card/style/divider.d.ts +2 -2
- package/es/src/ap-pro-card/style/index.d.ts +2 -2
- package/es/src/ap-pro-card/style/operation.d.ts +2 -2
- package/es/src/ap-pro-card/style/statistic.d.ts +2 -2
- package/es/src/ap-pro-card/style/statistics-card.d.ts +2 -2
- package/es/src/ap-pro-card/style/title.d.ts +2 -2
- package/es/src/ap-table/ap-table.vue2.mjs +2 -2
- package/es/src/ap-table/style/ellipsis.d.ts +2 -2
- package/es/src/ap-table/style/index-comp.d.ts +2 -2
- package/es/src/ap-table/style/index.d.ts +2 -2
- package/es/src/ap-table/style/setting.d.ts +2 -2
- package/es/src/ap-table/utils.mjs +14 -11
- package/es/src/ap-tag/ap-tag.vue.mjs +7 -6
- package/es/src/ap-tag/style/group.d.ts +2 -2
- package/es/src/ap-tag/style/index.d.ts +2 -2
- package/es/src/ap-upload/style/index.d.ts +2 -2
- package/es/src/business/ag-grid-modal/style/index.d.ts +2 -2
- package/es/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
- package/es/src/business/ag-grid-modal/utils.mjs +23 -23
- package/es/src/business/ap-appendix/style/index.d.ts +5 -4
- package/es/src/business/ap-appendix/style/index.mjs +20 -17
- package/es/src/business/ap-appendix/style/token.d.ts +4 -0
- package/es/src/business/ap-appendix/style/token.mjs +6 -0
- package/es/src/business/ap-attachment/ApAttachment.mjs +64 -60
- package/es/src/business/ap-attachment/style/index.d.ts +2 -2
- package/es/src/business/ap-attachment/style/index.mjs +1 -0
- package/es/src/business/ap-batch-action/style/index.d.ts +3 -3
- package/es/src/business/ap-batch-action/style/index.mjs +4 -4
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +50 -56
- package/es/src/business/ap-batch-action-group/style/index.d.ts +3 -0
- package/es/src/business/ap-batch-action-group/style/index.mjs +14 -0
- package/es/src/business/ap-card/style/index.d.ts +3 -3
- package/es/src/business/ap-card/style/index.mjs +8 -8
- package/es/src/business/ap-copy/style/index.d.ts +2 -2
- package/es/src/business/ap-draggable-grid/style/index.d.ts +2 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +57 -49
- package/es/src/business/ap-expand-alert/index.d.ts +5 -2
- package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/es/src/business/ap-expand-alert/style/index.d.ts +2 -2
- package/es/src/business/ap-image/style/index.d.ts +3 -3
- package/es/src/business/ap-image/style/index.mjs +6 -6
- package/es/src/business/ap-input-radio/style/index.d.ts +2 -2
- package/es/src/business/ap-label/style/index.d.ts +2 -2
- package/es/src/business/ap-ladder/style/index.d.ts +2 -2
- package/es/src/business/ap-product-info/style/index.d.ts +2 -2
- package/es/src/business/ap-radio-group/style/index.d.ts +2 -2
- package/es/src/business/ap-radio-group/style/index.mjs +3 -3
- package/es/src/business/ap-select-layout/style/index.d.ts +2 -2
- package/es/src/business/ap-size-input/style/index.d.ts +2 -2
- package/es/src/business/ap-status/style/index.d.ts +2 -2
- package/es/src/business/ap-summary/style/index.d.ts +2 -2
- package/es/src/business/ap-table-modal/style/index.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +23 -23
- package/es/src/business/ap-title/style/index.d.ts +2 -2
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
- package/es/src/business/ap-value-select-card/style/index.d.ts +2 -2
- package/es/src/business/ap-view/style/index.d.ts +3 -3
- package/es/src/business/ap-view/style/index.mjs +19 -22
- package/es/src/business/batch-input-group/style/index.d.ts +5 -2
- package/es/src/business/batch-input-group/style/index.mjs +9 -5
- package/es/src/business/hooks/usePageListAgGrid.mjs +7 -6
- package/es/src/check-card/style/index.d.ts +2 -2
- package/es/src/check-card/style/index.mjs +37 -31
- package/es/src/config-provider/config-provider.d.ts +1 -2
- package/es/src/config-provider/hooks/use-global-config.d.ts +1 -2
- package/es/src/config-provider/hooks/use-global-config.mjs +42 -33
- package/es/src/config-provider/hooks/use-token.d.ts +7 -2
- package/es/src/config-provider/hooks/use-token.mjs +6 -3
- package/es/src/config-provider/index.d.ts +1 -2
- package/es/src/design-token/constants.d.ts +1 -6
- package/es/src/design-token/constants.mjs +2 -100
- package/es/src/design-token/index.d.ts +1 -1
- package/es/src/design-token/index.mjs +5 -6
- package/es/src/design-token/interface.d.ts +9 -1
- package/es/src/design-token/interface.mjs +1 -0
- package/es/src/editable-table/style/index.d.ts +2 -2
- package/es/src/full-screen/index.vue.mjs +31 -30
- package/es/src/full-screen/style/index.d.ts +2 -2
- package/es/src/index.mjs +196 -198
- package/es/src/mask/style/index.d.ts +2 -2
- package/es/src/mask/style/index.mjs +2 -2
- package/es/src/scroll-bar/style/index.d.ts +2 -2
- package/es/src/scroll-bar/style/index.mjs +17 -17
- package/es/src/scroll-view/style/index.d.ts +2 -2
- package/es/src/splitter/style/index.d.ts +11 -3
- package/es/src/splitter/style/index.mjs +1 -2
- package/es/src/text/style/group.d.ts +2 -2
- package/es/src/text/style/index.d.ts +6 -3
- package/es/src/text/style/index.mjs +22 -18
- package/es/src/utils/cssinjs/index.d.ts +3 -7
- package/es/src/utils/cssinjs/index.mjs +55 -39
- package/es/src/utils/cssinjs/instance.mjs +7 -7
- package/es/src/utils/cssinjs/plugin-append-cssvar.d.ts +6 -0
- package/es/src/utils/cssinjs/plugin-append-cssvar.mjs +6 -0
- package/es/src/utils/cssinjs/plugin-specificity.mjs +6 -6
- package/es/src/utils/cssinjs/utils.d.ts +6 -0
- package/es/src/utils/cssinjs/utils.mjs +15 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +3 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +1 -0
- package/lib/src/ag-grid/style/custom-header.d.ts +2 -2
- package/lib/src/ag-grid/style/editable.d.ts +2 -2
- package/lib/src/ag-grid/style/index.d.ts +30 -3
- package/lib/src/ag-grid/style/index.js +1 -1
- package/lib/src/ag-grid/theme.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/style/dropdown-item.d.ts +2 -2
- package/lib/src/ap-action/style/dropdown-item.js +1 -1
- package/lib/src/ap-action/style/index.d.ts +7 -4
- package/lib/src/ap-action/style/index.js +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/style/index.d.ts +2 -2
- package/lib/src/ap-button/style/index.js +1 -1
- package/lib/src/ap-button/utils/index.js +1 -1
- package/lib/src/ap-descriptions/style/index.d.ts +2 -2
- package/lib/src/ap-download/ap-download.vue.d.ts +4 -4
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/useStyle.js +1 -1
- package/lib/src/ap-download/interface.d.ts +4 -0
- package/lib/src/ap-download/style/index.d.ts +2 -2
- package/lib/src/ap-drawer/style/index.d.ts +2 -2
- package/lib/src/ap-field/style/index.d.ts +2 -2
- package/lib/src/ap-form/style/drawer-form.d.ts +2 -2
- package/lib/src/ap-form/style/item-group.d.ts +2 -2
- package/lib/src/ap-form/style/item-text-group.d.ts +2 -2
- package/lib/src/ap-form/style/item.d.ts +3 -4
- package/lib/src/ap-form/style/item.js +1 -1
- package/lib/src/ap-form/style/modal-form.d.ts +4 -3
- package/lib/src/ap-form/style/modal-form.js +1 -1
- package/lib/src/ap-form/style/search-form-sorter.d.ts +4 -3
- package/lib/src/ap-form/style/search-form-sorter.js +1 -1
- package/lib/src/ap-form/style/search-form.d.ts +2 -2
- package/lib/src/ap-form/style/token.d.ts +25 -1
- package/lib/src/ap-grid/hooks/use-table-style.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/style/editable.d.ts +2 -2
- package/lib/src/ap-grid/style/index.d.ts +6 -3
- package/lib/src/ap-grid/style/index.js +1 -1
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-list/style/index.d.ts +2 -2
- package/lib/src/ap-modal/interface.d.ts +31 -11
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-pro-card/style/divider.d.ts +2 -2
- package/lib/src/ap-pro-card/style/index.d.ts +2 -2
- package/lib/src/ap-pro-card/style/operation.d.ts +2 -2
- package/lib/src/ap-pro-card/style/statistic.d.ts +2 -2
- package/lib/src/ap-pro-card/style/statistics-card.d.ts +2 -2
- package/lib/src/ap-pro-card/style/title.d.ts +2 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/style/ellipsis.d.ts +2 -2
- package/lib/src/ap-table/style/index-comp.d.ts +2 -2
- package/lib/src/ap-table/style/index.d.ts +2 -2
- package/lib/src/ap-table/style/setting.d.ts +2 -2
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/style/group.d.ts +2 -2
- package/lib/src/ap-tag/style/index.d.ts +2 -2
- package/lib/src/ap-upload/style/index.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/style/index.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/utils.js +1 -1
- package/lib/src/business/ap-appendix/style/index.d.ts +5 -4
- package/lib/src/business/ap-appendix/style/index.js +1 -1
- package/lib/src/business/ap-appendix/style/token.d.ts +4 -0
- package/lib/src/business/ap-appendix/style/token.js +1 -0
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/style/index.d.ts +2 -2
- package/lib/src/business/ap-attachment/style/index.js +1 -1
- package/lib/src/business/ap-batch-action/style/index.d.ts +3 -3
- package/lib/src/business/ap-batch-action/style/index.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/style/index.d.ts +3 -0
- package/lib/src/business/ap-batch-action-group/style/index.js +1 -0
- package/lib/src/business/ap-card/style/index.d.ts +3 -3
- package/lib/src/business/ap-card/style/index.js +1 -1
- package/lib/src/business/ap-copy/style/index.d.ts +2 -2
- package/lib/src/business/ap-draggable-grid/style/index.d.ts +2 -2
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +5 -2
- package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/style/index.d.ts +2 -2
- package/lib/src/business/ap-image/style/index.d.ts +3 -3
- package/lib/src/business/ap-image/style/index.js +1 -1
- package/lib/src/business/ap-input-radio/style/index.d.ts +2 -2
- package/lib/src/business/ap-label/style/index.d.ts +2 -2
- package/lib/src/business/ap-ladder/style/index.d.ts +2 -2
- package/lib/src/business/ap-product-info/style/index.d.ts +2 -2
- package/lib/src/business/ap-radio-group/style/index.d.ts +2 -2
- package/lib/src/business/ap-radio-group/style/index.js +1 -1
- package/lib/src/business/ap-select-layout/style/index.d.ts +2 -2
- package/lib/src/business/ap-size-input/style/index.d.ts +2 -2
- package/lib/src/business/ap-status/style/index.d.ts +2 -2
- package/lib/src/business/ap-summary/style/index.d.ts +2 -2
- package/lib/src/business/ap-table-modal/style/index.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-title/style/index.d.ts +2 -2
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
- package/lib/src/business/ap-value-select-card/style/index.d.ts +2 -2
- package/lib/src/business/ap-view/style/index.d.ts +3 -3
- package/lib/src/business/ap-view/style/index.js +1 -1
- package/lib/src/business/batch-input-group/style/index.d.ts +5 -2
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/check-card/style/index.d.ts +2 -2
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +1 -2
- package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -2
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/config-provider/hooks/use-token.d.ts +7 -2
- package/lib/src/config-provider/hooks/use-token.js +1 -1
- package/lib/src/config-provider/index.d.ts +1 -2
- package/lib/src/design-token/constants.d.ts +1 -6
- package/lib/src/design-token/constants.js +1 -1
- package/lib/src/design-token/index.d.ts +1 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/design-token/interface.d.ts +9 -1
- package/lib/src/design-token/interface.js +1 -0
- package/lib/src/editable-table/style/index.d.ts +2 -2
- package/lib/src/full-screen/index.vue.js +1 -1
- package/lib/src/full-screen/style/index.d.ts +2 -2
- package/lib/src/index.js +1 -1
- package/lib/src/mask/style/index.d.ts +2 -2
- package/lib/src/mask/style/index.js +2 -2
- package/lib/src/scroll-bar/style/index.d.ts +2 -2
- package/lib/src/scroll-bar/style/index.js +1 -1
- package/lib/src/scroll-view/style/index.d.ts +2 -2
- package/lib/src/splitter/style/index.d.ts +11 -3
- package/lib/src/splitter/style/index.js +1 -1
- package/lib/src/text/style/group.d.ts +2 -2
- package/lib/src/text/style/index.d.ts +6 -3
- package/lib/src/text/style/index.js +1 -1
- package/lib/src/utils/cssinjs/index.d.ts +3 -7
- package/lib/src/utils/cssinjs/index.js +1 -1
- package/lib/src/utils/cssinjs/instance.js +1 -1
- package/lib/src/utils/cssinjs/plugin-append-cssvar.d.ts +6 -0
- package/lib/src/utils/cssinjs/plugin-append-cssvar.js +1 -0
- package/lib/src/utils/cssinjs/plugin-specificity.js +1 -1
- package/lib/src/utils/cssinjs/utils.d.ts +6 -0
- package/lib/src/utils/cssinjs/utils.js +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,108 +1,112 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Tooltip as
|
|
1
|
+
import { defineComponent as W, ref as x, useSlots as _, computed as n, cloneVNode as j, toRaw as h, unref as K, createVNode as t, createTextVNode as R } from "vue";
|
|
2
|
+
import { Tooltip as B, Popover as G } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { ApAttachmentProps as
|
|
5
|
-
import { getHexWithOpacity as
|
|
6
|
-
import { useOssInit as
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { LoadingOutlined as
|
|
9
|
-
import { warning as
|
|
10
|
-
import
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
import { useGlobalConfig as
|
|
13
|
-
import { useLocale as
|
|
14
|
-
const
|
|
4
|
+
import { ApAttachmentProps as H } from "./constans.mjs";
|
|
5
|
+
import { getHexWithOpacity as q, getFileInfo as O } from "../../ap-download/utils/getFileInfo.mjs";
|
|
6
|
+
import { useOssInit as D } from "../../ap-download/hooks/index.mjs";
|
|
7
|
+
import { debounce as E, isArray as J } from "lodash-unified";
|
|
8
|
+
import { LoadingOutlined as g } from "@ant-design/icons-vue";
|
|
9
|
+
import { warning as Q } from "../../utils/warning.mjs";
|
|
10
|
+
import X from "./style/index.mjs";
|
|
11
|
+
import { useNamespace as Y } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import { useGlobalConfig as p } from "../../config-provider/hooks/use-global-config.mjs";
|
|
13
|
+
import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
|
|
14
|
+
const de = /* @__PURE__ */ W({
|
|
15
15
|
name: "ApAttachment",
|
|
16
|
-
props:
|
|
17
|
-
setup(e
|
|
16
|
+
props: H(),
|
|
17
|
+
setup(e, {
|
|
18
|
+
emit: C
|
|
19
|
+
}) {
|
|
18
20
|
const {
|
|
19
|
-
b:
|
|
21
|
+
b: T,
|
|
20
22
|
e: a
|
|
21
|
-
} =
|
|
22
|
-
lang:
|
|
23
|
+
} = Y("ap-attachment"), L = X("ap-attachment"), k = p("uiMode"), N = p("apUpload"), w = p("downloadCenterTriggerConfig"), {
|
|
24
|
+
lang: P,
|
|
23
25
|
t: m
|
|
24
|
-
} =
|
|
25
|
-
"--download-main-color":
|
|
26
|
-
"--download-main-color-opacity":
|
|
27
|
-
})),
|
|
28
|
-
const l =
|
|
29
|
-
return l ?
|
|
26
|
+
} = Z(), i = x(!1), c = x(""), d = _(), I = n(() => P.value === "zh-cn" ? "zh_CN" : "en_US"), s = n(() => e.needName ?? N?.value?.needName), f = n(() => e.attachmentList.length === 1), y = n(() => s.value ? e.attachmentList.length > 0 && s.value && s.value?.nameKey ? e.attachmentList[0][s.value.nameKey] : "" : e.attachmentList.length > 0 ? e.attachmentList[0].fileName : ""), S = n(() => f.value ? y.value : m("ap.apAttachment.downloadall")), A = n(() => e.color ? e.color : k.value === "aplus" ? "#0070FF" : "#1890FF"), F = n(() => ({
|
|
27
|
+
"--download-main-color": A.value,
|
|
28
|
+
"--download-main-color-opacity": q(A.value, 0.6)
|
|
29
|
+
})), V = n(() => e.getOssAccess || N.value?.getOssAccess), z = n(() => {
|
|
30
|
+
const l = d.default ? d.default()[0] : null;
|
|
31
|
+
return l ? j(l, {
|
|
30
32
|
style: {
|
|
31
33
|
"font-size": "16px"
|
|
32
34
|
}
|
|
33
35
|
}) : null;
|
|
34
|
-
}),
|
|
36
|
+
}), v = E(async (l, u) => {
|
|
35
37
|
if (!e.disabled) {
|
|
36
|
-
i.value = !0,
|
|
38
|
+
i.value = !0, u && (c.value = u);
|
|
37
39
|
try {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
const
|
|
41
|
-
objectName:
|
|
42
|
-
fileName:
|
|
40
|
+
const o = J(h(l)) ? h(l) : [h(l)];
|
|
41
|
+
if (w.value?.trigger) {
|
|
42
|
+
const r = O(s.value, o).map((b) => ({
|
|
43
|
+
objectName: b.path,
|
|
44
|
+
fileName: b.fileName
|
|
43
45
|
}));
|
|
44
|
-
|
|
45
|
-
} else
|
|
46
|
-
await (await
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
w.value?.trigger(r), C("downloadCallback", r);
|
|
47
|
+
} else {
|
|
48
|
+
const r = await (await D(V.value, K(I))).downloadFile(O(e.needName, o));
|
|
49
|
+
C("downloadCallback", r);
|
|
50
|
+
}
|
|
51
|
+
} catch (o) {
|
|
52
|
+
Q(!1, o);
|
|
49
53
|
} finally {
|
|
50
54
|
i.value = !1, c.value = "";
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
|
-
}, 500),
|
|
54
|
-
class: [a("file-list"),
|
|
55
|
-
style:
|
|
56
|
-
}, [l.map((
|
|
57
|
-
key:
|
|
57
|
+
}, 500), M = (l) => l && l.length > 0 ? t("ul", {
|
|
58
|
+
class: [a("file-list"), L.value],
|
|
59
|
+
style: F.value
|
|
60
|
+
}, [l.map((u, o) => t("li", {
|
|
61
|
+
key: o,
|
|
58
62
|
class: [a("file-item")],
|
|
59
|
-
onClick: () =>
|
|
60
|
-
}, [i.value && c.value ===
|
|
63
|
+
onClick: () => v(u, o + 1)
|
|
64
|
+
}, [i.value && c.value === o + 1 ? t("span", {
|
|
61
65
|
class: [a("spin")]
|
|
62
|
-
}, [t(
|
|
66
|
+
}, [t(g, {
|
|
63
67
|
spin: !0
|
|
64
|
-
}, null)]) : null,
|
|
68
|
+
}, null)]) : null, u.fileName])), t("li", {
|
|
65
69
|
class: [a("download-all")],
|
|
66
|
-
onClick: () =>
|
|
70
|
+
onClick: () => v(e.attachmentList, "all")
|
|
67
71
|
}, [i.value && c.value === "all" ? t("span", {
|
|
68
72
|
class: [a("spin")]
|
|
69
|
-
}, [t(
|
|
73
|
+
}, [t(g, {
|
|
70
74
|
spin: !0
|
|
71
75
|
}, null)]) : null, m("ap.apAttachment.downloadall")])]) : null;
|
|
72
76
|
return () => e.attachmentList?.length > 0 && t("div", {
|
|
73
|
-
class: [
|
|
74
|
-
style: [
|
|
75
|
-
}, [t(
|
|
76
|
-
title:
|
|
77
|
+
class: [T(), L.value],
|
|
78
|
+
style: [F.value]
|
|
79
|
+
}, [t(B, {
|
|
80
|
+
title: S.value,
|
|
77
81
|
placement: e.textToolTipPlacement,
|
|
78
82
|
color: e.toolTipBgColor
|
|
79
83
|
}, {
|
|
80
84
|
default: () => [t("div", {
|
|
81
85
|
class: [a("content")],
|
|
82
|
-
onClick: () =>
|
|
86
|
+
onClick: () => v(f.value ? e.attachmentList[0] : e.attachmentList, "global")
|
|
83
87
|
}, [i.value && c.value === "global" ? t("div", {
|
|
84
88
|
class: [a("spin")]
|
|
85
|
-
}, [t(
|
|
89
|
+
}, [t(g, {
|
|
86
90
|
spin: !0
|
|
87
|
-
}, null)]) : null,
|
|
91
|
+
}, null)]) : null, d.default ? t("div", {
|
|
88
92
|
class: [a("text-render")]
|
|
89
|
-
}, [
|
|
93
|
+
}, [z.value, R(" ")]) : null, t("div", {
|
|
90
94
|
class: [a("text-inner")],
|
|
91
95
|
style: {
|
|
92
96
|
"max-width": e.maxWidth ? e.maxWidth + "px" : "auto"
|
|
93
97
|
}
|
|
94
|
-
}, [
|
|
95
|
-
}), t(
|
|
96
|
-
content:
|
|
98
|
+
}, [y.value])])]
|
|
99
|
+
}), t(G, {
|
|
100
|
+
content: M(e.attachmentList),
|
|
97
101
|
placement: e.fileMorePopoverPlacement,
|
|
98
102
|
color: "#fff"
|
|
99
103
|
}, {
|
|
100
|
-
default: () => [!
|
|
104
|
+
default: () => [!f.value && t("div", {
|
|
101
105
|
class: [a("more")]
|
|
102
106
|
}, [m("ap.apAttachment.more")])]
|
|
103
107
|
})]);
|
|
104
108
|
}
|
|
105
109
|
});
|
|
106
110
|
export {
|
|
107
|
-
|
|
111
|
+
de as default
|
|
108
112
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const genApBatchActionStyle: GenStyleFunc<BaseToken>;
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -8,7 +8,7 @@ const n = (t) => {
|
|
|
8
8
|
width: "100%",
|
|
9
9
|
paddingBottom: "8px",
|
|
10
10
|
marginBottom: "8px",
|
|
11
|
-
borderBottom:
|
|
11
|
+
borderBottom: `1px solid ${t.colorBg1}`
|
|
12
12
|
},
|
|
13
13
|
[`${e}-body`]: {
|
|
14
14
|
width: "100%",
|
|
@@ -23,9 +23,9 @@ const n = (t) => {
|
|
|
23
23
|
display: "flex",
|
|
24
24
|
alignItems: "center",
|
|
25
25
|
fontSize: t.fontSize,
|
|
26
|
-
color:
|
|
26
|
+
color: t.textColor3,
|
|
27
27
|
span: {
|
|
28
|
-
color:
|
|
28
|
+
color: t.colorPrimary,
|
|
29
29
|
fontWeight: "bold",
|
|
30
30
|
minWidth: "10px",
|
|
31
31
|
textAlign: "center",
|
|
@@ -47,5 +47,5 @@ const n = (t) => {
|
|
|
47
47
|
]);
|
|
48
48
|
export {
|
|
49
49
|
l as default,
|
|
50
|
-
n as
|
|
50
|
+
n as genApBatchActionStyle
|
|
51
51
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DropdownButton as
|
|
1
|
+
import { defineComponent as O, useSlots as j, computed as t, createBlock as u, createCommentVNode as x, openBlock as p, unref as r, mergeProps as f, createSlots as S, withCtx as n, createElementVNode as E, normalizeStyle as q, resolveDynamicComponent as k, h as L, createVNode as i, renderList as g, renderSlot as A, normalizeProps as b, guardReactiveProps as v, normalizeClass as F } from "vue";
|
|
2
|
+
import { DropdownButton as H, Dropdown as J } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../ap-button/index.mjs";
|
|
4
4
|
import "./MenuItemGroup.vue.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { DownOutlined as
|
|
7
|
-
import { usePermission as
|
|
6
|
+
import { DownOutlined as K } from "@ant-design/icons-vue";
|
|
7
|
+
import { usePermission as M } from "@aplus-frontend/hooks";
|
|
8
8
|
import { useInjectApTable as Q } from "../../ap-table/context.mjs";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import U from "./style/index.mjs";
|
|
10
|
+
import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
12
|
import B from "./MenuItemGroup.vue2.mjs";
|
|
13
13
|
import Y from "../../ap-button/ap-button.vue.mjs";
|
|
14
|
-
const me = /* @__PURE__ */
|
|
14
|
+
const me = /* @__PURE__ */ O({
|
|
15
15
|
__name: "ApBatchActionGroup",
|
|
16
16
|
props: {
|
|
17
17
|
selectedRows: {},
|
|
@@ -19,95 +19,89 @@ const me = /* @__PURE__ */ F({
|
|
|
19
19
|
menuList: {}
|
|
20
20
|
},
|
|
21
21
|
setup(C, { expose: $ }) {
|
|
22
|
-
const { b: h } = U("ap-batch-action-group"), { t:
|
|
23
|
-
() =>
|
|
22
|
+
const { b: h } = W("ap-batch-action-group"), D = U("ap-batch-action-group"), { t: R } = X(), { columns: T, dataSource: N } = Q(), e = C, { hasPermission: z } = M(), y = j(), w = t(
|
|
23
|
+
() => e?.buttonProps?.dropdownType || "default"
|
|
24
24
|
), a = t(
|
|
25
|
-
() =>
|
|
25
|
+
() => e?.buttonProps?.type || "borderLink"
|
|
26
26
|
), P = t(
|
|
27
|
-
() =>
|
|
28
|
-
),
|
|
29
|
-
() =>
|
|
30
|
-
),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
admin: "#34b77c"
|
|
34
|
-
};
|
|
35
|
-
return a.value === "borderLink" ? c.value ? void 0 : e[N.value] || e.aplus : void 0;
|
|
36
|
-
}), l = t(() => o?.menuList?.filter((e) => {
|
|
37
|
-
let m = e?.ifShow;
|
|
38
|
-
return !e?.ifShow && e?.auth && (m = () => z(e.auth)), m?.() ?? !0;
|
|
27
|
+
() => e?.buttonProps?.content || R("ap.apApBatchActionGroup.batchOperation")
|
|
28
|
+
), V = t(() => e?.selectedRows || []), c = t(
|
|
29
|
+
() => e?.buttonProps?.disabled ?? (Array.isArray(e.selectedRows) ? V.value.length === 0 : !1)
|
|
30
|
+
), G = t(() => a.value === "borderLink" ? c.value ? void 0 : "var(--ap-button-border-link-color)" : void 0), l = t(() => e?.menuList?.filter((o) => {
|
|
31
|
+
let m = o?.ifShow;
|
|
32
|
+
return !o?.ifShow && o?.auth && (m = () => z(o.auth)), m?.() ?? !0;
|
|
39
33
|
}) || []);
|
|
40
34
|
function _() {
|
|
41
|
-
return
|
|
42
|
-
...
|
|
35
|
+
return e?.buttonProps ? {
|
|
36
|
+
...e.buttonProps,
|
|
43
37
|
type: a.value === "borderLink" ? "default" : a.value
|
|
44
38
|
} : {};
|
|
45
39
|
}
|
|
46
40
|
return $({
|
|
47
|
-
columns:
|
|
48
|
-
dataSource:
|
|
49
|
-
}), (
|
|
41
|
+
columns: T,
|
|
42
|
+
dataSource: N
|
|
43
|
+
}), (o, m) => l.value.length && w.value === "dropdown" ? (p(), u(r(H), f({
|
|
50
44
|
key: 0,
|
|
51
|
-
class: [
|
|
45
|
+
class: [r(h)(), r(D)]
|
|
52
46
|
}, {
|
|
53
|
-
...
|
|
47
|
+
...o.$attrs,
|
|
54
48
|
..._(),
|
|
55
49
|
disabled: c.value
|
|
56
|
-
}),
|
|
57
|
-
overlay:
|
|
50
|
+
}), S({
|
|
51
|
+
overlay: n(() => [
|
|
58
52
|
i(B, f({
|
|
59
|
-
...
|
|
53
|
+
...e
|
|
60
54
|
}, { "menu-list": l.value }), null, 16, ["menu-list"])
|
|
61
55
|
]),
|
|
62
|
-
default:
|
|
63
|
-
|
|
64
|
-
style:
|
|
65
|
-
color:
|
|
56
|
+
default: n(() => [
|
|
57
|
+
E("span", {
|
|
58
|
+
style: q({
|
|
59
|
+
color: G.value
|
|
66
60
|
})
|
|
67
61
|
}, [
|
|
68
|
-
(p(), u(
|
|
62
|
+
(p(), u(k(L("span", [P.value]))))
|
|
69
63
|
], 4)
|
|
70
64
|
]),
|
|
71
65
|
_: 2
|
|
72
66
|
}, [
|
|
73
|
-
|
|
67
|
+
g(y, (I, s) => ({
|
|
74
68
|
name: s,
|
|
75
|
-
fn:
|
|
76
|
-
A(
|
|
69
|
+
fn: n((d) => [
|
|
70
|
+
A(o.$slots, s, b(v(d || {})))
|
|
77
71
|
])
|
|
78
72
|
}))
|
|
79
|
-
]), 1040, ["class"])) : l.value.length &&
|
|
73
|
+
]), 1040, ["class"])) : l.value.length && w.value === "default" ? (p(), u(r(J), {
|
|
80
74
|
key: 1,
|
|
81
|
-
class:
|
|
75
|
+
class: F([r(h)()]),
|
|
82
76
|
disabled: c.value
|
|
83
|
-
},
|
|
84
|
-
overlay:
|
|
77
|
+
}, S({
|
|
78
|
+
overlay: n(() => [
|
|
85
79
|
i(B, f({
|
|
86
|
-
...
|
|
80
|
+
...e
|
|
87
81
|
}, { "menu-list": l.value }), null, 16, ["menu-list"])
|
|
88
82
|
]),
|
|
89
|
-
default:
|
|
90
|
-
i(
|
|
91
|
-
...
|
|
83
|
+
default: n(() => [
|
|
84
|
+
i(r(Y), b(v({
|
|
85
|
+
...o.$attrs,
|
|
92
86
|
..._(),
|
|
93
87
|
type: a.value
|
|
94
88
|
})), {
|
|
95
|
-
default:
|
|
96
|
-
(p(), u(
|
|
97
|
-
i(
|
|
89
|
+
default: n(() => [
|
|
90
|
+
(p(), u(k(L("span", [P.value])))),
|
|
91
|
+
i(r(K))
|
|
98
92
|
]),
|
|
99
93
|
_: 1
|
|
100
94
|
}, 16)
|
|
101
95
|
]),
|
|
102
96
|
_: 2
|
|
103
97
|
}, [
|
|
104
|
-
|
|
98
|
+
g(y, (I, s) => ({
|
|
105
99
|
name: s,
|
|
106
|
-
fn:
|
|
107
|
-
A(
|
|
100
|
+
fn: n((d) => [
|
|
101
|
+
A(o.$slots, s, b(v(d || {})))
|
|
108
102
|
])
|
|
109
103
|
}))
|
|
110
|
-
]), 1032, ["class", "disabled"])) :
|
|
104
|
+
]), 1032, ["class", "disabled"])) : x("", !0);
|
|
111
105
|
}
|
|
112
106
|
});
|
|
113
107
|
export {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { genComponentStyleHook as n } from "../../../utils/cssinjs/index.mjs";
|
|
2
|
+
const r = (o) => {
|
|
3
|
+
const { componentCls: t } = o;
|
|
4
|
+
return {
|
|
5
|
+
[t]: {
|
|
6
|
+
"--ap-button-border-link-color": o.colorPrimary
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
}, c = n("ApBatchActionGroup", (o) => [
|
|
10
|
+
r(o)
|
|
11
|
+
]);
|
|
12
|
+
export {
|
|
13
|
+
c as default
|
|
14
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const genApCardStyle: GenStyleFunc<BaseToken>;
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { genComponentStyleHook as n } from "../../../utils/cssinjs/index.mjs";
|
|
2
|
-
const e = (
|
|
3
|
-
const { componentCls:
|
|
2
|
+
const e = (t) => {
|
|
3
|
+
const { componentCls: o } = t;
|
|
4
4
|
return {
|
|
5
|
-
[
|
|
5
|
+
[o]: {
|
|
6
6
|
width: "100%",
|
|
7
7
|
background: "#fff",
|
|
8
|
-
[`& + ${
|
|
8
|
+
[`& + ${o}`]: {
|
|
9
9
|
marginTop: "10px"
|
|
10
10
|
},
|
|
11
|
-
[`${
|
|
11
|
+
[`${o}-title`]: {
|
|
12
12
|
marginBottom: "12px"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
}, p = n("ApCard", (
|
|
17
|
-
e(
|
|
16
|
+
}, p = n("ApCard", (t) => [
|
|
17
|
+
e(t)
|
|
18
18
|
]);
|
|
19
19
|
export {
|
|
20
20
|
p as default,
|
|
21
|
-
e as
|
|
21
|
+
e as genApCardStyle
|
|
22
22
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -2,9 +2,10 @@ import { ApExpandAlertProps } from './interface';
|
|
|
2
2
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
|
|
5
6
|
readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
|
|
6
7
|
readonly onChoose?: ((args_0: T) => any) | undefined;
|
|
7
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
|
|
8
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onClose" | "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
|
|
8
9
|
expose(exposed: ShallowUnwrapRef<{
|
|
9
10
|
setExpand: (state?: boolean) => void;
|
|
10
11
|
}>): void;
|
|
@@ -22,7 +23,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
22
23
|
index: number;
|
|
23
24
|
}): any;
|
|
24
25
|
};
|
|
25
|
-
emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
26
|
+
emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
26
27
|
}>) => VNode & {
|
|
27
28
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
29
|
};
|