@tb-dev/vue-components 2.2.0 → 2.2.2
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.
|
@@ -11,13 +11,13 @@ declare function __VLS_template(): {
|
|
|
11
11
|
description?: () => VNode;
|
|
12
12
|
footer?: () => VNode;
|
|
13
13
|
title?: () => VNode;
|
|
14
|
-
trigger
|
|
14
|
+
trigger?: () => VNode;
|
|
15
15
|
}> & {
|
|
16
16
|
default: () => VNode;
|
|
17
17
|
description?: () => VNode;
|
|
18
18
|
footer?: () => VNode;
|
|
19
19
|
title?: () => VNode;
|
|
20
|
-
trigger
|
|
20
|
+
trigger?: () => VNode;
|
|
21
21
|
};
|
|
22
22
|
refs: {};
|
|
23
23
|
rootEl: any;
|
package/dist/index.js
CHANGED
|
@@ -2169,16 +2169,19 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
|
2169
2169
|
const isOpen = useModel(__props, "modelValue");
|
|
2170
2170
|
return (_ctx, _cache) => {
|
|
2171
2171
|
return openBlock(), createBlock(unref(_sfc_main$2m), {
|
|
2172
|
-
|
|
2173
|
-
"onUpdate:
|
|
2172
|
+
open: isOpen.value,
|
|
2173
|
+
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => isOpen.value = $event)
|
|
2174
2174
|
}, {
|
|
2175
2175
|
default: withCtx(() => [
|
|
2176
|
-
|
|
2176
|
+
_ctx.$slots.trigger ? (openBlock(), createBlock(unref(_sfc_main$2e), {
|
|
2177
|
+
key: 0,
|
|
2178
|
+
"as-child": ""
|
|
2179
|
+
}, {
|
|
2177
2180
|
default: withCtx(() => [
|
|
2178
2181
|
renderSlot(_ctx.$slots, "trigger")
|
|
2179
2182
|
]),
|
|
2180
2183
|
_: 3
|
|
2181
|
-
}),
|
|
2184
|
+
})) : createCommentVNode("", true),
|
|
2182
2185
|
createVNode(unref(_sfc_main$2j), {
|
|
2183
2186
|
class: normalizeClass(_ctx.contentClass)
|
|
2184
2187
|
}, {
|
|
@@ -2223,7 +2226,7 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
|
2223
2226
|
}, 8, ["class"])
|
|
2224
2227
|
]),
|
|
2225
2228
|
_: 3
|
|
2226
|
-
}, 8, ["
|
|
2229
|
+
}, 8, ["open"]);
|
|
2227
2230
|
};
|
|
2228
2231
|
}
|
|
2229
2232
|
});
|