oeos-components 0.1.45 → 0.1.46

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.
@@ -4273,10 +4273,10 @@ const Z9 = u({ __name: "Input", props: { modelValue: { required: !0 }, titleAttr
4273
4273
  return i(), m("div", { class: G(["o-select", { "has-title": c.title, "has-quick": c.showQuick && !b.value && c.options.length > 0 }]), style: i2({ ...M(t).processWidth(c.width) }) }, [ne(B, { title: c.title, size: M(a).size, titleAttrs: x.$attrs.titleAttrs ?? {} }, null, 8, ["title", "size", "titleAttrs"]), ne(J, $({ ref_key: "selectRef", ref: s, class: ["o-select__select", M(t).isEmpty(l.value) && e.emptyColor ? "o-select__empty" : ""], modelValue: p.value, "onUpdate:modelValue": z[1] || (z[1] = (P) => p.value = P), placeholder: a.disabled ? c.disPlaceholder : a.placeholder || "请选择", "popper-class": "o-select__multiple-checkbox", multiple: e.multiple, onChange: V }, { clearable: !0, filterable: !0, ...Object.entries(x.$attrs).reduce((P, [ae, j]) => (ae !== "class" && ae !== "style" && (P[ae] = j), P), {}) }), un({ default: T(() => [e.multiple && c.showAll ? (i(), m("div", dh, [ne(I, { indeterminate: w.value, modelValue: C.value, "onUpdate:modelValue": z[0] || (z[0] = (P) => C.value = P), onChange: v, class: "o-select__all-select f-st-ct" }, { default: T(() => [ih]), _: 1 }, 8, ["indeterminate", "modelValue"]), ne(O, { type: "primary", onClick: Le(y, ["stop"]), size: "small", class: "reverse-select" }, { default: T(() => [ve("反选")]), _: 1 })])) : K("", !0), (i(!0), m(ie, null, Ve(l.value, (P) => (i(), N(Z, { key: e.type === "simple" ? P : P[c.value], label: e.type === "simple" ? P : g(P), value: e.type === "simple" ? P : P[c.value], disabled: e.optionDisabled(P) }, null, 8, ["label", "value", "disabled"]))), 128))]), _: 2 }, [c.showPrefix ? { name: "prefix", fn: T(() => [W(x.$slots, "prefix", {}, () => [ve(ee(c.options.length) + "个", 1)], !0)]), key: "0" } : void 0, Ve(M(r), (P, ae) => ({ name: ae, fn: T((j) => [W(x.$slots, ae, U2(k0(j)), void 0, !0)]) }))]), 1040, ["class", "modelValue", "placeholder", "multiple"]), e.showQuick && !b.value && c.options.length > 0 ? (i(), m("div", { key: 0, class: "o-select__select-box", onClick: f }, [ne(F, { name: "bottom", size: "14" })])) : K("", !0)], 6);
4274
4274
  };
4275
4275
  } }), mh = we(sh, [["__scopeId", "data-v-7a879289"]]), uh = ["href", "fill"], ph = u({ __name: "Svg", props: { prefix: { type: String, default: "icon" }, name: { type: String, required: !0 }, color: { type: String }, customStyle: { type: Object, default: () => {
4276
- } }, size: { type: [String, Number], default: "3em" } }, setup(e) {
4276
+ } }, size: { type: [String, Number], default: "16px" } }, setup(e) {
4277
4277
  const { proxy: n } = re(), t = e, a = L(() => `#${t.prefix}-${t.name}`), o = L(() => ({ width: n.processWidth(t.size, !0), height: n.processWidth(t.size, !0), ...t.customStyle }));
4278
4278
  return (r, c) => (i(), m("svg", $({ "aria-hidden": "true" }, r.$attrs, { class: "svg-box", style: o.value }), [d("use", { href: a.value, fill: e.color }, null, 8, uh)], 16));
4279
- } }), w4 = we(ph, [["__scopeId", "data-v-b3d465cc"]]), y4 = (e) => (w1("data-v-e8e0a309"), e = e(), y1(), e), hh = { class: "o-table" }, vh = ["onClick"], fh = { key: 2 }, gh = { key: 3 }, wh = { key: 0, style: { height: "64px" } }, yh = { class: "page-wrap" }, bh = { class: "page-left" }, xh = y4(() => d("span", null, "共", -1)), Ch = { class: "m-lr-5" }, _h = y4(() => d("span", null, "项数据", -1)), Mh = u({ __name: "Table", props: { data: { type: Array, default: () => [] }, columns: { type: Array, default: () => [] }, showPage: { type: Boolean, default: !0 }, showIndex: { type: Boolean, default: !0 }, pageSize: { type: Number, default: 10 }, pageSizes: { type: Array, default: () => [10, 30, 50, 100] }, total: { type: Number }, emptyText: { type: String, default: "-" } }, emits: ["update"], setup(e, { emit: n }) {
4279
+ } }), w4 = we(ph, [["__scopeId", "data-v-163d21bf"]]), y4 = (e) => (w1("data-v-e8e0a309"), e = e(), y1(), e), hh = { class: "o-table" }, vh = ["onClick"], fh = { key: 2 }, gh = { key: 3 }, wh = { key: 0, style: { height: "64px" } }, yh = { class: "page-wrap" }, bh = { class: "page-left" }, xh = y4(() => d("span", null, "共", -1)), Ch = { class: "m-lr-5" }, _h = y4(() => d("span", null, "项数据", -1)), Mh = u({ __name: "Table", props: { data: { type: Array, default: () => [] }, columns: { type: Array, default: () => [] }, showPage: { type: Boolean, default: !0 }, showIndex: { type: Boolean, default: !0 }, pageSize: { type: Number, default: 10 }, pageSizes: { type: Array, default: () => [10, 30, 50, 100] }, total: { type: Number }, emptyText: { type: String, default: "-" } }, emits: ["update"], setup(e, { emit: n }) {
4280
4280
  const { proxy: t } = re(), a = e, o = R(null), r = L(() => a.total || a.data.length), c = R(a.pageSize), l = n, s = R([]);
4281
4281
  le(() => a.columns, (h) => {
4282
4282
  s.value = a.columns.map((x) => {