cnhis-design-vue 3.4.0-beta.22 → 3.4.0-beta.24

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 (24) hide show
  1. package/README.md +87 -87
  2. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  3. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  4. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  5. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  6. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  7. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  8. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  9. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +25 -0
  10. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
  11. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
  12. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  13. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  14. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  15. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
  16. package/es/components/table-export-field/index.d.ts +4 -1
  17. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
  18. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +0 -1
  19. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +18 -33
  20. package/es/components/table-export-field/src/index.vue.d.ts +4 -1
  21. package/es/components/table-export-field/src/types/index.d.ts +1 -0
  22. package/es/env.d.ts +25 -25
  23. package/es/shared/package.json.js +1 -1
  24. package/package.json +2 -2
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -553,9 +553,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
553
553
  hide: boolean;
554
554
  }>;
555
555
  draggable: boolean;
556
+ isHighlightRow: boolean;
556
557
  idx: number;
557
558
  isHighlight: boolean;
558
- isHighlightRow: boolean;
559
559
  isFieldSet: boolean;
560
560
  fieldDescribeMode: "column" | "tooltip";
561
561
  hideExpressionOption: AnyObject[];
@@ -594,9 +594,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
594
594
  hide: boolean;
595
595
  }>;
596
596
  draggable: boolean;
597
+ isHighlightRow: boolean;
597
598
  idx: number;
598
599
  isHighlight: boolean;
599
- isHighlightRow: boolean;
600
600
  isFieldSet: boolean;
601
601
  fieldDescribeMode: "column" | "tooltip";
602
602
  hideExpressionOption: AnyObject[];
@@ -773,9 +773,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
773
773
  hide: boolean;
774
774
  }>;
775
775
  draggable: boolean;
776
+ isHighlightRow: boolean;
776
777
  idx: number;
777
778
  isHighlight: boolean;
778
- isHighlightRow: boolean;
779
779
  isFieldSet: boolean;
780
780
  fieldDescribeMode: "column" | "tooltip";
781
781
  hideExpressionOption: AnyObject[];
@@ -384,9 +384,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
384
384
  hide: boolean;
385
385
  }>;
386
386
  draggable: boolean;
387
+ isHighlightRow: boolean;
387
388
  idx: number;
388
389
  isHighlight: boolean;
389
- isHighlightRow: boolean;
390
390
  isFieldSet: boolean;
391
391
  fieldDescribeMode: "column" | "tooltip";
392
392
  hideExpressionOption: AnyObject[];
@@ -601,7 +601,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
601
601
  }, {
602
602
  default: withCtx(() => [!unref(isAudioOrVideoMessage)(item.content) ? (openBlock(), createElementBlock(Fragment, {
603
603
  key: 0
604
- }, [createCommentVNode(' <n-button\r\n quaternary\r\n size="tiny"\r\n @click="(event: MouseEvent) => handleSelectLabel(event, item.id)"\r\n >\r\n <template #icon>\r\n <n-icon size="17" :component="HappyOutline" />\r\n </template>\r\n </n-button> '), createVNode(unref(NButton), {
604
+ }, [createCommentVNode(' <n-button\n quaternary\n size="tiny"\n @click="(event: MouseEvent) => handleSelectLabel(event, item.id)"\n >\n <template #icon>\n <n-icon size="17" :component="HappyOutline" />\n </template>\n </n-button> '), createVNode(unref(NButton), {
605
605
  quaternary: "",
606
606
  size: "tiny",
607
607
  onClick: () => setReferenceMsg(item)
@@ -170,7 +170,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
170
170
  round: "",
171
171
  size: 100,
172
172
  onClickCapture: _cache[0] || (_cache[0] = ($event) => showLargeAvatar.value = true)
173
- }, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\r\n <n-upload-trigger #="{ handleClick }" abstract>\r\n <n-button\r\n circle\r\n secondary\r\n class="edit-avatar"\r\n v-show="userDetail.id === state.userInfo.id"\r\n @click="handleClick"\r\n >\r\n <template #icon>\r\n <n-icon size="16" color="#666666" :component="Camera" />\r\n </template>\r\n </n-button>\r\n </n-upload-trigger>\r\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
173
+ }, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\n <n-upload-trigger #="{ handleClick }" abstract>\n <n-button\n circle\n secondary\n class="edit-avatar"\n v-show="userDetail.id === state.userInfo.id"\n @click="handleClick"\n >\n <template #icon>\n <n-icon size="16" color="#666666" :component="Camera" />\n </template>\n </n-button>\n </n-upload-trigger>\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
174
174
  class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(userDetail.roleInfo) ? "isDoctor" : ""])
175
175
  }, toDisplayString(unref(getRoleName)(userDetail.roleInfo)), 3), [[vShow, unref(getRoleName)(userDetail.roleInfo)]])]), createElementVNode("p", null, toDisplayString(userDetail.orgName), 1)]), createVNode(unref(NButton), {
176
176
  strong: "",
@@ -39,7 +39,7 @@ function dateRendererPlugin() {
39
39
  });
40
40
  },
41
41
  apply(hooks) {
42
- useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.DATE, ".n-input__input-el", {
42
+ useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.DATE, ".n-input__input-el", {
43
43
  after: (fieldItem) => {
44
44
  Reflect.set(fieldItem.editRender, "autoselect", true);
45
45
  return fieldItem;
@@ -4,6 +4,31 @@ function useAutoFocus(hooks) {
4
4
  after,
5
5
  focusType = "function"
6
6
  } = {}) {
7
+ hooks.fieldHooks.field.tap(pluginName, (fieldItem) => {
8
+ var _a;
9
+ function createAutoFocusFn(selector2) {
10
+ const autofocusFn = ({ cell } = {}) => {
11
+ var _a2;
12
+ const ele = cell && cell.querySelector(selector2);
13
+ ele && (ele.click(), (_a2 = ele.focus) == null ? void 0 : _a2.call(ele));
14
+ return ele;
15
+ };
16
+ autofocusFn.toString = () => selector2;
17
+ return autofocusFn;
18
+ }
19
+ if (((_a = fieldItem.editRender) == null ? void 0 : _a.name) === type) {
20
+ fieldItem = before ? before(fieldItem) : fieldItem;
21
+ if (fieldItem.editRender && !Reflect.has(fieldItem.editRender, "autofocus")) {
22
+ Reflect.set(
23
+ fieldItem.editRender,
24
+ "autofocus",
25
+ focusType === "class" ? selector : focusType === "function" ? createAutoFocusFn(selector) : void 0
26
+ );
27
+ }
28
+ return after ? after(fieldItem) : fieldItem;
29
+ }
30
+ return fieldItem;
31
+ });
7
32
  }
8
33
  return { bindAutoFocusConfig };
9
34
  }
@@ -97,7 +97,7 @@ function inputRendererPlugin() {
97
97
  });
98
98
  },
99
99
  apply(hooks) {
100
- useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.INPUT, ".n-input__input-el,.n-input__textarea-el", {
100
+ useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.INPUT, ".n-input__input-el,.n-input__textarea-el", {
101
101
  focusType: "class"
102
102
  });
103
103
  }
@@ -81,7 +81,7 @@ function levelSearchCascadePlugin() {
81
81
  });
82
82
  },
83
83
  apply(hooks) {
84
- useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.LEVEL_SEARCH_CASCADE, "input");
84
+ useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.LEVEL_SEARCH_CASCADE, "input");
85
85
  }
86
86
  });
87
87
  }
@@ -93,7 +93,7 @@ function numberRendererPlugin() {
93
93
  });
94
94
  },
95
95
  apply(hooks) {
96
- useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.NUMBER, ".n-input__input-el", {
96
+ useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.NUMBER, ".n-input__input-el", {
97
97
  focusType: "class"
98
98
  });
99
99
  }
@@ -96,7 +96,7 @@ function selectRendererPlugin() {
96
96
  });
97
97
  },
98
98
  apply(hooks) {
99
- useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.SELECT, ".n-base-selection-input,.n-base-selection-tags");
99
+ useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.SELECT, ".n-base-selection-input,.n-base-selection-tags");
100
100
  hooks.fieldHooks.fieldList.tap(pluginName, (fieldList, {
101
101
  uuid
102
102
  }) => {
@@ -96,7 +96,7 @@ function separateRendererPlugins() {
96
96
  });
97
97
  },
98
98
  apply(hooks) {
99
- useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.SEPARATE, ".iho-table__separateText");
99
+ useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.SEPARATE, ".iho-table__separateText,.n-input__input-el,.n-input__textarea-el");
100
100
  hooks.eventHooks.onEditClosed.tap(pluginName, ({
101
101
  row,
102
102
  column,
@@ -36,7 +36,7 @@ function timeRendererPlugin() {
36
36
  });
37
37
  },
38
38
  apply(hooks) {
39
- useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.TIME, ".n-input__input-el", {
39
+ useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.TIME, ".n-input__input-el", {
40
40
  after: (fieldItem) => {
41
41
  Reflect.set(fieldItem.editRender, "autoselect", true);
42
42
  return fieldItem;
@@ -50,22 +50,26 @@ declare const TableExportField: SFCWithInstall<import("vue").DefineComponent<imp
50
50
  schemeName: string;
51
51
  fieldKeys: string[];
52
52
  updatedTime?: string | undefined;
53
+ exportPath?: string | undefined;
53
54
  }, import("./src/types").IExportSchemeType | {
54
55
  schemeId: string;
55
56
  schemeName: string;
56
57
  fieldKeys: string[];
57
58
  updatedTime?: string | undefined;
59
+ exportPath?: string | undefined;
58
60
  }>;
59
61
  programOptions: import("vue").Ref<{
60
62
  schemeId: string;
61
63
  schemeName: string;
62
64
  fieldKeys: string[];
63
65
  updatedTime?: string | undefined;
66
+ exportPath?: string | undefined;
64
67
  }[], import("./src/types").IExportSchemeType[] | {
65
68
  schemeId: string;
66
69
  schemeName: string;
67
70
  fieldKeys: string[];
68
71
  updatedTime?: string | undefined;
72
+ exportPath?: string | undefined;
69
73
  }[]>;
70
74
  downLoadFieldList: import("vue").Ref<any[], any[]>;
71
75
  showAllFieldList: import("vue").Ref<any[], any[]>;
@@ -371,7 +375,6 @@ declare const TableExportField: SFCWithInstall<import("vue").DefineComponent<imp
371
375
  selectProject: import("vue").Ref<any, any>;
372
376
  projectList: import("vue").Ref<any[], any[]>;
373
377
  exportApiConfig: import("../../shared/types").AnyObject;
374
- isHoEdge: import("vue").ComputedRef<any>;
375
378
  handleRadioChange: (value: string | number | boolean) => void;
376
379
  validateProjectName: () => boolean;
377
380
  getParams: () => {
@@ -116,6 +116,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
116
116
  lastUsedSchemeName: curOption ? curOption.schemeName : "",
117
117
  schemeId: curOption ? curOption.schemeId : "",
118
118
  schemeName: curOption ? curOption.schemeName : "",
119
+ exportPath: (curOption == null ? void 0 : curOption.exportPath) || "",
119
120
  tableListId: props.tableListId
120
121
  };
121
122
  let res = await exportTableListScheme(params, exportApiConfig);
@@ -69,7 +69,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
69
69
  selectProject: import("vue").Ref<any, any>;
70
70
  projectList: import("vue").Ref<any[], any[]>;
71
71
  exportApiConfig: import("../../../../shared/types").AnyObject;
72
- isHoEdge: import("vue").ComputedRef<any>;
73
72
  handleRadioChange: (value: string | number | boolean) => void;
74
73
  validateProjectName: () => boolean;
75
74
  getParams: () => {
@@ -1,12 +1,11 @@
1
1
  import { i18n } from '../../../../_virtual/_virtual_i18n-methods.js';
2
- import { defineComponent, ref, reactive, inject, computed, watch, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, createTextVNode, createElementBlock, Fragment, renderList, toDisplayString, createCommentVNode } from 'vue';
2
+ import { defineComponent, ref, reactive, inject, watch, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, createTextVNode, createElementBlock, Fragment, renderList, toDisplayString } from 'vue';
3
3
  import { useMessage, NModal, NCard, NIcon, NButton, NRadioGroup, NRadio, NForm, NFormItem, NInput } from 'naive-ui';
4
4
  import { CloseOutline } from '@vicons/ionicons5';
5
5
  import { InjectionExportApiConfig } from '../constants/index.js';
6
6
  import useAsyncData from '../hooks/useAsyncData.js';
7
7
  import { dragFieldCheckList } from '../tool.js';
8
8
  import { cloneDeep } from 'lodash-es';
9
- import { hoEdge } from '../../../../shared/utils/ho-edge.js';
10
9
 
11
10
  const _hoisted_1 = {
12
11
  class: "svg-wrap"
@@ -17,6 +16,13 @@ const _hoisted_2 = {
17
16
  const _hoisted_3 = {
18
17
  class: "save-project-content"
19
18
  };
19
+ const _hoisted_4 = {
20
+ style: {
21
+ "width": "100%",
22
+ "display": "flex",
23
+ "flex-direction": "column"
24
+ }
25
+ };
20
26
  const defaultKey = "default";
21
27
  var _sfc_main = /* @__PURE__ */ defineComponent({
22
28
  __name: "SaveProjectModal",
@@ -74,10 +80,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
74
80
  const selectProject = ref();
75
81
  const projectList = ref([]);
76
82
  const exportApiConfig = inject(InjectionExportApiConfig);
77
- const isHoEdge = computed(() => {
78
- var _a;
79
- return (_a = hoEdge) == null ? void 0 : _a.webview;
80
- });
81
83
  function handleRadioChange(value) {
82
84
  selectProject.value = value;
83
85
  }
@@ -128,18 +130,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
128
130
  if (validateProjectName()) {
129
131
  return;
130
132
  }
131
- const exportPath = formValue.exportPath.trim();
132
- const {
133
- schemeId
134
- } = props.curProgram;
135
- const hoEdgeParams = {
136
- "exec": "saveconf",
137
- "data": {
138
- "key": selectProject.value === "updateProject" ? schemeId : `${defaultKey}_schemeId`,
139
- "value": exportPath
140
- }
141
- };
142
- await hoEdge.postMsg(hoEdgeParams);
143
133
  const params = getParams();
144
134
  let res = await saveTableListExportScheme(params, exportApiConfig);
145
135
  if (res) {
@@ -156,6 +146,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
156
146
  watch(() => props.visible, async (isShow) => {
157
147
  if (isShow) {
158
148
  const program = props.curProgram;
149
+ formValue.exportPath = (program == null ? void 0 : program.exportPath) || "";
159
150
  switch (program.schemeId) {
160
151
  case defaultKey:
161
152
  projectList.value = modeList.filter((mode) => mode.value === "addProject");
@@ -168,16 +159,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
168
159
  formValue.projectName = program.schemeName;
169
160
  break;
170
161
  }
171
- const hoEdgeParams = {
172
- "exec": "getconf",
173
- "data": {
174
- "key": selectProject.value === "updateProject" ? program.schemeId : `${defaultKey}_schemeId`
175
- }
176
- };
177
- const getHoEdgeData = await hoEdge.postMsg(hoEdgeParams);
178
- if (getHoEdgeData == null ? void 0 : getHoEdgeData.result) {
179
- formValue.exportPath = (getHoEdgeData == null ? void 0 : getHoEdgeData.res) || "";
180
- }
181
162
  }
182
163
  }, {
183
164
  immediate: true
@@ -253,19 +234,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
253
234
  maxlength: "100"
254
235
  }, null, 8, ["value"])]),
255
236
  _: 1
256
- }), isHoEdge.value ? (openBlock(), createBlock(unref(NFormItem), {
257
- key: 0,
237
+ }), createVNode(unref(NFormItem), {
258
238
  label: i18n("10010.1.683", "\u5BFC\u51FA\u8DEF\u5F84"),
259
239
  path: "exportPath"
260
240
  }, {
261
- default: withCtx(() => [createVNode(unref(NInput), {
241
+ default: withCtx(() => [createElementVNode("div", _hoisted_4, [createVNode(unref(NInput), {
262
242
  value: formValue.exportPath,
263
243
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => formValue.exportPath = $event),
264
244
  placeholder: i18n("10010.1.684", "\u8BF7\u8F93\u5165\u5BFC\u51FA\u8DEF\u5F84"),
265
245
  clearable: ""
266
- }, null, 8, ["value"])]),
246
+ }, null, 8, ["value"]), _cache[5] || (_cache[5] = createElementVNode("span", {
247
+ style: {
248
+ "margin-top": "3px",
249
+ "color": "#d03050"
250
+ }
251
+ }, "\u5F53\u524D\u914D\u7F6E\u4EC5\u7528\u4E8E\u5C01\u88C5\u6D4F\u89C8\u5668", -1))])]),
267
252
  _: 1
268
- })) : createCommentVNode("v-if", true)]),
253
+ })]),
269
254
  _: 1
270
255
  }, 8, ["model"])])]),
271
256
  _: 1
@@ -51,22 +51,26 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
51
51
  schemeName: string;
52
52
  fieldKeys: string[];
53
53
  updatedTime?: string | undefined;
54
+ exportPath?: string | undefined;
54
55
  }, IExportSchemeType | {
55
56
  schemeId: string;
56
57
  schemeName: string;
57
58
  fieldKeys: string[];
58
59
  updatedTime?: string | undefined;
60
+ exportPath?: string | undefined;
59
61
  }>;
60
62
  programOptions: import("vue").Ref<{
61
63
  schemeId: string;
62
64
  schemeName: string;
63
65
  fieldKeys: string[];
64
66
  updatedTime?: string | undefined;
67
+ exportPath?: string | undefined;
65
68
  }[], IExportSchemeType[] | {
66
69
  schemeId: string;
67
70
  schemeName: string;
68
71
  fieldKeys: string[];
69
72
  updatedTime?: string | undefined;
73
+ exportPath?: string | undefined;
70
74
  }[]>;
71
75
  downLoadFieldList: import("vue").Ref<any[], any[]>;
72
76
  showAllFieldList: import("vue").Ref<any[], any[]>;
@@ -372,7 +376,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
372
376
  selectProject: import("vue").Ref<any, any>;
373
377
  projectList: import("vue").Ref<any[], any[]>;
374
378
  exportApiConfig: import("../../../shared/types").AnyObject;
375
- isHoEdge: import("vue").ComputedRef<any>;
376
379
  handleRadioChange: (value: string | number | boolean) => void;
377
380
  validateProjectName: () => boolean;
378
381
  getParams: () => {
@@ -3,4 +3,5 @@ export type IExportSchemeType = {
3
3
  schemeName: string;
4
4
  fieldKeys: string[];
5
5
  updatedTime?: string;
6
+ exportPath?: string;
6
7
  };
package/es/env.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- /// <reference types="vite/client" />
2
-
3
- interface ImportMetaEnv {
4
- readonly VITE_APP_TYPE: string;
5
- // 更多环境变量...
6
- }
7
-
8
- interface ImportMeta {
9
- readonly env: ImportMetaEnv;
10
- }
11
-
12
- declare module '*.vue' {
13
- // @ts-ignore
14
- import type { App, defineComponent } from 'vue';
15
- // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
- // // const component: DefineComponent<{}, {}, any>
17
- const component: ReturnType<typeof defineComponent> & {
18
- install(app: App): void;
19
- };
20
- // @ts-ignore
21
- export default component;
22
- }
23
-
24
- declare module '*.js';
25
-
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ImportMetaEnv {
4
+ readonly VITE_APP_TYPE: string;
5
+ // 更多环境变量...
6
+ }
7
+
8
+ interface ImportMeta {
9
+ readonly env: ImportMetaEnv;
10
+ }
11
+
12
+ declare module '*.vue' {
13
+ // @ts-ignore
14
+ import type { App, defineComponent } from 'vue';
15
+ // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
+ // // const component: DefineComponent<{}, {}, any>
17
+ const component: ReturnType<typeof defineComponent> & {
18
+ install(app: App): void;
19
+ };
20
+ // @ts-ignore
21
+ export default component;
22
+ }
23
+
24
+ declare module '*.js';
25
+
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.4.0-beta.22";
2
+ var version = "3.4.0-beta.24";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.4.0-beta.22",
3
+ "version": "3.4.0-beta.24",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -73,5 +73,5 @@
73
73
  "iOS 7",
74
74
  "last 3 iOS versions"
75
75
  ],
76
- "gitHead": "10bb1fa64ad98cbec8b8fdfbdbca6b4ed52dd771"
76
+ "gitHead": "f487bb4dea0c9ebe6a9f0965fea2e32eae425c8d"
77
77
  }