tiddy 2.8.0 → 2.8.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/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -374,9 +374,9 @@ declare const __VLS_base$3: vue47.DefineComponent<vue47.ExtractPropTypes<{
|
|
|
374
374
|
default: string;
|
|
375
375
|
};
|
|
376
376
|
}>> & Readonly<{}>, {
|
|
377
|
+
hideRequiredAsterisk: boolean;
|
|
377
378
|
messageLabel: OrRef<string>;
|
|
378
379
|
formatMessage: AnyFunction;
|
|
379
|
-
hideRequiredAsterisk: boolean;
|
|
380
380
|
errorLayout: "wrap" | "nowrap" | "expand";
|
|
381
381
|
}, {}, {}, {}, string, vue47.ComponentProvideOptions, true, {}, any>;
|
|
382
382
|
declare const __VLS_export$5: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ function getSlotsFactory(slots) {
|
|
|
8
8
|
if (typeof name === "string") {
|
|
9
9
|
const slot = slots[name];
|
|
10
10
|
if (slot) return [{
|
|
11
|
-
name: name.replace(/[
|
|
11
|
+
name: name.replace(/[^_]+_?/, ""),
|
|
12
12
|
component: slot,
|
|
13
13
|
slot: true
|
|
14
14
|
}];
|
|
@@ -16,7 +16,7 @@ function getSlotsFactory(slots) {
|
|
|
16
16
|
}
|
|
17
17
|
if (name instanceof RegExp) return Object.keys(slots).flatMap((slotName) => {
|
|
18
18
|
if (name.test(slotName)) return [{
|
|
19
|
-
name: slotName.replace(/[
|
|
19
|
+
name: slotName.replace(/[^_]+_?/, ""),
|
|
20
20
|
component: slots[slotName],
|
|
21
21
|
slot: true
|
|
22
22
|
}];
|