@tb-dev/vue 0.3.2 → 0.3.3
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
+
import { TableProps } from './types';
|
|
2
3
|
declare function __VLS_template(): {
|
|
3
4
|
attrs: Partial<{}>;
|
|
4
5
|
slots: Readonly<{
|
|
@@ -16,7 +17,7 @@ declare function __VLS_template(): {
|
|
|
16
17
|
rootEl: any;
|
|
17
18
|
};
|
|
18
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<TableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TableProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
22
|
export default _default;
|
|
22
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/index.js
CHANGED
|
@@ -3528,34 +3528,51 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3528
3528
|
|
|
3529
3529
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
3530
3530
|
__name: "Table",
|
|
3531
|
+
props: {
|
|
3532
|
+
bodyClass: {},
|
|
3533
|
+
captionClass: {},
|
|
3534
|
+
footerClass: {},
|
|
3535
|
+
headerClass: {}
|
|
3536
|
+
},
|
|
3531
3537
|
setup(__props) {
|
|
3532
3538
|
return (_ctx, _cache) => {
|
|
3533
3539
|
return openBlock(), createBlock(unref(_sfc_main$l), null, {
|
|
3534
3540
|
default: withCtx(() => [
|
|
3535
|
-
_ctx.$slots.caption ? (openBlock(), createBlock(unref(_sfc_main$j), {
|
|
3541
|
+
_ctx.$slots.caption ? (openBlock(), createBlock(unref(_sfc_main$j), {
|
|
3542
|
+
key: 0,
|
|
3543
|
+
class: normalizeClass(_ctx.captionClass)
|
|
3544
|
+
}, {
|
|
3536
3545
|
default: withCtx(() => [
|
|
3537
3546
|
renderSlot(_ctx.$slots, "caption")
|
|
3538
3547
|
]),
|
|
3539
3548
|
_: 3
|
|
3540
|
-
})) : createCommentVNode("", true),
|
|
3541
|
-
_ctx.$slots.header ? (openBlock(), createBlock(unref(_sfc_main$d), {
|
|
3549
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
3550
|
+
_ctx.$slots.header ? (openBlock(), createBlock(unref(_sfc_main$d), {
|
|
3551
|
+
key: 1,
|
|
3552
|
+
class: normalizeClass(_ctx.headerClass)
|
|
3553
|
+
}, {
|
|
3542
3554
|
default: withCtx(() => [
|
|
3543
3555
|
renderSlot(_ctx.$slots, "header")
|
|
3544
3556
|
]),
|
|
3545
3557
|
_: 3
|
|
3546
|
-
})) : createCommentVNode("", true),
|
|
3547
|
-
createVNode(unref(_sfc_main$k),
|
|
3558
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
3559
|
+
createVNode(unref(_sfc_main$k), {
|
|
3560
|
+
class: normalizeClass(_ctx.bodyClass)
|
|
3561
|
+
}, {
|
|
3548
3562
|
default: withCtx(() => [
|
|
3549
3563
|
renderSlot(_ctx.$slots, "default")
|
|
3550
3564
|
]),
|
|
3551
3565
|
_: 3
|
|
3552
|
-
}),
|
|
3553
|
-
_ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$f), {
|
|
3566
|
+
}, 8, ["class"]),
|
|
3567
|
+
_ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$f), {
|
|
3568
|
+
key: 2,
|
|
3569
|
+
class: normalizeClass(_ctx.footerClass)
|
|
3570
|
+
}, {
|
|
3554
3571
|
default: withCtx(() => [
|
|
3555
3572
|
renderSlot(_ctx.$slots, "footer")
|
|
3556
3573
|
]),
|
|
3557
3574
|
_: 3
|
|
3558
|
-
})) : createCommentVNode("", true)
|
|
3575
|
+
}, 8, ["class"])) : createCommentVNode("", true)
|
|
3559
3576
|
]),
|
|
3560
3577
|
_: 3
|
|
3561
3578
|
});
|