@deot/vc-components 1.0.44 → 1.0.45

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.cjs CHANGED
@@ -296,7 +296,9 @@ const Affix = /* @__PURE__ */ vue.defineComponent({
296
296
  [`vc-affix__${props.fixed ? 'fixed' : 'absolute'}`]: isActive.value
297
297
  },
298
298
  "style": contentStyle.value
299
- }, [slots?.default?.()])]);
299
+ }, [slots?.default?.({
300
+ active: isActive.value
301
+ })])]);
300
302
  };
301
303
  }
302
304
  });
@@ -20001,6 +20003,7 @@ const useTabs = (options = {}) => {
20001
20003
  emit("update:modelValue", currentValue.value);
20002
20004
  emit("change", currentValue.value);
20003
20005
  emit("click", currentValue.value);
20006
+ nav.anchor && document.querySelector(nav.anchor)?.scrollIntoView?.({ behavior: "smooth" });
20004
20007
  };
20005
20008
  const handleResize = () => {
20006
20009
  if (instance.isUnmounted) return;
@@ -20260,6 +20263,9 @@ const props$b = {
20260
20263
  type: [String, Function],
20261
20264
  default: ""
20262
20265
  },
20266
+ anchor: {
20267
+ type: String
20268
+ },
20263
20269
  /**
20264
20270
  * 服务端渲染时,lazy设置为false,可以把内容渲染出来;
20265
20271
  * 不能设置为!IS_SERVER, 会影响客服端激活,不一样会存在问题
@@ -20716,6 +20722,10 @@ const props$9 = {
20716
20722
  default: (props$) => {
20717
20723
  return props$.value;
20718
20724
  }
20725
+ },
20726
+ theme: {
20727
+ type: String,
20728
+ default: "dark"
20719
20729
  }
20720
20730
  };
20721
20731
 
@@ -20768,7 +20778,7 @@ const Text = /* @__PURE__ */ vue.defineComponent({
20768
20778
  // 确保不重复创建
20769
20779
  triggerEl: e.target,
20770
20780
  hover: true,
20771
- theme: 'dark',
20781
+ theme: props.theme,
20772
20782
  placement: props.placement,
20773
20783
  portalClass: props.portalClass,
20774
20784
  portalStyle: [props.portalStyle || `width: ${e.target.clientWidth}px`, 'word-break: break-all'],
package/dist/index.d.ts CHANGED
@@ -8817,6 +8817,9 @@ label: {
8817
8817
  type: (StringConstructor | FunctionConstructor)[];
8818
8818
  default: string;
8819
8819
  };
8820
+ anchor: {
8821
+ type: StringConstructor;
8822
+ };
8820
8823
  lazy: {
8821
8824
  type: BooleanConstructor;
8822
8825
  default: boolean;
@@ -8834,6 +8837,9 @@ label: {
8834
8837
  type: (StringConstructor | FunctionConstructor)[];
8835
8838
  default: string;
8836
8839
  };
8840
+ anchor: {
8841
+ type: StringConstructor;
8842
+ };
8837
8843
  lazy: {
8838
8844
  type: BooleanConstructor;
8839
8845
  default: boolean;
@@ -8945,6 +8951,10 @@ renderRow: {
8945
8951
  type: FunctionConstructor;
8946
8952
  default: (props$: any) => any;
8947
8953
  };
8954
+ theme: {
8955
+ type: StringConstructor;
8956
+ default: string;
8957
+ };
8948
8958
  }>, () => JSX_2.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
8949
8959
  tag: {
8950
8960
  type: StringConstructor;
@@ -8980,12 +8990,17 @@ renderRow: {
8980
8990
  type: FunctionConstructor;
8981
8991
  default: (props$: any) => any;
8982
8992
  };
8993
+ theme: {
8994
+ type: StringConstructor;
8995
+ default: string;
8996
+ };
8983
8997
  }>> & Readonly<{}>, {
8984
8998
  resize: number | boolean;
8985
8999
  tag: string;
8986
9000
  line: number;
8987
9001
  placement: string;
8988
9002
  value: string;
9003
+ theme: string;
8989
9004
  indent: number;
8990
9005
  suffix: string;
8991
9006
  renderRow: Function;
@@ -13480,6 +13495,9 @@ label: {
13480
13495
  type: (StringConstructor | FunctionConstructor)[];
13481
13496
  default: string;
13482
13497
  };
13498
+ anchor: {
13499
+ type: StringConstructor;
13500
+ };
13483
13501
  lazy: {
13484
13502
  type: BooleanConstructor;
13485
13503
  default: boolean;
@@ -13497,6 +13515,9 @@ label: {
13497
13515
  type: (StringConstructor | FunctionConstructor)[];
13498
13516
  default: string;
13499
13517
  };
13518
+ anchor: {
13519
+ type: StringConstructor;
13520
+ };
13500
13521
  lazy: {
13501
13522
  type: BooleanConstructor;
13502
13523
  default: boolean;
@@ -13608,6 +13629,10 @@ renderRow: {
13608
13629
  type: FunctionConstructor;
13609
13630
  default: (props$: any) => any;
13610
13631
  };
13632
+ theme: {
13633
+ type: StringConstructor;
13634
+ default: string;
13635
+ };
13611
13636
  }>, () => JSX_2.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
13612
13637
  tag: {
13613
13638
  type: StringConstructor;
@@ -13643,12 +13668,17 @@ renderRow: {
13643
13668
  type: FunctionConstructor;
13644
13669
  default: (props$: any) => any;
13645
13670
  };
13671
+ theme: {
13672
+ type: StringConstructor;
13673
+ default: string;
13674
+ };
13646
13675
  }>> & Readonly<{}>, {
13647
13676
  resize: number | boolean;
13648
13677
  tag: string;
13649
13678
  line: number;
13650
13679
  placement: string;
13651
13680
  value: string;
13681
+ theme: string;
13652
13682
  indent: number;
13653
13683
  suffix: string;
13654
13684
  renderRow: Function;
@@ -474,7 +474,9 @@ var VcComponents = (function (exports, vue) {
474
474
  [`vc-affix__${props.fixed ? 'fixed' : 'absolute'}`]: isActive.value
475
475
  },
476
476
  "style": contentStyle.value
477
- }, [slots?.default?.()])]);
477
+ }, [slots?.default?.({
478
+ active: isActive.value
479
+ })])]);
478
480
  };
479
481
  }
480
482
  });
@@ -29032,6 +29034,7 @@ var VcComponents = (function (exports, vue) {
29032
29034
  emit("update:modelValue", currentValue.value);
29033
29035
  emit("change", currentValue.value);
29034
29036
  emit("click", currentValue.value);
29037
+ nav.anchor && document.querySelector(nav.anchor)?.scrollIntoView?.({ behavior: "smooth" });
29035
29038
  };
29036
29039
  const handleResize = () => {
29037
29040
  if (instance.isUnmounted) return;
@@ -29291,6 +29294,9 @@ var VcComponents = (function (exports, vue) {
29291
29294
  type: [String, Function],
29292
29295
  default: ""
29293
29296
  },
29297
+ anchor: {
29298
+ type: String
29299
+ },
29294
29300
  /**
29295
29301
  * 服务端渲染时,lazy设置为false,可以把内容渲染出来;
29296
29302
  * 不能设置为!IS_SERVER, 会影响客服端激活,不一样会存在问题
@@ -29747,6 +29753,10 @@ var VcComponents = (function (exports, vue) {
29747
29753
  default: (props$) => {
29748
29754
  return props$.value;
29749
29755
  }
29756
+ },
29757
+ theme: {
29758
+ type: String,
29759
+ default: "dark"
29750
29760
  }
29751
29761
  };
29752
29762
 
@@ -29799,7 +29809,7 @@ var VcComponents = (function (exports, vue) {
29799
29809
  // 确保不重复创建
29800
29810
  triggerEl: e.target,
29801
29811
  hover: true,
29802
- theme: 'dark',
29812
+ theme: props.theme,
29803
29813
  placement: props.placement,
29804
29814
  portalClass: props.portalClass,
29805
29815
  portalStyle: [props.portalStyle || `width: ${e.target.clientWidth}px`, 'word-break: break-all'],
package/dist/index.js CHANGED
@@ -274,7 +274,9 @@ const Affix = /* @__PURE__ */ defineComponent({
274
274
  [`vc-affix__${props.fixed ? 'fixed' : 'absolute'}`]: isActive.value
275
275
  },
276
276
  "style": contentStyle.value
277
- }, [slots?.default?.()])]);
277
+ }, [slots?.default?.({
278
+ active: isActive.value
279
+ })])]);
278
280
  };
279
281
  }
280
282
  });
@@ -19979,6 +19981,7 @@ const useTabs = (options = {}) => {
19979
19981
  emit("update:modelValue", currentValue.value);
19980
19982
  emit("change", currentValue.value);
19981
19983
  emit("click", currentValue.value);
19984
+ nav.anchor && document.querySelector(nav.anchor)?.scrollIntoView?.({ behavior: "smooth" });
19982
19985
  };
19983
19986
  const handleResize = () => {
19984
19987
  if (instance.isUnmounted) return;
@@ -20238,6 +20241,9 @@ const props$b = {
20238
20241
  type: [String, Function],
20239
20242
  default: ""
20240
20243
  },
20244
+ anchor: {
20245
+ type: String
20246
+ },
20241
20247
  /**
20242
20248
  * 服务端渲染时,lazy设置为false,可以把内容渲染出来;
20243
20249
  * 不能设置为!IS_SERVER, 会影响客服端激活,不一样会存在问题
@@ -20694,6 +20700,10 @@ const props$9 = {
20694
20700
  default: (props$) => {
20695
20701
  return props$.value;
20696
20702
  }
20703
+ },
20704
+ theme: {
20705
+ type: String,
20706
+ default: "dark"
20697
20707
  }
20698
20708
  };
20699
20709
 
@@ -20746,7 +20756,7 @@ const Text = /* @__PURE__ */ defineComponent({
20746
20756
  // 确保不重复创建
20747
20757
  triggerEl: e.target,
20748
20758
  hover: true,
20749
- theme: 'dark',
20759
+ theme: props.theme,
20750
20760
  placement: props.placement,
20751
20761
  portalClass: props.portalClass,
20752
20762
  portalStyle: [props.portalStyle || `width: ${e.target.clientWidth}px`, 'word-break: break-all'],
@@ -477,7 +477,9 @@
477
477
  [`vc-affix__${props.fixed ? 'fixed' : 'absolute'}`]: isActive.value
478
478
  },
479
479
  "style": contentStyle.value
480
- }, [slots?.default?.()])]);
480
+ }, [slots?.default?.({
481
+ active: isActive.value
482
+ })])]);
481
483
  };
482
484
  }
483
485
  });
@@ -29035,6 +29037,7 @@
29035
29037
  emit("update:modelValue", currentValue.value);
29036
29038
  emit("change", currentValue.value);
29037
29039
  emit("click", currentValue.value);
29040
+ nav.anchor && document.querySelector(nav.anchor)?.scrollIntoView?.({ behavior: "smooth" });
29038
29041
  };
29039
29042
  const handleResize = () => {
29040
29043
  if (instance.isUnmounted) return;
@@ -29294,6 +29297,9 @@
29294
29297
  type: [String, Function],
29295
29298
  default: ""
29296
29299
  },
29300
+ anchor: {
29301
+ type: String
29302
+ },
29297
29303
  /**
29298
29304
  * 服务端渲染时,lazy设置为false,可以把内容渲染出来;
29299
29305
  * 不能设置为!IS_SERVER, 会影响客服端激活,不一样会存在问题
@@ -29750,6 +29756,10 @@
29750
29756
  default: (props$) => {
29751
29757
  return props$.value;
29752
29758
  }
29759
+ },
29760
+ theme: {
29761
+ type: String,
29762
+ default: "dark"
29753
29763
  }
29754
29764
  };
29755
29765
 
@@ -29802,7 +29812,7 @@
29802
29812
  // 确保不重复创建
29803
29813
  triggerEl: e.target,
29804
29814
  hover: true,
29805
- theme: 'dark',
29815
+ theme: props.theme,
29806
29816
  placement: props.placement,
29807
29817
  portalClass: props.portalClass,
29808
29818
  portalStyle: [props.portalStyle || `width: ${e.target.clientWidth}px`, 'word-break: break-all'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/vc-components",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",