@deot/vc 1.0.17 → 1.0.18

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/dist/index.d.ts CHANGED
@@ -8619,13 +8619,11 @@ export declare const Components: {
8619
8619
  type: StringConstructor;
8620
8620
  default: string;
8621
8621
  };
8622
- portalClassName: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8622
+ portalClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8623
8623
  portalStyle: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8624
8624
  renderRow: {
8625
8625
  type: FunctionConstructor;
8626
- default: (props$: any) => VNode<RendererNode, RendererElement, {
8627
- [key: string]: any;
8628
- }>;
8626
+ default: (props$: any) => any;
8629
8627
  };
8630
8628
  }>, () => JSX_2.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
8631
8629
  tag: {
@@ -8656,13 +8654,11 @@ export declare const Components: {
8656
8654
  type: StringConstructor;
8657
8655
  default: string;
8658
8656
  };
8659
- portalClassName: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8657
+ portalClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8660
8658
  portalStyle: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8661
8659
  renderRow: {
8662
8660
  type: FunctionConstructor;
8663
- default: (props$: any) => VNode<RendererNode, RendererElement, {
8664
- [key: string]: any;
8665
- }>;
8661
+ default: (props$: any) => any;
8666
8662
  };
8667
8663
  }>> & Readonly<{}>, {
8668
8664
  resize: number | boolean;
@@ -8703,13 +8699,11 @@ export declare const Components: {
8703
8699
  type: StringConstructor;
8704
8700
  default: string;
8705
8701
  };
8706
- portalClassName: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8702
+ portalClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8707
8703
  portalStyle: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8708
8704
  renderRow: {
8709
8705
  type: FunctionConstructor;
8710
- default: (props$: any) => VNode<RendererNode, RendererElement, {
8711
- [key: string]: any;
8712
- }>;
8706
+ default: (props$: any) => any;
8713
8707
  };
8714
8708
  }>, () => JSX_2.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
8715
8709
  tag: {
@@ -8740,13 +8734,11 @@ export declare const Components: {
8740
8734
  type: StringConstructor;
8741
8735
  default: string;
8742
8736
  };
8743
- portalClassName: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8737
+ portalClass: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8744
8738
  portalStyle: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
8745
8739
  renderRow: {
8746
8740
  type: FunctionConstructor;
8747
- default: (props$: any) => VNode<RendererNode, RendererElement, {
8748
- [key: string]: any;
8749
- }>;
8741
+ default: (props$: any) => any;
8750
8742
  };
8751
8743
  }>> & Readonly<{}>, {
8752
8744
  resize: number | boolean;
@@ -39508,14 +39508,12 @@ var Vc = (function (exports, vue) {
39508
39508
  type: String,
39509
39509
  default: "top"
39510
39510
  },
39511
- portalClassName: [Object, String, Array],
39511
+ portalClass: [Object, String, Array],
39512
39512
  portalStyle: [Object, String, Array],
39513
39513
  renderRow: {
39514
39514
  type: Function,
39515
- // 函数式可以用于高亮显示
39516
39515
  default: (props$) => {
39517
- const { value } = props$;
39518
- return vue.h("span", {}, value);
39516
+ return props$.value;
39519
39517
  }
39520
39518
  }
39521
39519
  };
@@ -39628,8 +39626,8 @@ var Vc = (function (exports, vue) {
39628
39626
  hover: true,
39629
39627
  theme: "dark",
39630
39628
  placement: props2.placement,
39631
- portalClassName: props2.portalClassName,
39632
- portalStyle: props2.portalStyle || `width: ${e.target.clientWidth}px`,
39629
+ portalClass: props2.portalClass,
39630
+ portalStyle: [props2.portalStyle || `width: ${e.target.clientWidth}px`, "word-break: break-all"],
39633
39631
  content: props2.value
39634
39632
  });
39635
39633
  }
@@ -39783,6 +39781,8 @@ var Vc = (function (exports, vue) {
39783
39781
  const line = column.line || VcInstance.options.TableColumn?.line;
39784
39782
  if (line) {
39785
39783
  const style2 = {
39784
+ // 目前左右pading为10
39785
+ // TODO: 含有border还要-1
39786
39786
  width: (column.realWidth || column.width) - 20 + "px"
39787
39787
  };
39788
39788
  return vue.createVNode(Text, {
@@ -39511,14 +39511,12 @@
39511
39511
  type: String,
39512
39512
  default: "top"
39513
39513
  },
39514
- portalClassName: [Object, String, Array],
39514
+ portalClass: [Object, String, Array],
39515
39515
  portalStyle: [Object, String, Array],
39516
39516
  renderRow: {
39517
39517
  type: Function,
39518
- // 函数式可以用于高亮显示
39519
39518
  default: (props$) => {
39520
- const { value } = props$;
39521
- return vue.h("span", {}, value);
39519
+ return props$.value;
39522
39520
  }
39523
39521
  }
39524
39522
  };
@@ -39631,8 +39629,8 @@
39631
39629
  hover: true,
39632
39630
  theme: "dark",
39633
39631
  placement: props2.placement,
39634
- portalClassName: props2.portalClassName,
39635
- portalStyle: props2.portalStyle || `width: ${e.target.clientWidth}px`,
39632
+ portalClass: props2.portalClass,
39633
+ portalStyle: [props2.portalStyle || `width: ${e.target.clientWidth}px`, "word-break: break-all"],
39636
39634
  content: props2.value
39637
39635
  });
39638
39636
  }
@@ -39786,6 +39784,8 @@
39786
39784
  const line = column.line || VcInstance.options.TableColumn?.line;
39787
39785
  if (line) {
39788
39786
  const style2 = {
39787
+ // 目前左右pading为10
39788
+ // TODO: 含有border还要-1
39789
39789
  width: (column.realWidth || column.width) - 20 + "px"
39790
39790
  };
39791
39791
  return vue.createVNode(Text, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/vc",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@deot/vc-components": "^1.0.17",
23
- "@deot/vc-hooks": "^1.0.17",
24
- "@deot/vc-shared": "^1.0.17"
22
+ "@deot/vc-components": "^1.0.18",
23
+ "@deot/vc-hooks": "^1.0.18",
24
+ "@deot/vc-shared": "^1.0.18"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "vue": "*"