oeos-components 0.2.0 → 0.2.1

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,9 +4256,9 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
4256
4256
  const c = $("el-radio-group");
4257
4257
  return i(), j(c, d0(p1(o.$attrs)), { default: I(() => [P(o.$slots, "default", {}, () => [(i(!0), s(re, null, He(t.value, (l, m) => (i(), j(be(a.value), G(l, { key: m, label: l[n.label], value: l[n.value], border: e.border, disabled: l[e.subAttrs.disabled] }), { default: I(() => [P(o.$slots, l.slot, d0(p1(l)), () => [ve(Y(l[n.label]), 1)])]), _: 2 }, 1040, ["label", "value", "border", "disabled"]))), 128))])]), _: 3 }, 16);
4258
4258
  };
4259
- } }), Vh = ge(Bh), Sh = { key: 0 }, Hh = { key: 1 }, kh = { key: 0, class: "po-r" }, Lh = ((e) => (_n("data-v-15890cfd"), e = e(), Mn(), e))(() => d("div", { class: "mt" }, "全选", -1)), Eh = ["src"], Ih = u({ name: "OSelect" }), Oh = u({ ...Ih, 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: () => {
4259
+ } }), Vh = ge(Bh), Sh = { key: 0 }, Hh = { key: 1 }, kh = { key: 0, class: "po-r" }, Lh = ((e) => (_n("data-v-d3a669d0"), e = e(), Mn(), e))(() => d("div", { class: "mt" }, "全选", -1)), Eh = ["src"], Ih = u({ name: "OSelect" }), Oh = u({ ...Ih, 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
- } }, optionsExpression: { type: String, default: "" }, emptyColor: { type: Boolean, default: !0 } }, emits: ["changeSelect", "update:modelValue", "change"], setup(e, { emit: n }) {
4261
+ } }, optionsExpression: { type: String, default: "" }, emptyColor: { type: Boolean, default: !1 } }, emits: ["changeSelect", "update:modelValue", "change"], setup(e, { emit: n }) {
4262
4262
  const { proxy: a } = Be(), t = E2(), o = n, r = K2(), c = H(() => {
4263
4263
  const y = a.clone(r);
4264
4264
  return delete y.default, y;
@@ -4316,7 +4316,7 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
4316
4316
  const L = $("el-checkbox"), T = $("el-button"), U = $("el-option"), J = $("el-select");
4317
4317
  return i(), s("div", { class: Q(["o-select", { "has-title": l.title, "has-quick": l.showQuick && !g.value && l.options.length > 0 }]), style: u2({ ...A(xe)(l.width) }) }, [ne(A(ta), { title: l.title, size: A(t).size, titleAttrs: y.$attrs.titleAttrs ?? {} }, null, 8, ["title", "size", "titleAttrs"]), ne(J, G({ ref_key: "selectRef", ref: p, class: ["o-select__select", A(ze)(m.value) && e.emptyColor ? "o-select__empty" : ""], modelValue: b.value, "onUpdate:modelValue": V[1] || (V[1] = (N) => b.value = N), placeholder: t.disabled ? l.disPlaceholder : t.placeholder || "请选择", "popper-class": "o-select__multiple-checkbox", multiple: e.multiple, onChange: h }, { clearable: !0, filterable: !0, ...Object.entries(y.$attrs).reduce((N, [O, te]) => (O !== "class" && O !== "style" && (N[O] = te), N), {}) }), h1({ default: I(() => [e.multiple && l.showAll ? (i(), s("div", kh, [ne(L, { indeterminate: x.value, modelValue: f.value, "onUpdate:modelValue": V[0] || (V[0] = (N) => f.value = N), onChange: C, class: "o-select__all-select f-st-ct" }, { default: I(() => [Lh]), _: 1 }, 8, ["indeterminate", "modelValue"]), ne(T, { type: "primary", onClick: Ye(w, ["stop"]), size: "small", class: "reverse-select" }, { default: I(() => [ve("反选")]), _: 1 })])) : Z("", !0), (i(!0), s(re, null, He(m.value, (N) => (i(), j(U, { key: e.type === "simple" ? N : N[l.value], label: e.type === "simple" ? N : v(N), value: e.type === "simple" ? N : N[l.value], disabled: e.optionDisabled(N) }, { default: I(() => [P(y.$slots, "default", { options: m.value, item: N }, void 0, !0)]), _: 2 }, 1032, ["label", "value", "disabled"]))), 128))]), _: 2 }, [l.showPrefix ? { name: "prefix", fn: I(() => [P(y.$slots, "prefix", {}, () => [Array.isArray(b.value) ? (i(), s("span", Sh, Y(b.value.length) + "/" + Y(l.options.length), 1)) : (i(), s("span", Hh, Y(l.options.length) + "个", 1))], !0)]), key: "0" } : void 0, He(c.value, (N, O) => ({ name: O, fn: I(() => [P(y.$slots, O, {}, void 0, !0)]) }))]), 1040, ["class", "modelValue", "placeholder", "multiple"]), e.showQuick && !g.value && l.options.length > 0 ? (i(), s("div", { key: 0, class: "o-select__select-box", onClick: _ }, [d("img", { src: A("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA3tJREFUWEfFlzFo1GAUx/8vd4iCQ0eHigoOdetgwcFBQVC3ghVbcEhySSbFQYcWlLYotEMdRKckl3yD0IoVuqkg6OAg1MHNDoIVO3TsULDIXZ79ksslud6lufZssxyX+/K93/d/7/7vhXDIF+0lvmEY/bWArgA4ioA+CWGv7GUf+UxhAFU3VRCugjEcBk6uLeE5x3oCoJrmIOo0XFYC13XdNbmpahgXECjzAJ9OByGiTWZeA+iV8OypVgCtYj5kpvIOsBIvCcf5Ft/PKKDq1hTAkwBNCM+e1XRjjkH3m5sQFijgN77vLuadWKtYd5j5efs1NJ0GbgtARC6Y+xgYCTchWkAJ08IulmtVt8YBnmmekqgGQAD8q0QsYnV31ECsABHVmLkcfQaPhOfOdpPjGICAHyA6He4FLPqec7N1nw4pkIemGis8lM5XUYimAkTvoPAEBbQcQfBT33MfZGop/SWpgVCcdRDCYiFgrUTBdFq6PJg0gKja11XdGAdoRh6KGJc9z/7cqQgzucsEIYyJqrNQRAW1Yo6CMS9rya/apnxG083XjZpaEZ5zrj2AqvZR6chtZhzPBuJ14TmiSPB4jfSNssIfYtWkedVZ+SlTgdRhChtRN8E7rdUqlrPtHUZamQMFiFMDoOmeBwoQOqtusvwsK3xSpucwAP40eokm6yoEkD1A/lfBwbPW/2kvcp/eQ9OtZQafJ6K7ftV+EQLE3k2gr75nD/U6aBbAmAMp92KTixSQrRbw08XxPyF2OGFjwPgtfxCec6B10Qym6mZUHF04Xi9UagK0M4leBNhtj0SBxL9rJQrOpC1Uzn97sWKATmTyTdjk+t+XQoiNDs3I/A5gIN27Y2W6SU3K8doIEE1bbQF03brIhI9hwwBPyEFErVhvwXwtHtN2k1T+3mg8kwz0h+sZgwA31MgZyaK2Gc2B8UCCgGa6BUhDxiYXHUpeuwBEEFHvlhBgXmXgbDcKJC3ZGCdSHifjnYTIAYikIxWgU9KfEuqQPJO7vFSoljWAOibBPBo+CSyCaEO24lyA7EiWDRF7d15gTTNGWKEbYISBo+DRHJhMynljeePFpDUIEdf8qvOk9X4D+Nb2gNHPzC1TFK1CCcaE636JC7MWKAbyXkyKVHimwGL3TG5ugbAExvuivrEv31dVawAKX5JNLD3/dXOQfQF0E6jT2n+839ww67q/YQAAAABJRU5ErkJggg=="), alt: "", width: "12px" }, null, 8, Eh)])) : Z("", !0)], 6);
4318
4318
  };
4319
- } }), Th = ge(fe(Oh, [["__scopeId", "data-v-15890cfd"]])), Nh = u({ name: "OSwitch" }), jh = ge(fe(u({ ...Nh, setup: (e) => (Be(), (n, a) => {
4319
+ } }), Th = ge(fe(Oh, [["__scopeId", "data-v-d3a669d0"]])), Nh = u({ name: "OSwitch" }), jh = ge(fe(u({ ...Nh, setup: (e) => (Be(), (n, a) => {
4320
4320
  const t = $("el-switch");
4321
4321
  return i(), j(t, G(n.$attrs, { class: "o-custom-switch" }), null, 16);
4322
4322
  }) }), [["__scopeId", "data-v-ef67cc48"]])), ra = (e) => (_n("data-v-aaf2b6bf"), e = e(), Mn(), e), Dh = { class: "o-table" }, Fh = ra(() => d("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(() => d("span", null, "共", -1)), Zh = { class: "m-lr-5" }, Qh = ra(() => d("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 }) {