cnhis-design-vue 3.4.0-beta.27 → 3.4.0-beta.30
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/README.md +87 -87
- package/es/components/callback/src/components/render/popupMaps.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +33 -10
- package/es/components/field-editor/index.d.ts +1 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +1 -0
- package/es/components/form-config/index.d.ts +9 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +9 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +26 -21
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1 -0
- package/es/components/form-config/src/constants/index.d.ts +1 -0
- package/es/components/form-config/src/constants/index.js +1 -0
- package/es/components/form-config/src/hooks/useConfigurationField.js +12 -2
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- 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/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/info-header/index.d.ts +6 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +6 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- 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 +2 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
- package/es/components/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- 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
|
+
```
|
@@ -589,6 +589,7 @@ export declare const CallbackMaps: Map<string, {
|
|
589
589
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../components/form-render").FieldItem) => boolean | void);
|
590
590
|
autoExpand: boolean;
|
591
591
|
lowCodeReactions: import("../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
592
|
+
newLowCodeReactions: import("../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
592
593
|
linebarAutoHidden: boolean;
|
593
594
|
labelPlacementOverwrite: boolean;
|
594
595
|
bordered: string | boolean;
|
@@ -158,7 +158,10 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
158
158
|
});
|
159
159
|
}
|
160
160
|
}
|
161
|
-
const
|
161
|
+
const {
|
162
|
+
data,
|
163
|
+
otherLineData
|
164
|
+
} = getShadowData();
|
162
165
|
if (data.length > 0) {
|
163
166
|
removePulsePointLine(data);
|
164
167
|
}
|
@@ -189,6 +192,12 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
189
192
|
});
|
190
193
|
} else {
|
191
194
|
const finalData = getLineData(item);
|
195
|
+
if (finalData.length > 0) {
|
196
|
+
const otherFilters = otherLineData.filter(([[x1, _]]) => {
|
197
|
+
return item.some(([x]) => Math.trunc(x) === Math.trunc(x1));
|
198
|
+
});
|
199
|
+
finalData.push(...otherFilters);
|
200
|
+
}
|
192
201
|
finalData.forEach((_item) => {
|
193
202
|
const l = drawLine([...flatten(_item)], {
|
194
203
|
...style,
|
@@ -222,23 +231,30 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
222
231
|
}
|
223
232
|
function getShadowData() {
|
224
233
|
const data = [];
|
234
|
+
const otherLineData = [];
|
225
235
|
const pulsePoints = [];
|
226
236
|
const sames = [];
|
227
237
|
for (const item of shadowPointCache) {
|
228
238
|
pulsePoints.push(item[1]);
|
229
239
|
if (item[0] === SHADOWKEYS[0]) {
|
230
240
|
item[1].forEach((_item) => {
|
231
|
-
const someIndex = (shadowPointCache.get(SHADOWKEYS[1]) || []).findIndex((v) => v.left === _item.left);
|
232
|
-
someIndex > -1 && sames.push(
|
241
|
+
const someIndex = (shadowPointCache.get(SHADOWKEYS[1]) || []).findIndex((v) => v.left === _item.left || v.time === _item.time);
|
242
|
+
someIndex > -1 && sames.push({
|
243
|
+
time: _item.time,
|
244
|
+
left: _item.left
|
245
|
+
});
|
233
246
|
});
|
234
247
|
}
|
235
248
|
}
|
236
249
|
const [points1, points2] = pulsePoints;
|
237
250
|
let _arr1 = [];
|
238
251
|
let _arr2 = [];
|
239
|
-
sames.forEach((
|
240
|
-
|
241
|
-
|
252
|
+
sames.forEach(({
|
253
|
+
time,
|
254
|
+
left: left2
|
255
|
+
}) => {
|
256
|
+
const index1 = points1.findIndex((point) => point.left === left2 || point.time === time);
|
257
|
+
const index2 = points2.findIndex((point) => point.left === left2 || point.time === time);
|
242
258
|
const currentPoint1 = points1[index1];
|
243
259
|
const currentPoint2 = points2[index2];
|
244
260
|
const prevPoint1 = getPointWidthRightLine(points1[index1 - 1]);
|
@@ -246,7 +262,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
246
262
|
const prevPoint2 = getPointWidthRightLine(points2[index2 - 1]);
|
247
263
|
const nextPoint2 = points2[index2 + 1];
|
248
264
|
if (prevPoint1 && prevPoint2) {
|
249
|
-
if (prevPoint1.left !== prevPoint2.left) {
|
265
|
+
if (prevPoint1.left !== prevPoint2.left && prevPoint1.time !== prevPoint2.time) {
|
250
266
|
const maxPoint = Math.max(prevPoint1.left, prevPoint2.left);
|
251
267
|
_arr1.push(getXY([prevPoint1, prevPoint2].find((point) => point.left === maxPoint)));
|
252
268
|
}
|
@@ -274,7 +290,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
274
290
|
}
|
275
291
|
if (!currentPoint1.breakpoint && !currentPoint2.breakpoint) {
|
276
292
|
if (nextPoint1 && nextPoint2) {
|
277
|
-
if (nextPoint1.left !== nextPoint2.left) {
|
293
|
+
if (nextPoint1.left !== nextPoint2.left && nextPoint1.time !== nextPoint2.time) {
|
278
294
|
const minPoint = Math.min(nextPoint1.left, nextPoint2.left);
|
279
295
|
_arr1.push(getXY([nextPoint1, nextPoint2].find((point) => point.left === minPoint)));
|
280
296
|
setData();
|
@@ -289,8 +305,14 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
289
305
|
setData();
|
290
306
|
}
|
291
307
|
}
|
308
|
+
if (currentPoint1.time === currentPoint2.time && currentPoint1.left != currentPoint2.left && currentPoint1.top != currentPoint2.top) {
|
309
|
+
otherLineData.push([getXY(currentPoint1), getXY(currentPoint2)]);
|
310
|
+
}
|
292
311
|
});
|
293
|
-
return
|
312
|
+
return {
|
313
|
+
data,
|
314
|
+
otherLineData
|
315
|
+
};
|
294
316
|
}
|
295
317
|
function setCanvasEvent() {
|
296
318
|
canvas.value.on("mouse:up", (event2) => {
|
@@ -477,7 +499,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
477
499
|
let nextDoublePointsX2 = null;
|
478
500
|
const getData = (data) => {
|
479
501
|
return data.map((point, index, arr) => {
|
480
|
-
var _a2, _b;
|
502
|
+
var _a2, _b, _c, _d;
|
481
503
|
const nextPoint = arr[index + 1];
|
482
504
|
if (nextPoint && getFloorNumber(point.left, 1) === getFloorNumber(nextPoint.left, 1)) {
|
483
505
|
const pointOriginX = point.left - xCellWidth / 2;
|
@@ -493,6 +515,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
493
515
|
nextDoublePointsX2 = null;
|
494
516
|
}
|
495
517
|
return {
|
518
|
+
time: (_d = (_c = point.origin) == null ? void 0 : _c.data) == null ? void 0 : _d.time,
|
496
519
|
left: point.left,
|
497
520
|
top: point.top,
|
498
521
|
breakpoint: !point.rightLine
|
@@ -593,6 +593,7 @@ declare const FieldEditor: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
593
593
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
594
594
|
autoExpand: boolean;
|
595
595
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
596
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
596
597
|
linebarAutoHidden: boolean;
|
597
598
|
labelPlacementOverwrite: boolean;
|
598
599
|
bordered: string | boolean;
|
@@ -594,6 +594,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
594
594
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
595
595
|
autoExpand: boolean;
|
596
596
|
lowCodeReactions: import("../../../shared/types").LowCodeTypes.reactionConfig[];
|
597
|
+
newLowCodeReactions: import("../../../shared/types").LowCodeTypes.newReactionConfig[];
|
597
598
|
linebarAutoHidden: boolean;
|
598
599
|
labelPlacementOverwrite: boolean;
|
599
600
|
bordered: string | boolean;
|
@@ -106,6 +106,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
106
106
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
107
107
|
autoExpand: boolean;
|
108
108
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
109
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
109
110
|
linebarAutoHidden: boolean;
|
110
111
|
labelPlacementOverwrite: boolean;
|
111
112
|
bordered: string | boolean;
|
@@ -238,6 +239,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
238
239
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
239
240
|
autoExpand: boolean;
|
240
241
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
242
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
241
243
|
linebarAutoHidden: boolean;
|
242
244
|
labelPlacementOverwrite: boolean;
|
243
245
|
bordered: string | boolean;
|
@@ -1040,6 +1042,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
1040
1042
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
1041
1043
|
autoExpand: boolean;
|
1042
1044
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
1045
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
1043
1046
|
linebarAutoHidden: boolean;
|
1044
1047
|
labelPlacementOverwrite: boolean;
|
1045
1048
|
bordered: string | boolean;
|
@@ -1702,6 +1705,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
1702
1705
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
1703
1706
|
autoExpand: boolean;
|
1704
1707
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
1708
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
1705
1709
|
linebarAutoHidden: boolean;
|
1706
1710
|
labelPlacementOverwrite: boolean;
|
1707
1711
|
bordered: string | boolean;
|
@@ -1822,6 +1826,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
1822
1826
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
1823
1827
|
autoExpand: boolean;
|
1824
1828
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
1829
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
1825
1830
|
linebarAutoHidden: boolean;
|
1826
1831
|
labelPlacementOverwrite: boolean;
|
1827
1832
|
bordered: string | boolean;
|
@@ -4401,6 +4406,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
4401
4406
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
4402
4407
|
autoExpand: boolean;
|
4403
4408
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
4409
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
4404
4410
|
linebarAutoHidden: boolean;
|
4405
4411
|
labelPlacementOverwrite: boolean;
|
4406
4412
|
bordered: string | boolean;
|
@@ -4950,6 +4956,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
4950
4956
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
4951
4957
|
autoExpand: boolean;
|
4952
4958
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
4959
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
4953
4960
|
linebarAutoHidden: boolean;
|
4954
4961
|
labelPlacementOverwrite: boolean;
|
4955
4962
|
bordered: string | boolean;
|
@@ -5834,6 +5841,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
5834
5841
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
5835
5842
|
autoExpand: boolean;
|
5836
5843
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
5844
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
5837
5845
|
linebarAutoHidden: boolean;
|
5838
5846
|
labelPlacementOverwrite: boolean;
|
5839
5847
|
bordered: string | boolean;
|
@@ -6439,6 +6447,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
6439
6447
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
6440
6448
|
autoExpand: boolean;
|
6441
6449
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
6450
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
6442
6451
|
linebarAutoHidden: boolean;
|
6443
6452
|
labelPlacementOverwrite: boolean;
|
6444
6453
|
bordered: string | boolean;
|
@@ -109,6 +109,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
109
109
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
110
110
|
autoExpand: boolean;
|
111
111
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
112
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
112
113
|
linebarAutoHidden: boolean;
|
113
114
|
labelPlacementOverwrite: boolean;
|
114
115
|
bordered: string | boolean;
|
@@ -241,6 +242,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
241
242
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
242
243
|
autoExpand: boolean;
|
243
244
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
245
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
244
246
|
linebarAutoHidden: boolean;
|
245
247
|
labelPlacementOverwrite: boolean;
|
246
248
|
bordered: string | boolean;
|
@@ -1043,6 +1045,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
1043
1045
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
1044
1046
|
autoExpand: boolean;
|
1045
1047
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
1048
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
1046
1049
|
linebarAutoHidden: boolean;
|
1047
1050
|
labelPlacementOverwrite: boolean;
|
1048
1051
|
bordered: string | boolean;
|
@@ -1705,6 +1708,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
1705
1708
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
1706
1709
|
autoExpand: boolean;
|
1707
1710
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
1711
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
1708
1712
|
linebarAutoHidden: boolean;
|
1709
1713
|
labelPlacementOverwrite: boolean;
|
1710
1714
|
bordered: string | boolean;
|
@@ -1825,6 +1829,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
1825
1829
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
1826
1830
|
autoExpand: boolean;
|
1827
1831
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
1832
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
1828
1833
|
linebarAutoHidden: boolean;
|
1829
1834
|
labelPlacementOverwrite: boolean;
|
1830
1835
|
bordered: string | boolean;
|
@@ -4404,6 +4409,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
4404
4409
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
4405
4410
|
autoExpand: boolean;
|
4406
4411
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
4412
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
4407
4413
|
linebarAutoHidden: boolean;
|
4408
4414
|
labelPlacementOverwrite: boolean;
|
4409
4415
|
bordered: string | boolean;
|
@@ -4953,6 +4959,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
4953
4959
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
4954
4960
|
autoExpand: boolean;
|
4955
4961
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
4962
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
4956
4963
|
linebarAutoHidden: boolean;
|
4957
4964
|
labelPlacementOverwrite: boolean;
|
4958
4965
|
bordered: string | boolean;
|
@@ -5837,6 +5844,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
5837
5844
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
5838
5845
|
autoExpand: boolean;
|
5839
5846
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
5847
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
5840
5848
|
linebarAutoHidden: boolean;
|
5841
5849
|
labelPlacementOverwrite: boolean;
|
5842
5850
|
bordered: string | boolean;
|
@@ -6442,6 +6450,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
6442
6450
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
6443
6451
|
autoExpand: boolean;
|
6444
6452
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
6453
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
6445
6454
|
linebarAutoHidden: boolean;
|
6446
6455
|
labelPlacementOverwrite: boolean;
|
6447
6456
|
bordered: string | boolean;
|
@@ -604,6 +604,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
604
604
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
605
605
|
autoExpand: boolean;
|
606
606
|
lowCodeReactions: import("../../../../shared/types/business").LowCodeTypes.reactionConfig[];
|
607
|
+
newLowCodeReactions: import("../../../../shared/types/business").LowCodeTypes.newReactionConfig[];
|
607
608
|
linebarAutoHidden: boolean;
|
608
609
|
labelPlacementOverwrite: boolean;
|
609
610
|
bordered: string | boolean;
|
@@ -100,6 +100,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
100
100
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
101
101
|
autoExpand: boolean;
|
102
102
|
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
103
|
+
newLowCodeReactions: import("../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
103
104
|
linebarAutoHidden: boolean;
|
104
105
|
labelPlacementOverwrite: boolean;
|
105
106
|
bordered: string | boolean;
|
@@ -220,6 +221,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
220
221
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
221
222
|
autoExpand: boolean;
|
222
223
|
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
224
|
+
newLowCodeReactions: import("../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
223
225
|
linebarAutoHidden: boolean;
|
224
226
|
labelPlacementOverwrite: boolean;
|
225
227
|
bordered: string | boolean;
|
@@ -2799,6 +2801,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
2799
2801
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
2800
2802
|
autoExpand: boolean;
|
2801
2803
|
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
2804
|
+
newLowCodeReactions: import("../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
2802
2805
|
linebarAutoHidden: boolean;
|
2803
2806
|
labelPlacementOverwrite: boolean;
|
2804
2807
|
bordered: string | boolean;
|
@@ -3348,6 +3351,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
3348
3351
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
3349
3352
|
autoExpand: boolean;
|
3350
3353
|
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
3354
|
+
newLowCodeReactions: import("../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
3351
3355
|
linebarAutoHidden: boolean;
|
3352
3356
|
labelPlacementOverwrite: boolean;
|
3353
3357
|
bordered: string | boolean;
|
@@ -39,6 +39,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
setup(__props, {
|
40
40
|
expose: __expose
|
41
41
|
}) {
|
42
|
+
var _a;
|
42
43
|
const props = __props;
|
43
44
|
const wrapperSelector = computed(() => `#${props.uuid} .form-config__config`);
|
44
45
|
const formRenderRef = ref();
|
@@ -49,7 +50,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49
50
|
generateFieldListByFormConfigItem
|
50
51
|
} = useConfigurationField();
|
51
52
|
watch(currentActiveField, async (formConfigItem, oldFormConfigItem) => {
|
52
|
-
var
|
53
|
+
var _a2, _b;
|
53
54
|
if (!formConfigItem)
|
54
55
|
return fieldList.value = [];
|
55
56
|
initialData.value = {
|
@@ -57,7 +58,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
57
58
|
show: true,
|
58
59
|
...cloneDeep(toRaw(formConfigItem))
|
59
60
|
};
|
60
|
-
const fieldItemList = (
|
61
|
+
const fieldItemList = (_a2 = props.bindFormRenderRef) == null ? void 0 : _a2.getFieldList();
|
61
62
|
fieldList.value = generateFieldListByFormConfigItem(formConfigItem, findFieldItemByKey(fieldItemList, formConfigItem.key));
|
62
63
|
(_b = formRenderRef.value) == null ? void 0 : _b.reload();
|
63
64
|
}, {
|
@@ -86,10 +87,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
86
87
|
text: true,
|
87
88
|
type: "primary",
|
88
89
|
onClick() {
|
89
|
-
var
|
90
|
+
var _a2;
|
90
91
|
showOptionModal.value = true;
|
91
92
|
editOptions.value = cloneDeep(originOptions);
|
92
|
-
if (isEmpty((
|
93
|
+
if (isEmpty((_a2 = currentActiveField.value) == null ? void 0 : _a2.optionAliasList))
|
93
94
|
return;
|
94
95
|
editOptions.value.forEach((option) => {
|
95
96
|
const target = currentActiveField.value.optionAliasList.find((item) => item.value === option.value);
|
@@ -104,8 +105,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
104
105
|
}
|
105
106
|
function applyOptionAlias(options) {
|
106
107
|
return isArray(options) ? options.map((option) => {
|
107
|
-
var
|
108
|
-
const target = (
|
108
|
+
var _a2;
|
109
|
+
const target = (_a2 = currentActiveField.value.optionAliasList) == null ? void 0 : _a2.find((item) => {
|
109
110
|
return item.value === option.value;
|
110
111
|
});
|
111
112
|
return target ? {
|
@@ -115,17 +116,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
115
116
|
}) : options;
|
116
117
|
}
|
117
118
|
const visitor = {
|
118
|
-
"*"({
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
119
|
+
"*"(payload) {
|
120
|
+
var _a2, _b, _c;
|
121
|
+
const {
|
122
|
+
field
|
123
|
+
} = payload;
|
124
|
+
if (field.val_key === EditAbleField.DEFAULT_VALUE) {
|
125
|
+
const originOption = field.option;
|
126
|
+
field.option = applyOptionAlias(field.option);
|
127
|
+
field.decoratorProps = {
|
128
|
+
labelRender: createLabelRender(originOption)
|
129
|
+
};
|
130
|
+
}
|
131
|
+
(_c = (_b = (_a2 = props.formProps) == null ? void 0 : _a2.fieldVisitor) == null ? void 0 : _b["*"]) == null ? void 0 : _c.call(_b, payload);
|
132
|
+
},
|
133
|
+
...((_a = props.formProps) == null ? void 0 : _a.fieldVisitor) || {}
|
129
134
|
};
|
130
135
|
const showOptionModal = ref(false);
|
131
136
|
const editOptions = ref([]);
|
@@ -134,7 +139,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
134
139
|
editOptions.value = [];
|
135
140
|
}
|
136
141
|
function onOptionModalConfirm() {
|
137
|
-
var
|
142
|
+
var _a2;
|
138
143
|
showOptionModal.value = false;
|
139
144
|
currentActiveField.value.optionAliasList = editOptions.value.reduce((res, option) => {
|
140
145
|
if (option.alias)
|
@@ -150,12 +155,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
150
155
|
show: true,
|
151
156
|
...cloneDeep(toRaw(currentActiveField.value))
|
152
157
|
};
|
153
|
-
(
|
158
|
+
(_a2 = formRenderRef.value) == null ? void 0 : _a2.reload();
|
154
159
|
}
|
155
160
|
__expose({
|
156
161
|
validate() {
|
157
|
-
var
|
158
|
-
return (
|
162
|
+
var _a2;
|
163
|
+
return (_a2 = formRenderRef.value) == null ? void 0 : _a2.validate();
|
159
164
|
}
|
160
165
|
});
|
161
166
|
return (_ctx, _cache) => {
|
@@ -864,6 +864,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
864
864
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../components/form-render").FieldItem) => boolean | void);
|
865
865
|
autoExpand: boolean;
|
866
866
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
867
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
867
868
|
linebarAutoHidden: boolean;
|
868
869
|
labelPlacementOverwrite: boolean;
|
869
870
|
bordered: string | boolean;
|
@@ -20,6 +20,7 @@ export declare enum EditAbleField {
|
|
20
20
|
CONFIRM = "confirmBeforeValueChange",
|
21
21
|
ALLOW_PARTIAL = "elementExtraSetting.allowPartial",
|
22
22
|
PARTIAL_LEVEL = "elementExtraSetting.partialLevel",
|
23
|
+
MAX_LEVEL = "elementExtraSetting.maxLevel",
|
23
24
|
DATE_FORMAT = "elementExtraSetting.dateFormat",
|
24
25
|
DATE_DEFAULT_VALUE_CONDITION = "elementExtraSetting.defaultValue.condition",
|
25
26
|
DATE_DEFAULT_VALUE_UNIT = "elementExtraSetting.defaultValue.unit",
|
@@ -23,6 +23,7 @@ var EditAbleField = /* @__PURE__ */ ((EditAbleField2) => {
|
|
23
23
|
EditAbleField2["CONFIRM"] = "confirmBeforeValueChange";
|
24
24
|
EditAbleField2["ALLOW_PARTIAL"] = "elementExtraSetting.allowPartial";
|
25
25
|
EditAbleField2["PARTIAL_LEVEL"] = "elementExtraSetting.partialLevel";
|
26
|
+
EditAbleField2["MAX_LEVEL"] = "elementExtraSetting.maxLevel";
|
26
27
|
EditAbleField2["DATE_FORMAT"] = "elementExtraSetting.dateFormat";
|
27
28
|
EditAbleField2["DATE_DEFAULT_VALUE_CONDITION"] = "elementExtraSetting.defaultValue.condition";
|
28
29
|
EditAbleField2["DATE_DEFAULT_VALUE_UNIT"] = "elementExtraSetting.defaultValue.unit";
|
@@ -134,7 +134,17 @@ function useConfigurationField() {
|
|
134
134
|
}))
|
135
135
|
}
|
136
136
|
};
|
137
|
-
}], [EditAbleField.
|
137
|
+
}], [EditAbleField.MAX_LEVEL, () => ({
|
138
|
+
alias: "\u6700\u5927\u9009\u62E9\u5C42\u7EA7",
|
139
|
+
elem_width: 6,
|
140
|
+
html_type: "SELECT",
|
141
|
+
componentProps: {
|
142
|
+
options: range(1, 11).map((item) => ({
|
143
|
+
text: item + "",
|
144
|
+
value: item
|
145
|
+
}))
|
146
|
+
}
|
147
|
+
})], [EditAbleField.DATE_FORMAT, () => ({
|
138
148
|
alias: i18n("10010.1.541", "\u65E5\u671F\u683C\u5F0F"),
|
139
149
|
elem_width: 6,
|
140
150
|
html_type: "SELECT",
|
@@ -177,7 +187,7 @@ function useConfigurationField() {
|
|
177
187
|
keys.splice(3, 0, EditAbleField.ROWS);
|
178
188
|
}
|
179
189
|
if (["SEARCH_CASCADE", "LEVEL_SEARCH_CASCADE", "LEVEL_SEARCH_CASCADE2"].includes(fieldItem ? fieldItem.html_type : (_c = (_b = formConfigItem.originalSetting) == null ? void 0 : _b.html_type) != null ? _c : "")) {
|
180
|
-
keys.splice(9, 0, EditAbleField.ALLOW_PARTIAL, EditAbleField.PARTIAL_LEVEL);
|
190
|
+
keys.splice(9, 0, EditAbleField.ALLOW_PARTIAL, EditAbleField.PARTIAL_LEVEL, EditAbleField.MAX_LEVEL);
|
181
191
|
}
|
182
192
|
if (["DATE"].includes(fieldItem ? fieldItem.html_type : (_e = (_d = formConfigItem.originalSetting) == null ? void 0 : _d.html_type) != null ? _e : "")) {
|
183
193
|
keys.splice(keys.indexOf(EditAbleField.DEFAULT_VALUE), 1, EditAbleField.DATE_FORMAT, EditAbleField.DATE_DEFAULT_VALUE_CONDITION, EditAbleField.DATE_MIN_VALUE_CONDITION, EditAbleField.DATE_MAX_VALUE_CONDITION);
|
@@ -592,6 +592,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
592
592
|
enterToNextWidget: boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void);
|
593
593
|
autoExpand: boolean;
|
594
594
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
595
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
595
596
|
linebarAutoHidden: boolean;
|
596
597
|
labelPlacementOverwrite: boolean;
|
597
598
|
bordered: string | boolean;
|
@@ -587,6 +587,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
587
587
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
588
588
|
autoExpand: boolean;
|
589
589
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
590
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
590
591
|
linebarAutoHidden: boolean;
|
591
592
|
labelPlacementOverwrite: boolean;
|
592
593
|
bordered: string | boolean;
|
@@ -590,6 +590,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
590
590
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
591
591
|
autoExpand: boolean;
|
592
592
|
lowCodeReactions: import("../../../shared/types").LowCodeTypes.reactionConfig[];
|
593
|
+
newLowCodeReactions: import("../../../shared/types").LowCodeTypes.newReactionConfig[];
|
593
594
|
linebarAutoHidden: boolean;
|
594
595
|
labelPlacementOverwrite: boolean;
|
595
596
|
bordered: string | boolean;
|
@@ -142,6 +142,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
142
142
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../../components/form-render").FieldItem) => boolean | void);
|
143
143
|
autoExpand: boolean;
|
144
144
|
lowCodeReactions: import("../../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
145
|
+
newLowCodeReactions: import("../../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
145
146
|
linebarAutoHidden: boolean;
|
146
147
|
labelPlacementOverwrite: boolean;
|
147
148
|
bordered: string | boolean;
|
@@ -141,6 +141,7 @@ export declare const LINEBAR: import("@vue/runtime-core").DefineComponent<import
|
|
141
141
|
enterToNextWidget: boolean | ((fieldItem: import("../../../types").FieldItem) => boolean | void);
|
142
142
|
autoExpand: boolean;
|
143
143
|
lowCodeReactions: import("../../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
144
|
+
newLowCodeReactions: import("../../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
144
145
|
linebarAutoHidden: boolean;
|
145
146
|
labelPlacementOverwrite: boolean;
|
146
147
|
bordered: string | boolean;
|
@@ -90,6 +90,7 @@ export declare function useFieldNormalize(): {
|
|
90
90
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
91
91
|
autoExpand: boolean;
|
92
92
|
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
93
|
+
newLowCodeReactions: import("../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
93
94
|
linebarAutoHidden: boolean;
|
94
95
|
labelPlacementOverwrite: boolean;
|
95
96
|
bordered: string | boolean;
|
@@ -199,6 +200,7 @@ export declare function useFieldNormalize(): {
|
|
199
200
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
200
201
|
autoExpand: boolean;
|
201
202
|
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
203
|
+
newLowCodeReactions: import("../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
202
204
|
linebarAutoHidden: boolean;
|
203
205
|
labelPlacementOverwrite: boolean;
|
204
206
|
bordered: string | boolean;
|
@@ -158,6 +158,7 @@ export type FormRenderProps = Partial<{
|
|
158
158
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
159
159
|
autoExpand: boolean;
|
160
160
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
161
|
+
newLowCodeReactions: LowCodeTypes.newReactionConfig[];
|
161
162
|
linebarAutoHidden: boolean;
|
162
163
|
labelPlacementOverwrite: boolean;
|
163
164
|
bordered: boolean | string;
|
@@ -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\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), {
|
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), {
|
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">\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", {
|
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", {
|
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: "",
|
@@ -161,6 +161,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
161
161
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
162
162
|
autoExpand: boolean;
|
163
163
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
164
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
164
165
|
linebarAutoHidden: boolean;
|
165
166
|
labelPlacementOverwrite: boolean;
|
166
167
|
bordered: string | boolean;
|
@@ -348,6 +349,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
348
349
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
349
350
|
autoExpand: boolean;
|
350
351
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
352
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
351
353
|
linebarAutoHidden: boolean;
|
352
354
|
labelPlacementOverwrite: boolean;
|
353
355
|
bordered: string | boolean;
|
@@ -651,6 +653,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
651
653
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
652
654
|
autoExpand: boolean;
|
653
655
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
656
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
654
657
|
linebarAutoHidden: boolean;
|
655
658
|
labelPlacementOverwrite: boolean;
|
656
659
|
bordered: string | boolean;
|
@@ -1603,6 +1606,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
1603
1606
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
1604
1607
|
autoExpand: boolean;
|
1605
1608
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
1609
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
1606
1610
|
linebarAutoHidden: boolean;
|
1607
1611
|
labelPlacementOverwrite: boolean;
|
1608
1612
|
bordered: string | boolean;
|
@@ -2731,6 +2735,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
2731
2735
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
2732
2736
|
autoExpand: boolean;
|
2733
2737
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
2738
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
2734
2739
|
linebarAutoHidden: boolean;
|
2735
2740
|
labelPlacementOverwrite: boolean;
|
2736
2741
|
bordered: string | boolean;
|
@@ -3356,6 +3361,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<import("v
|
|
3356
3361
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
3357
3362
|
autoExpand: boolean;
|
3358
3363
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
3364
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
3359
3365
|
linebarAutoHidden: boolean;
|
3360
3366
|
labelPlacementOverwrite: boolean;
|
3361
3367
|
bordered: string | boolean;
|
@@ -161,6 +161,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
161
161
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
162
162
|
autoExpand: boolean;
|
163
163
|
lowCodeReactions: import("../../../shared/types").LowCodeTypes.reactionConfig[];
|
164
|
+
newLowCodeReactions: import("../../../shared/types").LowCodeTypes.newReactionConfig[];
|
164
165
|
linebarAutoHidden: boolean;
|
165
166
|
labelPlacementOverwrite: boolean;
|
166
167
|
bordered: string | boolean;
|
@@ -346,6 +347,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
346
347
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
347
348
|
autoExpand: boolean;
|
348
349
|
lowCodeReactions: import("../../../shared/types").LowCodeTypes.reactionConfig[];
|
350
|
+
newLowCodeReactions: import("../../../shared/types").LowCodeTypes.newReactionConfig[];
|
349
351
|
linebarAutoHidden: boolean;
|
350
352
|
labelPlacementOverwrite: boolean;
|
351
353
|
bordered: string | boolean;
|
@@ -645,6 +647,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
645
647
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
646
648
|
autoExpand: boolean;
|
647
649
|
lowCodeReactions: import("../../../shared/types").LowCodeTypes.reactionConfig[];
|
650
|
+
newLowCodeReactions: import("../../../shared/types").LowCodeTypes.newReactionConfig[];
|
648
651
|
linebarAutoHidden: boolean;
|
649
652
|
labelPlacementOverwrite: boolean;
|
650
653
|
bordered: string | boolean;
|
@@ -1597,6 +1600,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
1597
1600
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
1598
1601
|
autoExpand: boolean;
|
1599
1602
|
lowCodeReactions: import("../../../shared/types").LowCodeTypes.reactionConfig[];
|
1603
|
+
newLowCodeReactions: import("../../../shared/types").LowCodeTypes.newReactionConfig[];
|
1600
1604
|
linebarAutoHidden: boolean;
|
1601
1605
|
labelPlacementOverwrite: boolean;
|
1602
1606
|
bordered: string | boolean;
|
@@ -2725,6 +2729,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
2725
2729
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
2726
2730
|
autoExpand: boolean;
|
2727
2731
|
lowCodeReactions: import("../../../shared/types").LowCodeTypes.reactionConfig[];
|
2732
|
+
newLowCodeReactions: import("../../../shared/types").LowCodeTypes.newReactionConfig[];
|
2728
2733
|
linebarAutoHidden: boolean;
|
2729
2734
|
labelPlacementOverwrite: boolean;
|
2730
2735
|
bordered: string | boolean;
|
@@ -3348,6 +3353,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
3348
3353
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
3349
3354
|
autoExpand: boolean;
|
3350
3355
|
lowCodeReactions: import("../../../shared/types").LowCodeTypes.reactionConfig[];
|
3356
|
+
newLowCodeReactions: import("../../../shared/types").LowCodeTypes.newReactionConfig[];
|
3351
3357
|
linebarAutoHidden: boolean;
|
3352
3358
|
labelPlacementOverwrite: boolean;
|
3353
3359
|
bordered: string | boolean;
|
@@ -126,6 +126,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
126
126
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
127
127
|
autoExpand: boolean;
|
128
128
|
lowCodeReactions: import("../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
129
|
+
newLowCodeReactions: import("../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
129
130
|
linebarAutoHidden: boolean;
|
130
131
|
labelPlacementOverwrite: boolean;
|
131
132
|
bordered: string | boolean;
|
@@ -190,6 +190,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
190
190
|
enterToNextWidget: boolean | ((fieldItem: import("../../../..").FieldItem) => boolean | void);
|
191
191
|
autoExpand: boolean;
|
192
192
|
lowCodeReactions: import("../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
193
|
+
newLowCodeReactions: import("../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
193
194
|
linebarAutoHidden: boolean;
|
194
195
|
labelPlacementOverwrite: boolean;
|
195
196
|
bordered: string | boolean;
|
@@ -243,6 +243,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
243
243
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../components/form-render").FieldItem) => boolean | void);
|
244
244
|
autoExpand: boolean;
|
245
245
|
lowCodeReactions: import("../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
246
|
+
newLowCodeReactions: import("../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
246
247
|
linebarAutoHidden: boolean;
|
247
248
|
labelPlacementOverwrite: boolean;
|
248
249
|
bordered: string | boolean;
|
@@ -1195,6 +1196,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
1195
1196
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../components/form-render").FieldItem) => boolean | void);
|
1196
1197
|
autoExpand: boolean;
|
1197
1198
|
lowCodeReactions: import("../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
1199
|
+
newLowCodeReactions: import("../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
1198
1200
|
linebarAutoHidden: boolean;
|
1199
1201
|
labelPlacementOverwrite: boolean;
|
1200
1202
|
bordered: string | boolean;
|
@@ -627,6 +627,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
627
627
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
628
628
|
autoExpand: boolean;
|
629
629
|
lowCodeReactions: import("../../../../../shared/types").LowCodeTypes.reactionConfig[];
|
630
|
+
newLowCodeReactions: import("../../../../../shared/types").LowCodeTypes.newReactionConfig[];
|
630
631
|
linebarAutoHidden: boolean;
|
631
632
|
labelPlacementOverwrite: boolean;
|
632
633
|
bordered: string | boolean;
|
@@ -1075,6 +1075,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<impor
|
|
1075
1075
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
1076
1076
|
autoExpand: boolean;
|
1077
1077
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
1078
|
+
newLowCodeReactions: import("../../shared/types").LowCodeTypes.newReactionConfig[];
|
1078
1079
|
linebarAutoHidden: boolean;
|
1079
1080
|
labelPlacementOverwrite: boolean;
|
1080
1081
|
bordered: string | boolean;
|
@@ -1078,6 +1078,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
1078
1078
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
1079
1079
|
autoExpand: boolean;
|
1080
1080
|
lowCodeReactions: import("../../../shared/types").LowCodeTypes.reactionConfig[];
|
1081
|
+
newLowCodeReactions: import("../../../shared/types").LowCodeTypes.newReactionConfig[];
|
1081
1082
|
linebarAutoHidden: boolean;
|
1082
1083
|
labelPlacementOverwrite: boolean;
|
1083
1084
|
bordered: string | boolean;
|
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
|
+
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.4.0-beta.
|
3
|
+
"version": "3.4.0-beta.30",
|
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": "
|
76
|
+
"gitHead": "5db80cf14a13537f6072106d3f97b61d3c1e1899"
|
77
77
|
}
|