oeos-components 0.1.79 → 0.1.81
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.
|
@@ -4256,7 +4256,7 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
|
|
|
4256
4256
|
const c = X("el-radio-group");
|
|
4257
4257
|
return d(), N(c, K2(O0(r.$attrs)), { default: O(() => [W(r.$slots, "default", {}, () => [(d(!0), s(re, null, He(o.value, (i, m) => (d(), N(ye(a.value), G(i, { key: m, label: i[n.label], value: i[n.value], border: e.border, disabled: i[e.subAttrs.disabled] }), { default: O(() => [W(r.$slots, i.slot, K2(O0(i)), () => [ue($(i[n.label]), 1)])]), _: 2 }, 1040, ["label", "value", "border", "disabled"]))), 128))])]), _: 3 }, 16);
|
|
4258
4258
|
};
|
|
4259
|
-
} }), Vh = he(Bh), Sh = { key: 0 }, Hh = { key: 1 }, kh = { key: 0, class: "po-r" }, Lh = ((e) => (M1("data-v-
|
|
4259
|
+
} }), Vh = he(Bh), Sh = { key: 0 }, Hh = { key: 1 }, kh = { key: 0, class: "po-r" }, Lh = ((e) => (M1("data-v-07bdf92a"), e = e(), A1(), e))(() => l("div", { class: "mt" }, "全选", -1)), Eh = u({ name: "OSelect" }), Ih = u({ ...Eh, props: { modelValue: { type: [Array, String, Number] }, value: { type: String, default: "value" }, label: { type: [String, Array], default: "label" }, options: { type: Array, default: () => [] }, type: { type: String, default: "" }, multiple: { type: Boolean, default: !1 }, showAll: { type: Boolean, default: !0 }, showPrefix: { type: Boolean, default: !1 }, showQuick: { type: Boolean, default: !0 }, title: { type: String, default: "" }, connect: { type: String, default: "/" }, customLabel: { type: [Function, String], default: "" }, width: { type: [String, Number], default: "" }, disPlaceholder: { type: String, default: "" }, optionDisabled: { type: Function, default: () => {
|
|
4260
4260
|
} }, url: { type: [String, Function], default: "" }, urlParams: { type: Object, default: () => {
|
|
4261
4261
|
} }, optionsExpression: { type: String, default: "" }, emptyColor: { type: Boolean, default: !0 } }, emits: ["changeSelect", "update:modelValue", "change"], setup(e, { emit: n }) {
|
|
4262
4262
|
ze();
|
|
@@ -4314,10 +4314,10 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
|
|
|
4314
4314
|
const B = X("el-checkbox"), S = X("el-button"), T = X("el-option"), D = X("el-select");
|
|
4315
4315
|
return d(), s("div", { class: J(["o-select", { "has-title": t.title, "has-quick": t.showQuick && !p.value && t.options.length > 0 }]), style: u2({ ..._(xe)(t.width) }) }, [ee(_(oa), { title: t.title, size: _(a).size, titleAttrs: h.$attrs.titleAttrs ?? {} }, null, 8, ["title", "size", "titleAttrs"]), ee(D, G({ ref_key: "selectRef", ref: i, class: ["o-select__select", _(Ae)(c.value) && e.emptyColor ? "o-select__empty" : ""], modelValue: m.value, "onUpdate:modelValue": M[1] || (M[1] = (R) => m.value = R), placeholder: a.disabled ? t.disPlaceholder : a.placeholder || "请选择", "popper-class": "o-select__multiple-checkbox", multiple: e.multiple, onChange: A }, { clearable: !0, filterable: !0, ...Object.entries(h.$attrs).reduce((R, [P, L]) => (P !== "class" && P !== "style" && (R[P] = L), R), {}) }), vn({ default: O(() => [e.multiple && t.showAll ? (d(), s("div", kh, [ee(B, { indeterminate: b.value, modelValue: g.value, "onUpdate:modelValue": M[0] || (M[0] = (R) => g.value = R), onChange: y, class: "o-select__all-select f-st-ct" }, { default: O(() => [Lh]), _: 1 }, 8, ["indeterminate", "modelValue"]), ee(S, { type: "primary", onClick: Xe(v, ["stop"]), size: "small", class: "reverse-select" }, { default: O(() => [ue("反选")]), _: 1 })])) : Z("", !0), (d(!0), s(re, null, He(c.value, (R) => (d(), N(T, { key: e.type === "simple" ? R : R[t.value], label: e.type === "simple" ? R : x(R), value: e.type === "simple" ? R : R[t.value], disabled: e.optionDisabled(R) }, null, 8, ["label", "value", "disabled"]))), 128))]), _: 2 }, [t.showPrefix ? { name: "prefix", fn: O(() => [W(h.$slots, "prefix", {}, () => [Array.isArray(m.value) ? (d(), s("span", Sh, $(m.value.length) + "/" + $(t.options.length), 1)) : (d(), s("span", Hh, $(t.options.length) + "个", 1))], !0)]), key: "0" } : void 0, He(_(r), (R, P) => ({ name: P, fn: O((L) => [W(h.$slots, P, K2(O0(L)), void 0, !0)]) }))]), 1040, ["class", "modelValue", "placeholder", "multiple"]), e.showQuick && !p.value && t.options.length > 0 ? (d(), s("div", { key: 0, class: "o-select__select-box", onClick: f }, [ee(_(E2), { name: "bottom", size: "14" })])) : Z("", !0)], 6);
|
|
4316
4316
|
};
|
|
4317
|
-
} }), Oh = he(pe(Ih, [["__scopeId", "data-v-
|
|
4317
|
+
} }), Oh = he(pe(Ih, [["__scopeId", "data-v-07bdf92a"]])), Th = u({ name: "OSwitch" }), Nh = he(pe(u({ ...Th, setup: (e) => (ze(), (n, a) => {
|
|
4318
4318
|
const o = X("el-switch");
|
|
4319
4319
|
return d(), N(o, G(n.$attrs, { class: "o-custom-switch" }), null, 16);
|
|
4320
|
-
}) }), [["__scopeId", "data-v-ef67cc48"]])), ra = (e) => (M1("data-v-
|
|
4320
|
+
}) }), [["__scopeId", "data-v-ef67cc48"]])), ra = (e) => (M1("data-v-d3c56419"), e = e(), A1(), e), jh = { class: "o-table" }, Dh = ra(() => l("span", null, "序号", -1)), Rh = ["onClick"], Fh = { key: 2 }, Ph = { key: 3 }, Wh = { key: 0, style: { height: "64px" } }, qh = { class: "page-wrap" }, Uh = { class: "page-left" }, Gh = ra(() => l("span", null, "共", -1)), Jh = { class: "m-lr-5" }, Zh = ra(() => l("span", null, "项数据", -1)), Kh = u({ name: "OTable" }), Qh = 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 = F(null), r = H(() => a.total || a.data.length), t = F(a.pageSize), c = n, i = F([]);
|
|
4322
4322
|
ce(() => a.columns, () => {
|
|
4323
4323
|
i.value = a.columns.map((C) => {
|
|
@@ -4357,7 +4357,7 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
|
|
|
4357
4357
|
return (ne = E.handler) == null ? void 0 : ne.call(E, I.row, I);
|
|
4358
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($(m(E.content, I.row, I)), 1)]), _: 2 }, 1040, ["disabled"]))], 64))]), _: 2 }, 1032, ["onClick"])) : Z("", !0)], 64))), 128))]), _: 2 }, 1024)]), default: O(() => [ee(_(E2), { name: "more" })]), _: 2 }, 1024)) : Z("", !0)], 64)) : Z("", !0)]), _: 2 }, 1040)) : (d(), N(M, K2(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: Xe((E) => L.handler(I.row, I), ["stop"]) }, [l("span", null, $(L.filter ? L.filter(I.row[L.prop], I.row, I) : v(I, L)), 1)], 8, Rh)) : L.filter ? (d(), s("span", Fh, $(L.filter(I.row[L.prop], I.row, I)), 1)) : (d(), s("span", Ph, $(v(I, L)), 1))]), _: 2 }, 1040))], 64)) : Z("", !0)], 64))), 128))]), _: 3 }, 16, ["data", "header-cell-style"]), e.showPage ? (d(), s("div", Wh, [l("div", qh, [l("div", Uh, [Gh, l("span", Jh, $(r.value), 1), Zh]), 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
|
-
} }), $h = he(pe(Qh, [["__scopeId", "data-v-
|
|
4360
|
+
} }), $h = he(pe(Qh, [["__scopeId", "data-v-d3c56419"]])), Xh = u({ name: "OText" }), Yh = u({ ...Xh, props: { lineClamp: { type: [String, Number] }, tippyProps: { type: Object, default: () => ({}) } }, setup(e) {
|
|
4361
4361
|
const n = e, a = $2(), o = F(), r = F(), t = () => ({ content: Fe(a.content || a.default), ...n.tippyProps });
|
|
4362
4362
|
function c(i) {
|
|
4363
4363
|
var m;
|