oeos-components 0.1.82 → 0.1.86
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.
|
@@ -4317,7 +4317,7 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
|
|
|
4317
4317
|
} }), Th = he(pe(Oh, [["__scopeId", "data-v-e4d22171"]])), Nh = u({ name: "OSwitch" }), jh = he(pe(u({ ...Nh, setup: (e) => (ze(), (n, a) => {
|
|
4318
4318
|
const o = Y("el-switch");
|
|
4319
4319
|
return d(), N(o, G(n.$attrs, { class: "o-custom-switch" }), null, 16);
|
|
4320
|
-
}) }), [["__scopeId", "data-v-ef67cc48"]])), ra = (e) => (_1("data-v-
|
|
4320
|
+
}) }), [["__scopeId", "data-v-ef67cc48"]])), ra = (e) => (_1("data-v-ccc4c3b7"), e = e(), M1(), e), Dh = { class: "o-table" }, Fh = ra(() => l("span", null, "序号", -1)), Rh = ["onClick"], Ph = { key: 2 }, Wh = { key: 3 }, qh = { key: 0, style: { height: "64px" } }, Uh = { class: "page-wrap" }, Gh = { class: "page-left" }, Jh = ra(() => l("span", null, "共", -1)), Zh = { class: "m-lr-5" }, Qh = ra(() => l("span", null, "项数据", -1)), Kh = u({ name: "OTable" }), Xh = u({ ...Kh, props: { data: { type: Array, default: () => [] }, columns: { type: Array, default: () => [] }, showPage: { type: Boolean, default: !0 }, showIndex: { type: Boolean, default: !0 }, pageSize: { type: Number, default: 30 }, pageSizes: { type: Array, default: () => [10, 30, 50, 100] }, total: { type: Number }, columnEmptyText: { type: String, default: "-" } }, emits: ["update"], setup(e, { emit: n }) {
|
|
4321
4321
|
const a = e, o = R(null), r = H(() => a.total || a.data.length), t = R(a.pageSize), c = n, i = R([]);
|
|
4322
4322
|
ce(() => a.columns, () => {
|
|
4323
4323
|
i.value = a.columns.map((C) => {
|
|
@@ -4344,7 +4344,7 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
|
|
|
4344
4344
|
}
|
|
4345
4345
|
return (C, h) => {
|
|
4346
4346
|
const _ = Y("el-table-column"), B = Y("el-button"), S = Y("el-dropdown-item"), T = Y("el-dropdown-menu"), D = Y("el-dropdown"), F = Y("el-table"), P = Y("el-pagination");
|
|
4347
|
-
return d(), s("div", Dh, [ee(F, G({ data: a.data }, C.$attrs, { ref_key: "tableRef", ref: o, border: "", "header-cell-style": { background: "#f7f8fa", color: "rgba(39,48,75,0.85)", height: "50px" } }), { default: O(() => [W(C.$slots, "default", {}, void 0, !0), e.showIndex ? (d(), N(_, { key: 0, type: "index", width: "60", align: "center" }, { header: O(({ column: L }) => [Fh]), _: 1 })) : Z("", !0), (d(!0), s(re, null, He(i.value, (L, Q) => (d(), s(re, { key: Q }, [y(L.isShowColumn, L, Q) ? (d(), s(re, { key: 0 }, [L.type ? (d(), N(_, G({ key: L.type }, { align: "center", ...L }), null, 16)) : L.baseBtns && L.baseBtns.length > 0 ? (d(), N(_, Z2(G({ key: 1 }, { fixed: "right", width: 210, ...L })), { default: O((I) => [b(L.isShow, I.row, I) ? (d(), s(re, { key: 0 }, [(d(!0), s(re, null, He(L.baseBtns, (E, de) => (d(), s(re, { key: de }, [b(E.isShow, I.row, I) ? (d(), s(re, { key: 0 }, [E.useSlot ? W(C.$slots, E.prop, { key: 0, row: I.row, scope: I, value: I.row[E.prop] }, void 0, !0) : g(E.reConfirm, I.row, I) ? (d(), N(A(z4), { key: 1, trigger: "click", title: E.title ?? "确定删除吗?", onConfirm: (ae) => {
|
|
4347
|
+
return d(), s("div", Dh, [ee(F, G({ data: a.data, stripe: C.$attrs.stripe ?? !0 }, C.$attrs, { ref_key: "tableRef", ref: o, border: "", "header-cell-style": { background: "#f7f8fa", color: "rgba(39,48,75,0.85)", height: "50px" } }), { default: O(() => [W(C.$slots, "default", {}, void 0, !0), e.showIndex ? (d(), N(_, { key: 0, type: "index", width: "60", align: "center" }, { header: O(({ column: L }) => [Fh]), _: 1 })) : Z("", !0), (d(!0), s(re, null, He(i.value, (L, Q) => (d(), s(re, { key: Q }, [y(L.isShowColumn, L, Q) ? (d(), s(re, { key: 0 }, [L.type ? (d(), N(_, G({ key: L.type }, { align: "center", ...L }), null, 16)) : L.baseBtns && L.baseBtns.length > 0 ? (d(), N(_, Z2(G({ key: 1 }, { fixed: "right", width: 210, ...L })), { default: O((I) => [b(L.isShow, I.row, I) ? (d(), s(re, { key: 0 }, [(d(!0), s(re, null, He(L.baseBtns, (E, de) => (d(), s(re, { key: de }, [b(E.isShow, I.row, I) ? (d(), s(re, { key: 0 }, [E.useSlot ? W(C.$slots, E.prop, { key: 0, row: I.row, scope: I, value: I.row[E.prop] }, void 0, !0) : g(E.reConfirm, I.row, I) ? (d(), N(A(z4), { key: 1, trigger: "click", title: E.title ?? "确定删除吗?", onConfirm: (ae) => {
|
|
4348
4348
|
var ne;
|
|
4349
4349
|
return (ne = E.handler) == null ? void 0 : ne.call(E, I.row, I);
|
|
4350
4350
|
}, class: "f-st-ct" }, { default: O(() => [E.comp ? (d(), N(ye(E.comp), G({ key: 0, class: "mlr2 cp" }, E.attrs, { disabled: p(E.disabled, I.row, I) }), null, 16, ["disabled"])) : (d(), N(B, G({ key: 1 }, { ...E }, { link: "", class: "hide-btns-button", disabled: p(E.disabled, I.row, I) }), { default: O(() => [ue(X(m(E.content, I.row, I)), 1)]), _: 2 }, 1040, ["disabled"]))]), _: 2 }, 1032, ["title", "onConfirm"])) : E.comp ? (d(), N(ye(E.comp), G({ key: 2, class: "mlr2 cp" }, E.attrs, { disabled: p(E.disabled, I.row, I), onClick: (ae) => ((ne, Se, ve, be) => {
|
|
@@ -4355,9 +4355,9 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
|
|
|
4355
4355
|
}, ["stop"]) }), { default: O(() => [ue(X(m(E.content, I.row, I)), 1)]), _: 2 }, 1040, ["disabled", "onClick"]))], 64)) : Z("", !0)], 64))), 128)), L.hideBtns.length > 0 ? (d(), N(D, { key: 0, class: "m-l-12 m-t-4", trigger: "click" }, { dropdown: O(() => [ee(T, { "hide-on-click": !1 }, { default: O(() => [(d(!0), s(re, null, He(L.hideBtns, (E, de) => (d(), s(re, { key: de }, [b(E.isShow, I.row, I) ? (d(), N(S, { key: 0, "hide-on-click": !1, onClick: (ae) => {
|
|
4356
4356
|
var ne;
|
|
4357
4357
|
return (ne = E.handler) == null ? void 0 : ne.call(E, I.row, I);
|
|
4358
|
-
} }, { default: O(() => [E.useSlot ? W(C.$slots, E.prop, { key: 0, row: I.row, scope: I, value: I.row[E.prop] }, void 0, !0) : (d(), s(re, { key: 1 }, [E.comp ? (d(), N(ye(E.comp), G({ key: 0 }, E.attrs, { disabled: p(E.disabled, I.row, I) }), null, 16, ["disabled"])) : (d(), N(B, G({ key: 1 }, { ...E }, { link: "", class: "hide-btns-button", disabled: p(E.disabled, I.row, I) }), { default: O(() => [ue(X(m(E.content, I.row, I)), 1)]), _: 2 }, 1040, ["disabled"]))], 64))]), _: 2 }, 1032, ["onClick"])) : Z("", !0)], 64))), 128))]), _: 2 }, 1024)]), default: O(() => [ee(A(K2), { name: "more" })]), _: 2 }, 1024)) : Z("", !0)], 64)) : Z("", !0)]), _: 2 }, 1040)) : (d(), N(_, Z2(G({ key: 2 }, { ...L })), { default: O((I) => [L.useSlot ? W(C.$slots, L.prop, { key: 0, row: I.row, scope: I, value: I.row[L.prop] }, void 0, !0) : L.handler ? (d(), s("span", { key: 1, class: "hide-btns-button", onClick: Ye((E) => L.handler(I.row, I), ["stop"]) }, [l("span", null, X(L.filter ? L.filter(I.row[L.prop], I.row, I) : v(I, L)), 1)], 8, Rh)) : L.filter ? (d(), s("span", Ph, X(L.filter(I.row[L.prop], I.row, I)), 1)) : (d(), s("span", Wh, X(v(I, L)), 1))]), _: 2 }, 1040))], 64)) : Z("", !0)], 64))), 128))]), _: 3 }, 16, ["data", "header-cell-style"]), e.showPage ? (d(), s("div", qh, [l("div", Uh, [l("div", Gh, [Jh, l("span", Zh, X(r.value), 1), Qh]), ee(P, { class: "tab_pagination", background: "", "current-page": x.value, "page-size": t.value, "page-sizes": e.pageSizes, layout: "prev, pager, next, sizes, jumper", total: r.value, onSizeChange: f, onCurrentChange: w }, null, 8, ["current-page", "page-size", "page-sizes", "total"])])])) : Z("", !0)]);
|
|
4358
|
+
} }, { default: O(() => [E.useSlot ? W(C.$slots, E.prop, { key: 0, row: I.row, scope: I, value: I.row[E.prop] }, void 0, !0) : (d(), s(re, { key: 1 }, [E.comp ? (d(), N(ye(E.comp), G({ key: 0 }, E.attrs, { disabled: p(E.disabled, I.row, I) }), null, 16, ["disabled"])) : (d(), N(B, G({ key: 1 }, { ...E }, { link: "", class: "hide-btns-button", disabled: p(E.disabled, I.row, I) }), { default: O(() => [ue(X(m(E.content, I.row, I)), 1)]), _: 2 }, 1040, ["disabled"]))], 64))]), _: 2 }, 1032, ["onClick"])) : Z("", !0)], 64))), 128))]), _: 2 }, 1024)]), default: O(() => [ee(A(K2), { name: "more" })]), _: 2 }, 1024)) : Z("", !0)], 64)) : Z("", !0)]), _: 2 }, 1040)) : (d(), N(_, Z2(G({ key: 2 }, { ...L })), { default: O((I) => [L.useSlot ? W(C.$slots, L.prop, { key: 0, row: I.row, scope: I, value: I.row[L.prop] }, void 0, !0) : L.handler ? (d(), s("span", { key: 1, class: "hide-btns-button", onClick: Ye((E) => L.handler(I.row, I), ["stop"]) }, [l("span", null, X(L.filter ? L.filter(I.row[L.prop], I.row, I) : v(I, L)), 1)], 8, Rh)) : L.filter ? (d(), s("span", Ph, X(L.filter(I.row[L.prop], I.row, I)), 1)) : (d(), s("span", Wh, X(v(I, L)), 1))]), _: 2 }, 1040))], 64)) : Z("", !0)], 64))), 128))]), _: 3 }, 16, ["data", "stripe", "header-cell-style"]), e.showPage ? (d(), s("div", qh, [l("div", Uh, [l("div", Gh, [Jh, l("span", Zh, X(r.value), 1), Qh]), ee(P, { class: "tab_pagination", background: "", "current-page": x.value, "page-size": t.value, "page-sizes": e.pageSizes, layout: "prev, pager, next, sizes, jumper", total: r.value, onSizeChange: f, onCurrentChange: w }, null, 8, ["current-page", "page-size", "page-sizes", "total"])])])) : Z("", !0)]);
|
|
4359
4359
|
};
|
|
4360
|
-
} }), Yh = he(pe(Xh, [["__scopeId", "data-v-
|
|
4360
|
+
} }), Yh = he(pe(Xh, [["__scopeId", "data-v-ccc4c3b7"]])), $h = u({ name: "OText" }), e7 = u({ ...$h, props: { lineClamp: { type: [String, Number] }, tippyProps: { type: Object, default: () => ({}) } }, setup(e) {
|
|
4361
4361
|
const n = e, a = X2(), o = R(), r = R(), t = () => ({ content: Re(a.content || a.default), ...n.tippyProps });
|
|
4362
4362
|
function c(i) {
|
|
4363
4363
|
var m;
|