cnhis-design-vue 3.1.3 → 3.1.4-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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [3.1.4-beta.1](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/compare/v3.1.4...v3.1.4-beta.1) (2022-06-07)
6
+
7
+ ### [3.1.4](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/compare/v3.1.3...v3.1.4) (2022-06-07)
8
+
9
+
10
+ ### Features
11
+
12
+ * 提供一个安全的组件注册器 ([faa608a](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/faa608a6c8b49ad9c6f7fa50edb3546ab61e347b))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 打印身份校验弹框未显示标题 ([cfad93c](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/cfad93c748712358fe0552861c13d52049f730f5))
18
+
5
19
  ### [3.1.3](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/compare/v3.1.2...v3.1.3) (2022-06-06)
6
20
 
7
21
 
@@ -1,10 +1,14 @@
1
1
  import { KEY_COMPONENT_NAME } from 'cnhis-design-vue/es/src/global/variable';
2
+ import { safeComponentRegister, getComponentName, loadVxeTable } from 'cnhis-design-vue/es/src/utils';
3
+ import { CGrid } from 'cnhis-design-vue/es/packages/index';
2
4
  import './src/BigTable2.mjs';
3
5
  import script from './src/BigTable.vue_vue_type_script_setup_true_lang.mjs';
4
6
 
5
7
  const BigTable = script;
6
8
  BigTable.install = function(app) {
7
- app.component(KEY_COMPONENT_NAME + BigTable.name, BigTable);
9
+ safeComponentRegister(app, BigTable, KEY_COMPONENT_NAME + getComponentName(BigTable));
10
+ safeComponentRegister(app, CGrid, KEY_COMPONENT_NAME + getComponentName(CGrid));
11
+ loadVxeTable(app);
8
12
  };
9
13
 
10
14
  export { BigTable as default };
@@ -20,11 +20,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
20
20
  required: false;
21
21
  default: string;
22
22
  };
23
- identityVerificationTitle: {
24
- type: StringConstructor;
25
- required: false;
26
- default: string;
27
- };
28
23
  params: {
29
24
  type: ArrayConstructor;
30
25
  required: false;
@@ -35,11 +30,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
35
30
  required: false;
36
31
  default: () => Promise<void>;
37
32
  };
38
- verifyUser: {
39
- type: FunctionConstructor;
40
- required: false;
41
- default: () => Promise<void>;
42
- };
43
33
  queryPrintFormatByNumber: {
44
34
  type: FunctionConstructor;
45
35
  required: true;
@@ -93,11 +83,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
93
83
  required: false;
94
84
  default: string;
95
85
  };
96
- identityVerificationTitle: {
97
- type: StringConstructor;
98
- required: false;
99
- default: string;
100
- };
101
86
  params: {
102
87
  type: ArrayConstructor;
103
88
  required: false;
@@ -108,11 +93,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
108
93
  required: false;
109
94
  default: () => Promise<void>;
110
95
  };
111
- verifyUser: {
112
- type: FunctionConstructor;
113
- required: false;
114
- default: () => Promise<void>;
115
- };
116
96
  queryPrintFormatByNumber: {
117
97
  type: FunctionConstructor;
118
98
  required: true;
@@ -2539,6 +2519,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
2539
2519
  identityVerificationTitle: {
2540
2520
  type: StringConstructor;
2541
2521
  required: false;
2522
+ default: string;
2542
2523
  };
2543
2524
  modelValue: {
2544
2525
  type: BooleanConstructor;
@@ -2552,7 +2533,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
2552
2533
  };
2553
2534
  props: {
2554
2535
  verifyUser: Function;
2555
- identityVerificationTitle?: string | undefined;
2536
+ identityVerificationTitle: string;
2556
2537
  modelValue: boolean;
2557
2538
  };
2558
2539
  emit: (event: "success" | "update:modelValue", ...args: any[]) => void;
@@ -7299,6 +7280,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
7299
7280
  identityVerificationTitle: {
7300
7281
  type: StringConstructor;
7301
7282
  required: false;
7283
+ default: string;
7302
7284
  };
7303
7285
  modelValue: {
7304
7286
  type: BooleanConstructor;
@@ -7309,6 +7291,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
7309
7291
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
7310
7292
  }, {
7311
7293
  verifyUser: Function;
7294
+ identityVerificationTitle: string;
7312
7295
  }>;
7313
7296
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "clickoutside")[], "success" | "error" | "clickoutside", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7314
7297
  btnText: {
@@ -7331,11 +7314,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
7331
7314
  required: false;
7332
7315
  default: string;
7333
7316
  };
7334
- identityVerificationTitle: {
7335
- type: StringConstructor;
7336
- required: false;
7337
- default: string;
7338
- };
7339
7317
  params: {
7340
7318
  type: ArrayConstructor;
7341
7319
  required: false;
@@ -7346,11 +7324,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
7346
7324
  required: false;
7347
7325
  default: () => Promise<void>;
7348
7326
  };
7349
- verifyUser: {
7350
- type: FunctionConstructor;
7351
- required: false;
7352
- default: () => Promise<void>;
7353
- };
7354
7327
  queryPrintFormatByNumber: {
7355
7328
  type: FunctionConstructor;
7356
7329
  required: true;
@@ -7390,9 +7363,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
7390
7363
  printText: string;
7391
7364
  previewText: string;
7392
7365
  formatEditText: string;
7393
- identityVerificationTitle: string;
7394
7366
  prevFn: Function;
7395
- verifyUser: Function;
7396
7367
  queryPrintFormatByNumber: Function;
7397
7368
  queryTemplateParams: Function;
7398
7369
  strategy: string;
@@ -1,10 +1,11 @@
1
1
  import { KEY_COMPONENT_NAME } from 'cnhis-design-vue/es/src/global/variable';
2
+ import { safeComponentRegister, getComponentName } from 'cnhis-design-vue/es/src/utils';
2
3
  import './src/ButtonPrint2.mjs';
3
4
  import script from './src/ButtonPrint.vue_vue_type_script_setup_true_lang.mjs';
4
5
 
5
6
  const ButtonPrint = script;
6
7
  ButtonPrint.install = function(app) {
7
- app.component(KEY_COMPONENT_NAME + ButtonPrint.name, ButtonPrint);
8
+ safeComponentRegister(app, ButtonPrint, KEY_COMPONENT_NAME + getComponentName(ButtonPrint));
8
9
  };
9
10
 
10
11
  export { ButtonPrint as default };
@@ -19,11 +19,6 @@ declare const _default: import("vue").DefineComponent<{
19
19
  required: false;
20
20
  default: string;
21
21
  };
22
- identityVerificationTitle: {
23
- type: StringConstructor;
24
- required: false;
25
- default: string;
26
- };
27
22
  params: {
28
23
  type: ArrayConstructor;
29
24
  required: false;
@@ -34,11 +29,6 @@ declare const _default: import("vue").DefineComponent<{
34
29
  required: false;
35
30
  default: () => Promise<void>;
36
31
  };
37
- verifyUser: {
38
- type: FunctionConstructor;
39
- required: false;
40
- default: () => Promise<void>;
41
- };
42
32
  queryPrintFormatByNumber: {
43
33
  type: FunctionConstructor;
44
34
  required: true;
@@ -92,11 +82,6 @@ declare const _default: import("vue").DefineComponent<{
92
82
  required: false;
93
83
  default: string;
94
84
  };
95
- identityVerificationTitle: {
96
- type: StringConstructor;
97
- required: false;
98
- default: string;
99
- };
100
85
  params: {
101
86
  type: ArrayConstructor;
102
87
  required: false;
@@ -107,11 +92,6 @@ declare const _default: import("vue").DefineComponent<{
107
92
  required: false;
108
93
  default: () => Promise<void>;
109
94
  };
110
- verifyUser: {
111
- type: FunctionConstructor;
112
- required: false;
113
- default: () => Promise<void>;
114
- };
115
95
  queryPrintFormatByNumber: {
116
96
  type: FunctionConstructor;
117
97
  required: true;
@@ -2538,6 +2518,7 @@ declare const _default: import("vue").DefineComponent<{
2538
2518
  identityVerificationTitle: {
2539
2519
  type: StringConstructor;
2540
2520
  required: false;
2521
+ default: string;
2541
2522
  };
2542
2523
  modelValue: {
2543
2524
  type: BooleanConstructor;
@@ -2551,7 +2532,7 @@ declare const _default: import("vue").DefineComponent<{
2551
2532
  };
2552
2533
  props: {
2553
2534
  verifyUser: Function;
2554
- identityVerificationTitle?: string | undefined;
2535
+ identityVerificationTitle: string;
2555
2536
  modelValue: boolean;
2556
2537
  };
2557
2538
  emit: (event: "success" | "update:modelValue", ...args: any[]) => void;
@@ -7298,6 +7279,7 @@ declare const _default: import("vue").DefineComponent<{
7298
7279
  identityVerificationTitle: {
7299
7280
  type: StringConstructor;
7300
7281
  required: false;
7282
+ default: string;
7301
7283
  };
7302
7284
  modelValue: {
7303
7285
  type: BooleanConstructor;
@@ -7308,6 +7290,7 @@ declare const _default: import("vue").DefineComponent<{
7308
7290
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
7309
7291
  }, {
7310
7292
  verifyUser: Function;
7293
+ identityVerificationTitle: string;
7311
7294
  }>;
7312
7295
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "clickoutside")[], "success" | "error" | "clickoutside", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7313
7296
  btnText: {
@@ -7330,11 +7313,6 @@ declare const _default: import("vue").DefineComponent<{
7330
7313
  required: false;
7331
7314
  default: string;
7332
7315
  };
7333
- identityVerificationTitle: {
7334
- type: StringConstructor;
7335
- required: false;
7336
- default: string;
7337
- };
7338
7316
  params: {
7339
7317
  type: ArrayConstructor;
7340
7318
  required: false;
@@ -7345,11 +7323,6 @@ declare const _default: import("vue").DefineComponent<{
7345
7323
  required: false;
7346
7324
  default: () => Promise<void>;
7347
7325
  };
7348
- verifyUser: {
7349
- type: FunctionConstructor;
7350
- required: false;
7351
- default: () => Promise<void>;
7352
- };
7353
7326
  queryPrintFormatByNumber: {
7354
7327
  type: FunctionConstructor;
7355
7328
  required: true;
@@ -7389,9 +7362,7 @@ declare const _default: import("vue").DefineComponent<{
7389
7362
  printText: string;
7390
7363
  previewText: string;
7391
7364
  formatEditText: string;
7392
- identityVerificationTitle: string;
7393
7365
  prevFn: Function;
7394
- verifyUser: Function;
7395
7366
  queryPrintFormatByNumber: Function;
7396
7367
  queryTemplateParams: Function;
7397
7368
  strategy: string;
@@ -29,11 +29,6 @@ var script = /* @__PURE__ */ defineComponent({
29
29
  required: false,
30
30
  default: "\u683C\u5F0F\u7F16\u8F91"
31
31
  },
32
- identityVerificationTitle: {
33
- type: String,
34
- required: false,
35
- default: "\u6253\u5370\u670D\u52A1\u8EAB\u4EFD\u6821\u9A8C"
36
- },
37
32
  params: {
38
33
  type: Array,
39
34
  required: false,
@@ -44,11 +39,6 @@ var script = /* @__PURE__ */ defineComponent({
44
39
  required: false,
45
40
  default: () => Promise.resolve()
46
41
  },
47
- verifyUser: {
48
- type: Function,
49
- required: false,
50
- default: () => Promise.resolve()
51
- },
52
42
  queryPrintFormatByNumber: {
53
43
  type: Function,
54
44
  required: true,
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<{
8
8
  identityVerificationTitle: {
9
9
  type: StringConstructor;
10
10
  required: false;
11
+ default: string;
11
12
  };
12
13
  modelValue: {
13
14
  type: BooleanConstructor;
@@ -21,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
21
22
  };
22
23
  props: {
23
24
  verifyUser: Function;
24
- identityVerificationTitle?: string | undefined;
25
+ identityVerificationTitle: string;
25
26
  modelValue: boolean;
26
27
  };
27
28
  emit: (event: "success" | "update:modelValue", ...args: any[]) => void;
@@ -4768,6 +4769,7 @@ declare const _default: import("vue").DefineComponent<{
4768
4769
  identityVerificationTitle: {
4769
4770
  type: StringConstructor;
4770
4771
  required: false;
4772
+ default: string;
4771
4773
  };
4772
4774
  modelValue: {
4773
4775
  type: BooleanConstructor;
@@ -4778,5 +4780,6 @@ declare const _default: import("vue").DefineComponent<{
4778
4780
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
4779
4781
  }, {
4780
4782
  verifyUser: Function;
4783
+ identityVerificationTitle: string;
4781
4784
  }>;
4782
4785
  export default _default;
@@ -7,7 +7,7 @@ var script = /* @__PURE__ */ defineComponent({
7
7
  name: "IdentityVerification",
8
8
  props: {
9
9
  verifyUser: { type: Function, required: false, default: () => Promise.resolve() },
10
- identityVerificationTitle: { type: String, required: false },
10
+ identityVerificationTitle: { type: String, required: false, default: "\u6253\u5370\u670D\u52A1\u8EAB\u4EFD\u6821\u9A8C" },
11
11
  modelValue: { type: Boolean, required: true }
12
12
  },
13
13
  emits: ["update:modelValue", "success"],
@@ -1,10 +1,11 @@
1
1
  import { KEY_COMPONENT_NAME } from 'cnhis-design-vue/es/src/global/variable';
2
+ import { safeComponentRegister, getComponentName } from 'cnhis-design-vue/es/src/utils';
2
3
  import './src/DragLayout2.mjs';
3
4
  import script from './src/DragLayout.vue_vue_type_script_setup_true_lang.mjs';
4
5
 
5
6
  const DragLayout = script;
6
7
  DragLayout.install = function(app) {
7
- app.component(KEY_COMPONENT_NAME + DragLayout.name, DragLayout);
8
+ safeComponentRegister(app, DragLayout, KEY_COMPONENT_NAME + getComponentName(DragLayout));
8
9
  };
9
10
 
10
11
  export { DragLayout as default };
@@ -1,10 +1,11 @@
1
1
  import { KEY_COMPONENT_NAME } from 'cnhis-design-vue/es/src/global/variable';
2
+ import { safeComponentRegister, getComponentName } from 'cnhis-design-vue/es/src/utils';
2
3
  import './src/FieldSet2.mjs';
3
4
  import script from './src/FieldSet.vue_vue_type_script_setup_true_lang.mjs';
4
5
 
5
6
  const FieldSet = script;
6
7
  FieldSet.install = function(app) {
7
- app.component(KEY_COMPONENT_NAME + FieldSet.name, FieldSet);
8
+ safeComponentRegister(app, FieldSet, KEY_COMPONENT_NAME + getComponentName(FieldSet));
8
9
  };
9
10
 
10
11
  export { FieldSet as default };
@@ -1,5 +1,3 @@
1
1
  import { SFCWithInstall } from 'cnhis-design-vue/es/src/types';
2
- import 'vxe-table/lib/style.css';
3
- import 'xe-utils';
4
2
  declare const Grid: SFCWithInstall<import("vue").DefineComponent<{}, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
5
3
  export default Grid;
@@ -1,13 +1,11 @@
1
1
  import { KEY_COMPONENT_NAME } from 'cnhis-design-vue/es/src/global/variable';
2
- import 'vxe-table/lib/style.css';
3
- import 'xe-utils';
4
- import VXETable from 'vxe-table';
2
+ import { safeComponentRegister, getComponentName, loadVxeTable } from 'cnhis-design-vue/es/src/utils';
5
3
  import script from './src/Grid.mjs';
6
4
 
7
5
  const Grid = script;
8
6
  Grid.install = function(app) {
9
- app.use(VXETable);
10
- app.component(KEY_COMPONENT_NAME + Grid.name, Grid);
7
+ safeComponentRegister(app, Grid, KEY_COMPONENT_NAME + getComponentName(Grid));
8
+ loadVxeTable(app);
11
9
  };
12
10
 
13
11
  export { Grid as default };
File without changes
@@ -0,0 +1 @@
1
+ // 兼容style插件所创建的空样式
@@ -574,8 +574,8 @@ body > .vxe-table--tooltip-wrapper {
574
574
  line-height: 16px;
575
575
  }
576
576
  .search-tree-wrap .info-wrap {
577
- text-overflow: ellipsis;
578
577
  overflow: hidden;
578
+ text-overflow: ellipsis;
579
579
  white-space: nowrap;
580
580
  display: flex;
581
581
  flex-direction: column;
@@ -584,8 +584,8 @@ body > .vxe-table--tooltip-wrapper {
584
584
  align-items: flex-end;
585
585
  margin: 0;
586
586
  margin-bottom: 1px;
587
- text-overflow: ellipsis;
588
587
  overflow: hidden;
588
+ text-overflow: ellipsis;
589
589
  white-space: nowrap;
590
590
  }
591
591
  .search-tree-wrap .info-wrap-title {
@@ -24770,11 +24770,6 @@ declare const _default: {
24770
24770
  required: false;
24771
24771
  default: string;
24772
24772
  };
24773
- identityVerificationTitle: {
24774
- type: StringConstructor;
24775
- required: false;
24776
- default: string;
24777
- };
24778
24773
  params: {
24779
24774
  type: ArrayConstructor;
24780
24775
  required: false;
@@ -24785,11 +24780,6 @@ declare const _default: {
24785
24780
  required: false;
24786
24781
  default: () => Promise<void>;
24787
24782
  };
24788
- verifyUser: {
24789
- type: FunctionConstructor;
24790
- required: false;
24791
- default: () => Promise<void>;
24792
- };
24793
24783
  queryPrintFormatByNumber: {
24794
24784
  type: FunctionConstructor;
24795
24785
  required: true;
@@ -24843,11 +24833,6 @@ declare const _default: {
24843
24833
  required: false;
24844
24834
  default: string;
24845
24835
  };
24846
- identityVerificationTitle: {
24847
- type: StringConstructor;
24848
- required: false;
24849
- default: string;
24850
- };
24851
24836
  params: {
24852
24837
  type: ArrayConstructor;
24853
24838
  required: false;
@@ -24858,11 +24843,6 @@ declare const _default: {
24858
24843
  required: false;
24859
24844
  default: () => Promise<void>;
24860
24845
  };
24861
- verifyUser: {
24862
- type: FunctionConstructor;
24863
- required: false;
24864
- default: () => Promise<void>;
24865
- };
24866
24846
  queryPrintFormatByNumber: {
24867
24847
  type: FunctionConstructor;
24868
24848
  required: true;
@@ -27289,6 +27269,7 @@ declare const _default: {
27289
27269
  identityVerificationTitle: {
27290
27270
  type: StringConstructor;
27291
27271
  required: false;
27272
+ default: string;
27292
27273
  };
27293
27274
  modelValue: {
27294
27275
  type: BooleanConstructor;
@@ -27302,7 +27283,7 @@ declare const _default: {
27302
27283
  };
27303
27284
  props: {
27304
27285
  verifyUser: Function;
27305
- identityVerificationTitle?: string | undefined;
27286
+ identityVerificationTitle: string;
27306
27287
  modelValue: boolean;
27307
27288
  };
27308
27289
  emit: (event: "success" | "update:modelValue", ...args: any[]) => void;
@@ -32049,6 +32030,7 @@ declare const _default: {
32049
32030
  identityVerificationTitle: {
32050
32031
  type: StringConstructor;
32051
32032
  required: false;
32033
+ default: string;
32052
32034
  };
32053
32035
  modelValue: {
32054
32036
  type: BooleanConstructor;
@@ -32059,6 +32041,7 @@ declare const _default: {
32059
32041
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
32060
32042
  }, {
32061
32043
  verifyUser: Function;
32044
+ identityVerificationTitle: string;
32062
32045
  }>;
32063
32046
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "clickoutside")[], "success" | "error" | "clickoutside", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32064
32047
  btnText: {
@@ -32081,11 +32064,6 @@ declare const _default: {
32081
32064
  required: false;
32082
32065
  default: string;
32083
32066
  };
32084
- identityVerificationTitle: {
32085
- type: StringConstructor;
32086
- required: false;
32087
- default: string;
32088
- };
32089
32067
  params: {
32090
32068
  type: ArrayConstructor;
32091
32069
  required: false;
@@ -32096,11 +32074,6 @@ declare const _default: {
32096
32074
  required: false;
32097
32075
  default: () => Promise<void>;
32098
32076
  };
32099
- verifyUser: {
32100
- type: FunctionConstructor;
32101
- required: false;
32102
- default: () => Promise<void>;
32103
- };
32104
32077
  queryPrintFormatByNumber: {
32105
32078
  type: FunctionConstructor;
32106
32079
  required: true;
@@ -32140,9 +32113,7 @@ declare const _default: {
32140
32113
  printText: string;
32141
32114
  previewText: string;
32142
32115
  formatEditText: string;
32143
- identityVerificationTitle: string;
32144
32116
  prevFn: Function;
32145
- verifyUser: Function;
32146
32117
  queryPrintFormatByNumber: Function;
32147
32118
  queryTemplateParams: Function;
32148
32119
  strategy: string;
@@ -714,7 +714,6 @@ body {
714
714
  .info-wrap {
715
715
  overflow: hidden;
716
716
  text-overflow: ellipsis;
717
- overflow: hidden;
718
717
  white-space: nowrap;
719
718
  display: flex;
720
719
  flex-direction: column;
@@ -726,7 +725,6 @@ body {
726
725
  margin-bottom: 1px;
727
726
  overflow: hidden;
728
727
  text-overflow: ellipsis;
729
- overflow: hidden;
730
728
  white-space: nowrap;
731
729
  }
732
730
 
@@ -1,10 +1,11 @@
1
1
  import { KEY_COMPONENT_NAME } from 'cnhis-design-vue/es/src/global/variable';
2
+ import { safeComponentRegister, getComponentName } from 'cnhis-design-vue/es/src/utils';
2
3
  import './src/SelectPerson2.mjs';
3
4
  import script from './src/SelectPerson.vue_vue_type_script_setup_true_lang.mjs';
4
5
 
5
6
  const SelectPerson = script;
6
7
  SelectPerson.install = function(app) {
7
- app.component(KEY_COMPONENT_NAME + SelectPerson.name, SelectPerson);
8
+ safeComponentRegister(app, SelectPerson, KEY_COMPONENT_NAME + getComponentName(SelectPerson));
8
9
  };
9
10
 
10
11
  export { SelectPerson as default };
@@ -126,8 +126,8 @@
126
126
  line-height: 16px;
127
127
  }
128
128
  .search-tree-wrap .info-wrap {
129
- text-overflow: ellipsis;
130
129
  overflow: hidden;
130
+ text-overflow: ellipsis;
131
131
  white-space: nowrap;
132
132
  display: flex;
133
133
  flex-direction: column;
@@ -136,8 +136,8 @@
136
136
  align-items: flex-end;
137
137
  margin: 0;
138
138
  margin-bottom: 1px;
139
- text-overflow: ellipsis;
140
139
  overflow: hidden;
140
+ text-overflow: ellipsis;
141
141
  white-space: nowrap;
142
142
  }
143
143
  .search-tree-wrap .info-wrap-title {
@@ -154,7 +154,6 @@
154
154
  .info-wrap {
155
155
  overflow: hidden;
156
156
  text-overflow: ellipsis;
157
- overflow: hidden;
158
157
  white-space: nowrap;
159
158
  display: flex;
160
159
  flex-direction: column;
@@ -166,7 +165,6 @@
166
165
  margin-bottom: 1px;
167
166
  overflow: hidden;
168
167
  text-overflow: ellipsis;
169
- overflow: hidden;
170
168
  white-space: nowrap;
171
169
  }
172
170
 
@@ -0,0 +1,4 @@
1
+ import { App, Component } from 'vue';
2
+ export declare function safeComponentRegister(app: App, component: Component, cName?: string, scheduler?: () => void): void;
3
+ export declare function getComponentName(component: Component): any;
4
+ export declare function loadVxeTable(app: App): void;
@@ -0,0 +1 @@
1
+ export { getComponentName, loadVxeTable, safeComponentRegister } from './index2.mjs';
@@ -0,0 +1,27 @@
1
+ import VXETable from 'vxe-table';
2
+
3
+ function safeComponentRegister(app, component, cName, scheduler) {
4
+ cName = cName || component.name;
5
+ if (!cName)
6
+ throw new Error(`[CUI]: invalid component name for ${component}`);
7
+ const { components = {} } = app._context;
8
+ if (components[cName])
9
+ return;
10
+ if (scheduler) {
11
+ scheduler();
12
+ } else {
13
+ app.component(cName, component);
14
+ }
15
+ }
16
+ function getComponentName(component) {
17
+ return component.name || Reflect.get(component, "__name");
18
+ }
19
+ function loadVxeTable(app) {
20
+ safeComponentRegister(app, VXETable, "VxeTable", () => {
21
+ app.use(VXETable);
22
+ import('vxe-table/lib/style.css');
23
+ import('xe-utils');
24
+ });
25
+ }
26
+
27
+ export { getComponentName, loadVxeTable, safeComponentRegister };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
3
  "private": false,
4
- "version": "3.1.3",
4
+ "version": "3.1.4-beta.1",
5
5
  "module": "es/packages/index.mjs",
6
6
  "main": "es/packages/index.mjs",
7
7
  "types": "es/packages/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "@vicons/ionicons5": "^0.12.0",
17
17
  "naive-ui": "^2.29.0",
18
18
  "vue": ">=3.2.0",
19
- "vuedraggalbe": ">=4.1.0"
19
+ "vuedraggable": ">=4.1.0"
20
20
  },
21
21
  "dependencies": {
22
22
  "@vicons/ionicons5": "^0.12.0",
@@ -1,19 +0,0 @@
1
- export interface Props {
2
- baseUrl: string;
3
- btnText?: string;
4
- printText?: string;
5
- previewText?: string;
6
- formatEditText?: string;
7
- identityVerificationTitle?: string;
8
- authorizationKey: string;
9
- templateNumber: number | string;
10
- params: any[];
11
- hisParams: any;
12
- prevFn?: Function;
13
- verifyUserUrl?: string;
14
- getPrintFormatByNumberUrl?: string;
15
- getTemplateParamsUrl?: string;
16
- strategy?: string;
17
- printConfig?: any;
18
- versionType?: number | string;
19
- }