cnhis-design-vue 3.1.42-beta.35 → 3.1.42-beta.36

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.
Files changed (41) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/classification/index.d.ts +1 -1
  7. package/es/components/classification/src/index.vue.d.ts +2 -2
  8. package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
  9. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  10. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  11. package/es/components/form-render/src/components/renderer/select.d.ts +2 -2
  12. package/es/components/form-render/src/components/renderer/select.js +1 -1
  13. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  14. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  15. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  16. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
  17. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  18. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  19. package/es/components/iho-table/src/types/index.d.ts +1 -0
  20. package/es/components/iho-table/style/index.css +1 -1
  21. package/es/components/index.css +1 -1
  22. package/es/components/recommend-search/index.d.ts +1 -3
  23. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +1 -3
  24. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -3
  25. package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +1 -3
  26. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  27. package/es/components/scale-view/index.d.ts +4 -28
  28. package/es/components/scale-view/src/ScaleView.vue.d.ts +4 -28
  29. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  30. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
  31. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  32. package/es/components/scale-view/src/hooks/use-component.d.ts +73 -0
  33. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  34. package/es/components/table-filter/src/types/index.d.ts +9 -0
  35. package/es/components/vod-chunk-upload/index.d.ts +73 -0
  36. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +73 -0
  37. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  38. package/es/env.d.ts +24 -24
  39. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  40. package/es/shared/utils/tapable/index.d.ts +139 -0
  41. 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
+ ```
@@ -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';
@@ -184,7 +184,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
184
184
  titleName: import("vue").ComputedRef<string>;
185
185
  tooltipTilte: import("vue").ComputedRef<(item: any) => string>;
186
186
  handleFold: (item: import("..").ITreeDataType) => void;
187
- handleItemClick: (child: any, i?: number | undefined, p?: import("..").ITreeDataType | undefined) => void;
187
+ handleItemClick: (child: import("..").IClassifyItemType, i?: number | undefined, p?: import("..").ITreeDataType | undefined) => void;
188
188
  initTree: (conditionSidTemp: string[]) => import("..").IClassifyListType[];
189
189
  getConditionSid: (sid: string, conditionSidVal: string[], p?: import("..").ITreeDataType | undefined) => string[];
190
190
  handleModeChange: () => void;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { IClassifyListType, ITreeDataType, IConditionMapType } from '../../../../es/components/table-filter/src/types';
2
+ import { IClassifyListType, ITreeDataType, IConditionMapType, IClassifyItemType } from '../../../../es/components/table-filter/src/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  tableId: {
5
5
  type: StringConstructor;
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
185
185
  titleName: import("vue").ComputedRef<string>;
186
186
  tooltipTilte: import("vue").ComputedRef<(item: any) => string>;
187
187
  handleFold: (item: ITreeDataType) => void;
188
- handleItemClick: (child: any, i?: number, p?: ITreeDataType) => void;
188
+ handleItemClick: (child: IClassifyItemType, i?: number, p?: ITreeDataType) => void;
189
189
  initTree: (conditionSidTemp: string[]) => IClassifyListType[];
190
190
  getConditionSid: (sid: string, conditionSidVal: string[], p?: ITreeDataType) => string[];
191
191
  handleModeChange: () => void;