cnhis-design-vue 3.3.3-release.0 → 3.3.3-release.8

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.
Files changed (186) hide show
  1. package/es/components/audio-sdk/index.d.ts +18 -16
  2. package/es/components/audio-sdk/src/Index.vue.d.ts +18 -16
  3. package/es/components/audio-sdk/src/Index.vue2.js +47 -12
  4. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  5. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +6 -6
  6. package/es/components/audio-sdk/src/components/recording.vue.d.ts +6 -6
  7. package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
  8. package/es/components/base-search/index.d.ts +3 -0
  9. package/es/components/base-search/src/index.vue.d.ts +3 -0
  10. package/es/components/big-table/src/components/NoData.vue2.js +8 -1
  11. package/es/components/big-table/src/hooks/useTableParse.js +8 -1
  12. package/es/components/button-print/index.d.ts +2 -1
  13. package/es/components/button-print/src/ButtonPrint.vue.d.ts +2 -1
  14. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
  15. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -1
  16. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +11 -5
  17. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +4 -1
  18. package/es/components/button-print/src/utils/print.d.ts +2 -2
  19. package/es/components/button-print/src/utils/print.js +29 -20
  20. package/es/components/callback/src/components/render/popupMaps.d.ts +13 -0
  21. package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
  22. package/es/components/classification/index.d.ts +56 -6
  23. package/es/components/classification/src/components/search-filter/index.vue.d.ts +56 -6
  24. package/es/components/classification/src/components/set-classification/index.vue.d.ts +56 -6
  25. package/es/components/classification/src/index.vue.d.ts +56 -6
  26. package/es/components/expand-field/index.d.ts +792 -1
  27. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
  28. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
  29. package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
  30. package/es/components/expand-field/src/components/form.vue2.js +8 -1
  31. package/es/components/expand-field/src/index.vue.d.ts +792 -1
  32. package/es/components/field-editor/index.d.ts +13 -0
  33. package/es/components/field-editor/src/FieldEditor.vue.d.ts +13 -0
  34. package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
  35. package/es/components/field-editor/src/fields.d.ts +1 -0
  36. package/es/components/field-editor/src/fields.js +6 -0
  37. package/es/components/field-set/src/FieldColor.vue.d.ts +6 -4
  38. package/es/components/field-set/src/FieldFilter.vue.d.ts +6 -4
  39. package/es/components/field-set/src/FieldSet.vue.d.ts +39 -5
  40. package/es/components/field-set/src/FieldSet.vue2.js +118 -69
  41. package/es/components/field-set/src/Index.vue2.js +8 -3
  42. package/es/components/field-set/src/TableStyle.vue2.js +2 -2
  43. package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
  44. package/es/components/field-set/src/constants/index.d.ts +1 -1
  45. package/es/components/field-set/src/types/index.d.ts +1 -0
  46. package/es/components/field-set/style/index.css +1 -1
  47. package/es/components/form-config/index.d.ts +39 -0
  48. package/es/components/form-config/src/FormConfig.vue.d.ts +39 -0
  49. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -0
  50. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -0
  51. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +13 -0
  52. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +8 -1
  53. package/es/components/form-render/index.d.ts +13 -0
  54. package/es/components/form-render/src/FormRender.vue.d.ts +13 -0
  55. package/es/components/form-render/src/FormRender.vue2.js +4 -0
  56. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -0
  57. package/es/components/form-render/src/components/renderer/formItem.js +8 -1
  58. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
  59. package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
  60. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  61. package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
  62. package/es/components/form-render/src/utils/business.d.ts +3 -1
  63. package/es/components/form-render/src/utils/business.js +7 -1
  64. package/es/components/iho-chat/index.d.ts +21 -1
  65. package/es/components/iho-chat/src/Index.vue.d.ts +21 -1
  66. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +5 -1
  67. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +52 -13
  68. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +3 -2
  69. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +16 -0
  70. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +112 -53
  71. package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
  72. package/es/components/iho-chat/src/hooks/index.js +1 -0
  73. package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
  74. package/es/components/iho-chat/src/hooks/useDraggable.js +160 -0
  75. package/es/components/iho-chat/style/index.css +1 -1
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  77. package/es/components/index.css +1 -1
  78. package/es/components/info-header/index.d.ts +26 -0
  79. package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
  80. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +13 -0
  81. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -0
  82. package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
  83. package/es/components/quick-search/index.d.ts +2 -0
  84. package/es/components/quick-search/src/index.vue.d.ts +2 -0
  85. package/es/components/scale-view/index.d.ts +67 -17
  86. package/es/components/scale-view/src/ScaleView.vue.d.ts +70 -19
  87. package/es/components/scale-view/src/ScaleView.vue2.js +84 -10
  88. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
  89. package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
  90. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +10 -7
  91. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +28 -4
  92. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +10 -7
  93. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +29 -8
  94. package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
  95. package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
  96. package/es/components/scale-view/src/components/ScaleScore.js +47 -4
  97. package/es/components/scale-view/src/components/formitem/r-checkbox.js +20 -2
  98. package/es/components/scale-view/src/components/formitem/r-radio.js +2 -0
  99. package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
  100. package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
  101. package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
  102. package/es/components/scale-view/src/hooks/scaleview-computed.js +20 -5
  103. package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
  104. package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
  105. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +8 -0
  106. package/es/components/scale-view/src/hooks/scaleview-props.js +8 -0
  107. package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
  108. package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
  109. package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
  110. package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
  111. package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
  112. package/es/components/scale-view/src/hooks/use-noData.js +33 -5
  113. package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
  114. package/es/components/scale-view/src/utils/judge-types.js +10 -10
  115. package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
  116. package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
  117. package/es/components/scale-view/style/index.css +1 -1
  118. package/es/components/select-person/index.d.ts +792 -1
  119. package/es/components/select-person/src/SelectPerson.vue.d.ts +434 -341
  120. package/es/components/select-person/src/SelectPerson.vue2.js +521 -675
  121. package/es/components/select-person/src/SelectPersonRole.vue.d.ts +630 -0
  122. package/es/components/select-person/src/SelectPersonRole.vue.js +6 -0
  123. package/es/components/select-person/src/SelectPersonRole.vue2.js +942 -0
  124. package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
  125. package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
  126. package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
  127. package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
  128. package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
  129. package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
  130. package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
  131. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
  132. package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
  133. package/es/components/select-person/src/components/TagItem.vue.js +6 -0
  134. package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
  135. package/es/components/select-person/src/index.vue.d.ts +793 -1
  136. package/es/components/select-person/src/index.vue2.js +21 -4
  137. package/es/components/select-person/src/types/index.d.ts +35 -0
  138. package/es/components/select-person/src/types/index.js +1 -0
  139. package/es/components/select-person/src/utils/index.d.ts +3 -0
  140. package/es/components/select-person/src/utils/index.js +29 -8
  141. package/es/components/select-person/style/index.css +1 -1
  142. package/es/components/shortcut-setter/index.d.ts +13 -0
  143. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -0
  144. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
  145. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
  146. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
  147. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
  148. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +54 -6
  149. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +26 -10
  150. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -2
  151. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +37 -2
  152. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -2
  153. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +44 -1
  154. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
  155. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
  156. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
  157. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +55 -6
  158. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +6 -3
  159. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  160. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -1
  161. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  162. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
  163. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  164. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +12 -1
  165. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -2
  166. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +2 -2
  167. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
  168. package/es/components/table-filter/src/hooks/useAdvanced.js +20 -3
  169. package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
  170. package/es/components/table-filter/src/tool/date.d.ts +3 -0
  171. package/es/components/table-filter/src/tool/date.js +139 -0
  172. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  173. package/es/components/table-filter/src/tool/transformData.js +11 -8
  174. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  175. package/es/components/table-filter/src/types/enums.js +2 -1
  176. package/es/components/table-filter/src/types/index.d.ts +12 -0
  177. package/es/components/vod-chunk-upload/index.d.ts +3 -0
  178. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +1 -29
  179. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +109 -11
  180. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +15 -1
  181. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +72 -9
  182. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +3 -0
  183. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +75 -9
  184. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  185. package/es/shared/package.json.js +1 -1
  186. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- import { createElementVNode, defineComponent, ref, computed, reactive, toRef, watch, openBlock, createElementBlock, createBlock, unref, withKeys, withModifiers, createCommentVNode, Fragment, renderList, normalizeStyle, withCtx, createTextVNode, toDisplayString, createVNode, normalizeClass, mergeProps, renderSlot } from 'vue';
2
- import { NInput, NCheckbox, NTooltip, NIcon, NPopconfirm, NButton } from 'naive-ui';
1
+ import { createElementVNode, defineComponent, ref, computed, reactive, toRef, watch, openBlock, createElementBlock, createBlock, unref, withKeys, withModifiers, createCommentVNode, Fragment, renderList, normalizeStyle, withCtx, createTextVNode, toDisplayString, resolveDynamicComponent, createVNode, normalizeClass, mergeProps, renderSlot } from 'vue';
2
+ import { NInput, NCheckbox, NTooltip, NIcon, NSelect, NPopconfirm, NButton } from 'naive-ui';
3
3
  import draggableComponent from '../../../shared/components/VueDraggable/src/vuedraggable.js';
4
4
  import Row from './components/table-row.vue.js';
5
- import { isArray, cloneDeep, isString, omit } from 'lodash-es';
5
+ import { isFunction, isArray, cloneDeep, isString, omit } from 'lodash-es';
6
6
  import { isDisable, setStyle, isDraggableItem, isDraggable, getGroupTree } from './utils/index.js';
7
7
  import { uuidGenerator } from '../../../shared/utils/index.js';
8
8
  import { HelpCircleSharp } from '@vicons/ionicons5';
@@ -24,6 +24,16 @@ const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", null, function() {
24
24
  const _hoisted_4 = ["tabindex"];
25
25
  const _hoisted_5 = {
26
26
  key: 1,
27
+ class: "main-wrapper__other-config"
28
+ };
29
+ const _hoisted_6 = {
30
+ class: "item"
31
+ };
32
+ const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", {
33
+ class: "label"
34
+ }, "\u8868\u5934\u7EC4\u5408\u6392\u5E8F", -1);
35
+ const _hoisted_8 = {
36
+ key: 2,
27
37
  class: "main-wrapper__table-footer"
28
38
  };
29
39
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -100,6 +110,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
100
110
  },
101
111
  titleAlias: {
102
112
  type: String
113
+ },
114
+ tableConfig: {
115
+ type: Object
103
116
  }
104
117
  },
105
118
  emits: [
@@ -111,6 +124,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
111
124
  expose,
112
125
  emit
113
126
  }) {
127
+ var _a;
114
128
  const props = __props;
115
129
  const fieldsMapping = {
116
130
  sid: "id",
@@ -120,16 +134,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
120
134
  isFixed: "fixedWay",
121
135
  colWidth: "columnWidth"
122
136
  };
137
+ const TABLESORT_OPTION = [{
138
+ label: "\u72EC\u7ACB\u6392\u5E8F",
139
+ value: "SINGLE"
140
+ }, {
141
+ label: "\u7EC4\u5408\u6392\u5E8F",
142
+ value: "MULTIPLE"
143
+ }];
123
144
  const resetKey = ref(Date.now());
124
145
  const keyword = ref("");
125
146
  const tableBodyRef = ref();
126
147
  const tableRef = ref();
127
148
  const newFields = ref([]);
149
+ const compositeSort = ref(((_a = props.tableConfig) == null ? void 0 : _a.sortType) || "SINGLE");
128
150
  const defaultColumns = [{
129
151
  title: function() {
130
- var _a, _b, _c;
152
+ var _a2, _b, _c;
131
153
  try {
132
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.247")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.247")) || "\u6240\u6709\u5B57\u6BB5";
154
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.247")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.247")) || "\u6240\u6709\u5B57\u6BB5";
133
155
  } catch (e) {
134
156
  return "\u6240\u6709\u5B57\u6BB5";
135
157
  }
@@ -138,9 +160,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
138
160
  field: "title"
139
161
  }, {
140
162
  title: function() {
141
- var _a, _b, _c;
163
+ var _a2, _b, _c;
142
164
  try {
143
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.240")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.240")) || "\u663E\u793A";
165
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.240")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.240")) || "\u663E\u793A";
144
166
  } catch (e) {
145
167
  return "\u663E\u793A";
146
168
  }
@@ -152,9 +174,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
152
174
  fieldShowMaxValue: props.fieldShowMaxValue
153
175
  }, {
154
176
  title: function() {
155
- var _a, _b, _c;
177
+ var _a2, _b, _c;
156
178
  try {
157
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.284")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.284")) || "\u7F16\u8F91";
179
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.284")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.284")) || "\u7F16\u8F91";
158
180
  } catch (e) {
159
181
  return "\u7F16\u8F91";
160
182
  }
@@ -165,9 +187,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
165
187
  field: "editable"
166
188
  }, {
167
189
  title: function() {
168
- var _a, _b, _c;
190
+ var _a2, _b, _c;
169
191
  try {
170
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
192
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
171
193
  } catch (e) {
172
194
  return "\u5FC5\u586B";
173
195
  }
@@ -178,9 +200,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
178
200
  field: "required"
179
201
  }, {
180
202
  title: function() {
181
- var _a, _b, _c;
203
+ var _a2, _b, _c;
182
204
  try {
183
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.249")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.249")) || "\u6392\u5E8F";
205
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.249")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.249")) || "\u6392\u5E8F";
184
206
  } catch (e) {
185
207
  return "\u6392\u5E8F";
186
208
  }
@@ -191,9 +213,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
191
213
  field: "sort"
192
214
  }, {
193
215
  title: function() {
194
- var _a, _b, _c;
216
+ var _a2, _b, _c;
195
217
  try {
196
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.250")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.250")) || "\u52A0\u7C97";
218
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.250")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.250")) || "\u52A0\u7C97";
197
219
  } catch (e) {
198
220
  return "\u52A0\u7C97";
199
221
  }
@@ -204,9 +226,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
204
226
  field: "bold"
205
227
  }, {
206
228
  title: function() {
207
- var _a, _b, _c;
229
+ var _a2, _b, _c;
208
230
  try {
209
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.251")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.251")) || "\u9ED8\u8BA4\u6392\u5E8F";
231
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.251")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.251")) || "\u9ED8\u8BA4\u6392\u5E8F";
210
232
  } catch (e) {
211
233
  return "\u9ED8\u8BA4\u6392\u5E8F";
212
234
  }
@@ -215,9 +237,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
215
237
  field: "sortDirection"
216
238
  }, {
217
239
  title: function() {
218
- var _a, _b, _c;
240
+ var _a2, _b, _c;
219
241
  try {
220
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.252")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.252")) || "\u6392\u5E8F\u4F18\u5148\u7EA7";
242
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.252")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.252")) || "\u6392\u5E8F\u4F18\u5148\u7EA7";
221
243
  } catch (e) {
222
244
  return "\u6392\u5E8F\u4F18\u5148\u7EA7";
223
245
  }
@@ -226,9 +248,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
226
248
  field: "sortPriority"
227
249
  }, {
228
250
  title: function() {
229
- var _a, _b, _c;
251
+ var _a2, _b, _c;
230
252
  try {
231
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.253")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.253")) || "\u56FA\u5B9A";
253
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.253")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.253")) || "\u56FA\u5B9A";
232
254
  } catch (e) {
233
255
  return "\u56FA\u5B9A";
234
256
  }
@@ -237,9 +259,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
237
259
  field: "fixedWay"
238
260
  }, {
239
261
  title: function() {
240
- var _a, _b, _c;
262
+ var _a2, _b, _c;
241
263
  try {
242
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.254")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.254")) || "\u81EA\u5B9A\u4E49\u6807\u9898";
264
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.254")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.254")) || "\u81EA\u5B9A\u4E49\u6807\u9898";
243
265
  } catch (e) {
244
266
  return "\u81EA\u5B9A\u4E49\u6807\u9898";
245
267
  }
@@ -248,9 +270,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
248
270
  field: "alias"
249
271
  }, {
250
272
  title: function() {
251
- var _a, _b, _c;
273
+ var _a2, _b, _c;
252
274
  try {
253
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.255")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.255")) || "\u5217\u5BBD";
275
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.255")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.255")) || "\u5217\u5BBD";
254
276
  } catch (e) {
255
277
  return "\u5217\u5BBD";
256
278
  }
@@ -259,9 +281,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
259
281
  field: "columnWidth"
260
282
  }, {
261
283
  title: function() {
262
- var _a, _b, _c;
284
+ var _a2, _b, _c;
263
285
  try {
264
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.256")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.256")) || "\u8868\u5934\u7B5B\u9009";
286
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.256")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.256")) || "\u8868\u5934\u7B5B\u9009";
265
287
  } catch (e) {
266
288
  return "\u8868\u5934\u7B5B\u9009";
267
289
  }
@@ -271,9 +293,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
271
293
  field: "isShowHeaderFilter"
272
294
  }, {
273
295
  title: function() {
274
- var _a, _b, _c;
296
+ var _a2, _b, _c;
275
297
  try {
276
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.36")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.36")) || "\u641C\u7D22";
298
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.36")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.36")) || "\u641C\u7D22";
277
299
  } catch (e) {
278
300
  return "\u641C\u7D22";
279
301
  }
@@ -284,9 +306,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
284
306
  hide: true
285
307
  }, {
286
308
  title: function() {
287
- var _a, _b, _c;
309
+ var _a2, _b, _c;
288
310
  try {
289
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.257")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.257")) || "\u6C42\u548C";
311
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.257")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.257")) || "\u6C42\u548C";
290
312
  } catch (e) {
291
313
  return "\u6C42\u548C";
292
314
  }
@@ -297,9 +319,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
297
319
  hide: true
298
320
  }, {
299
321
  title: function() {
300
- var _a, _b, _c;
322
+ var _a2, _b, _c;
301
323
  try {
302
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.258")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.258")) || "\u5E73\u5747\u503C";
324
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.258")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.258")) || "\u5E73\u5747\u503C";
303
325
  } catch (e) {
304
326
  return "\u5E73\u5747\u503C";
305
327
  }
@@ -310,9 +332,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
310
332
  hide: true
311
333
  }, {
312
334
  title: function() {
313
- var _a, _b, _c;
335
+ var _a2, _b, _c;
314
336
  try {
315
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.259")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.259")) || "\u8131\u654F\u914D\u7F6E";
337
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.259")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.259")) || "\u8131\u654F\u914D\u7F6E";
316
338
  } catch (e) {
317
339
  return "\u8131\u654F\u914D\u7F6E";
318
340
  }
@@ -323,11 +345,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
323
345
  }];
324
346
  const columns = ref([]);
325
347
  const itemWidth = computed(() => {
326
- var _a;
327
- return ((_a = tableRef.value) == null ? void 0 : _a.scrollWidth) ? tableRef.value.scrollWidth + "px" : "auto";
348
+ var _a2;
349
+ return ((_a2 = tableRef.value) == null ? void 0 : _a2.scrollWidth) ? tableRef.value.scrollWidth + "px" : "auto";
328
350
  });
329
351
  const fieldList = computed(() => newFields.value.flat());
330
352
  const hasFieldDescribe = computed(() => fieldList.value.some((item) => item.feildDescribe));
353
+ const isShowCompositeSort = computed(() => {
354
+ var _a2;
355
+ return (_a2 = props.tableConfig) == null ? void 0 : _a2.compositeSort;
356
+ });
331
357
  const rowProps = reactive({
332
358
  columns,
333
359
  data: fieldList,
@@ -355,17 +381,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
355
381
  emit("close");
356
382
  };
357
383
  function reset() {
384
+ var _a2;
358
385
  newFields.value = initFields();
359
386
  initColumns();
360
387
  resetKey.value = Date.now();
388
+ compositeSort.value = ((_a2 = props.tableConfig) == null ? void 0 : _a2.sortType) || "SINGLE";
361
389
  emit("reset");
362
390
  }
363
391
  function getTitle(column) {
364
392
  return column.field === "title" && props.titleAlias ? props.titleAlias : column.title;
365
393
  }
366
394
  function getShowColumn(column) {
367
- var _a, _b;
368
- if (!((_a = props.showColumnNames) == null ? void 0 : _a.length)) {
395
+ var _a2, _b;
396
+ if (!((_a2 = props.showColumnNames) == null ? void 0 : _a2.length)) {
369
397
  const isEdit = ["editable", "required"].includes(column.field);
370
398
  if (isEdit && !props.isEdit || column.field === "sortPriority" && !props.showSortPriority || column.field === "isShowHeaderFilter" && !props.showHeadFilter || column.field === "hideExpression" && !((_b = props.hideExpressionConfig) == null ? void 0 : _b.show))
371
399
  return false;
@@ -380,7 +408,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
380
408
  }));
381
409
  Object.keys(fieldsMapping).forEach((key) => {
382
410
  cloneFields.forEach((item) => {
383
- var _a;
411
+ var _a2;
384
412
  if (props.type == "old") {
385
413
  if (Reflect.has(item, key)) {
386
414
  if (key == "isFixed") {
@@ -401,7 +429,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
401
429
  item.bold = false;
402
430
  }
403
431
  item.draggable = isDraggable(item) ? true : false;
404
- if (isArray((_a = item.relation) == null ? void 0 : _a.fieldList)) {
432
+ if (isArray((_a2 = item.relation) == null ? void 0 : _a2.fieldList)) {
405
433
  item.relation.fieldList.forEach((v) => {
406
434
  if (v.isSearch == 1) {
407
435
  v.checked = true;
@@ -459,8 +487,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
459
487
  function handleSearch() {
460
488
  const keywordChanged = searchData.keyword !== keyword.value;
461
489
  let idx = !keyword.value ? 0 : fieldList.value.findIndex((field, i) => {
462
- var _a;
463
- if ((_a = field.title) == null ? void 0 : _a.includes(keyword.value)) {
490
+ var _a2;
491
+ if ((_a2 = field.title) == null ? void 0 : _a2.includes(keyword.value)) {
464
492
  if (!keywordChanged)
465
493
  return i > searchData.idx;
466
494
  return true;
@@ -477,8 +505,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
477
505
  } : {});
478
506
  }
479
507
  function isHighlight(element) {
480
- var _a;
481
- return !!keyword.value && ((_a = element.title) == null ? void 0 : _a.includes(keyword.value));
508
+ var _a2;
509
+ return !!keyword.value && ((_a2 = element.title) == null ? void 0 : _a2.includes(keyword.value));
482
510
  }
483
511
  function handleAllCheck(checked, field) {
484
512
  fieldList.value.forEach((fieldItem) => {
@@ -495,12 +523,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
495
523
  column.checkedAll = !noAllCheck;
496
524
  }
497
525
  function initColumns() {
498
- var _a, _b;
526
+ var _a2, _b;
499
527
  columns.value = cloneDeep(defaultColumns);
500
- if ((_a = props.showColumnNames) == null ? void 0 : _a.length) {
528
+ if ((_a2 = props.showColumnNames) == null ? void 0 : _a2.length) {
501
529
  columns.value = defaultColumns.filter((column) => {
502
- var _a2, _b2;
503
- return column.field === "title" || ((_b2 = (_a2 = props.showColumnNames) == null ? void 0 : _a2.includes) == null ? void 0 : _b2.call(_a2, column.field));
530
+ var _a3, _b2;
531
+ return column.field === "title" || ((_b2 = (_a3 = props.showColumnNames) == null ? void 0 : _a3.includes) == null ? void 0 : _b2.call(_a3, column.field));
504
532
  });
505
533
  }
506
534
  if ((_b = props.customColumns) == null ? void 0 : _b.length) {
@@ -519,9 +547,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
519
547
  if (props.fieldDescribeMode === "column" && hasFieldDescribe.value) {
520
548
  columns.value.push({
521
549
  title: function() {
522
- var _a2, _b2, _c;
550
+ var _a3, _b2, _c;
523
551
  try {
524
- return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.260")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.260")) || "\u5B57\u6BB5\u63CF\u8FF0";
552
+ return ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.260")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.260")) || "\u5B57\u6BB5\u63CF\u8FF0";
525
553
  } catch (e) {
526
554
  return "\u5B57\u6BB5\u63CF\u8FF0";
527
555
  }
@@ -533,9 +561,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
533
561
  if (props.showSeq) {
534
562
  columns.value.splice(1, 0, {
535
563
  title: function() {
536
- var _a2, _b2, _c;
564
+ var _a3, _b2, _c;
537
565
  try {
538
- return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.249")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.249")) || "\u6392\u5E8F";
566
+ return ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.249")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.249")) || "\u6392\u5E8F";
539
567
  } catch (e) {
540
568
  return "\u6392\u5E8F";
541
569
  }
@@ -560,9 +588,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
560
588
  return false;
561
589
  return true;
562
590
  }
591
+ function getTableConfig() {
592
+ if (props.tableConfig)
593
+ return {
594
+ tableConfig: {
595
+ ...props.tableConfig,
596
+ ...isShowCompositeSort.value ? {
597
+ sortType: compositeSort.value
598
+ } : {}
599
+ }
600
+ };
601
+ }
563
602
  watch([() => props.fields, () => {
564
- var _a;
565
- return (_a = props.showColumnNames) == null ? void 0 : _a.length;
603
+ var _a2;
604
+ return (_a2 = props.showColumnNames) == null ? void 0 : _a2.length;
566
605
  }], ([fields, showColumnNames]) => {
567
606
  if (fields.length > 0) {
568
607
  newFields.value = initFields();
@@ -573,7 +612,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
573
612
  deep: true
574
613
  });
575
614
  expose({
576
- getTableFields
615
+ getTableFields,
616
+ getTableConfig
577
617
  });
578
618
  return (_ctx, _cache) => {
579
619
  return openBlock(), createElementBlock("div", _hoisted_1, [__props.showSearch ? (openBlock(), createBlock(unref(NInput), {
@@ -585,9 +625,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
585
625
  trim: true
586
626
  },
587
627
  placeholder: function() {
588
- var _a, _b, _c;
628
+ var _a2, _b, _c;
589
629
  try {
590
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.245")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.245")) || "\u8BF7\u8F93\u5165\u5B57\u6BB5\u6807\u9898";
630
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.245")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.245")) || "\u8BF7\u8F93\u5165\u5B57\u6BB5\u6807\u9898";
591
631
  } catch (e) {
592
632
  return "\u8BF7\u8F93\u5165\u5B57\u6BB5\u6807\u9898";
593
633
  }
@@ -612,10 +652,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
612
652
  }, {
613
653
  default: withCtx(() => [createTextVNode(toDisplayString(column.title), 1)]),
614
654
  _: 2
615
- }, 1032, ["checked", "onUpdate:checked", "disabled"])) : (openBlock(), createElementBlock(Fragment, {
655
+ }, 1032, ["checked", "onUpdate:checked", "disabled"])) : unref(isFunction)(column.titleRender) ? (openBlock(), createBlock(resolveDynamicComponent(() => column.titleRender(column)), {
616
656
  key: 1
657
+ })) : (openBlock(), createElementBlock(Fragment, {
658
+ key: 2
617
659
  }, [createTextVNode(toDisplayString(getTitle(column)), 1)], 64)), column.field === "sortPriority" ? (openBlock(), createBlock(unref(NTooltip), {
618
- key: 2,
660
+ key: 3,
619
661
  trigger: "hover"
620
662
  }, {
621
663
  trigger: withCtx(() => [createVNode(unref(NIcon), {
@@ -669,7 +711,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
669
711
  "is-highlight": isHighlight(element)
670
712
  }), null, 16, ["element", "idx", "is-highlight"]))], 14, _hoisted_4)) : createCommentVNode("v-if", true)]),
671
713
  _: 1
672
- }, 8, ["modelValue", "disabled"]))], 512)], 512), __props.footerFlag ? (openBlock(), createElementBlock("div", _hoisted_5, [createCommentVNode(" \u5E95\u90E8\u6309\u94AE\u63D2\u69FD "), renderSlot(_ctx.$slots, "footer", {}, () => [createVNode(unref(NPopconfirm), {
714
+ }, 8, ["modelValue", "disabled"]))], 512)], 512), unref(isShowCompositeSort) ? (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [_hoisted_7, createVNode(unref(NSelect), {
715
+ style: {
716
+ "width": "200px"
717
+ },
718
+ value: compositeSort.value,
719
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => compositeSort.value = $event),
720
+ options: TABLESORT_OPTION
721
+ }, null, 8, ["value"])])])) : createCommentVNode("v-if", true), __props.footerFlag ? (openBlock(), createElementBlock("div", _hoisted_8, [createCommentVNode(" \u5E95\u90E8\u6309\u94AE\u63D2\u69FD "), renderSlot(_ctx.$slots, "footer", {}, () => [createVNode(unref(NPopconfirm), {
673
722
  onPositiveClick: reset
674
723
  }, {
675
724
  trigger: withCtx(() => [createVNode(unref(NButton), {
@@ -678,9 +727,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
678
727
  }
679
728
  }, {
680
729
  default: withCtx(() => [createTextVNode(function() {
681
- var _a, _b, _c;
730
+ var _a2, _b, _c;
682
731
  try {
683
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.242")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.242")) || "\u6062\u590D\u9ED8\u8BA4\u8BBE\u7F6E";
732
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.242")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.242")) || "\u6062\u590D\u9ED8\u8BA4\u8BBE\u7F6E";
684
733
  } catch (e) {
685
734
  return "\u6062\u590D\u9ED8\u8BA4\u8BBE\u7F6E";
686
735
  }
@@ -688,9 +737,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
688
737
  _: 1
689
738
  })]),
690
739
  default: withCtx(() => [createTextVNode(function() {
691
- var _a, _b, _c;
740
+ var _a2, _b, _c;
692
741
  try {
693
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.243")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.243")) || "\u786E\u8BA4\u8981\u6062\u590D\u7CFB\u7EDF\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F";
742
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.243")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.243")) || "\u786E\u8BA4\u8981\u6062\u590D\u7CFB\u7EDF\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F";
694
743
  } catch (e) {
695
744
  return "\u786E\u8BA4\u8981\u6062\u590D\u7CFB\u7EDF\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F";
696
745
  }
@@ -703,9 +752,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
703
752
  onClick: onCancle
704
753
  }, {
705
754
  default: withCtx(() => [createTextVNode(function() {
706
- var _a, _b, _c;
755
+ var _a2, _b, _c;
707
756
  try {
708
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
757
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
709
758
  } catch (e) {
710
759
  return "\u53D6\u6D88";
711
760
  }
@@ -716,9 +765,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
716
765
  onClick: handleFieldSave
717
766
  }, {
718
767
  default: withCtx(() => [createTextVNode(function() {
719
- var _a, _b, _c;
768
+ var _a2, _b, _c;
720
769
  try {
721
- return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.244")) || "\u4FDD\u5B58";
770
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.244")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.244")) || "\u4FDD\u5B58";
722
771
  } catch (e) {
723
772
  return "\u4FDD\u5B58";
724
773
  }
@@ -144,13 +144,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
144
144
  return list.filter((tabItem) => props.showTabNames.includes(tabItem.name));
145
145
  });
146
146
  function onSave() {
147
- var _a, _b, _c, _d, _e;
147
+ var _a, _b, _c, _d, _e, _f;
148
148
  emit("save", {
149
149
  tableFields: (_a = setRefs["field"]) == null ? void 0 : _a.getTableFields(),
150
150
  tableFieldColors: (_b = setRefs["fieldColor"]) == null ? void 0 : _b.getTableFields(),
151
151
  tableHighlightRows: (_c = setRefs["highlightRow"]) == null ? void 0 : _c.getTableFields(),
152
152
  tableStyle: (_d = setRefs["tableStyle"]) == null ? void 0 : _d.getTableFields(),
153
- tableFilters: (_e = setRefs["fieldFilter"]) == null ? void 0 : _e.getTableFields()
153
+ tableFilters: (_e = setRefs["fieldFilter"]) == null ? void 0 : _e.getTableFields(),
154
+ ...(_f = setRefs["field"]) == null ? void 0 : _f.getTableConfig()
154
155
  });
155
156
  }
156
157
  function setRef(e, id) {
@@ -161,7 +162,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
161
162
  return (_a = setRefs[type || "field"]) == null ? void 0 : _a.getTableFields();
162
163
  }
163
164
  expose({
164
- getTableFields
165
+ getTableFields,
166
+ getTableConfig() {
167
+ var _a, _b;
168
+ return (_b = (_a = setRefs["field"]) == null ? void 0 : _a.getTableConfig()) == null ? void 0 : _b.tableConfig;
169
+ }
165
170
  });
166
171
  return (_ctx, _cache) => {
167
172
  return unref(dataLength) > 0 ? (openBlock(), createElementBlock("div", {
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, reactive, watch, openBlock, createElementBlock, createElementVNode, createVNode, unref, Fragment, renderList, toDisplayString, normalizeClass, withDirectives, vShow, withCtx, createTextVNode } from 'vue';
1
+ import { defineComponent, ref, reactive, watch, openBlock, createElementBlock, createElementVNode, createVNode, unref, Fragment, renderList, toDisplayString, normalizeClass, withDirectives, vShow, withCtx, createTextVNode, toRaw } from 'vue';
2
2
  import { NSwitch, NIcon, NButton } from 'naive-ui';
3
3
  import { CheckmarkCircle } from '@vicons/ionicons5';
4
4
  import style1 from '../../../shared/assets/img/table_style_1.png.js';
@@ -112,7 +112,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
112
112
  emit("save");
113
113
  }
114
114
  function getTableFields() {
115
- return tableStyle;
115
+ return toRaw(tableStyle);
116
116
  }
117
117
  watch(() => props.tableStyleConfig, (config) => {
118
118
  const {
@@ -383,11 +383,11 @@ declare const _default: import("vue").DefineComponent<{
383
383
  }>;
384
384
  developMode: boolean;
385
385
  draggable: boolean;
386
- isHighlightRow: boolean;
387
- idx: number;
388
- isHighlight: boolean;
389
- isFieldSet: boolean;
390
386
  fieldDescribeMode: "column" | "tooltip";
387
+ isFieldSet: boolean;
391
388
  hideExpressionOption: AnyObject[];
389
+ idx: number;
390
+ isHighlight: boolean;
391
+ isHighlightRow: boolean;
392
392
  }>;
393
393
  export default _default;
@@ -45,7 +45,7 @@ export declare const COLOR_MAP: Readonly<{
45
45
  '#C163FF': "紫色";
46
46
  '#DB0000': "红色";
47
47
  }>;
48
- export declare const InjectionFieldList: InjectionKey<AnyObject[]>;
48
+ export declare const InjectionFieldList: InjectionKey<AnyObject[] | undefined>;
49
49
  type WordbookOption = {
50
50
  label: string;
51
51
  value: string;
@@ -28,6 +28,7 @@ export type FieldSetColumnItem = {
28
28
  isHeadCheckHide?: boolean;
29
29
  isShow?: boolean;
30
30
  contentRender?: (column: AnyObject, row: AnyObject) => VNodeChild;
31
+ titleRender?: (column: AnyObject) => VNodeChild;
31
32
  hide?: boolean;
32
33
  positionField?: string;
33
34
  [key: string]: any;
@@ -1 +1 @@
1
- .c-field-set{height:100%;width:100%}.c-field-set__color-picker .n-color-picker-trigger__value{display:none}.c-field-set .n-tabs{height:100%}.c-field-set .n-tabs .n-tab-pane{flex:1;overflow:auto}.c-field-set .main-wrapper{box-sizing:border-box;display:flex;flex-flow:column nowrap;height:100%;width:100%}.c-field-set .main-wrapper__search-wrapper.n-input{margin-bottom:12px;width:50%}.c-field-set .main-wrapper .item{background:#fff}.c-field-set .main-wrapper .item:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .main-wrapper .item:focus{background-color:#f2f2f2}.c-field-set .main-wrapper .item.disabled{cursor:not-allowed}.c-field-set .main-wrapper .item .row{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:var(--row-height);padding:8px 0}.c-field-set .main-wrapper .table-cell{word-wrap:break-word;box-sizing:border-box;color:inherit;display:inline-block;padding:0 5px}.c-field-set .main-wrapper .table-cell>.n-button{margin-right:5px}.c-field-set .main-wrapper .table-cell>.n-button:last-child{margin-right:0}.c-field-set .main-wrapper .table-cell .highlight{background-color:var(--primary-color);color:#fff}.c-field-set .main-wrapper .table-cell .c-field-set__color-picker{display:block}.c-field-set .main-wrapper__table{box-sizing:border-box;display:flex;flex:1;flex-flow:column nowrap;min-height:0;overflow:auto;width:100%}.c-field-set .main-wrapper__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;flex:0 0 52px;position:sticky;top:0;z-index:1}.c-field-set .main-wrapper__table-header .n-checkbox.n-checkbox--disabled .n-checkbox__label{color:var(--n-text-color)}.c-field-set .main-wrapper__table-header .table-cell{align-items:center;background:#f2f2f4;display:flex;height:100%}.c-field-set .main-wrapper__table-body{flex:1}.c-field-set .main-wrapper__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}.c-field-set .main-wrapper .set-item{padding:10px 0}.c-field-set .main-wrapper .set-item.table-item{border-top:1px solid #e8e8e8;width:50%}.c-field-set .main-wrapper .set-item.table-item h4{font-size:16px;font-weight:400;margin-bottom:12px}.c-field-set .main-wrapper .set-item.table-item .table-style{background:#e5e5e5;border:2px solid #cfcfcf;border-radius:4px;cursor:pointer;margin-bottom:10px;padding:20px 0 0}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg{background:#fff;border-radius:5px;margin:0 20px 20px;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg img{width:100%}.c-field-set .main-wrapper .set-item.table-item .table-style__desc{align-items:center;background:#fff;display:flex;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .n-icon{color:var(--c-primary-color);font-size:20px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .circle{border:1px solid #d5d5d5;border-radius:50%;display:inline-block;height:18px;width:18px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc span{margin-left:5px}.c-field-set .main-wrapper .set-item.table-item .table-style.active{background:#e2ebfa;border:2px solid var(--c-primary-color)}.c-field-set__color-block{display:inline-block;margin-left:20px;position:relative}.c-field-set__color-block:before{background-color:var(--color);border-radius:2px;content:"";height:14px;left:-20px;position:absolute;top:3px;width:14px}.c-field-set__space{width:100%}.c-field-set__space>div:first-child{width:80%}.c-field-set__space .filter-btn{color:var(--c-primary-color);cursor:pointer}.c-field-set__condition .condition-wrapper__item{align-items:center;display:flex;margin-top:10px}.c-field-set__condition .condition-wrapper__item .item-index{margin-right:10px}.c-field-set__condition .condition-wrapper__item>.n-date-picker,.c-field-set__condition .condition-wrapper__item>.n-input,.c-field-set__condition .condition-wrapper__item>.n-input-number,.c-field-set__condition .condition-wrapper__item>.n-select{margin-right:10px;width:20%}.c-field-set__condition .sql-expression-wrapper{margin-top:10px}
1
+ .c-field-set{height:100%;width:100%}.c-field-set__color-picker .n-color-picker-trigger__value{display:none}.c-field-set .n-tabs{height:100%}.c-field-set .n-tabs .n-tab-pane{flex:1;overflow:auto}.c-field-set .main-wrapper{box-sizing:border-box;display:flex;flex-flow:column nowrap;height:100%;width:100%}.c-field-set .main-wrapper__search-wrapper.n-input{margin-bottom:12px;width:50%}.c-field-set .main-wrapper .item{background:#fff}.c-field-set .main-wrapper .item:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .main-wrapper .item:focus{background-color:#f2f2f2}.c-field-set .main-wrapper .item.disabled{cursor:not-allowed}.c-field-set .main-wrapper .item .row{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:var(--row-height);padding:8px 0}.c-field-set .main-wrapper .table-cell{word-wrap:break-word;box-sizing:border-box;color:inherit;display:inline-block;padding:0 5px}.c-field-set .main-wrapper .table-cell>.n-button{margin-right:5px}.c-field-set .main-wrapper .table-cell>.n-button:last-child{margin-right:0}.c-field-set .main-wrapper .table-cell .highlight{background-color:var(--primary-color);color:#fff}.c-field-set .main-wrapper .table-cell .c-field-set__color-picker{display:block}.c-field-set .main-wrapper__table{box-sizing:border-box;display:flex;flex:1;flex-flow:column nowrap;min-height:0;overflow:auto;width:100%}.c-field-set .main-wrapper__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;flex:0 0 52px;position:sticky;top:0;z-index:1}.c-field-set .main-wrapper__table-header .n-checkbox.n-checkbox--disabled .n-checkbox__label{color:var(--n-text-color)}.c-field-set .main-wrapper__table-header .table-cell{align-items:center;background:#f2f2f4;display:flex;height:100%}.c-field-set .main-wrapper__table-body{flex:1}.c-field-set .main-wrapper__other-config{padding:10px 0}.c-field-set .main-wrapper__other-config .item{align-items:center;display:flex}.c-field-set .main-wrapper__other-config .item .label{margin-right:10px}.c-field-set .main-wrapper__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}.c-field-set .main-wrapper .set-item{padding:10px 0}.c-field-set .main-wrapper .set-item.table-item{border-top:1px solid #e8e8e8;width:50%}.c-field-set .main-wrapper .set-item.table-item h4{font-size:16px;font-weight:400;margin-bottom:12px}.c-field-set .main-wrapper .set-item.table-item .table-style{background:#e5e5e5;border:2px solid #cfcfcf;border-radius:4px;cursor:pointer;margin-bottom:10px;padding:20px 0 0}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg{background:#fff;border-radius:5px;margin:0 20px 20px;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg img{width:100%}.c-field-set .main-wrapper .set-item.table-item .table-style__desc{align-items:center;background:#fff;display:flex;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .n-icon{color:var(--c-primary-color);font-size:20px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .circle{border:1px solid #d5d5d5;border-radius:50%;display:inline-block;height:18px;width:18px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc span{margin-left:5px}.c-field-set .main-wrapper .set-item.table-item .table-style.active{background:#e2ebfa;border:2px solid var(--c-primary-color)}.c-field-set__color-block{display:inline-block;margin-left:20px;position:relative}.c-field-set__color-block:before{background-color:var(--color);border-radius:2px;content:"";height:14px;left:-20px;position:absolute;top:3px;width:14px}.c-field-set__space{width:100%}.c-field-set__space>div:first-child{width:80%}.c-field-set__space .filter-btn{color:var(--c-primary-color);cursor:pointer}.c-field-set__condition .condition-wrapper__item{align-items:center;display:flex;margin-top:10px}.c-field-set__condition .condition-wrapper__item .item-index{margin-right:10px}.c-field-set__condition .condition-wrapper__item>.n-date-picker,.c-field-set__condition .condition-wrapper__item>.n-input,.c-field-set__condition .condition-wrapper__item>.n-input-number,.c-field-set__condition .condition-wrapper__item>.n-select{margin-right:10px;width:20%}.c-field-set__condition .sql-expression-wrapper{margin-top:10px}