cnhis-design-vue 3.1.48-beta.0 → 3.1.48-beta.1

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 (54) hide show
  1. package/README.md +87 -87
  2. package/es/components/iho-table/src/plugins/index.js +1 -1
  3. package/es/components/iho-table/src/plugins/tooltipPlugin.d.ts +1 -0
  4. package/es/components/iho-table/src/plugins/tooltipPlugin.js +1 -0
  5. package/es/components/index.css +1 -1
  6. package/es/components/scale-view/index.d.ts +68 -18
  7. package/es/components/scale-view/src/ScaleView.vue.d.ts +68 -18
  8. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  9. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +53 -0
  10. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -1
  11. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +1 -1
  12. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  13. package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
  14. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
  15. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +5 -0
  16. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  17. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
  18. package/es/components/scale-view/src/hooks/scaleview-methods.d.ts +8 -0
  19. package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -0
  20. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +102 -0
  21. package/es/components/scale-view/src/hooks/scaleview-props.js +1 -0
  22. package/es/components/scale-view/src/hooks/scaleview-state.d.ts +1 -0
  23. package/es/components/scale-view/src/hooks/scaleview-state.js +1 -1
  24. package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +4 -0
  25. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  26. package/es/components/scale-view/src/utils/judge-types.d.ts +8 -0
  27. package/es/components/scale-view/src/utils/judge-types.js +1 -1
  28. package/es/components/scale-view/style/index.css +1 -1
  29. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  30. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  31. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  32. package/es/env.d.ts +25 -25
  33. package/es/shared/assets/img/failure.png.js +1 -1
  34. package/es/shared/assets/img/no-permission.png.js +1 -1
  35. package/es/shared/assets/img/nodata.png.js +1 -1
  36. package/es/shared/assets/img/notfound.png.js +1 -1
  37. package/es/shared/assets/img/qr.png.js +1 -1
  38. package/es/shared/assets/img/success.png.js +1 -1
  39. package/es/shared/assets/img/video.png.js +1 -1
  40. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  41. package/es/shared/assets/img/xb_big.png.js +1 -1
  42. package/es/shared/assets/img/xb_small.png.js +1 -1
  43. package/es/shared/hooks/useDateTime.js +1 -1
  44. package/es/shared/package.json.js +1 -1
  45. package/package.json +2 -2
  46. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  47. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  48. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  49. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  50. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  51. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  52. package/es/shared/utils/tapable/index.d.ts +0 -139
  53. package/es/shared/utils/tapableLess.d.ts +0 -28
  54. package/es/shared/utils/tapableLess.js +0 -1
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
+ ```
@@ -1 +1 @@
1
- import*as e from"./anchorPlugin/index.js";import*as r from"./defaultConfigPlugin/index.js";import*as i from"./fieldConnectionPlugin/index.js";import*as n from"./filterDaterangeRenderPlugin/index.js";import*as s from"./filterRenderPlugin/index.js";import*as d from"./highLightSetPlugin.js";import*as t from"./keyboardEventPlugin/index.js";import*as l from"./lowCodeFieldAdaptorPlugin/index.js";import*as g from"./maxCheckSizePlugin.js";import*as u from"./operationalFormPlugin/index.js";import*as o from"./rendererPlugins/editableWidgets/dateRendererPlugin/index.js";import*as P from"./rendererPlugins/editableWidgets/inputRendererPlugin.js";import*as a from"./rendererPlugins/editableWidgets/numberRendererPlugin.js";import*as m from"./rendererPlugins/editableWidgets/selectRendererPlugin/index.js";import*as x from"./rendererPlugins/editableWidgets/separateRendererPlugin/index.js";import*as f from"./rendererPlugins/editableWidgets/timeRendererPlugin/index.js";import*as p from"./rendererPlugins/widgets/checkRendererPlugin.js";import*as j from"./rendererPlugins/widgets/colorRendererPlugin.js";import*as R from"./rendererPlugins/widgets/defaultRendererPlugin.js";import*as w from"./rendererPlugins/widgets/htmlRendererPlugin.js";import*as b from"./rendererPlugins/widgets/labelRendererPlugin.js";import*as c from"./rendererPlugins/widgets/pictureRendererPlugin.js";import*as h from"./rendererPlugins/widgets/seqRendererPlugin.js";import*as W from"./rowClickPlugin/index.js";import*as C from"./rowDragPlugin/index.js";import*as k from"./rowGroupSettingPlugin/index.js";import*as v from"./varialbleHeightPlugin/index.js";import*as S from"./virtualTreePlugin/index.js";import{separateMetaModule as D}from"../../../../shared/utils/index.js";var F=D(Object.assign({"./anchorPlugin/index.tsx":e,"./defaultConfigPlugin/index.ts":r,"./fieldConnectionPlugin/index.ts":i,"./filterDaterangeRenderPlugin/index.tsx":n,"./filterRenderPlugin/index.tsx":s,"./highLightSetPlugin.tsx":d,"./keyboardEventPlugin/index.ts":t,"./lowCodeFieldAdaptorPlugin/index.tsx":l,"./maxCheckSizePlugin.ts":g,"./operationalFormPlugin/index.ts":u,"./rendererPlugins/editableWidgets/dateRendererPlugin/index.tsx":o,"./rendererPlugins/editableWidgets/inputRendererPlugin.tsx":P,"./rendererPlugins/editableWidgets/numberRendererPlugin.tsx":a,"./rendererPlugins/editableWidgets/selectRendererPlugin/index.tsx":m,"./rendererPlugins/editableWidgets/separateRendererPlugin/index.tsx":x,"./rendererPlugins/editableWidgets/timeRendererPlugin/index.tsx":f,"./rendererPlugins/widgets/checkRendererPlugin.tsx":p,"./rendererPlugins/widgets/colorRendererPlugin.tsx":j,"./rendererPlugins/widgets/defaultRendererPlugin.tsx":R,"./rendererPlugins/widgets/htmlRendererPlugin.tsx":w,"./rendererPlugins/widgets/labelRendererPlugin.tsx":b,"./rendererPlugins/widgets/pictureRendererPlugin.tsx":c,"./rendererPlugins/widgets/seqRendererPlugin.tsx":h,"./rowClickPlugin/index.ts":W,"./rowDragPlugin/index.ts":C,"./rowGroupSettingPlugin/index.ts":k,"./varialbleHeightPlugin/index.tsx":v,"./virtualTreePlugin/index.ts":S}));export{F as default};
1
+ import*as e from"./anchorPlugin/index.js";import*as r from"./defaultConfigPlugin/index.js";import*as i from"./fieldConnectionPlugin/index.js";import*as n from"./filterDaterangeRenderPlugin/index.js";import*as s from"./filterRenderPlugin/index.js";import*as t from"./highLightSetPlugin.js";import*as d from"./keyboardEventPlugin/index.js";import*as l from"./lowCodeFieldAdaptorPlugin/index.js";import*as g from"./maxCheckSizePlugin.js";import*as u from"./operationalFormPlugin/index.js";import*as o from"./rendererPlugins/editableWidgets/dateRendererPlugin/index.js";import*as P from"./rendererPlugins/editableWidgets/inputRendererPlugin.js";import*as a from"./rendererPlugins/editableWidgets/numberRendererPlugin.js";import*as m from"./rendererPlugins/editableWidgets/selectRendererPlugin/index.js";import*as x from"./rendererPlugins/editableWidgets/separateRendererPlugin/index.js";import*as p from"./rendererPlugins/editableWidgets/timeRendererPlugin/index.js";import*as f from"./rendererPlugins/widgets/checkRendererPlugin.js";import*as j from"./rendererPlugins/widgets/colorRendererPlugin.js";import*as R from"./rendererPlugins/widgets/defaultRendererPlugin.js";import*as w from"./rendererPlugins/widgets/htmlRendererPlugin.js";import*as b from"./rendererPlugins/widgets/labelRendererPlugin.js";import*as c from"./rendererPlugins/widgets/pictureRendererPlugin.js";import*as h from"./rendererPlugins/widgets/seqRendererPlugin.js";import*as W from"./rowClickPlugin/index.js";import*as C from"./rowDragPlugin/index.js";import*as k from"./rowGroupSettingPlugin/index.js";import*as v from"./tooltipPlugin.js";import*as S from"./varialbleHeightPlugin/index.js";import*as D from"./virtualTreePlugin/index.js";import{separateMetaModule as F}from"../../../../shared/utils/index.js";var q=F(Object.assign({"./anchorPlugin/index.tsx":e,"./defaultConfigPlugin/index.ts":r,"./fieldConnectionPlugin/index.ts":i,"./filterDaterangeRenderPlugin/index.tsx":n,"./filterRenderPlugin/index.tsx":s,"./highLightSetPlugin.tsx":t,"./keyboardEventPlugin/index.ts":d,"./lowCodeFieldAdaptorPlugin/index.tsx":l,"./maxCheckSizePlugin.ts":g,"./operationalFormPlugin/index.ts":u,"./rendererPlugins/editableWidgets/dateRendererPlugin/index.tsx":o,"./rendererPlugins/editableWidgets/inputRendererPlugin.tsx":P,"./rendererPlugins/editableWidgets/numberRendererPlugin.tsx":a,"./rendererPlugins/editableWidgets/selectRendererPlugin/index.tsx":m,"./rendererPlugins/editableWidgets/separateRendererPlugin/index.tsx":x,"./rendererPlugins/editableWidgets/timeRendererPlugin/index.tsx":p,"./rendererPlugins/widgets/checkRendererPlugin.tsx":f,"./rendererPlugins/widgets/colorRendererPlugin.tsx":j,"./rendererPlugins/widgets/defaultRendererPlugin.tsx":R,"./rendererPlugins/widgets/htmlRendererPlugin.tsx":w,"./rendererPlugins/widgets/labelRendererPlugin.tsx":b,"./rendererPlugins/widgets/pictureRendererPlugin.tsx":c,"./rendererPlugins/widgets/seqRendererPlugin.tsx":h,"./rowClickPlugin/index.ts":W,"./rowDragPlugin/index.ts":C,"./rowGroupSettingPlugin/index.ts":k,"./tooltipPlugin.ts":v,"./varialbleHeightPlugin/index.tsx":S,"./virtualTreePlugin/index.ts":D}));export{q as default};
@@ -0,0 +1 @@
1
+ export declare function tooltipPlugin(): import("../../../../../es/components/iho-table").TablePlugin;
@@ -0,0 +1 @@
1
+ import"../../index.js";import{IhoTableUtils as o,parseMergeField as e,isRichContent as t,parseRichContent as l}from"../utils/index.js";import{WIDGET_TYPE as r}from"../constants/index.js";import{isObject as i}from"@vue/shared";import{isArray as n}from"lodash-es";import{jsonParse as s}from"../../../../shared/utils/index.js";import{defineTablePlugin as p}from"../hooks/useTablePlugin.js";function a(){const a="tooltipPlugin";return p({name:a,apply(p){p.fieldHooks.field.tap(a,((p,a,d,u)=>{var f,m;const c=null==(f=p.editRender)?void 0:f.props;if(!i(c))return p;const h=o.getCellType(c);return(null==(m=d.tooltipConfig)?void 0:m.showAll)&&(h!==r.LABEL&&h!==r.DEFAULT||(p.showOverflow="tooltip")),h!==r.PICTURE&&h!==r.HEADPORTRAIT&&h!==r.HTML||(p.showOverflow="ellipsis"),d.tooltipConfig={contentMethod:i=>{var p;const{column:a,row:d}=i,u=null==(p=a.editRender)?void 0:p.props;switch(o.getCellType(u)){case r.LABEL:{const o=s(d[a.field]);return n(o.labels)?o.labels.map((o=>o.labelName)).join(","):o.labelStr}case r.DEFAULT:{const o=e(d,a);if(t(o)){return l(o).change_text}return o}case r.HTML:return""}},...d.tooltipConfig},p}))}})}export{a as tooltipPlugin};