cnhis-design-vue 3.1.24-beta.6 → 3.1.24-beta.8

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 +123 -123
  2. package/es/components/big-table/src/BigTable.vue.d.ts +1 -16
  3. package/es/components/chunk-upload/src/chunk-upload-new.js +7 -4
  4. package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js +1 -1
  5. package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +0 -1
  6. package/es/components/index.css +1 -1
  7. package/es/components/scale-view/src/ScaleView.js +1 -1
  8. package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -0
  9. package/es/components/scale-view/src/components/formitem/r-sign.d.ts +34 -0
  10. package/es/components/scale-view/src/components/formitem/r-sign.js +177 -0
  11. package/es/components/scale-view/src/components/formitem/r-upload.js +33 -39
  12. package/es/components/scale-view/src/components/formitem/sign-com.d.ts +63 -0
  13. package/es/components/scale-view/src/components/formitem/sign-com.js +307 -0
  14. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +80 -0
  15. package/es/components/scale-view/src/components/formitem/standard-modal.js +129 -0
  16. package/es/components/scale-view/src/hooks/use-component.d.ts +34 -0
  17. package/es/components/scale-view/src/hooks/use-component.js +18 -14
  18. package/es/components/scale-view/style/index.css +1 -1
  19. package/es/components/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +1 -1
  20. package/es/env.d.ts +24 -24
  21. package/es/shared/assets/img/failure.js +1 -1
  22. package/es/shared/assets/img/icon-asc.js +1 -1
  23. package/es/shared/assets/img/icon-desc.js +1 -1
  24. package/es/shared/assets/img/no-permission.js +1 -1
  25. package/es/shared/assets/img/nodata.js +1 -1
  26. package/es/shared/assets/img/notfound.js +1 -1
  27. package/es/shared/assets/img/qr.js +1 -1
  28. package/es/shared/assets/img/success.js +1 -1
  29. package/es/shared/assets/img/video.js +1 -1
  30. package/es/shared/assets/img/video_default_cover.js +1 -1
  31. package/es/shared/assets/img/video_hover.js +1 -1
  32. package/es/shared/assets/img/video_play_hover.js +1 -1
  33. package/es/shared/assets/img/xb_big.js +1 -1
  34. package/es/shared/assets/img/xb_small.js +1 -1
  35. package/package.json +2 -2
  36. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  37. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  38. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  39. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  40. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  41. package/es/shared/utils/tapable/index.d.ts +0 -139
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
+ ```
@@ -912,22 +912,7 @@ declare const _default: import("vue").DefineComponent<{
912
912
  NIcon: any;
913
913
  CGrid: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{}, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
914
914
  checkMethod: ({ row }: {
915
- row: any; /**
916
- * 针对 bigTable 的设置列
917
- * type: 列的类型
918
- * field: 列字段名(注:属性层级越深,渲染性能将直线下降)
919
- * title: 列标题(支持开启国际化)
920
- * width: 列宽度(如果为空则均匀分配剩余宽度,如果全部列固定了,可能会存在宽屏下不会铺满,可以配合 "%" 或者 "min-width" 布局)
921
- * minWidth: 最小列宽度;会自动将剩余空间按比例分配
922
- * resizable: 列是否允许拖动列宽调整大小
923
- * visible: 列是否显示
924
- * fixed: 将列固定在左侧或者右侧(注意:固定列应该放在左右两侧的位置)
925
- * align: 列对齐方式
926
- * headerAlign: 表头列的对齐方式
927
- * footerAlign: 表尾列的对齐方式
928
- * formatter: 格式化显示内容 Function({cellValue, row, column})
929
- * sortable: 是否允许列排序
930
- */
915
+ row: any;
931
916
  }) => boolean;
932
917
  visibleMethod: ({ row }: any) => boolean;
933
918
  getRowStyle: ({ row }: any) => string | null;
@@ -10,7 +10,10 @@ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
10
10
  const _hoisted_1 = { class: "c-chunk-upload-container" };
11
11
  const _hoisted_2 = /* @__PURE__ */ createElementVNode("p", null, "\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u4E0A\u4F20", -1);
12
12
  const _hoisted_3 = { class: "c-file-list-conatiner" };
13
- const _hoisted_4 = { class: "file-list" };
13
+ const _hoisted_4 = {
14
+ key: 0,
15
+ class: "file-list"
16
+ };
14
17
  const _hoisted_5 = { class: "c-f-item" };
15
18
  const _hoisted_6 = { class: "c-f-item-icon" };
16
19
  const _hoisted_7 = { class: "c-f-item-info" };
@@ -202,7 +205,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
202
205
  }).then(({ data: data2 }) => {
203
206
  if (data2.code === "00000") {
204
207
  statusSet(file, "complete");
205
- if (uploaderDom) {
208
+ if (uploaderDom.value) {
206
209
  let resData = (data2 == null ? void 0 : data2.data) || {};
207
210
  let fileList = uploaderDom.value.fileList;
208
211
  fileList.forEach((v) => {
@@ -383,7 +386,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
383
386
  createVNode(_component_uploader_list, null, {
384
387
  default: withCtx((scope) => [
385
388
  createElementVNode("div", _hoisted_3, [
386
- createElementVNode("ul", _hoisted_4, [
389
+ scope ? (openBlock(), createElementBlock("ul", _hoisted_4, [
387
390
  (openBlock(true), createElementBlock(Fragment, null, renderList(scope.fileList, (file) => {
388
391
  return openBlock(), createElementBlock("li", {
389
392
  key: file.id
@@ -436,7 +439,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
436
439
  ])
437
440
  ]);
438
441
  }), 128))
439
- ])
442
+ ])) : createCommentVNode("v-if", true)
440
443
  ])
441
444
  ]),
442
445
  _: 1
@@ -194,7 +194,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
194
194
  });
195
195
  return (_ctx, _cache) => {
196
196
  return openBlock(), createElementBlock("div", _hoisted_1, [
197
- !__props.isDetail ? withDirectives((openBlock(), createElementBlock("div", {
197
+ !__props.isDetail && !props.isLock ? withDirectives((openBlock(), createElementBlock("div", {
198
198
  key: 0,
199
199
  class: normalizeClass(["c-chunk-uploader-btn", { "disable-upload": unref(isDisabled) }]),
200
200
  onClick: handleBtnOnClick
@@ -169,7 +169,6 @@ declare const _default: import("vue").DefineComponent<{
169
169
  onDragEnd(): void;
170
170
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any[], any, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
171
171
  move: Function;
172
- /** 获取默认值/ 回填 */
173
172
  tag: string;
174
173
  clone: Function;
175
174
  list: unknown[];