cnhis-design-vue 3.3.2-beta.11 → 3.3.2-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/audio-sdk/src/Index.vue2.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +55 -70
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +5 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +2 -2
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.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
|
+
```
|
@@ -130,7 +130,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
130
130
|
onEnd,
|
131
131
|
onFail: _cache[1] || (_cache[1] = (error) => emit("fail", error)),
|
132
132
|
onSuccess
|
133
|
-
}), null, 16, ["loading"])) : createCommentVNode("v-if", true), createCommentVNode(' <c-form\n v-if="isForm"\n :configs="configsAndBasicData.configs"\n :data="jsonData"\n @close="onFormClose"\n @finish="onFinish"\n /> ')], 64)) : (openBlock(), createBlock(RecordingModal$1, {
|
133
|
+
}), null, 16, ["loading"])) : createCommentVNode("v-if", true), createCommentVNode(' <c-form\r\n v-if="isForm"\r\n :configs="configsAndBasicData.configs"\r\n :data="jsonData"\r\n @close="onFormClose"\r\n @finish="onFinish"\r\n /> ')], 64)) : (openBlock(), createBlock(RecordingModal$1, {
|
134
134
|
key: 1,
|
135
135
|
content: unref(content)
|
136
136
|
}, null, 8, ["content"]))], 4);
|
@@ -149,8 +149,12 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
149
149
|
} = target.origin || {};
|
150
150
|
if (type === "pulse") {
|
151
151
|
const list = shadowPointCache.get(key);
|
152
|
-
const index = list == null ? void 0 : list.findIndex((point) => point
|
153
|
-
list.splice(index, 1,
|
152
|
+
const index = list == null ? void 0 : list.findIndex((point) => point.left === target.left);
|
153
|
+
list.splice(index, 1, {
|
154
|
+
...list[index],
|
155
|
+
left: target.left,
|
156
|
+
top: target.top
|
157
|
+
});
|
154
158
|
}
|
155
159
|
}
|
156
160
|
const data = getShadowData();
|
@@ -209,6 +213,12 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
209
213
|
const finalResult = Object.values(result).filter((item) => item.length === 2 && Math.trunc(item[0][1]) !== Math.trunc(item[1][1]));
|
210
214
|
return finalResult;
|
211
215
|
}
|
216
|
+
function getXY(point) {
|
217
|
+
return [point.left, point.top];
|
218
|
+
}
|
219
|
+
function getPointWidthRightLine(point) {
|
220
|
+
return point && !point.breakpoint ? point : null;
|
221
|
+
}
|
212
222
|
function getShadowData() {
|
213
223
|
const data = [];
|
214
224
|
const pulsePoints = [];
|
@@ -217,8 +227,8 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
217
227
|
pulsePoints.push(item[1]);
|
218
228
|
if (item[0] === SHADOWKEYS[0]) {
|
219
229
|
item[1].forEach((_item) => {
|
220
|
-
const someIndex = (shadowPointCache.get(SHADOWKEYS[1]) || []).findIndex((v) => v
|
221
|
-
someIndex > -1 && sames.push(_item
|
230
|
+
const someIndex = (shadowPointCache.get(SHADOWKEYS[1]) || []).findIndex((v) => v.left === _item.left);
|
231
|
+
someIndex > -1 && sames.push(_item.left);
|
222
232
|
});
|
223
233
|
}
|
224
234
|
}
|
@@ -226,28 +236,24 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
226
236
|
let _arr1 = [];
|
227
237
|
let _arr2 = [];
|
228
238
|
sames.forEach((left2) => {
|
229
|
-
const index1 = points1.findIndex((point) => point
|
230
|
-
const index2 = points2.findIndex((point) => point
|
239
|
+
const index1 = points1.findIndex((point) => point.left === left2);
|
240
|
+
const index2 = points2.findIndex((point) => point.left === left2);
|
231
241
|
const currentPoint1 = points1[index1];
|
232
242
|
const currentPoint2 = points2[index2];
|
233
|
-
const prevPoint1 = points1[index1 - 1];
|
243
|
+
const prevPoint1 = getPointWidthRightLine(points1[index1 - 1]);
|
234
244
|
const nextPoint1 = points1[index1 + 1];
|
235
|
-
const prevPoint2 = points2[index2 - 1];
|
245
|
+
const prevPoint2 = getPointWidthRightLine(points2[index2 - 1]);
|
236
246
|
const nextPoint2 = points2[index2 + 1];
|
237
247
|
if (prevPoint1 && prevPoint2) {
|
238
|
-
if (prevPoint1
|
239
|
-
const maxPoint = Math.max(prevPoint1
|
240
|
-
_arr1.push([prevPoint1, prevPoint2].find((point) => point
|
248
|
+
if (prevPoint1.left !== prevPoint2.left) {
|
249
|
+
const maxPoint = Math.max(prevPoint1.left, prevPoint2.left);
|
250
|
+
_arr1.push(getXY([prevPoint1, prevPoint2].find((point) => point.left === maxPoint)));
|
241
251
|
}
|
242
252
|
} else if (prevPoint1) {
|
243
|
-
_arr1.push(prevPoint1);
|
253
|
+
_arr1.push(getXY(prevPoint1));
|
244
254
|
} else if (prevPoint2) {
|
245
|
-
_arr2.push(prevPoint2);
|
255
|
+
_arr2.push(getXY(prevPoint2));
|
246
256
|
}
|
247
|
-
const minYPoint = Math.min(currentPoint1[1], currentPoint2[1]);
|
248
|
-
_arr1.push([currentPoint1, currentPoint2].find((point) => point[1] === minYPoint));
|
249
|
-
const maxYPoint = Math.max(currentPoint1[1], currentPoint2[1]);
|
250
|
-
_arr2.push([currentPoint1, currentPoint2].find((point) => point[1] === maxYPoint));
|
251
257
|
const setData = () => {
|
252
258
|
const dataItem = [..._arr1, ..._arr2.reverse()];
|
253
259
|
const [firstPoint] = dataItem;
|
@@ -258,20 +264,29 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
258
264
|
_arr1 = [];
|
259
265
|
_arr2 = [];
|
260
266
|
};
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
267
|
+
const minYPoint = Math.min(currentPoint1.top, currentPoint2.top);
|
268
|
+
const maxYPoint = Math.max(currentPoint1.top, currentPoint2.top);
|
269
|
+
_arr1.push(getXY([currentPoint1, currentPoint2].find((point) => point.top === minYPoint)));
|
270
|
+
_arr2.push(getXY([currentPoint1, currentPoint2].find((point) => point.top === maxYPoint)));
|
271
|
+
if (currentPoint1.breakpoint || currentPoint2.breakpoint) {
|
272
|
+
setData();
|
273
|
+
}
|
274
|
+
if (!currentPoint1.breakpoint && !currentPoint2.breakpoint) {
|
275
|
+
if (nextPoint1 && nextPoint2) {
|
276
|
+
if (nextPoint1.left !== nextPoint2.left) {
|
277
|
+
const minPoint = Math.min(nextPoint1.left, nextPoint2.left);
|
278
|
+
_arr1.push(getXY([nextPoint1, nextPoint2].find((point) => point.left === minPoint)));
|
279
|
+
setData();
|
280
|
+
}
|
281
|
+
} else if (nextPoint1) {
|
282
|
+
_arr1.push(getXY(nextPoint1));
|
283
|
+
setData();
|
284
|
+
} else if (nextPoint2) {
|
285
|
+
_arr2.push(getXY(nextPoint2));
|
286
|
+
setData();
|
287
|
+
} else {
|
265
288
|
setData();
|
266
289
|
}
|
267
|
-
} else if (nextPoint1) {
|
268
|
-
_arr1.push(nextPoint1);
|
269
|
-
setData();
|
270
|
-
} else if (nextPoint2) {
|
271
|
-
_arr2.push(nextPoint2);
|
272
|
-
setData();
|
273
|
-
} else {
|
274
|
-
setData();
|
275
290
|
}
|
276
291
|
});
|
277
292
|
return data;
|
@@ -366,14 +381,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
366
381
|
const pulseObj = yScaleValue.find((item) => item.show && item.type === "pulse");
|
367
382
|
if (!pulseObj || !((_a = pulseObj.dataList) == null ? void 0 : _a.length))
|
368
383
|
return;
|
369
|
-
if (!pulseObj.dataList.some((item) => item.
|
370
|
-
var _a2, _b, _c;
|
371
|
-
try {
|
372
|
-
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.235")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.235")) || "\u8109\u640F";
|
373
|
-
} catch (e) {
|
374
|
-
return "\u8109\u640F";
|
375
|
-
}
|
376
|
-
}())))
|
384
|
+
if (!pulseObj.dataList.some((item) => item.key === "mai"))
|
377
385
|
return;
|
378
386
|
const overlap = Object.assign({}, OVERLAP, left.overlap || {});
|
379
387
|
const points = [];
|
@@ -452,37 +460,10 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
452
460
|
} : nextV, scaleValue) : void 0;
|
453
461
|
const nextItem = nextV ? !_isOneLine ? item : dataList.find((_v) => _v.key === nextV.key) : {};
|
454
462
|
const {
|
455
|
-
|
463
|
+
key = ""
|
456
464
|
} = _item;
|
457
|
-
|
458
|
-
|
459
|
-
try {
|
460
|
-
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.235")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.235")) || "\u8109\u640F";
|
461
|
-
} catch (e) {
|
462
|
-
return "\u8109\u640F";
|
463
|
-
}
|
464
|
-
}() && nextItem.title !== function() {
|
465
|
-
var _a2, _b, _c;
|
466
|
-
try {
|
467
|
-
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.235")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.235")) || "\u8109\u640F";
|
468
|
-
} catch (e) {
|
469
|
-
return "\u8109\u640F";
|
470
|
-
}
|
471
|
-
}() || title !== function() {
|
472
|
-
var _a2, _b, _c;
|
473
|
-
try {
|
474
|
-
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.235")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.235")) || "\u8109\u640F";
|
475
|
-
} catch (e) {
|
476
|
-
return "\u8109\u640F";
|
477
|
-
}
|
478
|
-
}() && nextItem.title === function() {
|
479
|
-
var _a2, _b, _c;
|
480
|
-
try {
|
481
|
-
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.235")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.235")) || "\u8109\u640F";
|
482
|
-
} catch (e) {
|
483
|
-
return "\u8109\u640F";
|
484
|
-
}
|
485
|
-
}()) && points && nextPoint && getFloorNumber(points[0], 1) === getFloorNumber(nextPoint[0], 1)) {
|
465
|
+
const mai = "mai";
|
466
|
+
if (!(key === mai && nextItem.key !== mai || key !== mai && nextItem.key === mai) && points && nextPoint && getFloorNumber(points[0], 1) === getFloorNumber(nextPoint[0], 1)) {
|
486
467
|
const pointOriginX = points[0] - xCellWidth / 2;
|
487
468
|
points[0] = pointOriginX + xCellWidth / 4;
|
488
469
|
nextPoint[0] = nextDoublePointsX = points[0] + xCellWidth / 2;
|
@@ -517,7 +498,11 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
517
498
|
}
|
518
499
|
nextDoublePointsX2 = null;
|
519
500
|
}
|
520
|
-
return
|
501
|
+
return {
|
502
|
+
left: point.left,
|
503
|
+
top: point.top,
|
504
|
+
breakpoint: !point.rightLine
|
505
|
+
};
|
521
506
|
});
|
522
507
|
};
|
523
508
|
if (_isOneLine) {
|
@@ -827,7 +812,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
827
812
|
overlapKey,
|
828
813
|
unit: scaleValue.unit,
|
829
814
|
type,
|
830
|
-
_type: setOtherType(
|
815
|
+
_type: setOtherType(key, type),
|
831
816
|
dataIndex,
|
832
817
|
index,
|
833
818
|
isOneLine: _isOneLine
|
@@ -921,7 +906,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
921
906
|
x: point.left,
|
922
907
|
y: point.top
|
923
908
|
};
|
924
|
-
let timeText =
|
909
|
+
let timeText = `${config.timeLabel} ${((data == null ? void 0 : data.time) || getXValue(point.left)).slice(-5)}`;
|
925
910
|
pointTipProps.list = [getListValue(), timeText];
|
926
911
|
pointTipProps.show = true;
|
927
912
|
function getListValue() {
|
@@ -211,7 +211,7 @@ function useTemperatureChart(canvas, props, emits, canvasRef, pointTipProps, poi
|
|
211
211
|
return item.dataList.filter((v) => v.show).map((v, dataIndex) => {
|
212
212
|
return {
|
213
213
|
...v,
|
214
|
-
bigType: setOtherType(v.
|
214
|
+
bigType: setOtherType(v.key, item.type),
|
215
215
|
unit: item.unit,
|
216
216
|
dataIndex,
|
217
217
|
isOneLine: isOneLine(item)
|
@@ -111,7 +111,11 @@ function useTop(canvas, propItems) {
|
|
111
111
|
const dayList = (gridXNumber - surplusCell[1] - surplusCell[3]) / grid.subSecondXCell;
|
112
112
|
for (let i = 0; i < dayList; i++) {
|
113
113
|
const left = originX + i * width;
|
114
|
-
const
|
114
|
+
const {
|
115
|
+
am,
|
116
|
+
pm
|
117
|
+
} = top.xScalevalue || {};
|
118
|
+
const value = i % 2 === 0 ? am : pm;
|
115
119
|
const textGroup = drawTextGroup({
|
116
120
|
width,
|
117
121
|
height,
|
@@ -9,7 +9,7 @@ export declare function deleteProperty(data: AnyObject, list: AnyObject[]): {};
|
|
9
9
|
*/
|
10
10
|
export declare function isOneLine(scaleItem: AnyObject): any;
|
11
11
|
export declare function getIndex(time: string, list: AnyObject[], isEqual?: boolean): number;
|
12
|
-
export declare function setOtherType(
|
12
|
+
export declare function setOtherType(key: string, type: string): string;
|
13
13
|
export declare function getType(type: string): string;
|
14
14
|
export declare function isValidValue(value: number | string): boolean;
|
15
15
|
export declare function isOverlapPoint(pointObj1: any, pointObj2: any): boolean;
|
@@ -23,8 +23,8 @@ function getIndex(time, list, isEqual = false) {
|
|
23
23
|
});
|
24
24
|
return !~index ? list.length : index;
|
25
25
|
}
|
26
|
-
function setOtherType(
|
27
|
-
return
|
26
|
+
function setOtherType(key, type) {
|
27
|
+
return key === "xinmai" ? "pulse_other" : type;
|
28
28
|
}
|
29
29
|
function getType(type) {
|
30
30
|
return type.includes("_other") ? type.split("_")[0] : type;
|
@@ -225,7 +225,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
225
225
|
round: "",
|
226
226
|
size: 100,
|
227
227
|
onClickCapture: _cache[0] || (_cache[0] = ($event) => showLargeAvatar.value = true)
|
228
|
-
}, 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", {
|
228
|
+
}, 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", {
|
229
229
|
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(userDetail.roleInfo) ? "isDoctor" : ""])
|
230
230
|
}, toDisplayString(unref(getRoleName)(userDetail.roleInfo)), 3), [[vShow, unref(getRoleName)(userDetail.roleInfo)]])]), createElementVNode("p", null, toDisplayString(userDetail.orgName), 1)]), createVNode(unref(NButton), {
|
231
231
|
strong: "",
|
@@ -193,7 +193,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
193
193
|
}]),
|
194
194
|
ref_key: "scaleViewDom",
|
195
195
|
ref: scaleViewDom
|
196
|
-
}, [createCommentVNode(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="\u52A0\u8F7D\u4E2D"></n-spin>\n </template> '), !state.spinning && !state.hasFrontAddress ? (openBlock(), createElementBlock(Fragment, {
|
196
|
+
}, [createCommentVNode(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="\u52A0\u8F7D\u4E2D"></n-spin>\r\n </template> '), !state.spinning && !state.hasFrontAddress ? (openBlock(), createElementBlock(Fragment, {
|
197
197
|
key: 0
|
198
198
|
}, [unref(noDataState).noData ? (openBlock(), createBlock(NoData, {
|
199
199
|
key: 0,
|
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.3.2-beta.
|
3
|
+
"version": "3.3.2-beta.12",
|
4
4
|
"license": "ISC",
|
5
5
|
"module": "./es/components/index.js",
|
6
6
|
"main": "./es/components/index.js",
|
@@ -72,5 +72,5 @@
|
|
72
72
|
"iOS 7",
|
73
73
|
"last 3 iOS versions"
|
74
74
|
],
|
75
|
-
"gitHead": "
|
75
|
+
"gitHead": "633b4fda9850c2c6483402c73379feb3038712d4"
|
76
76
|
}
|