cnhis-design-vue 3.3.3-beta.7 → 3.3.3-release.12
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/components/audio-sdk/index.d.ts +18 -16
- package/es/components/audio-sdk/src/Index.vue.d.ts +18 -16
- package/es/components/audio-sdk/src/Index.vue2.js +40 -5
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +6 -6
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +6 -6
- package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
- package/es/components/base-search/index.d.ts +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/big-table/src/components/NoData.vue2.js +8 -1
- package/es/components/big-table/src/hooks/useTableParse.js +8 -1
- package/es/components/button-print/index.d.ts +7 -2
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +10 -3
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +105 -11
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +5 -2
- package/es/components/button-print/src/utils/print.d.ts +1 -1
- package/es/components/button-print/src/utils/print.js +7 -3
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +18 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
- package/es/components/classification/index.d.ts +56 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +56 -6
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +56 -6
- package/es/components/classification/src/index.vue.d.ts +56 -6
- package/es/components/date-picker/src/DatePicker.vue2.js +8 -1
- package/es/components/expand-field/index.d.ts +792 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue2.js +8 -1
- package/es/components/expand-field/src/index.vue.d.ts +792 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -1
- package/es/components/field-editor/index.d.ts +18 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +18 -0
- package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
- package/es/components/field-editor/src/fields.d.ts +1 -0
- package/es/components/field-editor/src/fields.js +6 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +6 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +6 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +38 -1
- package/es/components/field-set/src/FieldSet.vue2.js +118 -69
- package/es/components/field-set/src/Index.vue2.js +8 -3
- package/es/components/field-set/src/TableStyle.vue2.js +2 -2
- package/es/components/field-set/src/components/table-row.vue.d.ts +2 -1
- package/es/components/field-set/src/components/table-row.vue2.js +21 -6
- package/es/components/field-set/src/constants/index.d.ts +1 -1
- package/es/components/field-set/src/types/index.d.ts +2 -0
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +102 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +102 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +18 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +63 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +4 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +18 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +9 -2
- package/es/components/form-config/src/constants/index.d.ts +31 -1
- package/es/components/form-config/src/constants/index.js +150 -1
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -2
- package/es/components/form-config/src/hooks/useConfigurationField.js +53 -6
- package/es/components/form-config/src/hooks/useLocale.d.ts +6 -0
- package/es/components/form-config/src/hooks/useLocale.js +34 -0
- package/es/components/form-config/src/types/index.d.ts +12 -0
- package/es/components/form-render/index.d.ts +18 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +18 -0
- package/es/components/form-render/src/FormRender.vue2.js +5 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +17 -3
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +4 -2
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/searchCascade.js +3 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
- package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +5 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFieldNormalize.js +15 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +2 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/business.d.ts +3 -1
- package/es/components/form-render/src/utils/business.js +7 -1
- package/es/components/iho-chat/index.d.ts +861 -49
- package/es/components/iho-chat/src/Index.vue.d.ts +861 -49
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +181 -8
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +51 -41
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +66 -6
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +154 -57
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +329 -15
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +21 -19
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +235 -20
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +298 -279
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +51 -5
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +3 -3
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +48 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +34 -27
- package/es/components/iho-chat/src/components/ImageLightbox.vue.d.ts +104 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue.js +6 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +307 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +53 -6
- package/es/components/iho-chat/src/components/MessageMergeForward.vue2.js +3 -3
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +64 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +112 -53
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +24 -1
- package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
- package/es/components/iho-chat/src/hooks/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +51 -4
- package/es/components/iho-chat/src/hooks/useData.js +2 -7
- package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
- package/es/components/iho-chat/src/hooks/useDraggable.js +160 -0
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +24 -1
- package/es/components/iho-chat/src/types/index.d.ts +37 -1
- package/es/components/iho-chat/src/utils/emoji.d.ts +1 -1
- package/es/components/iho-chat/src/utils/emoji.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +3 -3
- package/es/components/iho-chat/src/utils/index.js +27 -39
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +8 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +5 -2
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +2 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +41 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +41 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +56 -22
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +19 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +18 -0
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
- package/es/components/quick-search/index.d.ts +2 -0
- package/es/components/quick-search/src/index.vue.d.ts +2 -0
- package/es/components/scale-view/index.d.ts +53 -3
- package/es/components/scale-view/src/ScaleView.vue.d.ts +56 -5
- package/es/components/scale-view/src/ScaleView.vue2.js +79 -4
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +3 -0
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +26 -2
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +3 -0
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +27 -6
- package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
- package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
- package/es/components/scale-view/src/components/ScaleScore.js +45 -3
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +16 -2
- package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
- package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
- package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +18 -3
- package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
- package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +8 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +8 -0
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
- package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
- package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
- package/es/components/scale-view/src/hooks/use-noData.js +33 -5
- package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
- package/es/components/scale-view/src/utils/judge-types.js +10 -10
- package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
- package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
- package/es/components/select-person/index.d.ts +792 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +433 -273
- package/es/components/select-person/src/SelectPerson.vue.js +6 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +788 -0
- package/es/components/select-person/src/SelectPersonRole.vue.js +2 -2
- package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
- package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
- package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
- package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
- package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
- package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
- package/es/components/select-person/src/components/TagItem.vue.js +6 -0
- package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
- package/es/components/select-person/src/index.vue.d.ts +793 -1
- package/es/components/select-person/src/index.vue2.js +21 -4
- package/es/components/select-person/src/types/index.d.ts +35 -0
- package/es/components/select-person/src/types/index.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +3 -0
- package/es/components/select-person/src/utils/index.js +25 -2
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +18 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +54 -6
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +26 -10
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -2
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +37 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +44 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +55 -6
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +6 -3
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +20 -3
- package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
- package/es/components/table-filter/src/tool/date.d.ts +3 -0
- package/es/components/table-filter/src/tool/date.js +139 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +11 -8
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +2 -1
- package/es/components/table-filter/src/types/index.d.ts +12 -0
- package/es/components/vod-chunk-upload/index.d.ts +3 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +1 -29
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +109 -11
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +15 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +72 -9
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +3 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +75 -9
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +3 -3
- package/es/shared/package.json.js +1 -1
- package/package.json +4 -3
@@ -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
|
152
|
+
var _a2, _b, _c;
|
131
153
|
try {
|
132
|
-
return ((
|
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
|
163
|
+
var _a2, _b, _c;
|
142
164
|
try {
|
143
|
-
return ((
|
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
|
177
|
+
var _a2, _b, _c;
|
156
178
|
try {
|
157
|
-
return ((
|
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
|
190
|
+
var _a2, _b, _c;
|
169
191
|
try {
|
170
|
-
return ((
|
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
|
203
|
+
var _a2, _b, _c;
|
182
204
|
try {
|
183
|
-
return ((
|
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
|
216
|
+
var _a2, _b, _c;
|
195
217
|
try {
|
196
|
-
return ((
|
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
|
229
|
+
var _a2, _b, _c;
|
208
230
|
try {
|
209
|
-
return ((
|
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
|
240
|
+
var _a2, _b, _c;
|
219
241
|
try {
|
220
|
-
return ((
|
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
|
251
|
+
var _a2, _b, _c;
|
230
252
|
try {
|
231
|
-
return ((
|
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
|
262
|
+
var _a2, _b, _c;
|
241
263
|
try {
|
242
|
-
return ((
|
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
|
273
|
+
var _a2, _b, _c;
|
252
274
|
try {
|
253
|
-
return ((
|
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
|
284
|
+
var _a2, _b, _c;
|
263
285
|
try {
|
264
|
-
return ((
|
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
|
296
|
+
var _a2, _b, _c;
|
275
297
|
try {
|
276
|
-
return ((
|
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
|
309
|
+
var _a2, _b, _c;
|
288
310
|
try {
|
289
|
-
return ((
|
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
|
322
|
+
var _a2, _b, _c;
|
301
323
|
try {
|
302
|
-
return ((
|
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
|
335
|
+
var _a2, _b, _c;
|
314
336
|
try {
|
315
|
-
return ((
|
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
|
327
|
-
return ((
|
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
|
368
|
-
if (!((
|
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
|
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((
|
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
|
463
|
-
if ((
|
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
|
481
|
-
return !!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
|
526
|
+
var _a2, _b;
|
499
527
|
columns.value = cloneDeep(defaultColumns);
|
500
|
-
if ((
|
528
|
+
if ((_a2 = props.showColumnNames) == null ? void 0 : _a2.length) {
|
501
529
|
columns.value = defaultColumns.filter((column) => {
|
502
|
-
var
|
503
|
-
return column.field === "title" || ((_b2 = (
|
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
|
550
|
+
var _a3, _b2, _c;
|
523
551
|
try {
|
524
|
-
return ((
|
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
|
564
|
+
var _a3, _b2, _c;
|
537
565
|
try {
|
538
|
-
return ((
|
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
|
565
|
-
return (
|
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
|
628
|
+
var _a2, _b, _c;
|
589
629
|
try {
|
590
|
-
return ((
|
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(),
|
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:
|
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),
|
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
|
730
|
+
var _a2, _b, _c;
|
682
731
|
try {
|
683
|
-
return ((
|
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
|
740
|
+
var _a2, _b, _c;
|
692
741
|
try {
|
693
|
-
return ((
|
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
|
755
|
+
var _a2, _b, _c;
|
707
756
|
try {
|
708
|
-
return ((
|
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
|
768
|
+
var _a2, _b, _c;
|
720
769
|
try {
|
721
|
-
return ((
|
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 {
|
@@ -205,12 +205,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
205
205
|
emit: (event: "edit" | "updateChecked", ...args: any[]) => void;
|
206
206
|
onRemove: () => void;
|
207
207
|
onEdit: (param?: AnyObject) => void;
|
208
|
+
prevFunc: (column: AnyObject) => any;
|
208
209
|
isRenderTooltip: (field: string) => any;
|
209
210
|
getTooltipContent: () => any;
|
210
211
|
getTextValue: (field: string) => any;
|
211
212
|
isMultiple: (field: string) => boolean;
|
212
213
|
isRender: (field: string) => boolean;
|
213
|
-
isShow: (
|
214
|
+
isShow: (column: AnyObject) => any;
|
214
215
|
showRelation: (field: string) => boolean;
|
215
216
|
getSortPriorityOptions: () => {
|
216
217
|
label: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createElementVNode, defineComponent, openBlock, createElementBlock, Fragment, renderList, normalizeStyle, unref, createBlock, withCtx, createVNode, createCommentVNode, toDisplayString, resolveDynamicComponent, normalizeClass, withDirectives, vShow, mergeProps, createTextVNode } from 'vue';
|
1
|
+
import { createElementVNode, defineComponent, openBlock, createElementBlock, Fragment, renderList, normalizeStyle, unref, createBlock, withCtx, createVNode, createCommentVNode, toDisplayString, resolveDynamicComponent, normalizeClass, withDirectives, vShow, mergeProps, createTextVNode, toRaw } from 'vue';
|
2
2
|
import { NTooltip, NIcon, NCheckbox, NPopover, NSpace, NSelect, NColorPicker, NInput, NInputNumber, NButton, NPopconfirm } from 'naive-ui';
|
3
3
|
import { setStyle, setColorInfo, isShowExplicitRequired, isDisable } from '../utils/index.js';
|
4
4
|
import { ReorderTwoOutline, HelpCircleOutline, CaretDownOutline, EyeOutline, CopyOutline, CreateOutline, TrashOutline } from '@vicons/ionicons5';
|
@@ -179,6 +179,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
179
179
|
...param
|
180
180
|
});
|
181
181
|
}
|
182
|
+
function prevFunc(column) {
|
183
|
+
const {
|
184
|
+
showPrevFn
|
185
|
+
} = column;
|
186
|
+
if (isFunction(showPrevFn))
|
187
|
+
return showPrevFn(toRaw(column), toRaw(props.element));
|
188
|
+
return true;
|
189
|
+
}
|
182
190
|
function isRenderTooltip(field) {
|
183
191
|
var _a;
|
184
192
|
return field === "title" && (props.fieldDescribeMode === "tooltip" && props.element.feildDescribe || props.developMode && ((_a = props.element.settingObj) == null ? void 0 : _a.fieldDescDev));
|
@@ -215,7 +223,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
215
223
|
return false;
|
216
224
|
return true;
|
217
225
|
}
|
218
|
-
function isShow(
|
226
|
+
function isShow(column) {
|
227
|
+
const {
|
228
|
+
field
|
229
|
+
} = column;
|
219
230
|
if (["explicitRequired", "defaultValue"].includes(field))
|
220
231
|
return isShowExplicitRequired(props.element);
|
221
232
|
if (["isSum", "isAvg"].includes(field))
|
@@ -327,6 +338,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
327
338
|
}
|
328
339
|
}
|
329
340
|
default:
|
341
|
+
if (isArray(column == null ? void 0 : column.options))
|
342
|
+
return column.options;
|
330
343
|
return [];
|
331
344
|
}
|
332
345
|
}
|
@@ -392,6 +405,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
392
405
|
class: "table-cell",
|
393
406
|
title: __props.element[column.field],
|
394
407
|
style: normalizeStyle(unref(setStyle)(column, index, __props.columnWidthProps))
|
408
|
+
}, [prevFunc(column) ? (openBlock(), createElementBlock(Fragment, {
|
409
|
+
key: 0
|
395
410
|
}, [column.type === "text" ? (openBlock(), createElementBlock(Fragment, {
|
396
411
|
key: 0
|
397
412
|
}, [index === 0 ? (openBlock(), createElementBlock(Fragment, {
|
@@ -434,7 +449,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
434
449
|
disabled: setDisabled(column),
|
435
450
|
checked: __props.element[column.field],
|
436
451
|
"onUpdate:checked": [($event) => __props.element[column.field] = $event, (checked) => onUpdateChecked(checked, column)]
|
437
|
-
}, null, 8, ["disabled", "checked", "onUpdate:checked"]), [[vShow, isShow(column
|
452
|
+
}, null, 8, ["disabled", "checked", "onUpdate:checked"]), [[vShow, isShow(column)]]), showRelation(column.field) ? (openBlock(), createBlock(unref(NPopover), {
|
438
453
|
key: 0,
|
439
454
|
placement: "right-start",
|
440
455
|
"show-arrow": false
|
@@ -474,7 +489,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
474
489
|
value: __props.element._defaultValue,
|
475
490
|
"onUpdate:value": [_cache[0] || (_cache[0] = ($event) => __props.element._defaultValue = $event), (value) => handleUpdateSelect(value, column)],
|
476
491
|
options: getOptions(column)
|
477
|
-
}), null, 16, ["multiple", "disabled", "value", "options", "onUpdate:value"])), [[vShow, isShow(column
|
492
|
+
}), null, 16, ["multiple", "disabled", "value", "options", "onUpdate:value"])), [[vShow, isShow(column)]]) : withDirectives((openBlock(), createBlock(unref(NSelect), mergeProps({
|
478
493
|
key: 1
|
479
494
|
}, selectProps(column.field), {
|
480
495
|
clearable: "",
|
@@ -483,7 +498,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
483
498
|
value: __props.element[column.field],
|
484
499
|
"onUpdate:value": [($event) => __props.element[column.field] = $event, (value) => handleUpdateSelect(value, column)],
|
485
500
|
options: getOptions(column)
|
486
|
-
}), null, 16, ["multiple", "disabled", "value", "onUpdate:value", "options"])), [[vShow, isShow(column
|
501
|
+
}), null, 16, ["multiple", "disabled", "value", "onUpdate:value", "options"])), [[vShow, isShow(column)]])], 64))], 64)) : createCommentVNode("v-if", true), column.type === "color" ? (openBlock(), createBlock(unref(NColorPicker), {
|
487
502
|
key: 3,
|
488
503
|
class: "c-field-set__color-picker",
|
489
504
|
clearable: "",
|
@@ -604,7 +619,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
604
619
|
}
|
605
620
|
}())]),
|
606
621
|
_: 1
|
607
|
-
})], 64))], 64)) : createCommentVNode("v-if", true)], 12, _hoisted_2)) : createCommentVNode("v-if", true)], 64);
|
622
|
+
})], 64))], 64)) : createCommentVNode("v-if", true)], 64)) : createCommentVNode("v-if", true)], 12, _hoisted_2)) : createCommentVNode("v-if", true)], 64);
|
608
623
|
}), 128))]);
|
609
624
|
};
|
610
625
|
}
|
@@ -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;
|