@deot/vc 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.d.ts +30 -0
- package/dist/index.iife.js +12 -2
- package/dist/index.umd.cjs +12 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -10200,6 +10200,9 @@ export declare const Components: {
|
|
|
10200
10200
|
type: (StringConstructor | FunctionConstructor)[];
|
|
10201
10201
|
default: string;
|
|
10202
10202
|
};
|
|
10203
|
+
anchor: {
|
|
10204
|
+
type: StringConstructor;
|
|
10205
|
+
};
|
|
10203
10206
|
lazy: {
|
|
10204
10207
|
type: BooleanConstructor;
|
|
10205
10208
|
default: boolean;
|
|
@@ -10217,6 +10220,9 @@ export declare const Components: {
|
|
|
10217
10220
|
type: (StringConstructor | FunctionConstructor)[];
|
|
10218
10221
|
default: string;
|
|
10219
10222
|
};
|
|
10223
|
+
anchor: {
|
|
10224
|
+
type: StringConstructor;
|
|
10225
|
+
};
|
|
10220
10226
|
lazy: {
|
|
10221
10227
|
type: BooleanConstructor;
|
|
10222
10228
|
default: boolean;
|
|
@@ -10240,6 +10246,9 @@ export declare const Components: {
|
|
|
10240
10246
|
type: (StringConstructor | FunctionConstructor)[];
|
|
10241
10247
|
default: string;
|
|
10242
10248
|
};
|
|
10249
|
+
anchor: {
|
|
10250
|
+
type: StringConstructor;
|
|
10251
|
+
};
|
|
10243
10252
|
lazy: {
|
|
10244
10253
|
type: BooleanConstructor;
|
|
10245
10254
|
default: boolean;
|
|
@@ -10257,6 +10266,9 @@ export declare const Components: {
|
|
|
10257
10266
|
type: (StringConstructor | FunctionConstructor)[];
|
|
10258
10267
|
default: string;
|
|
10259
10268
|
};
|
|
10269
|
+
anchor: {
|
|
10270
|
+
type: StringConstructor;
|
|
10271
|
+
};
|
|
10260
10272
|
lazy: {
|
|
10261
10273
|
type: BooleanConstructor;
|
|
10262
10274
|
default: boolean;
|
|
@@ -10426,6 +10438,10 @@ export declare const Components: {
|
|
|
10426
10438
|
type: FunctionConstructor;
|
|
10427
10439
|
default: (props$: any) => any;
|
|
10428
10440
|
};
|
|
10441
|
+
theme: {
|
|
10442
|
+
type: StringConstructor;
|
|
10443
|
+
default: string;
|
|
10444
|
+
};
|
|
10429
10445
|
}>, () => JSX_2.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
10430
10446
|
tag: {
|
|
10431
10447
|
type: StringConstructor;
|
|
@@ -10461,12 +10477,17 @@ export declare const Components: {
|
|
|
10461
10477
|
type: FunctionConstructor;
|
|
10462
10478
|
default: (props$: any) => any;
|
|
10463
10479
|
};
|
|
10480
|
+
theme: {
|
|
10481
|
+
type: StringConstructor;
|
|
10482
|
+
default: string;
|
|
10483
|
+
};
|
|
10464
10484
|
}>> & Readonly<{}>, {
|
|
10465
10485
|
resize: number | boolean;
|
|
10466
10486
|
tag: string;
|
|
10467
10487
|
line: number;
|
|
10468
10488
|
placement: string;
|
|
10469
10489
|
value: string;
|
|
10490
|
+
theme: string;
|
|
10470
10491
|
indent: number;
|
|
10471
10492
|
suffix: string;
|
|
10472
10493
|
renderRow: Function;
|
|
@@ -10506,6 +10527,10 @@ export declare const Components: {
|
|
|
10506
10527
|
type: FunctionConstructor;
|
|
10507
10528
|
default: (props$: any) => any;
|
|
10508
10529
|
};
|
|
10530
|
+
theme: {
|
|
10531
|
+
type: StringConstructor;
|
|
10532
|
+
default: string;
|
|
10533
|
+
};
|
|
10509
10534
|
}>, () => JSX_2.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
10510
10535
|
tag: {
|
|
10511
10536
|
type: StringConstructor;
|
|
@@ -10541,12 +10566,17 @@ export declare const Components: {
|
|
|
10541
10566
|
type: FunctionConstructor;
|
|
10542
10567
|
default: (props$: any) => any;
|
|
10543
10568
|
};
|
|
10569
|
+
theme: {
|
|
10570
|
+
type: StringConstructor;
|
|
10571
|
+
default: string;
|
|
10572
|
+
};
|
|
10544
10573
|
}>> & Readonly<{}>, {
|
|
10545
10574
|
resize: number | boolean;
|
|
10546
10575
|
tag: string;
|
|
10547
10576
|
line: number;
|
|
10548
10577
|
placement: string;
|
|
10549
10578
|
value: string;
|
|
10579
|
+
theme: string;
|
|
10550
10580
|
indent: number;
|
|
10551
10581
|
suffix: string;
|
|
10552
10582
|
renderRow: Function;
|
package/dist/index.iife.js
CHANGED
|
@@ -9312,7 +9312,9 @@ var Vc = (function (exports, vue) {
|
|
|
9312
9312
|
[`vc-affix__${props2.fixed ? "fixed" : "absolute"}`]: isActive.value
|
|
9313
9313
|
},
|
|
9314
9314
|
"style": contentStyle.value
|
|
9315
|
-
}, [slots?.default?.(
|
|
9315
|
+
}, [slots?.default?.({
|
|
9316
|
+
active: isActive.value
|
|
9317
|
+
})])]);
|
|
9316
9318
|
};
|
|
9317
9319
|
}
|
|
9318
9320
|
});
|
|
@@ -27990,6 +27992,7 @@ var Vc = (function (exports, vue) {
|
|
|
27990
27992
|
emit("update:modelValue", currentValue.value);
|
|
27991
27993
|
emit("change", currentValue.value);
|
|
27992
27994
|
emit("click", currentValue.value);
|
|
27995
|
+
nav.anchor && document.querySelector(nav.anchor)?.scrollIntoView?.({ behavior: "smooth" });
|
|
27993
27996
|
};
|
|
27994
27997
|
const handleResize = () => {
|
|
27995
27998
|
if (instance.isUnmounted) return;
|
|
@@ -28226,6 +28229,9 @@ var Vc = (function (exports, vue) {
|
|
|
28226
28229
|
type: [String, Function],
|
|
28227
28230
|
default: ""
|
|
28228
28231
|
},
|
|
28232
|
+
anchor: {
|
|
28233
|
+
type: String
|
|
28234
|
+
},
|
|
28229
28235
|
/**
|
|
28230
28236
|
* 服务端渲染时,lazy设置为false,可以把内容渲染出来;
|
|
28231
28237
|
* 不能设置为!IS_SERVER, 会影响客服端激活,不一样会存在问题
|
|
@@ -28635,6 +28641,10 @@ var Vc = (function (exports, vue) {
|
|
|
28635
28641
|
default: (props$) => {
|
|
28636
28642
|
return props$.value;
|
|
28637
28643
|
}
|
|
28644
|
+
},
|
|
28645
|
+
theme: {
|
|
28646
|
+
type: String,
|
|
28647
|
+
default: "dark"
|
|
28638
28648
|
}
|
|
28639
28649
|
};
|
|
28640
28650
|
const COMPONENT_NAME$e = "vc-text";
|
|
@@ -28684,7 +28694,7 @@ var Vc = (function (exports, vue) {
|
|
|
28684
28694
|
// 确保不重复创建
|
|
28685
28695
|
triggerEl: e.target,
|
|
28686
28696
|
hover: true,
|
|
28687
|
-
theme:
|
|
28697
|
+
theme: props2.theme,
|
|
28688
28698
|
placement: props2.placement,
|
|
28689
28699
|
portalClass: props2.portalClass,
|
|
28690
28700
|
portalStyle: [props2.portalStyle || `width: ${e.target.clientWidth}px`, "word-break: break-all"],
|
package/dist/index.umd.cjs
CHANGED
|
@@ -9315,7 +9315,9 @@
|
|
|
9315
9315
|
[`vc-affix__${props2.fixed ? "fixed" : "absolute"}`]: isActive.value
|
|
9316
9316
|
},
|
|
9317
9317
|
"style": contentStyle.value
|
|
9318
|
-
}, [slots?.default?.(
|
|
9318
|
+
}, [slots?.default?.({
|
|
9319
|
+
active: isActive.value
|
|
9320
|
+
})])]);
|
|
9319
9321
|
};
|
|
9320
9322
|
}
|
|
9321
9323
|
});
|
|
@@ -27993,6 +27995,7 @@
|
|
|
27993
27995
|
emit("update:modelValue", currentValue.value);
|
|
27994
27996
|
emit("change", currentValue.value);
|
|
27995
27997
|
emit("click", currentValue.value);
|
|
27998
|
+
nav.anchor && document.querySelector(nav.anchor)?.scrollIntoView?.({ behavior: "smooth" });
|
|
27996
27999
|
};
|
|
27997
28000
|
const handleResize = () => {
|
|
27998
28001
|
if (instance.isUnmounted) return;
|
|
@@ -28229,6 +28232,9 @@
|
|
|
28229
28232
|
type: [String, Function],
|
|
28230
28233
|
default: ""
|
|
28231
28234
|
},
|
|
28235
|
+
anchor: {
|
|
28236
|
+
type: String
|
|
28237
|
+
},
|
|
28232
28238
|
/**
|
|
28233
28239
|
* 服务端渲染时,lazy设置为false,可以把内容渲染出来;
|
|
28234
28240
|
* 不能设置为!IS_SERVER, 会影响客服端激活,不一样会存在问题
|
|
@@ -28638,6 +28644,10 @@
|
|
|
28638
28644
|
default: (props$) => {
|
|
28639
28645
|
return props$.value;
|
|
28640
28646
|
}
|
|
28647
|
+
},
|
|
28648
|
+
theme: {
|
|
28649
|
+
type: String,
|
|
28650
|
+
default: "dark"
|
|
28641
28651
|
}
|
|
28642
28652
|
};
|
|
28643
28653
|
const COMPONENT_NAME$e = "vc-text";
|
|
@@ -28687,7 +28697,7 @@
|
|
|
28687
28697
|
// 确保不重复创建
|
|
28688
28698
|
triggerEl: e.target,
|
|
28689
28699
|
hover: true,
|
|
28690
|
-
theme:
|
|
28700
|
+
theme: props2.theme,
|
|
28691
28701
|
placement: props2.placement,
|
|
28692
28702
|
portalClass: props2.portalClass,
|
|
28693
28703
|
portalStyle: [props2.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",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
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.
|
|
23
|
-
"@deot/vc-hooks": "^1.0.
|
|
24
|
-
"@deot/vc-shared": "^1.0.
|
|
22
|
+
"@deot/vc-components": "^1.0.45",
|
|
23
|
+
"@deot/vc-hooks": "^1.0.45",
|
|
24
|
+
"@deot/vc-shared": "^1.0.45"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vue": "*"
|