cnhis-design-vue 3.1.31-beta.9 → 3.1.31
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 +123 -123
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/fabric-chart/index.d.ts +207 -0
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +208 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-render/src/components/renderer/checkbox.js +3 -5
- package/es/components/form-render/src/components/renderer/index.js +2 -0
- package/es/components/form-render/src/components/renderer/recommendSelect.d.ts +131 -0
- package/es/components/form-render/src/components/renderer/recommendSelect.js +213 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +0 -1
- package/es/components/form-render/src/components/renderer/select.js +0 -2
- package/es/components/form-render/src/hooks/useAsyncQueue.js +2 -1
- package/es/components/form-render/src/hooks/useAutographOptions.js +3 -5
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +7 -0
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +8 -1
- package/es/components/form-render/src/hooks/useFormRequest.js +24 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/recommend-search/index.d.ts +586 -51
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +596 -59
- package/es/components/recommend-search/src/RecommendSearch.vue.js +36 -8
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +31 -16
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +27 -23
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +136 -53
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +66 -41
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +14 -3
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +35 -25
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +300 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +81 -51
- package/es/components/recommend-search/style/index.css +1 -1
- package/es/shared/assets/img/failure.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,123 +1,123 @@
|
|
|
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. 注意
|
|
65
|
-
|
|
66
|
-
由于 vxe-table 目前的引入方式是由组件 install 触发的,所以如果需要使用 c-grid/c-big-table 组件,需要全局注册二者任意一个
|
|
67
|
-
|
|
68
|
-
```typescript
|
|
69
|
-
// main.ts
|
|
70
|
-
import { createApp } from 'vue';
|
|
71
|
-
import App from './App.vue';
|
|
72
|
-
|
|
73
|
-
import { CGrid } from 'cnhis-design-vue';
|
|
74
|
-
// 或者
|
|
75
|
-
import { CBigTable } from 'cnhis-design-vue';
|
|
76
|
-
|
|
77
|
-
const app = createApp(App);
|
|
78
|
-
app.use(CGrid);
|
|
79
|
-
// 或者
|
|
80
|
-
app.use(CBigTable);
|
|
81
|
-
app.mount('#app');
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
## 4.FAQ
|
|
85
|
-
|
|
86
|
-
### 4.1 项目打包后样式丢失
|
|
87
|
-
|
|
88
|
-
> 处理方法, 将 cnhis-design-vue 从 vendor 包中移除
|
|
89
|
-
|
|
90
|
-
```typescript
|
|
91
|
-
// vite.config.ts
|
|
92
|
-
import { defineConfig } from 'vite';
|
|
93
|
-
|
|
94
|
-
export default defineConfig({
|
|
95
|
-
rollupOptions: {
|
|
96
|
-
// ..otherOptions
|
|
97
|
-
output: {
|
|
98
|
-
dir: './dist',
|
|
99
|
-
manualChunks(id: string) {
|
|
100
|
-
if (id.includes('node_modules') && !id.includes('cnhis-design-vue')) {
|
|
101
|
-
return 'vendor';
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### 4.2 找不到文件
|
|
110
|
-
|
|
111
|
-
> 由于组件库输出文件类型由 js 修改成了 mjs, 如果配置了 resolve 属性的项目, 需要将 mjs 文件类型添加至 extensions 中
|
|
112
|
-
|
|
113
|
-
```javascript
|
|
114
|
-
// vite.config.ts
|
|
115
|
-
const config = {
|
|
116
|
-
// ...otherOptions
|
|
117
|
-
resolve: {
|
|
118
|
-
// ...otherOptions
|
|
119
|
-
// 如果没有配置, 则不用考虑
|
|
120
|
-
extensions: ['.js', '.ts', '.vue', '.json', '.mjs']
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
```
|
|
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. 注意
|
|
65
|
+
|
|
66
|
+
由于 vxe-table 目前的引入方式是由组件 install 触发的,所以如果需要使用 c-grid/c-big-table 组件,需要全局注册二者任意一个
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
// main.ts
|
|
70
|
+
import { createApp } from 'vue';
|
|
71
|
+
import App from './App.vue';
|
|
72
|
+
|
|
73
|
+
import { CGrid } from 'cnhis-design-vue';
|
|
74
|
+
// 或者
|
|
75
|
+
import { CBigTable } from 'cnhis-design-vue';
|
|
76
|
+
|
|
77
|
+
const app = createApp(App);
|
|
78
|
+
app.use(CGrid);
|
|
79
|
+
// 或者
|
|
80
|
+
app.use(CBigTable);
|
|
81
|
+
app.mount('#app');
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## 4.FAQ
|
|
85
|
+
|
|
86
|
+
### 4.1 项目打包后样式丢失
|
|
87
|
+
|
|
88
|
+
> 处理方法, 将 cnhis-design-vue 从 vendor 包中移除
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
// vite.config.ts
|
|
92
|
+
import { defineConfig } from 'vite';
|
|
93
|
+
|
|
94
|
+
export default defineConfig({
|
|
95
|
+
rollupOptions: {
|
|
96
|
+
// ..otherOptions
|
|
97
|
+
output: {
|
|
98
|
+
dir: './dist',
|
|
99
|
+
manualChunks(id: string) {
|
|
100
|
+
if (id.includes('node_modules') && !id.includes('cnhis-design-vue')) {
|
|
101
|
+
return 'vendor';
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 4.2 找不到文件
|
|
110
|
+
|
|
111
|
+
> 由于组件库输出文件类型由 js 修改成了 mjs, 如果配置了 resolve 属性的项目, 需要将 mjs 文件类型添加至 extensions 中
|
|
112
|
+
|
|
113
|
+
```javascript
|
|
114
|
+
// vite.config.ts
|
|
115
|
+
const config = {
|
|
116
|
+
// ...otherOptions
|
|
117
|
+
resolve: {
|
|
118
|
+
// ...otherOptions
|
|
119
|
+
// 如果没有配置, 则不用考虑
|
|
120
|
+
extensions: ['.js', '.ts', '.vue', '.json', '.mjs']
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
```
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/Viewer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/features/modeling';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'diagram-js/lib/navigation/movecanvas';
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
|
+
declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
data: {
|
|
4
|
+
type: null;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
addRenderItem: {
|
|
8
|
+
type: FunctionConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
defaultHeight: number;
|
|
13
|
+
props: {
|
|
14
|
+
data: import("./src/interface").IData;
|
|
15
|
+
addRenderItem?: Function | undefined;
|
|
16
|
+
};
|
|
17
|
+
emits: (event: "change" | "add" | "select", ...args: any[]) => void;
|
|
18
|
+
select: import("vue").Ref<any>;
|
|
19
|
+
canvasRef: any;
|
|
20
|
+
canvas: import("vue").Ref<any>;
|
|
21
|
+
dateHeight: import("vue").ComputedRef<number>;
|
|
22
|
+
hospitalDaysHeight: import("vue").ComputedRef<number>;
|
|
23
|
+
operationDaysHeight: import("vue").ComputedRef<number>;
|
|
24
|
+
xScalevalueHeight: import("vue").ComputedRef<number>;
|
|
25
|
+
breathingHeight: import("vue").ComputedRef<any>;
|
|
26
|
+
gridXNumber: import("vue").ComputedRef<number>;
|
|
27
|
+
gridYNumber: import("vue").ComputedRef<number>;
|
|
28
|
+
endX: import("vue").ComputedRef<number>;
|
|
29
|
+
endXLimit: import("vue").ComputedRef<number>;
|
|
30
|
+
originX: import("vue").ComputedRef<any>;
|
|
31
|
+
endY: import("vue").ComputedRef<number>;
|
|
32
|
+
originY: import("vue").ComputedRef<number>;
|
|
33
|
+
originYLimit: import("vue").ComputedRef<number>;
|
|
34
|
+
xCellWidth: import("vue").ComputedRef<number>;
|
|
35
|
+
yCellHeight: import("vue").ComputedRef<number>;
|
|
36
|
+
iconsWidth: import("vue").ComputedRef<any>;
|
|
37
|
+
xScaleList: import("vue").ComputedRef<any[]>;
|
|
38
|
+
breatheYCell: import("vue").ComputedRef<number>;
|
|
39
|
+
pulseYCell: import("vue").ComputedRef<number>;
|
|
40
|
+
temperatureYCell: import("vue").ComputedRef<number>;
|
|
41
|
+
painYCell: import("vue").ComputedRef<number>;
|
|
42
|
+
event: import("vue").ComputedRef<any>;
|
|
43
|
+
itemList: import("vue").ComputedRef<any[]>;
|
|
44
|
+
painIndex: import("vue").ComputedRef<number>;
|
|
45
|
+
painHeight: import("vue").ComputedRef<number>;
|
|
46
|
+
painOriginY: import("vue").ComputedRef<{
|
|
47
|
+
originY: number;
|
|
48
|
+
endY: number;
|
|
49
|
+
}>;
|
|
50
|
+
vitalSignsOriginY: import("vue").ComputedRef<{
|
|
51
|
+
originY: number;
|
|
52
|
+
endY: number;
|
|
53
|
+
}>;
|
|
54
|
+
topList: import("vue").ComputedRef<import("./src/interface").IDate[]>;
|
|
55
|
+
getRightInfo: import("vue").ComputedRef<any>;
|
|
56
|
+
propItems: any;
|
|
57
|
+
computedYCell: (type: import("./src/interface").IPointType) => number;
|
|
58
|
+
cumputedX: (value: string | number, setAllCenter?: boolean) => any;
|
|
59
|
+
cumputedY: (type: import("./src/interface").IPointType, scaleValueList: number[], value: string | number) => number;
|
|
60
|
+
getXValue: (pointX: number) => string | undefined;
|
|
61
|
+
getYValue: (type: import("./src/interface").IPointType, pointY: number) => number;
|
|
62
|
+
pointTipProps: {
|
|
63
|
+
show: boolean;
|
|
64
|
+
point: {
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
};
|
|
68
|
+
list: string[];
|
|
69
|
+
};
|
|
70
|
+
pointMenuProps: {
|
|
71
|
+
show: boolean;
|
|
72
|
+
point: {
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
};
|
|
76
|
+
list: any[];
|
|
77
|
+
target: any;
|
|
78
|
+
};
|
|
79
|
+
clickMenu: ({ item, target }: {
|
|
80
|
+
item: any;
|
|
81
|
+
target: any;
|
|
82
|
+
}) => void;
|
|
83
|
+
setPopup: (point: any) => void;
|
|
84
|
+
getEqualXTypes: (pointX: number) => import("./src/interface").IPointType[];
|
|
85
|
+
isAddPoint: (x: number) => boolean;
|
|
86
|
+
updateData: (params: any, mode?: string) => void;
|
|
87
|
+
redrawPoints: () => void;
|
|
88
|
+
drawScaleValue: (yScaleValueList: any[]) => void;
|
|
89
|
+
PopupTip: import("vue").DefineComponent<{
|
|
90
|
+
show: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
required: true;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
point: {
|
|
96
|
+
type: null;
|
|
97
|
+
required: true;
|
|
98
|
+
};
|
|
99
|
+
list: {
|
|
100
|
+
type: ArrayConstructor;
|
|
101
|
+
required: false;
|
|
102
|
+
default: () => never[];
|
|
103
|
+
};
|
|
104
|
+
propItems: {
|
|
105
|
+
type: null;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
}, {
|
|
109
|
+
props: {
|
|
110
|
+
show: boolean;
|
|
111
|
+
point: import("./src/interface").ICoordinateValue;
|
|
112
|
+
list: string[];
|
|
113
|
+
propItems: import("./src/interface").IPropItems;
|
|
114
|
+
};
|
|
115
|
+
pointStyle: import("vue").ComputedRef<{
|
|
116
|
+
top: string;
|
|
117
|
+
bottom: string;
|
|
118
|
+
left: string;
|
|
119
|
+
right: string;
|
|
120
|
+
'transform-origin': string;
|
|
121
|
+
}>;
|
|
122
|
+
Teleport: {
|
|
123
|
+
new (): {
|
|
124
|
+
$props: import("vue").VNodeProps & import("vue").TeleportProps;
|
|
125
|
+
};
|
|
126
|
+
__isTeleport: true;
|
|
127
|
+
};
|
|
128
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
129
|
+
show: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
required: true;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
point: {
|
|
135
|
+
type: null;
|
|
136
|
+
required: true;
|
|
137
|
+
};
|
|
138
|
+
list: {
|
|
139
|
+
type: ArrayConstructor;
|
|
140
|
+
required: false;
|
|
141
|
+
default: () => never[];
|
|
142
|
+
};
|
|
143
|
+
propItems: {
|
|
144
|
+
type: null;
|
|
145
|
+
required: true;
|
|
146
|
+
};
|
|
147
|
+
}>>, {
|
|
148
|
+
list: unknown[];
|
|
149
|
+
}>;
|
|
150
|
+
PopupMenu: import("vue").DefineComponent<{
|
|
151
|
+
show: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
list: {
|
|
156
|
+
type: ArrayConstructor;
|
|
157
|
+
default: () => never[];
|
|
158
|
+
};
|
|
159
|
+
point: {
|
|
160
|
+
type: import("vue").PropType<import("./src/interface").ICoordinateValue>;
|
|
161
|
+
};
|
|
162
|
+
propItems: {
|
|
163
|
+
type: import("vue").PropType<import("./src/interface").IPropItems>;
|
|
164
|
+
};
|
|
165
|
+
target: {
|
|
166
|
+
type: import("vue").PropType<any>;
|
|
167
|
+
};
|
|
168
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
169
|
+
show: {
|
|
170
|
+
type: BooleanConstructor;
|
|
171
|
+
default: boolean;
|
|
172
|
+
};
|
|
173
|
+
list: {
|
|
174
|
+
type: ArrayConstructor;
|
|
175
|
+
default: () => never[];
|
|
176
|
+
};
|
|
177
|
+
point: {
|
|
178
|
+
type: import("vue").PropType<import("./src/interface").ICoordinateValue>;
|
|
179
|
+
};
|
|
180
|
+
propItems: {
|
|
181
|
+
type: import("vue").PropType<import("./src/interface").IPropItems>;
|
|
182
|
+
};
|
|
183
|
+
target: {
|
|
184
|
+
type: import("vue").PropType<any>;
|
|
185
|
+
};
|
|
186
|
+
}>> & {
|
|
187
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
188
|
+
onClickMenu?: ((...args: any[]) => any) | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
show: boolean;
|
|
191
|
+
list: unknown[];
|
|
192
|
+
}>;
|
|
193
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "select")[], "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
194
|
+
data: {
|
|
195
|
+
type: null;
|
|
196
|
+
required: true;
|
|
197
|
+
};
|
|
198
|
+
addRenderItem: {
|
|
199
|
+
type: FunctionConstructor;
|
|
200
|
+
required: false;
|
|
201
|
+
};
|
|
202
|
+
}>> & {
|
|
203
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
204
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
205
|
+
onAdd?: ((...args: any[]) => any) | undefined;
|
|
206
|
+
}, {}>>;
|
|
207
|
+
export default FabricChart;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IData, IDate, IPointType, IPropItems } from './interface';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
data: {
|
|
5
|
+
type: null;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
addRenderItem: {
|
|
9
|
+
type: FunctionConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
defaultHeight: number;
|
|
14
|
+
props: {
|
|
15
|
+
data: IData;
|
|
16
|
+
addRenderItem?: Function | undefined;
|
|
17
|
+
};
|
|
18
|
+
emits: (event: "change" | "add" | "select", ...args: any[]) => void;
|
|
19
|
+
select: import("vue").Ref<any>;
|
|
20
|
+
canvasRef: any;
|
|
21
|
+
canvas: import("vue").Ref<any>;
|
|
22
|
+
dateHeight: import("vue").ComputedRef<number>;
|
|
23
|
+
hospitalDaysHeight: import("vue").ComputedRef<number>;
|
|
24
|
+
operationDaysHeight: import("vue").ComputedRef<number>;
|
|
25
|
+
xScalevalueHeight: import("vue").ComputedRef<number>;
|
|
26
|
+
breathingHeight: import("vue").ComputedRef<any>;
|
|
27
|
+
gridXNumber: import("vue").ComputedRef<number>;
|
|
28
|
+
gridYNumber: import("vue").ComputedRef<number>;
|
|
29
|
+
endX: import("vue").ComputedRef<number>;
|
|
30
|
+
endXLimit: import("vue").ComputedRef<number>;
|
|
31
|
+
originX: import("vue").ComputedRef<any>;
|
|
32
|
+
endY: import("vue").ComputedRef<number>;
|
|
33
|
+
originY: import("vue").ComputedRef<number>;
|
|
34
|
+
originYLimit: import("vue").ComputedRef<number>;
|
|
35
|
+
xCellWidth: import("vue").ComputedRef<number>;
|
|
36
|
+
yCellHeight: import("vue").ComputedRef<number>;
|
|
37
|
+
iconsWidth: import("vue").ComputedRef<any>;
|
|
38
|
+
xScaleList: import("vue").ComputedRef<any[]>;
|
|
39
|
+
breatheYCell: import("vue").ComputedRef<number>;
|
|
40
|
+
pulseYCell: import("vue").ComputedRef<number>;
|
|
41
|
+
temperatureYCell: import("vue").ComputedRef<number>;
|
|
42
|
+
painYCell: import("vue").ComputedRef<number>;
|
|
43
|
+
event: import("vue").ComputedRef<any>;
|
|
44
|
+
itemList: import("vue").ComputedRef<any[]>;
|
|
45
|
+
painIndex: import("vue").ComputedRef<number>;
|
|
46
|
+
painHeight: import("vue").ComputedRef<number>;
|
|
47
|
+
painOriginY: import("vue").ComputedRef<{
|
|
48
|
+
originY: number;
|
|
49
|
+
endY: number;
|
|
50
|
+
}>;
|
|
51
|
+
vitalSignsOriginY: import("vue").ComputedRef<{
|
|
52
|
+
originY: number;
|
|
53
|
+
endY: number;
|
|
54
|
+
}>;
|
|
55
|
+
topList: import("vue").ComputedRef<IDate[]>;
|
|
56
|
+
getRightInfo: import("vue").ComputedRef<any>;
|
|
57
|
+
propItems: any;
|
|
58
|
+
computedYCell: (type: IPointType) => number;
|
|
59
|
+
cumputedX: (value: string | number, setAllCenter?: boolean) => any;
|
|
60
|
+
cumputedY: (type: IPointType, scaleValueList: number[], value: string | number) => number;
|
|
61
|
+
getXValue: (pointX: number) => string | undefined;
|
|
62
|
+
getYValue: (type: IPointType, pointY: number) => number;
|
|
63
|
+
pointTipProps: {
|
|
64
|
+
show: boolean;
|
|
65
|
+
point: {
|
|
66
|
+
x: number;
|
|
67
|
+
y: number;
|
|
68
|
+
};
|
|
69
|
+
list: string[];
|
|
70
|
+
};
|
|
71
|
+
pointMenuProps: {
|
|
72
|
+
show: boolean;
|
|
73
|
+
point: {
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
};
|
|
77
|
+
list: any[];
|
|
78
|
+
target: any;
|
|
79
|
+
};
|
|
80
|
+
clickMenu: ({ item, target }: {
|
|
81
|
+
item: any;
|
|
82
|
+
target: any;
|
|
83
|
+
}) => void;
|
|
84
|
+
setPopup: (point: any) => void;
|
|
85
|
+
getEqualXTypes: (pointX: number) => IPointType[];
|
|
86
|
+
isAddPoint: (x: number) => boolean;
|
|
87
|
+
updateData: (params: any, mode?: string) => void;
|
|
88
|
+
redrawPoints: () => void;
|
|
89
|
+
drawScaleValue: (yScaleValueList: any[]) => void;
|
|
90
|
+
PopupTip: import("vue").DefineComponent<{
|
|
91
|
+
show: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
required: true;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
point: {
|
|
97
|
+
type: null;
|
|
98
|
+
required: true;
|
|
99
|
+
};
|
|
100
|
+
list: {
|
|
101
|
+
type: ArrayConstructor;
|
|
102
|
+
required: false;
|
|
103
|
+
default: () => never[];
|
|
104
|
+
};
|
|
105
|
+
propItems: {
|
|
106
|
+
type: null;
|
|
107
|
+
required: true;
|
|
108
|
+
};
|
|
109
|
+
}, {
|
|
110
|
+
props: {
|
|
111
|
+
show: boolean;
|
|
112
|
+
point: import("./interface").ICoordinateValue;
|
|
113
|
+
list: string[];
|
|
114
|
+
propItems: IPropItems;
|
|
115
|
+
};
|
|
116
|
+
pointStyle: import("vue").ComputedRef<{
|
|
117
|
+
top: string;
|
|
118
|
+
bottom: string;
|
|
119
|
+
left: string;
|
|
120
|
+
right: string;
|
|
121
|
+
'transform-origin': string;
|
|
122
|
+
}>;
|
|
123
|
+
Teleport: {
|
|
124
|
+
new (): {
|
|
125
|
+
$props: import("vue").VNodeProps & import("vue").TeleportProps;
|
|
126
|
+
};
|
|
127
|
+
__isTeleport: true;
|
|
128
|
+
};
|
|
129
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
130
|
+
show: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
required: true;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
point: {
|
|
136
|
+
type: null;
|
|
137
|
+
required: true;
|
|
138
|
+
};
|
|
139
|
+
list: {
|
|
140
|
+
type: ArrayConstructor;
|
|
141
|
+
required: false;
|
|
142
|
+
default: () => never[];
|
|
143
|
+
};
|
|
144
|
+
propItems: {
|
|
145
|
+
type: null;
|
|
146
|
+
required: true;
|
|
147
|
+
};
|
|
148
|
+
}>>, {
|
|
149
|
+
list: unknown[];
|
|
150
|
+
}>;
|
|
151
|
+
PopupMenu: import("vue").DefineComponent<{
|
|
152
|
+
show: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
list: {
|
|
157
|
+
type: ArrayConstructor;
|
|
158
|
+
default: () => never[];
|
|
159
|
+
};
|
|
160
|
+
point: {
|
|
161
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
162
|
+
};
|
|
163
|
+
propItems: {
|
|
164
|
+
type: PropType<IPropItems>;
|
|
165
|
+
};
|
|
166
|
+
target: {
|
|
167
|
+
type: PropType<any>;
|
|
168
|
+
};
|
|
169
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
170
|
+
show: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
list: {
|
|
175
|
+
type: ArrayConstructor;
|
|
176
|
+
default: () => never[];
|
|
177
|
+
};
|
|
178
|
+
point: {
|
|
179
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
180
|
+
};
|
|
181
|
+
propItems: {
|
|
182
|
+
type: PropType<IPropItems>;
|
|
183
|
+
};
|
|
184
|
+
target: {
|
|
185
|
+
type: PropType<any>;
|
|
186
|
+
};
|
|
187
|
+
}>> & {
|
|
188
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
189
|
+
onClickMenu?: ((...args: any[]) => any) | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
show: boolean;
|
|
192
|
+
list: unknown[];
|
|
193
|
+
}>;
|
|
194
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "select")[], "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
195
|
+
data: {
|
|
196
|
+
type: null;
|
|
197
|
+
required: true;
|
|
198
|
+
};
|
|
199
|
+
addRenderItem: {
|
|
200
|
+
type: FunctionConstructor;
|
|
201
|
+
required: false;
|
|
202
|
+
};
|
|
203
|
+
}>> & {
|
|
204
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
205
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
206
|
+
onAdd?: ((...args: any[]) => any) | undefined;
|
|
207
|
+
}, {}>;
|
|
208
|
+
export default _default;
|