cnhis-design-vue 3.1.51-beta.2 → 3.1.51-beta.3
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/index.d.ts +69 -0
- package/es/components/callback/index.js +1 -0
- package/es/components/callback/src/components/dialog/drawer.vue.d.ts +353 -0
- package/es/components/callback/src/components/dialog/drawer.vue.js +1 -0
- package/es/components/callback/src/components/dialog/drawer.vue2.js +1 -0
- package/es/components/callback/src/components/dialog/modal.vue.d.ts +166 -0
- package/es/components/callback/src/components/dialog/modal.vue.js +1 -0
- package/es/components/callback/src/components/dialog/modal.vue2.js +1 -0
- package/es/components/callback/src/components/popup/index.vue.d.ts +48 -0
- package/es/components/callback/src/components/popup/index.vue.js +1 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue.d.ts +62 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue.js +1 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue2.js +1 -0
- package/es/components/callback/src/components/render/enums.d.ts +5 -0
- package/es/components/callback/src/components/render/enums.js +1 -0
- package/es/components/callback/src/components/render/index.vue.d.ts +57 -0
- package/es/components/callback/src/components/render/index.vue.js +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +5700 -0
- package/es/components/callback/src/components/render/popupMaps.js +1 -0
- package/es/components/callback/src/index.vue.d.ts +68 -0
- package/es/components/callback/src/index.vue.js +1 -0
- package/es/components/callback/src/index.vue2.js +1 -0
- package/es/components/callback/src/types/index.d.ts +11 -0
- package/es/components/callback/style/callback-iconfont.ttf +0 -0
- package/es/components/callback/style/index.css +1 -0
- package/es/components/expand-field/index.d.ts +0 -13
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue.d.ts +0 -13
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -3
- package/es/components/index.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +615 -255
- package/es/components/select-label/index.d.ts +617 -256
- package/es/components/select-label/index.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/{iho-select-label/src/LabelFormContent.vue.d.ts → select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts} +5 -5
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -0
- package/es/components/{iho-select-label/src/SelectLabel.vue.d.ts → select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts} +7 -7
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -0
- package/es/components/{iho-select-label/src/components/label-classify.vue.d.ts → select-label/src/ihoLabel/iho-label-classify.vue.d.ts} +1 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -0
- package/es/components/select-label/src/index.vue.d.ts +899 -0
- package/es/components/select-label/src/index.vue.js +1 -0
- package/es/components/select-label/src/index.vue2.js +1 -0
- package/es/components/select-label/src/types/index.js +1 -0
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/iho-select-label/index.d.ts +0 -363
- package/es/components/iho-select-label/index.js +0 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue.js +0 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
- package/es/components/iho-select-label/src/SelectLabel.vue.js +0 -1
- package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
- package/es/components/iho-select-label/src/components/label-classify.vue.js +0 -1
- package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
- package/es/components/iho-select-label/style/iho-select-label-iconfont.ttf +0 -0
- package/es/components/iho-select-label/style/index.css +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
- /package/es/components/{iho-select-label → callback}/src/types/index.js +0 -0
- /package/es/components/{iho-select-label → select-label}/src/types/index.d.ts +0 -0
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
|
+
```
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
|
+
declare const Callback: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
config: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
};
|
|
6
|
+
callbackApiConfig: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
};
|
|
9
|
+
}, {
|
|
10
|
+
emit: (event: "closeModal", ...args: any[]) => void;
|
|
11
|
+
closeModal: (bool: boolean) => void;
|
|
12
|
+
CallbackPopup: import("vue").DefineComponent<{
|
|
13
|
+
options: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
default: () => {
|
|
16
|
+
visible: boolean;
|
|
17
|
+
type: string;
|
|
18
|
+
code: string;
|
|
19
|
+
targetId: string;
|
|
20
|
+
targetName: string;
|
|
21
|
+
openWindowType: string;
|
|
22
|
+
params: string;
|
|
23
|
+
page: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
callbackApiConfig: {
|
|
27
|
+
type: ObjectConstructor;
|
|
28
|
+
};
|
|
29
|
+
}, any, {
|
|
30
|
+
initialProps: {};
|
|
31
|
+
dialogVisible: any;
|
|
32
|
+
}, {}, {
|
|
33
|
+
generateModal(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}>;
|
|
36
|
+
onClose(): Promise<void>;
|
|
37
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeModal"[], "closeModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
options: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
default: () => {
|
|
41
|
+
visible: boolean;
|
|
42
|
+
type: string;
|
|
43
|
+
code: string;
|
|
44
|
+
targetId: string;
|
|
45
|
+
targetName: string;
|
|
46
|
+
openWindowType: string;
|
|
47
|
+
params: string;
|
|
48
|
+
page: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
callbackApiConfig: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
};
|
|
54
|
+
}>> & {
|
|
55
|
+
onCloseModal?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
options: Record<string, any>;
|
|
58
|
+
}>;
|
|
59
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeModal"[], "closeModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
config: {
|
|
61
|
+
type: ObjectConstructor;
|
|
62
|
+
};
|
|
63
|
+
callbackApiConfig: {
|
|
64
|
+
type: ObjectConstructor;
|
|
65
|
+
};
|
|
66
|
+
}>> & {
|
|
67
|
+
onCloseModal?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
}, {}>>;
|
|
69
|
+
export default Callback;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as a}from"../../shared/utils/index.js";import o from"./src/index.vue.js";const s=o;s.install=function(o){a(o,s,r+"Callback")};export{s as default};
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { DrawerPlacement } from 'naive-ui';
|
|
3
|
+
import { ICallbackConfigType } from '../../../../../../es/components/callback/src/types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
options: {
|
|
6
|
+
type: PropType<ICallbackConfigType>;
|
|
7
|
+
};
|
|
8
|
+
visible: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
zIndex: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
closable: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
screen: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
drawerWidth: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
isDrawerBig: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
callbackApiConfig: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
options: {
|
|
38
|
+
type: PropType<ICallbackConfigType>;
|
|
39
|
+
};
|
|
40
|
+
visible: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
zIndex: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
closable: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
screen: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
drawerWidth: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
isDrawerBig: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
callbackApiConfig: {
|
|
65
|
+
type: ObjectConstructor;
|
|
66
|
+
};
|
|
67
|
+
}>> & {
|
|
68
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
onChangeWindow?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
}>>;
|
|
71
|
+
emits: (event: "close" | "changeWindow", ...args: any[]) => void;
|
|
72
|
+
isChangeWindow: import("vue").Ref<boolean>;
|
|
73
|
+
curDrawerWidth: import("vue").Ref<string>;
|
|
74
|
+
placement: import("vue").Ref<DrawerPlacement>;
|
|
75
|
+
initDef: () => void;
|
|
76
|
+
onClose: () => void;
|
|
77
|
+
calculateWidth: (isBig: boolean) => string;
|
|
78
|
+
changeWindow: () => void;
|
|
79
|
+
NDrawer: any;
|
|
80
|
+
NDrawerContent: import("vue").DefineComponent<{
|
|
81
|
+
title: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
};
|
|
84
|
+
headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
85
|
+
footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
86
|
+
bodyStyle: PropType<string | import("vue").CSSProperties>;
|
|
87
|
+
bodyContentStyle: PropType<string | import("vue").CSSProperties>;
|
|
88
|
+
nativeScrollbar: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
scrollbarProps: PropType<import("naive-ui/es/_internal").ScrollbarProps>;
|
|
93
|
+
closable: BooleanConstructor;
|
|
94
|
+
}, {
|
|
95
|
+
handleCloseClick: () => void;
|
|
96
|
+
mergedTheme: import("vue").Ref<{
|
|
97
|
+
common: {
|
|
98
|
+
baseColor: string;
|
|
99
|
+
primaryColor: string;
|
|
100
|
+
primaryColorHover: string;
|
|
101
|
+
primaryColorPressed: string;
|
|
102
|
+
primaryColorSuppl: string;
|
|
103
|
+
infoColor: string;
|
|
104
|
+
infoColorHover: string;
|
|
105
|
+
infoColorPressed: string;
|
|
106
|
+
infoColorSuppl: string;
|
|
107
|
+
successColor: string;
|
|
108
|
+
successColorHover: string;
|
|
109
|
+
successColorPressed: string;
|
|
110
|
+
successColorSuppl: string;
|
|
111
|
+
warningColor: string;
|
|
112
|
+
warningColorHover: string;
|
|
113
|
+
warningColorPressed: string;
|
|
114
|
+
warningColorSuppl: string;
|
|
115
|
+
errorColor: string;
|
|
116
|
+
errorColorHover: string;
|
|
117
|
+
errorColorPressed: string;
|
|
118
|
+
errorColorSuppl: string;
|
|
119
|
+
textColorBase: string;
|
|
120
|
+
textColor1: string;
|
|
121
|
+
textColor2: string;
|
|
122
|
+
textColor3: string;
|
|
123
|
+
textColorDisabled: string;
|
|
124
|
+
placeholderColor: string;
|
|
125
|
+
placeholderColorDisabled: string;
|
|
126
|
+
iconColor: string;
|
|
127
|
+
iconColorHover: string;
|
|
128
|
+
iconColorPressed: string;
|
|
129
|
+
iconColorDisabled: string;
|
|
130
|
+
opacity1: string;
|
|
131
|
+
opacity2: string;
|
|
132
|
+
opacity3: string;
|
|
133
|
+
opacity4: string;
|
|
134
|
+
opacity5: string;
|
|
135
|
+
dividerColor: string;
|
|
136
|
+
borderColor: string;
|
|
137
|
+
closeIconColor: string;
|
|
138
|
+
closeIconColorHover: string;
|
|
139
|
+
closeIconColorPressed: string;
|
|
140
|
+
closeColorHover: string;
|
|
141
|
+
closeColorPressed: string;
|
|
142
|
+
clearColor: string;
|
|
143
|
+
clearColorHover: string;
|
|
144
|
+
clearColorPressed: string;
|
|
145
|
+
scrollbarColor: string;
|
|
146
|
+
scrollbarColorHover: string;
|
|
147
|
+
scrollbarWidth: string;
|
|
148
|
+
scrollbarHeight: string;
|
|
149
|
+
scrollbarBorderRadius: string;
|
|
150
|
+
progressRailColor: string;
|
|
151
|
+
railColor: string;
|
|
152
|
+
popoverColor: string;
|
|
153
|
+
tableColor: string;
|
|
154
|
+
cardColor: string;
|
|
155
|
+
modalColor: string;
|
|
156
|
+
bodyColor: string;
|
|
157
|
+
tagColor: string;
|
|
158
|
+
avatarColor: string;
|
|
159
|
+
invertedColor: string;
|
|
160
|
+
inputColor: string;
|
|
161
|
+
codeColor: string;
|
|
162
|
+
tabColor: string;
|
|
163
|
+
actionColor: string;
|
|
164
|
+
tableHeaderColor: string;
|
|
165
|
+
hoverColor: string;
|
|
166
|
+
tableColorHover: string;
|
|
167
|
+
tableColorStriped: string;
|
|
168
|
+
pressedColor: string;
|
|
169
|
+
opacityDisabled: string;
|
|
170
|
+
inputColorDisabled: string;
|
|
171
|
+
buttonColor2: string;
|
|
172
|
+
buttonColor2Hover: string;
|
|
173
|
+
buttonColor2Pressed: string;
|
|
174
|
+
boxShadow1: string;
|
|
175
|
+
boxShadow2: string;
|
|
176
|
+
boxShadow3: string;
|
|
177
|
+
fontFamily: string;
|
|
178
|
+
fontFamilyMono: string;
|
|
179
|
+
fontWeight: string;
|
|
180
|
+
fontWeightStrong: string;
|
|
181
|
+
cubicBezierEaseInOut: string;
|
|
182
|
+
cubicBezierEaseOut: string;
|
|
183
|
+
cubicBezierEaseIn: string;
|
|
184
|
+
borderRadius: string;
|
|
185
|
+
borderRadiusSmall: string;
|
|
186
|
+
fontSize: string;
|
|
187
|
+
fontSizeMini: string;
|
|
188
|
+
fontSizeTiny: string;
|
|
189
|
+
fontSizeSmall: string;
|
|
190
|
+
fontSizeMedium: string;
|
|
191
|
+
fontSizeLarge: string;
|
|
192
|
+
fontSizeHuge: string;
|
|
193
|
+
lineHeight: string;
|
|
194
|
+
heightMini: string;
|
|
195
|
+
heightTiny: string;
|
|
196
|
+
heightSmall: string;
|
|
197
|
+
heightMedium: string;
|
|
198
|
+
heightLarge: string;
|
|
199
|
+
heightHuge: string;
|
|
200
|
+
name: "common";
|
|
201
|
+
};
|
|
202
|
+
self: {
|
|
203
|
+
bodyPadding: string;
|
|
204
|
+
headerPadding: string;
|
|
205
|
+
footerPadding: string;
|
|
206
|
+
color: string;
|
|
207
|
+
textColor: string;
|
|
208
|
+
titleTextColor: string;
|
|
209
|
+
titleFontSize: string;
|
|
210
|
+
titleFontWeight: string;
|
|
211
|
+
boxShadow: string;
|
|
212
|
+
lineHeight: string;
|
|
213
|
+
headerBorderBottom: string;
|
|
214
|
+
footerBorderTop: string;
|
|
215
|
+
closeIconColor: string;
|
|
216
|
+
closeIconColorHover: string;
|
|
217
|
+
closeIconColorPressed: string;
|
|
218
|
+
closeSize: string;
|
|
219
|
+
closeIconSize: string;
|
|
220
|
+
closeColorHover: string;
|
|
221
|
+
closeColorPressed: string;
|
|
222
|
+
closeBorderRadius: string;
|
|
223
|
+
resizableTriggerColorHover: string;
|
|
224
|
+
};
|
|
225
|
+
peers: {
|
|
226
|
+
Scrollbar: import("naive-ui/es/_mixins").Theme<"Scrollbar", {
|
|
227
|
+
color: string;
|
|
228
|
+
colorHover: string;
|
|
229
|
+
}, any>;
|
|
230
|
+
};
|
|
231
|
+
peerOverrides: {
|
|
232
|
+
Scrollbar?: {
|
|
233
|
+
peers?: {
|
|
234
|
+
[x: string]: any;
|
|
235
|
+
} | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
};
|
|
238
|
+
}>;
|
|
239
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
240
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
241
|
+
title: {
|
|
242
|
+
type: StringConstructor;
|
|
243
|
+
};
|
|
244
|
+
headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
245
|
+
footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
246
|
+
bodyStyle: PropType<string | import("vue").CSSProperties>;
|
|
247
|
+
bodyContentStyle: PropType<string | import("vue").CSSProperties>;
|
|
248
|
+
nativeScrollbar: {
|
|
249
|
+
type: BooleanConstructor;
|
|
250
|
+
default: boolean;
|
|
251
|
+
};
|
|
252
|
+
scrollbarProps: PropType<import("naive-ui/es/_internal").ScrollbarProps>;
|
|
253
|
+
closable: BooleanConstructor;
|
|
254
|
+
}>>, {
|
|
255
|
+
closable: boolean;
|
|
256
|
+
nativeScrollbar: boolean;
|
|
257
|
+
}>;
|
|
258
|
+
renderCb: import("vue").DefineComponent<{
|
|
259
|
+
options: {
|
|
260
|
+
type: ObjectConstructor;
|
|
261
|
+
default: () => {
|
|
262
|
+
visible: boolean;
|
|
263
|
+
type: string;
|
|
264
|
+
code: string;
|
|
265
|
+
targetId: string;
|
|
266
|
+
targetName: string;
|
|
267
|
+
openWindowType: string;
|
|
268
|
+
params: string;
|
|
269
|
+
page: string;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
callbackApiConfig: {
|
|
273
|
+
type: ObjectConstructor;
|
|
274
|
+
};
|
|
275
|
+
}, any, {
|
|
276
|
+
initialProps: {};
|
|
277
|
+
}, {}, {
|
|
278
|
+
getParams(params: any): any;
|
|
279
|
+
handlerCreateURL(url: any, param?: any[]): any;
|
|
280
|
+
getPageProps(): Promise<{
|
|
281
|
+
cache: boolean;
|
|
282
|
+
visible: any;
|
|
283
|
+
iframeUrl: any;
|
|
284
|
+
}>;
|
|
285
|
+
initComponentProps(cfg: any): Promise<void>;
|
|
286
|
+
generateCallback(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
287
|
+
[key: string]: any;
|
|
288
|
+
}> | null;
|
|
289
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeModal"[], "closeModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
290
|
+
options: {
|
|
291
|
+
type: ObjectConstructor;
|
|
292
|
+
default: () => {
|
|
293
|
+
visible: boolean;
|
|
294
|
+
type: string;
|
|
295
|
+
code: string;
|
|
296
|
+
targetId: string;
|
|
297
|
+
targetName: string;
|
|
298
|
+
openWindowType: string;
|
|
299
|
+
params: string;
|
|
300
|
+
page: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
callbackApiConfig: {
|
|
304
|
+
type: ObjectConstructor;
|
|
305
|
+
};
|
|
306
|
+
}>> & {
|
|
307
|
+
onCloseModal?: ((...args: any[]) => any) | undefined;
|
|
308
|
+
}, {
|
|
309
|
+
options: Record<string, any>;
|
|
310
|
+
}>;
|
|
311
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "changeWindow")[], "close" | "changeWindow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
312
|
+
options: {
|
|
313
|
+
type: PropType<ICallbackConfigType>;
|
|
314
|
+
};
|
|
315
|
+
visible: {
|
|
316
|
+
type: BooleanConstructor;
|
|
317
|
+
default: boolean;
|
|
318
|
+
};
|
|
319
|
+
zIndex: {
|
|
320
|
+
type: NumberConstructor;
|
|
321
|
+
default: number;
|
|
322
|
+
};
|
|
323
|
+
closable: {
|
|
324
|
+
type: BooleanConstructor;
|
|
325
|
+
default: boolean;
|
|
326
|
+
};
|
|
327
|
+
screen: {
|
|
328
|
+
type: BooleanConstructor;
|
|
329
|
+
default: boolean;
|
|
330
|
+
};
|
|
331
|
+
drawerWidth: {
|
|
332
|
+
type: StringConstructor;
|
|
333
|
+
default: string;
|
|
334
|
+
};
|
|
335
|
+
isDrawerBig: {
|
|
336
|
+
type: BooleanConstructor;
|
|
337
|
+
default: boolean;
|
|
338
|
+
};
|
|
339
|
+
callbackApiConfig: {
|
|
340
|
+
type: ObjectConstructor;
|
|
341
|
+
};
|
|
342
|
+
}>> & {
|
|
343
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
344
|
+
onChangeWindow?: ((...args: any[]) => any) | undefined;
|
|
345
|
+
}, {
|
|
346
|
+
closable: boolean;
|
|
347
|
+
visible: boolean;
|
|
348
|
+
zIndex: number;
|
|
349
|
+
screen: boolean;
|
|
350
|
+
drawerWidth: string;
|
|
351
|
+
isDrawerBig: boolean;
|
|
352
|
+
}>;
|
|
353
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./drawer.vue2.js";import e from"../../../../../_virtual/_plugin-vue_export-helper.js";var a=e(r,[["__file","drawer.vue"]]);export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as a,onBeforeMount as l,openBlock as i,createBlock as n,unref as o,isRef as t,normalizeStyle as c,withCtx as s,createVNode as u,createElementVNode as r,toDisplayString as d,createElementBlock as p,normalizeClass as v,createCommentVNode as b}from"vue";import{NDrawer as f,NDrawerContent as h}from"naive-ui";import g from"../render/index.vue.js";const m={class:"d-header"},k={class:"title"},y={class:"svg-wrap"};var w=e({__name:"drawer",props:{options:{type:Object},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:1e3},closable:{type:Boolean,default:!0},screen:{type:Boolean,default:!0},drawerWidth:{type:String,default:"60vw"},isDrawerBig:{type:Boolean,default:!1},callbackApiConfig:{type:Object}},emits:["close","changeWindow"],setup(e,{emit:w}){const x=e,z=a(!1),C=a(""),B=a("right");function W(){w("close",!1)}function A(e){let a=document.body.clientWidth;return e?`${a}px`:x.drawerWidth}function _(){z.value=!z.value,C.value=A(z.value),w("changeWindow",z.value)}return l((()=>{!function(){if(!x.isDrawerBig)return void(C.value=x.drawerWidth);C.value=A(!1)}()})),(a,l)=>(i(),n(o(f),{show:e.visible,"onUpdate:show":l[0]||(l[0]=e=>t(visible)?visible.value=e:null),class:"callback-drawer-block",maskClosable:!1,"z-index":e.zIndex,style:c({width:C.value}),placement:B.value,onAfterLeave:W},{default:s((()=>[u(o(h),{closable:!1},{header:s((()=>{var a;return[r("div",m,[r("h3",k,d(null==(a=e.options)?void 0:a.name),1),r("div",y,[e.screen?(i(),p("i",{key:0,style:{"margin-right":"12px"},onClick:_,class:v(z.value?"iconfont-callback icon-callback-menzhenyishengzhanxitongtubiaozuixiaohua":"iconfont-callback icon-callback-menzhenyishengzhanxitongtubiaozuidahua")},null,2)):b("v-if",!0),e.closable?(i(),p("i",{key:1,class:"iconfont-callback icon-callback-menzhenyishengzhanxitongtubiaoguanbi",onClick:W})):b("v-if",!0)])])]})),default:s((()=>[b(" 加载的具体的内容组件 "),u(g,{options:e.options,callbackApiConfig:e.callbackApiConfig},null,8,["options","callbackApiConfig"])])),_:1})])),_:1},8,["show","z-index","style","placement"]))}});export{w as default};
|