@a2simcode/ui 0.0.80 → 0.0.82
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.
|
@@ -37,6 +37,11 @@ export interface TabsProps {
|
|
|
37
37
|
* @zh 切换标签之前的钩子,若返回 false 或者返回 Promise 且被 reject,则阻止切换
|
|
38
38
|
*/
|
|
39
39
|
beforeLeave?: (activeName: string | number, oldActiveName: string | number) => boolean | Promise<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* @zh 是否充满容器
|
|
42
|
+
* @defaultValue false
|
|
43
|
+
*/
|
|
44
|
+
isFill?: boolean;
|
|
40
45
|
}
|
|
41
46
|
declare function __VLS_template(): {
|
|
42
47
|
attrs: Partial<{}>;
|
package/dist/simcode-ui.es.js
CHANGED
|
@@ -12420,7 +12420,8 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
12420
12420
|
editable: { type: Boolean, default: !1 },
|
|
12421
12421
|
tabPosition: { default: "top" },
|
|
12422
12422
|
stretch: { type: Boolean, default: !1 },
|
|
12423
|
-
beforeLeave: {}
|
|
12423
|
+
beforeLeave: {},
|
|
12424
|
+
isFill: { type: Boolean }
|
|
12424
12425
|
},
|
|
12425
12426
|
emits: ["update:modelValue", "tab-click", "tab-change", "tab-remove", "tab-add", "edit"],
|
|
12426
12427
|
setup(e, { emit: t }) {
|
|
@@ -12440,6 +12441,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
12440
12441
|
return (c, u) => {
|
|
12441
12442
|
const d = B("el-tabs");
|
|
12442
12443
|
return C(), H(d, He(c.$attrs, {
|
|
12444
|
+
class: { isFill: e.isFill },
|
|
12443
12445
|
"model-value": e.modelValue,
|
|
12444
12446
|
type: e.type,
|
|
12445
12447
|
closable: e.closable,
|
|
@@ -12459,7 +12461,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
12459
12461
|
$e(c.$slots, "default")
|
|
12460
12462
|
]),
|
|
12461
12463
|
_: 3
|
|
12462
|
-
}, 16, ["model-value", "type", "closable", "addable", "editable", "tab-position", "stretch", "before-leave"]);
|
|
12464
|
+
}, 16, ["class", "model-value", "type", "closable", "addable", "editable", "tab-position", "stretch", "before-leave"]);
|
|
12463
12465
|
};
|
|
12464
12466
|
}
|
|
12465
12467
|
}), tm = de(em), nm = /* @__PURE__ */ ae({
|