@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,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApForm as
|
|
3
|
-
import { cloneDeep as
|
|
1
|
+
import { defineComponent as K, useSlots as P, ref as y, onMounted as G, unref as t, watch as M, createElementBlock as O, openBlock as W, Fragment as U, createVNode as d, mergeProps as g, withCtx as h, createSlots as $, renderList as q, renderSlot as J, normalizeProps as Q, guardReactiveProps as X } from "vue";
|
|
2
|
+
import { ApForm as C } from "../../ap-form/index.mjs";
|
|
3
|
+
import { cloneDeep as Y, isEqual as Z, omit as R } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { useGetEditableColumns as
|
|
5
|
+
import { useGetEditableColumns as ee } from "../hooks/use-editable-columns.mjs";
|
|
6
6
|
import "../index.vue2.mjs";
|
|
7
|
-
import { useEditableFormItemApi as
|
|
8
|
-
import { useInjectForm as
|
|
9
|
-
import { getModelValue as
|
|
10
|
-
import { getShadowName as
|
|
11
|
-
import { useWatch as
|
|
12
|
-
import { arrayToObject as
|
|
13
|
-
import
|
|
14
|
-
import { useNamespace as
|
|
15
|
-
import { useGlobalConfig as
|
|
16
|
-
import
|
|
17
|
-
const
|
|
7
|
+
import { useEditableFormItemApi as oe } from "../hooks/use-editable-form-item-api.mjs";
|
|
8
|
+
import { useInjectForm as ae } from "../../ap-form/context.mjs";
|
|
9
|
+
import { getModelValue as te } from "../../ap-form/utils/get.mjs";
|
|
10
|
+
import { getShadowName as ne } from "../utils.mjs";
|
|
11
|
+
import { useWatch as le } from "../../ap-form/hooks/use-watch.mjs";
|
|
12
|
+
import { arrayToObject as re } from "./utils.mjs";
|
|
13
|
+
import se from "../style/editable.mjs";
|
|
14
|
+
import { useNamespace as ie } from "../../config-provider/hooks/use-namespace.mjs";
|
|
15
|
+
import { useGlobalConfig as me } from "../../config-provider/hooks/use-global-config.mjs";
|
|
16
|
+
import de from "../index.vue.mjs";
|
|
17
|
+
const Ee = /* @__PURE__ */ K({
|
|
18
18
|
name: "EditableGrid",
|
|
19
19
|
__name: "form-item",
|
|
20
20
|
props: {
|
|
@@ -127,92 +127,97 @@ const Ie = /* @__PURE__ */ H({
|
|
|
127
127
|
name: {},
|
|
128
128
|
formItem: {}
|
|
129
129
|
},
|
|
130
|
-
setup(
|
|
131
|
-
expose:
|
|
130
|
+
setup(b, {
|
|
131
|
+
expose: B
|
|
132
132
|
}) {
|
|
133
|
-
const
|
|
134
|
-
b:
|
|
135
|
-
} =
|
|
133
|
+
const x = P(), o = b, {
|
|
134
|
+
b: v
|
|
135
|
+
} = ie("editable-aggrid"), S = se("editable-aggrid"), r = y(), {
|
|
136
136
|
internalInstance: s,
|
|
137
|
-
model:
|
|
138
|
-
} =
|
|
137
|
+
model: I
|
|
138
|
+
} = ae(), i = ne(o.name);
|
|
139
139
|
let p;
|
|
140
|
-
|
|
141
|
-
const e = o.formItem?.initialValue ??
|
|
142
|
-
p =
|
|
140
|
+
G(() => {
|
|
141
|
+
const e = o.formItem?.initialValue ?? te(t(I), o.name);
|
|
142
|
+
p = Y(e), u(e, "suffix");
|
|
143
143
|
});
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
const l = y([]), E = le(o.name);
|
|
145
|
+
M(() => E.value, (e) => {
|
|
146
|
+
Z(e, l.value) || c(e ?? p);
|
|
147
147
|
}, {
|
|
148
148
|
deep: !0
|
|
149
149
|
});
|
|
150
|
-
const
|
|
150
|
+
const F = me("valueTypeMap"), T = ee(o, F, i), {
|
|
151
151
|
add: N,
|
|
152
152
|
addMultiple: u,
|
|
153
153
|
remove: _,
|
|
154
|
-
removeByKey:
|
|
155
|
-
getRowData:
|
|
156
|
-
getRowsData:
|
|
157
|
-
setRowData:
|
|
158
|
-
clear:
|
|
154
|
+
removeByKey: V,
|
|
155
|
+
getRowData: D,
|
|
156
|
+
getRowsData: j,
|
|
157
|
+
setRowData: k,
|
|
158
|
+
clear: L,
|
|
159
159
|
refreshRowIds: m
|
|
160
|
-
} =
|
|
161
|
-
function
|
|
160
|
+
} = oe(o, s, l, i);
|
|
161
|
+
function z() {
|
|
162
162
|
const e = r.value?._internalGridApi;
|
|
163
163
|
if (!m.value?.length || !e)
|
|
164
164
|
return;
|
|
165
|
-
const
|
|
165
|
+
const a = m.value.map((n) => e.getRowNode(n)).filter((n) => !!n);
|
|
166
166
|
e.refreshCells({
|
|
167
|
-
rowNodes:
|
|
167
|
+
rowNodes: a,
|
|
168
168
|
force: !0
|
|
169
169
|
}), m.value = [];
|
|
170
170
|
}
|
|
171
171
|
function c(e) {
|
|
172
|
-
|
|
173
|
-
const
|
|
174
|
-
s?.setFieldValue(o.name, e), s?.setFieldValue(i,
|
|
172
|
+
l.value = e;
|
|
173
|
+
const a = re(e, o.rowKey);
|
|
174
|
+
s?.setFieldValue(o.name, e), s?.setFieldValue(i, a);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
const
|
|
178
|
-
r.value?.scrollToRow(
|
|
176
|
+
function f(e, a) {
|
|
177
|
+
const n = e === "end" ? l.value.length - 1 : e;
|
|
178
|
+
r.value?.scrollToRow(n, a);
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
function A(e, a) {
|
|
181
|
+
r.value?.scrollToColumn(e, a);
|
|
182
|
+
}
|
|
183
|
+
return B({
|
|
181
184
|
add: N,
|
|
182
185
|
addMultiple: u,
|
|
183
186
|
remove: _,
|
|
184
|
-
removeByKey:
|
|
185
|
-
getRowData:
|
|
186
|
-
getRowsData:
|
|
187
|
-
setRowData:
|
|
188
|
-
clear:
|
|
187
|
+
removeByKey: V,
|
|
188
|
+
getRowData: D,
|
|
189
|
+
getRowsData: j,
|
|
190
|
+
setRowData: k,
|
|
191
|
+
clear: L,
|
|
189
192
|
setTableData: c,
|
|
190
|
-
scrollTo:
|
|
191
|
-
|
|
193
|
+
scrollTo: f,
|
|
194
|
+
scrollToRow: f,
|
|
195
|
+
scrollToColumn: A
|
|
196
|
+
}), (e, a) => (W(), O(U, null, [d(t(C).FormItem, {
|
|
192
197
|
hidden: "",
|
|
193
198
|
name: e.name
|
|
194
|
-
}, null, 8, ["name"]), d(
|
|
199
|
+
}, null, 8, ["name"]), d(t(C).FormItem, g(t(R)(e.formItem, "initialValue"), {
|
|
195
200
|
label: e.label
|
|
196
201
|
}), {
|
|
197
|
-
default:
|
|
202
|
+
default: h(() => [d(de, g(t(R)(o, ["name", "maxLength", "onChange", "defaultValue", "formItem"]), {
|
|
198
203
|
ref_key: "tableRef",
|
|
199
204
|
ref: r,
|
|
200
|
-
class: [
|
|
205
|
+
class: [t(v)(), t(S)],
|
|
201
206
|
size: "mini",
|
|
202
|
-
columns:
|
|
203
|
-
"data-source":
|
|
207
|
+
columns: t(T),
|
|
208
|
+
"data-source": l.value,
|
|
204
209
|
"search-form": !1,
|
|
205
|
-
onUpdate:
|
|
206
|
-
}),
|
|
210
|
+
onUpdate: z
|
|
211
|
+
}), $({
|
|
207
212
|
_: 2
|
|
208
|
-
}, [
|
|
209
|
-
name:
|
|
210
|
-
fn:
|
|
213
|
+
}, [q(x, (n, w) => ({
|
|
214
|
+
name: w,
|
|
215
|
+
fn: h((H) => [J(e.$slots, w, Q(X(H || {})))])
|
|
211
216
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
212
217
|
_: 3
|
|
213
218
|
}, 16, ["label"])], 64));
|
|
214
219
|
}
|
|
215
220
|
});
|
|
216
221
|
export {
|
|
217
|
-
|
|
222
|
+
Ee as default
|
|
218
223
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as O, useSlots as U, ref as y, watch as W, unref as n, createBlock as M, openBlock as $, withCtx as d, createVNode as w, mergeProps as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
|
|
2
2
|
import { ApForm as u } from "../../ap-form/index.mjs";
|
|
3
|
-
import { isEqual as
|
|
3
|
+
import { isEqual as ee, isArray as g, omit as oe } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
|
-
import { useGetEditableColumns as
|
|
6
|
+
import { useGetEditableColumns as ae } from "../hooks/use-editable-columns.mjs";
|
|
7
7
|
import "../index.vue2.mjs";
|
|
8
|
-
import { useEditableApi as
|
|
8
|
+
import { useEditableApi as te } from "../hooks/use-editable-api.mjs";
|
|
9
9
|
import { arrayToObject as p } from "./utils.mjs";
|
|
10
|
-
import
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
import { useControllableValue as
|
|
13
|
-
import { useGlobalConfig as
|
|
14
|
-
import
|
|
15
|
-
const
|
|
10
|
+
import ne from "../style/editable.mjs";
|
|
11
|
+
import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import { useControllableValue as re } from "../../hooks/useControllableValue.mjs";
|
|
13
|
+
import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
|
|
14
|
+
import ie from "../index.vue.mjs";
|
|
15
|
+
const xe = /* @__PURE__ */ O({
|
|
16
16
|
name: "EditableGrid",
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: {
|
|
@@ -128,102 +128,107 @@ const Ce = /* @__PURE__ */ G({
|
|
|
128
128
|
onFieldChange: {}
|
|
129
129
|
},
|
|
130
130
|
emits: ["update:value"],
|
|
131
|
-
setup(
|
|
132
|
-
expose:
|
|
133
|
-
emit:
|
|
131
|
+
setup(h, {
|
|
132
|
+
expose: C,
|
|
133
|
+
emit: R
|
|
134
134
|
}) {
|
|
135
|
-
const
|
|
135
|
+
const b = U(), o = h, {
|
|
136
136
|
b: v
|
|
137
|
-
} =
|
|
137
|
+
} = le("editable-aggrid"), x = ne("editable-aggrid"), B = R, s = y(), {
|
|
138
138
|
value: r,
|
|
139
139
|
updateValue: m
|
|
140
|
-
} =
|
|
141
|
-
|
|
140
|
+
} = re(o, B), l = y(), S = u.useWatch(o.name, l);
|
|
141
|
+
W(r, (e) => {
|
|
142
142
|
const a = p(e, o.rowKey);
|
|
143
|
-
|
|
143
|
+
ee(a, n(S)) || l.value?.setFieldValue(o.name, a);
|
|
144
144
|
}, {
|
|
145
145
|
deep: !0
|
|
146
146
|
});
|
|
147
|
-
const
|
|
147
|
+
const T = se("valueTypeMap"), _ = ae(o, T), {
|
|
148
148
|
add: F,
|
|
149
149
|
addMultiple: E,
|
|
150
|
-
remove:
|
|
151
|
-
removeByKey:
|
|
152
|
-
getRowData:
|
|
153
|
-
getRowsData:
|
|
154
|
-
setRowData:
|
|
155
|
-
clear:
|
|
150
|
+
remove: N,
|
|
151
|
+
removeByKey: A,
|
|
152
|
+
getRowData: V,
|
|
153
|
+
getRowsData: k,
|
|
154
|
+
setRowData: D,
|
|
155
|
+
clear: K,
|
|
156
156
|
refreshRowIds: i
|
|
157
|
-
} =
|
|
158
|
-
function
|
|
157
|
+
} = te(o, l, r, m);
|
|
158
|
+
function j() {
|
|
159
159
|
const e = s.value?._internalGridApi;
|
|
160
160
|
if (!i.value?.length || !e)
|
|
161
161
|
return;
|
|
162
|
-
const a = i.value.map((
|
|
162
|
+
const a = i.value.map((t) => e.getRowNode(t)).filter((t) => !!t);
|
|
163
163
|
e.refreshCells({
|
|
164
164
|
rowNodes: a,
|
|
165
165
|
force: !0
|
|
166
166
|
}), i.value = [];
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function I() {
|
|
169
169
|
l.value?.resetFields();
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
return e ? (
|
|
171
|
+
function z(e) {
|
|
172
|
+
return e ? (g(e) ? e : [e]).map((t) => g(t) ? [o.name, ...t] : [o.name, t]) : void 0;
|
|
173
173
|
}
|
|
174
|
-
async function
|
|
175
|
-
return (await l.value?.validateFields(
|
|
174
|
+
async function H(e, a) {
|
|
175
|
+
return (await l.value?.validateFields(z(e), a))?.[o.name];
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function L(e) {
|
|
178
178
|
m(e);
|
|
179
179
|
const a = p(e, o.rowKey);
|
|
180
180
|
l.value?.setFieldValue(o.name, a);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
const
|
|
184
|
-
s.value?.scrollToRow(a);
|
|
182
|
+
function c(e, a) {
|
|
183
|
+
const t = e === "end" ? r.value.length - 1 : e;
|
|
184
|
+
s.value?.scrollToRow(t, a);
|
|
185
|
+
}
|
|
186
|
+
function P(e, a) {
|
|
187
|
+
s.value?.scrollToColumn(e, a);
|
|
185
188
|
}
|
|
186
|
-
return
|
|
187
|
-
resetFields:
|
|
188
|
-
validateFields:
|
|
189
|
+
return C({
|
|
190
|
+
resetFields: I,
|
|
191
|
+
validateFields: H,
|
|
189
192
|
add: F,
|
|
190
193
|
addMultiple: E,
|
|
191
|
-
remove:
|
|
192
|
-
removeByKey:
|
|
193
|
-
getRowData:
|
|
194
|
-
getRowsData:
|
|
195
|
-
setRowData:
|
|
196
|
-
clear:
|
|
197
|
-
setTableData:
|
|
198
|
-
scrollTo:
|
|
199
|
-
|
|
194
|
+
remove: N,
|
|
195
|
+
removeByKey: A,
|
|
196
|
+
getRowData: V,
|
|
197
|
+
getRowsData: k,
|
|
198
|
+
setRowData: D,
|
|
199
|
+
clear: K,
|
|
200
|
+
setTableData: L,
|
|
201
|
+
scrollTo: c,
|
|
202
|
+
scrollToRow: c,
|
|
203
|
+
scrollToColumn: P
|
|
204
|
+
}), (e, a) => ($(), M(n(u), {
|
|
200
205
|
ref_key: "formRef",
|
|
201
206
|
ref: l,
|
|
202
207
|
"initial-values": {
|
|
203
|
-
[o.name]:
|
|
208
|
+
[o.name]: n(p)(n(r), o.rowKey)
|
|
204
209
|
},
|
|
205
210
|
style: {
|
|
206
211
|
height: "100%"
|
|
207
212
|
}
|
|
208
213
|
}, {
|
|
209
|
-
default: d(() => [
|
|
214
|
+
default: d(() => [w(n(u).FormItem, {
|
|
210
215
|
name: e.name,
|
|
211
216
|
"no-style": ""
|
|
212
217
|
}, {
|
|
213
|
-
default: d(() => [
|
|
218
|
+
default: d(() => [w(ie, q(n(oe)(o, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
|
|
214
219
|
ref_key: "tableRef",
|
|
215
220
|
ref: s,
|
|
216
|
-
class: [
|
|
221
|
+
class: [n(v)(), n(x)],
|
|
217
222
|
size: "mini",
|
|
218
|
-
columns:
|
|
219
|
-
"data-source":
|
|
223
|
+
columns: n(_),
|
|
224
|
+
"data-source": n(r),
|
|
220
225
|
"search-form": !1,
|
|
221
|
-
onUpdate:
|
|
222
|
-
}),
|
|
226
|
+
onUpdate: j
|
|
227
|
+
}), J({
|
|
223
228
|
_: 2
|
|
224
|
-
}, [
|
|
225
|
-
name:
|
|
226
|
-
fn: d((
|
|
229
|
+
}, [Q(b, (t, f) => ({
|
|
230
|
+
name: f,
|
|
231
|
+
fn: d((G) => [X(e.$slots, f, Y(Z(G || {})))])
|
|
227
232
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
228
233
|
_: 3
|
|
229
234
|
}, 8, ["name"])]),
|
|
@@ -232,5 +237,5 @@ const Ce = /* @__PURE__ */ G({
|
|
|
232
237
|
}
|
|
233
238
|
});
|
|
234
239
|
export {
|
|
235
|
-
|
|
240
|
+
xe as default
|
|
236
241
|
};
|
|
@@ -80,7 +80,9 @@ export type EditableAgGridProps<RecordType = any> = Omit<AgGridProps<RecordType>
|
|
|
80
80
|
onFieldChange?: (rowIndex: number, fieldName: DataIndex, newValue: any) => void;
|
|
81
81
|
};
|
|
82
82
|
export type EditableAgGridExpose<RecordType = any, ModelType = RecordType[]> = Omit<EditableTableExpose<ModelType, RecordType>, 'scrollTo' | 'remove'> & {
|
|
83
|
-
scrollTo: (index: number | 'end') => void;
|
|
83
|
+
scrollTo: (index: number | 'end', position?: 'top' | 'bottom' | 'middle') => void;
|
|
84
|
+
scrollToRow: (index: number | 'end', position?: 'top' | 'bottom' | 'middle') => void;
|
|
85
|
+
scrollToColumn: (key: string, position?: 'auto' | 'start' | 'middle' | 'end') => void;
|
|
84
86
|
remove: (data: RecordType | RecordType[]) => void;
|
|
85
87
|
};
|
|
86
88
|
export type EditableAgGridFormItemExpose<RecordType = any, ModelType = RecordType[]> = Omit<EditableAgGridExpose<RecordType, ModelType>, 'resetFields' | 'validateFields'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getTableRenderProps as
|
|
2
|
-
import { rendererMap as
|
|
3
|
-
import { isNumber as
|
|
4
|
-
import { ref as
|
|
1
|
+
import { getTableRenderProps as c, objectToString as D } from "../../ap-table/utils.mjs";
|
|
2
|
+
import { rendererMap as x } from "../renderer/index.mjs";
|
|
3
|
+
import { isNumber as u, isFunction as m } from "lodash-unified";
|
|
4
|
+
import { ref as P, unref as v, computed as y } from "vue";
|
|
5
5
|
import "../components/body-cell/index.vue.mjs";
|
|
6
6
|
import "../components/header-cell/index.vue.mjs";
|
|
7
7
|
import "../components/tooltip/index.vue.mjs";
|
|
@@ -12,24 +12,24 @@ import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-con
|
|
|
12
12
|
import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
|
|
13
13
|
import W from "../components/body-cell/index.vue2.mjs";
|
|
14
14
|
import z from "../components/tooltip/index.vue2.mjs";
|
|
15
|
-
import
|
|
15
|
+
import h from "../components/header-cell/index.vue2.mjs";
|
|
16
16
|
function F(t) {
|
|
17
|
-
return
|
|
17
|
+
return u(t) && t > 1;
|
|
18
18
|
}
|
|
19
|
-
function M(t,
|
|
20
|
-
if (
|
|
21
|
-
return m(
|
|
22
|
-
if (
|
|
23
|
-
return
|
|
19
|
+
function M(t, a) {
|
|
20
|
+
if (a.bodyCellTooltip)
|
|
21
|
+
return m(a.bodyCellTooltip) ? a.bodyCellTooltip(t.value, t.data) : a.bodyCellTooltip;
|
|
22
|
+
if (a.renderText)
|
|
23
|
+
return a.renderText({
|
|
24
24
|
value: t.value,
|
|
25
25
|
record: t.data,
|
|
26
|
-
column:
|
|
26
|
+
column: a,
|
|
27
27
|
text: t.value
|
|
28
28
|
});
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
const
|
|
32
|
-
{ ...
|
|
29
|
+
const d = a.valueType || "text", p = x[d];
|
|
30
|
+
if (p) {
|
|
31
|
+
const f = c(
|
|
32
|
+
{ ...a, valueType: d },
|
|
33
33
|
{
|
|
34
34
|
value: t.value,
|
|
35
35
|
text: t.value,
|
|
@@ -39,61 +39,61 @@ function M(t, o) {
|
|
|
39
39
|
pinned: t.node?.rowPinned
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
|
-
return
|
|
42
|
+
return p(f);
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return D(t.value);
|
|
45
45
|
}
|
|
46
|
-
const X = (t,
|
|
47
|
-
const
|
|
48
|
-
const
|
|
46
|
+
const X = (t, a, d) => {
|
|
47
|
+
const p = _("valueTypeMap"), C = P(), { em: f } = G("ag-grid"), b = (r) => {
|
|
48
|
+
const i = {
|
|
49
49
|
cellRenderer: W,
|
|
50
50
|
cellRendererParams: {
|
|
51
51
|
column: r,
|
|
52
|
-
extraValueType:
|
|
53
|
-
rowKey:
|
|
52
|
+
extraValueType: v(p),
|
|
53
|
+
rowKey: a.rowKey
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
if (r.customRender)
|
|
57
|
-
return
|
|
57
|
+
return i;
|
|
58
58
|
if (r.renderText)
|
|
59
59
|
return {
|
|
60
|
-
valueFormatter: (
|
|
61
|
-
value:
|
|
62
|
-
record:
|
|
60
|
+
valueFormatter: (o) => r.renderText({
|
|
61
|
+
value: o.value,
|
|
62
|
+
record: o.data,
|
|
63
63
|
column: r,
|
|
64
|
-
text:
|
|
64
|
+
text: o.value
|
|
65
65
|
})
|
|
66
66
|
};
|
|
67
|
-
const
|
|
67
|
+
const s = r.valueType || "text", e = x[s];
|
|
68
68
|
return e ? {
|
|
69
|
-
valueFormatter: (
|
|
70
|
-
const
|
|
71
|
-
{ ...r, valueType:
|
|
69
|
+
valueFormatter: (o) => {
|
|
70
|
+
const l = c(
|
|
71
|
+
{ ...r, valueType: s },
|
|
72
72
|
{
|
|
73
|
-
value:
|
|
74
|
-
text:
|
|
75
|
-
record:
|
|
76
|
-
column:
|
|
77
|
-
rowIndex:
|
|
78
|
-
pinned:
|
|
73
|
+
value: o.value,
|
|
74
|
+
text: o.value,
|
|
75
|
+
record: o.data,
|
|
76
|
+
column: o.column,
|
|
77
|
+
rowIndex: o.node?.rowIndex,
|
|
78
|
+
pinned: o.node?.rowPinned
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
|
-
return e(
|
|
81
|
+
return e(l);
|
|
82
82
|
}
|
|
83
|
-
} :
|
|
84
|
-
},
|
|
85
|
-
const
|
|
86
|
-
return
|
|
87
|
-
"--ag-grid-line-clamp":
|
|
88
|
-
},
|
|
89
|
-
lineClamp:
|
|
90
|
-
gridWrapperRef:
|
|
91
|
-
},
|
|
92
|
-
}, g =
|
|
93
|
-
const r =
|
|
94
|
-
function
|
|
95
|
-
return
|
|
96
|
-
const
|
|
83
|
+
} : i;
|
|
84
|
+
}, w = (r) => {
|
|
85
|
+
const i = r.valueType || "text", s = x[i], e = {}, o = r.bodyCellTooltip || !r.customRender && s && (r.ellipsis === !0 || r.ellipsis === "tooltip" || u(r.ellipsis)), l = u(r.ellipsis) && r.ellipsis > 1, n = u(r.ellipsis) ? r.ellipsis : 1;
|
|
86
|
+
return e.tooltipValueGetter = o ? (T) => M(T, r) : void 0, e.wrapText = !r.ellipsis || l, e.cellStyle = {
|
|
87
|
+
"--ag-grid-line-clamp": n
|
|
88
|
+
}, e.tooltipComponent = z, e.tooltipComponentParams = {
|
|
89
|
+
lineClamp: n,
|
|
90
|
+
gridWrapperRef: C
|
|
91
|
+
}, e;
|
|
92
|
+
}, g = y(() => {
|
|
93
|
+
const r = v(t);
|
|
94
|
+
function i(s) {
|
|
95
|
+
return s.map((e) => {
|
|
96
|
+
const o = {
|
|
97
97
|
field: S(e.dataIndex),
|
|
98
98
|
colId: I(e.key) ? String(e.key) : void 0,
|
|
99
99
|
sortable: !!e.sorter,
|
|
@@ -110,44 +110,45 @@ const X = (t, o, n) => {
|
|
|
110
110
|
pinned: e.fixed || null,
|
|
111
111
|
// undefined to null
|
|
112
112
|
colSpan: e.colSpan,
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
spanRows: e.spanRows,
|
|
114
|
+
cellClass: d((l) => {
|
|
115
|
+
const n = e.cellClass || "", T = m(n) ? n(l.data, l.node) : n;
|
|
115
116
|
return [
|
|
116
|
-
`${
|
|
117
|
-
F(e.ellipsis) ?
|
|
118
|
-
|
|
117
|
+
`${f("cell", e.align || "left")}`,
|
|
118
|
+
F(e.ellipsis) ? f("cell", "multiline") : null,
|
|
119
|
+
T
|
|
119
120
|
].flat().filter(Boolean);
|
|
120
121
|
}),
|
|
121
122
|
headerStyle: e.headerStyle,
|
|
122
123
|
headerClass: e.headerClass,
|
|
123
124
|
autoHeight: !0,
|
|
124
125
|
// 设置自动计算高度以自适应多行换行的场景
|
|
125
|
-
...
|
|
126
|
-
...
|
|
126
|
+
...w(e),
|
|
127
|
+
...b(e)
|
|
127
128
|
};
|
|
128
129
|
return e.children?.length ? {
|
|
129
|
-
...
|
|
130
|
-
headerGroupComponent:
|
|
130
|
+
...o,
|
|
131
|
+
headerGroupComponent: h,
|
|
131
132
|
headerGroupComponentParams: {
|
|
132
133
|
column: e
|
|
133
134
|
},
|
|
134
|
-
children:
|
|
135
|
-
} :
|
|
135
|
+
children: i(e.children)
|
|
136
|
+
} : o;
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
|
-
return
|
|
139
|
-
}),
|
|
139
|
+
return i(r);
|
|
140
|
+
}), R = y(
|
|
140
141
|
() => ({
|
|
141
|
-
headerComponent:
|
|
142
|
-
resizable:
|
|
142
|
+
headerComponent: h,
|
|
143
|
+
resizable: a.columnResizable,
|
|
143
144
|
suppressMovable: !0,
|
|
144
145
|
cellDataType: !1
|
|
145
146
|
})
|
|
146
147
|
);
|
|
147
148
|
return {
|
|
148
149
|
columnDefs: g,
|
|
149
|
-
defaultColDef:
|
|
150
|
-
gridWrapperRef:
|
|
150
|
+
defaultColDef: R,
|
|
151
|
+
gridWrapperRef: C
|
|
151
152
|
};
|
|
152
153
|
};
|
|
153
154
|
export {
|