cnhis-design-vue 3.4.0-beta.65 → 3.4.0-beta.67
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/fabric-chart/src/FabricChart.vue2.js +1 -0
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +51 -15
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +26 -9
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
- package/es/components/fabric-chart/src/utils/eventBus.d.ts +2 -0
- package/es/components/fabric-chart/src/utils/eventBus.js +5 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.js +1 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +3 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- 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/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
|
+
```
|
|
@@ -3,6 +3,7 @@ import { defaultBorderStyle, defaultLineStyle, defaultTextStyle } from '../useDr
|
|
|
3
3
|
import '../../../../../shared/utils/fabricjs/index.js';
|
|
4
4
|
import 'date-fns';
|
|
5
5
|
import { cloneDeep, last, isNumber } from 'lodash-es';
|
|
6
|
+
import '../../utils/eventBus.js';
|
|
6
7
|
import '../useEvent.js';
|
|
7
8
|
import '../useShadow.js';
|
|
8
9
|
import '../useCommon.js';
|
|
@@ -17,6 +17,7 @@ import './useTop.js';
|
|
|
17
17
|
import './useOther.js';
|
|
18
18
|
import '../../../../../shared/utils/index.js';
|
|
19
19
|
import { useIntervalFn } from '@vueuse/core';
|
|
20
|
+
import { singlePointAddEventBus } from '../../utils/eventBus.js';
|
|
20
21
|
|
|
21
22
|
function useCenter(canvas, propItems, emits, pointTipProps, pointMenuProps, isPopupTipRender) {
|
|
22
23
|
const {
|
|
@@ -248,6 +249,21 @@ function useCenter(canvas, propItems, emits, pointTipProps, pointMenuProps, isPo
|
|
|
248
249
|
currentSelection && canvas.value.remove(currentSelection);
|
|
249
250
|
currentSelection = null;
|
|
250
251
|
}
|
|
252
|
+
function createChildrenMenuList(itemList2) {
|
|
253
|
+
return itemList2.map((item) => ({
|
|
254
|
+
key: item.key,
|
|
255
|
+
label: item.title,
|
|
256
|
+
mode: "add",
|
|
257
|
+
origin: {
|
|
258
|
+
title: item.title,
|
|
259
|
+
unit: item.unit,
|
|
260
|
+
type: item.bigType,
|
|
261
|
+
dataIndex: item.dataIndex,
|
|
262
|
+
key: item.key,
|
|
263
|
+
linkKey: item.linkKey
|
|
264
|
+
}
|
|
265
|
+
}));
|
|
266
|
+
}
|
|
251
267
|
function handleRightClick(event2) {
|
|
252
268
|
pointTipProps.show = false;
|
|
253
269
|
const {
|
|
@@ -261,6 +277,7 @@ function useCenter(canvas, propItems, emits, pointTipProps, pointMenuProps, isPo
|
|
|
261
277
|
menuList = []
|
|
262
278
|
} = extraMenuConfig;
|
|
263
279
|
pointMenuProps.list = filter(OTHER_MENU, (o) => o.key === "add").concat(menuList);
|
|
280
|
+
pointMenuProps.list[0].children = createChildrenMenuList(itemList);
|
|
264
281
|
} else {
|
|
265
282
|
if (event2.target.__type !== "main")
|
|
266
283
|
return;
|
|
@@ -279,6 +296,11 @@ function useCenter(canvas, propItems, emits, pointTipProps, pointMenuProps, isPo
|
|
|
279
296
|
}
|
|
280
297
|
};
|
|
281
298
|
});
|
|
299
|
+
const newChildren = itemList.filter((item) => {
|
|
300
|
+
const key = item.linkKey || item.key;
|
|
301
|
+
return !getEqualXTypes(getGridPoints(), point.left, "key", xCellWidth).includes(key);
|
|
302
|
+
});
|
|
303
|
+
pointMenuProps.list[0].children = createChildrenMenuList(newChildren);
|
|
282
304
|
}
|
|
283
305
|
}
|
|
284
306
|
function setPointMenuProps(point, target, list) {
|
|
@@ -295,29 +317,42 @@ function useCenter(canvas, propItems, emits, pointTipProps, pointMenuProps, isPo
|
|
|
295
317
|
target,
|
|
296
318
|
pointer
|
|
297
319
|
}) {
|
|
298
|
-
var _a;
|
|
320
|
+
var _a, _b, _c;
|
|
299
321
|
const {
|
|
300
322
|
key,
|
|
301
|
-
origin
|
|
323
|
+
origin,
|
|
324
|
+
mode
|
|
302
325
|
} = item;
|
|
303
326
|
const params = {
|
|
304
327
|
...origin
|
|
305
328
|
};
|
|
306
|
-
if (
|
|
307
|
-
Object.assign(params, {
|
|
308
|
-
data: {
|
|
309
|
-
time: getXValue(pointer.x)
|
|
310
|
-
},
|
|
311
|
-
type: null
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
if (["add", "remove"].includes(key)) {
|
|
329
|
+
if (key === "remove" || mode === "add") {
|
|
315
330
|
if (key === "remove") {
|
|
316
331
|
updateData(params, "remove");
|
|
332
|
+
} else {
|
|
333
|
+
const pointKey = origin.linkKey || origin.key;
|
|
334
|
+
params.data = {
|
|
335
|
+
time: getXValue(pointer.x),
|
|
336
|
+
value: getYValue(origin.type, pointer.y),
|
|
337
|
+
...origin.linkKey && {
|
|
338
|
+
key: origin.key
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
updateData({
|
|
342
|
+
...params,
|
|
343
|
+
key: pointKey
|
|
344
|
+
}, "add");
|
|
345
|
+
const firstLeft = pointKey ? (_b = (_a = gridPointsMap.get(pointKey)) == null ? void 0 : _a[0]) == null ? void 0 : _b.left : void 0;
|
|
346
|
+
const minLeft = firstLeft != null ? firstLeft : pointer.x;
|
|
347
|
+
const limitRight = minLeft - xCellWidth;
|
|
348
|
+
singlePointAddEventBus.emit({
|
|
349
|
+
...origin,
|
|
350
|
+
limitRight
|
|
351
|
+
});
|
|
317
352
|
}
|
|
318
353
|
emits(key, params);
|
|
319
354
|
} else {
|
|
320
|
-
(
|
|
355
|
+
(_c = extraMenuConfig.click) == null ? void 0 : _c.call(extraMenuConfig, key, params);
|
|
321
356
|
}
|
|
322
357
|
}
|
|
323
358
|
function drawCordonLine(item, scaleValue) {
|
|
@@ -802,7 +837,7 @@ function useCenter(canvas, propItems, emits, pointTipProps, pointMenuProps, isPo
|
|
|
802
837
|
});
|
|
803
838
|
}
|
|
804
839
|
function redrawPoints(ItemObj) {
|
|
805
|
-
var _a, _b, _c;
|
|
840
|
+
var _a, _b, _c, _d;
|
|
806
841
|
batchAddPoints.size && ((_a = canvas.value) == null ? void 0 : _a.remove(...doRemovePoints([...batchAddPoints])));
|
|
807
842
|
batchAddPoints.clear();
|
|
808
843
|
batchAddDatas = [];
|
|
@@ -812,12 +847,13 @@ function useCenter(canvas, propItems, emits, pointTipProps, pointMenuProps, isPo
|
|
|
812
847
|
scaleValue
|
|
813
848
|
} = ItemObj;
|
|
814
849
|
const item = scaleValue.dataList[dataIndex];
|
|
815
|
-
(_b =
|
|
850
|
+
const points = (_b = gridPointsMap.get(item.key)) != null ? _b : [];
|
|
851
|
+
(_c = canvas.value) == null ? void 0 : _c.remove(...doRemovePoints(points));
|
|
816
852
|
gridPointsMap.delete(item.key);
|
|
817
853
|
drawPolyLine(item, dataIndex, scaleValue);
|
|
818
854
|
} else {
|
|
819
855
|
yScaleValue = cloneDeep(scaleValues);
|
|
820
|
-
gridPointsMap.size && ((
|
|
856
|
+
gridPointsMap.size && ((_d = canvas.value) == null ? void 0 : _d.remove(...doRemovePoints(getGridPoints())));
|
|
821
857
|
gridPointsMap.clear();
|
|
822
858
|
init();
|
|
823
859
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { onBeforeUnmount } from 'vue';
|
|
1
2
|
import { fabric } from '../../../../../shared/utils/fabricjs/index.js';
|
|
2
3
|
import { drawTextGroup, defaultRectStyle, drawTextAndIconGroup, drawText, defaultTextStyle, defaultStyle } from '../useDraw.js';
|
|
3
4
|
import { useBirthProcessCumputedPoint } from '../useCumputedPoint.js';
|
|
@@ -5,7 +6,6 @@ import '../useEvent.js';
|
|
|
5
6
|
import '../useShadow.js';
|
|
6
7
|
import { drawScaleNumber } from '../useScaleColumn.js';
|
|
7
8
|
import { useCommon } from '../useCommon.js';
|
|
8
|
-
import 'vue';
|
|
9
9
|
import { isEffectiveNode, getScaleNumberList } from '../../utils/index.js';
|
|
10
10
|
import { cloneDeep, omit, last } from 'lodash-es';
|
|
11
11
|
import 'date-fns';
|
|
@@ -16,6 +16,7 @@ import './useTop.js';
|
|
|
16
16
|
import '@vueuse/core';
|
|
17
17
|
import './useOther.js';
|
|
18
18
|
import '../../../../../shared/utils/index.js';
|
|
19
|
+
import { singlePointAddEventBus } from '../../utils/eventBus.js';
|
|
19
20
|
|
|
20
21
|
function useLeft(canvas, propItems, emits, pointTipProps, moveLimit, setPopup, updateData, getGridPoints) {
|
|
21
22
|
const { getYValue, getXValue, computedX } = useBirthProcessCumputedPoint(propItems);
|
|
@@ -36,6 +37,7 @@ function useLeft(canvas, propItems, emits, pointTipProps, moveLimit, setPopup, u
|
|
|
36
37
|
canvasHeight,
|
|
37
38
|
xCellWidth
|
|
38
39
|
} = propItems;
|
|
40
|
+
const icons = /* @__PURE__ */ new Set();
|
|
39
41
|
function drawTitle() {
|
|
40
42
|
if (!left)
|
|
41
43
|
return;
|
|
@@ -130,8 +132,15 @@ function useLeft(canvas, propItems, emits, pointTipProps, moveLimit, setPopup, u
|
|
|
130
132
|
}
|
|
131
133
|
});
|
|
132
134
|
icon.linkPoints = linkPoints;
|
|
135
|
+
icons.add(icon);
|
|
133
136
|
});
|
|
134
137
|
}
|
|
138
|
+
function listener(params) {
|
|
139
|
+
const { limitRight, key } = params;
|
|
140
|
+
const icon = Array.from(icons).find((_icon) => _icon.origin.key === key);
|
|
141
|
+
icon && setLimitRight(icon, limitRight);
|
|
142
|
+
}
|
|
143
|
+
singlePointAddEventBus.on(listener);
|
|
135
144
|
function setPointEvent(point) {
|
|
136
145
|
point.on("moving", () => {
|
|
137
146
|
point.set("originX", "center");
|
|
@@ -153,17 +162,17 @@ function useLeft(canvas, propItems, emits, pointTipProps, moveLimit, setPopup, u
|
|
|
153
162
|
handleAddPrevent("repeat");
|
|
154
163
|
} else {
|
|
155
164
|
const params = {
|
|
156
|
-
data:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
165
|
+
data: [
|
|
166
|
+
{
|
|
167
|
+
time: getXValue(point.left),
|
|
168
|
+
value: getYValue(point.origin.type, point.top),
|
|
169
|
+
...point.origin.linkKey && { key: point.origin.key }
|
|
170
|
+
}
|
|
171
|
+
],
|
|
161
172
|
...point.origin
|
|
162
173
|
};
|
|
163
174
|
const limitRight = point.left - xCellWidth;
|
|
164
|
-
point
|
|
165
|
-
_point.origin.limitRight = limitRight;
|
|
166
|
-
});
|
|
175
|
+
setLimitRight(point, limitRight);
|
|
167
176
|
emits("add", omit(params, ["limitRight"]));
|
|
168
177
|
updateData({ ...params, key });
|
|
169
178
|
}
|
|
@@ -172,6 +181,11 @@ function useLeft(canvas, propItems, emits, pointTipProps, moveLimit, setPopup, u
|
|
|
172
181
|
setRestore(point);
|
|
173
182
|
});
|
|
174
183
|
}
|
|
184
|
+
function setLimitRight(point, limitRight) {
|
|
185
|
+
point.linkPoints.forEach((_point) => {
|
|
186
|
+
_point.origin.limitRight = limitRight;
|
|
187
|
+
});
|
|
188
|
+
}
|
|
175
189
|
function setRestore(point) {
|
|
176
190
|
point.setCoords().set({ originX: "left", left: point.originLeft, top: point.originTop });
|
|
177
191
|
}
|
|
@@ -244,6 +258,9 @@ function useLeft(canvas, propItems, emits, pointTipProps, moveLimit, setPopup, u
|
|
|
244
258
|
drawYScale();
|
|
245
259
|
drawIcons();
|
|
246
260
|
drawBorder();
|
|
261
|
+
onBeforeUnmount(() => {
|
|
262
|
+
singlePointAddEventBus.off(listener);
|
|
263
|
+
});
|
|
247
264
|
}
|
|
248
265
|
|
|
249
266
|
export { useLeft };
|
|
@@ -2,6 +2,7 @@ import { fabric } from '../../../../../shared/utils/fabricjs/index.js';
|
|
|
2
2
|
import { drawTextGroup, defaultTextStyle, defaultStyle } from '../useDraw.js';
|
|
3
3
|
import 'date-fns';
|
|
4
4
|
import 'lodash-es';
|
|
5
|
+
import '../../utils/eventBus.js';
|
|
5
6
|
import '../useEvent.js';
|
|
6
7
|
import '../useShadow.js';
|
|
7
8
|
import '../useCommon.js';
|
|
@@ -2,6 +2,7 @@ import { fabric } from '../../../../../shared/utils/fabricjs/index.js';
|
|
|
2
2
|
import { drawLine, defaultStyle } from '../useDraw.js';
|
|
3
3
|
import { parse } from 'date-fns';
|
|
4
4
|
import { last, cloneDeep } from 'lodash-es';
|
|
5
|
+
import '../../utils/eventBus.js';
|
|
5
6
|
import '../useEvent.js';
|
|
6
7
|
import '../useShadow.js';
|
|
7
8
|
import '../useCommon.js';
|
|
@@ -2,6 +2,7 @@ import { fabric } from '../../../../../shared/utils/fabricjs/index.js';
|
|
|
2
2
|
import { drawLine, defaultStyle, drawTextGroup, defaultTextStyle } from '../useDraw.js';
|
|
3
3
|
import 'date-fns';
|
|
4
4
|
import { flatten } from 'lodash-es';
|
|
5
|
+
import '../../utils/eventBus.js';
|
|
5
6
|
import '../useEvent.js';
|
|
6
7
|
import '../useShadow.js';
|
|
7
8
|
import '../useCommon.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IPoint, ITreeItem } from '../interface';
|
|
2
2
|
import { AnyObject } from '../../../../shared/types';
|
|
3
|
+
export { singlePointAddEventBus } from './eventBus';
|
|
3
4
|
export declare function isEffectiveNode(node: IPoint): string | number | boolean;
|
|
4
5
|
/**
|
|
5
6
|
* @description: 判断yScaleValue数组内的项类型是否可以连成一条折线,比如温度线
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isNull, isNumber } from 'lodash-es';
|
|
2
|
+
export { singlePointAddEventBus } from './eventBus.js';
|
|
2
3
|
|
|
3
4
|
function isEffectiveNode(node) {
|
|
4
5
|
return (node == null ? void 0 : node.time) && ((node == null ? void 0 : node.value) || (node == null ? void 0 : node.value) === 0);
|
|
@@ -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;
|
|
557
556
|
idx: number;
|
|
558
557
|
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;
|
|
598
597
|
idx: number;
|
|
599
598
|
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;
|
|
777
776
|
idx: number;
|
|
778
777
|
isHighlight: boolean;
|
|
778
|
+
isHighlightRow: boolean;
|
|
779
779
|
isFieldSet: boolean;
|
|
780
780
|
fieldDescribeMode: "column" | "tooltip";
|
|
781
781
|
hideExpressionOption: AnyObject[];
|
|
@@ -274,8 +274,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
274
274
|
var _a2, _b;
|
|
275
275
|
if (!((_a2 = props.showColumnNames) == null ? void 0 : _a2.length)) {
|
|
276
276
|
const isEdit = ["editable", "required"].includes(column.field);
|
|
277
|
-
if (isEdit && !props.isEdit || column.field === "sortPriority" && !props.showSortPriority || column.field === "isShowHeaderFilter" && !props.showHeadFilter
|
|
277
|
+
if (isEdit && !props.isEdit || column.field === "sortPriority" && !props.showSortPriority || column.field === "isShowHeaderFilter" && !props.showHeadFilter)
|
|
278
278
|
return false;
|
|
279
|
+
if (column.field === "hideExpression" && !!((_b = props.hideExpressionConfig) == null ? void 0 : _b.show))
|
|
280
|
+
return true;
|
|
279
281
|
return !column.hide;
|
|
280
282
|
}
|
|
281
283
|
return true;
|
|
@@ -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;
|
|
388
387
|
idx: number;
|
|
389
388
|
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\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: "",
|
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.67",
|
|
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": "849fdaddc5217f0376aefd8d9dec58a234f5d3b9"
|
|
77
77
|
}
|