oeos-components 0.1.93 → 0.1.94

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.
@@ -4319,7 +4319,7 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
4319
4319
  } }), Th = ge(fe(Oh, [["__scopeId", "data-v-5803e4cf"]])), 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
- }) }), [["__scopeId", "data-v-ef67cc48"]])), ra = (e) => (_n("data-v-2d78e615"), 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 }) {
4322
+ }) }), [["__scopeId", "data-v-ef67cc48"]])), ra = (e) => (_n("data-v-fd41f9b9"), 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 }) {
4323
4323
  const a = e, t = R(null), o = H(() => a.total || a.data.length), r = R(a.pageSize), c = n, l = R([]);
4324
4324
  ce(() => a.columns, () => {
4325
4325
  l.value = a.columns.map((h) => {
@@ -4347,7 +4347,7 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
4347
4347
  return (h, M) => {
4348
4348
  const x = $("el-table-column"), V = $("el-button"), L = $("el-dropdown-item"), T = $("el-dropdown-menu"), U = $("el-dropdown"), J = $("el-table"), N = $("el-pagination");
4349
4349
  return i(), s("div", Dh, [ne(J, G({ data: a.data }, { stripe: !0, border: !0, ...h.$attrs }, { ref_key: "tableRef", ref: t, "header-cell-style": { background: "#f7f8fa", color: "rgba(39,48,75,0.85)", height: "50px", textAlign: "center", ...h.$attrs["header-cell-style"] || {} } }), { default: I(() => [P(h.$slots, "default", {}, void 0, !0), e.showIndex ? (i(), j(x, { key: 0, type: "index", width: "60", align: "center", index: f }, { header: I(({ column: O }) => [Fh]), _: 1 })) : Z("", !0), (i(!0), s(re, null, He(l.value, (O, te) => {
4350
- return i(), s(re, { key: te }, [b(O.isShowColumn, O, te) ? (i(), s(re, { key: 0 }, [O.type ? (i(), j(x, G({ key: O.type }, { align: "center", ...O }), null, 16)) : O.baseBtns && O.baseBtns.length > 0 ? (i(), j(x, d0(G({ key: 1 }, { fixed: "right", width: (K = O.baseBtns, se = O.hideBtns, 26 + 35 * (K.length + se.length) + "px"), ...O })), { default: I((E) => [y(O.isShow, E.row, E) ? (i(), s(re, { key: 0 }, [(i(!0), s(re, null, He(O.baseBtns, (F, Ce) => (i(), s(re, { key: Ce }, [y(F.isShow, E.row, E) ? (i(), s(re, { key: 0 }, [F.useSlot ? P(h.$slots, F.prop, { key: 0, row: E.row, scope: E, value: E.row[F.prop] }, void 0, !0) : g(F.reConfirm, E.row, E) ? (i(), j(A(z4), { key: 1, trigger: "click", title: F.title ?? "确定删除吗?", onConfirm: (pe) => {
4350
+ return i(), s(re, { key: te }, [b(O.isShowColumn, O, te) ? (i(), s(re, { key: 0 }, [O.type ? (i(), j(x, G({ key: O.type }, { align: "center", ...O }), null, 16)) : O.baseBtns && O.baseBtns.length > 0 ? (i(), j(x, d0(G({ key: 1 }, { fixed: "right", width: (K = O.baseBtns, se = O.hideBtns, 26 + 36 * (K.length + se.length === 0 ? 0 : 1) + "px"), ...O })), { default: I((E) => [y(O.isShow, E.row, E) ? (i(), s(re, { key: 0 }, [(i(!0), s(re, null, He(O.baseBtns, (F, Ce) => (i(), s(re, { key: Ce }, [y(F.isShow, E.row, E) ? (i(), s(re, { key: 0 }, [F.useSlot ? P(h.$slots, F.prop, { key: 0, row: E.row, scope: E, value: E.row[F.prop] }, void 0, !0) : g(F.reConfirm, E.row, E) ? (i(), j(A(z4), { key: 1, trigger: "click", title: F.title ?? "确定删除吗?", onConfirm: (pe) => {
4351
4351
  var de;
4352
4352
  return (de = F.handler) == null ? void 0 : de.call(F, E.row, E);
4353
4353
  }, class: "f-st-ct" }, { default: I(() => [F.comp ? (i(), j(be(F.comp), G({ key: 0, class: "mlr cp" }, F.attrs, { disabled: p(F.disabled, E.row, E) }), null, 16, ["disabled"])) : (i(), j(V, G({ key: 1 }, { ...F }, { link: "", class: "hide-btns-button", disabled: p(F.disabled, E.row, E) }), { default: I(() => [ve(Y(m(F.content, E.row, E)), 1)]), _: 2 }, 1040, ["disabled"]))]), _: 2 }, 1032, ["title", "onConfirm"])) : F.comp ? (i(), j(be(F.comp), G({ key: 2, class: "mlr cp" }, F.attrs, { disabled: p(F.disabled, E.row, E), onClick: (pe) => ((de, we, he, Ee) => {
@@ -4362,7 +4362,7 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
4362
4362
  var K, se;
4363
4363
  }), 128))]), _: 3 }, 16, ["data", "header-cell-style"]), e.showPage ? (i(), s("div", qh, [d("div", Uh, [d("div", Gh, [Jh, d("span", Zh, Y(o.value), 1), Qh]), ne(N, { class: "tab_pagination", background: "", "current-page": v.value, "page-size": r.value, "page-sizes": e.pageSizes, layout: "prev, pager, next, sizes, jumper", total: o.value, onSizeChange: w, onCurrentChange: _ }, null, 8, ["current-page", "page-size", "page-sizes", "total"])])])) : Z("", !0)]);
4364
4364
  };
4365
- } }), Yh = ge(fe(Xh, [["__scopeId", "data-v-2d78e615"]])), $h = u({ name: "OText" }), e7 = u({ ...$h, props: { lineClamp: { type: [String, Number] }, tippyProps: { type: Object, default: () => ({}) } }, setup(e) {
4365
+ } }), Yh = ge(fe(Xh, [["__scopeId", "data-v-fd41f9b9"]])), $h = u({ name: "OText" }), e7 = u({ ...$h, props: { lineClamp: { type: [String, Number] }, tippyProps: { type: Object, default: () => ({}) } }, setup(e) {
4366
4366
  const n = e, a = K2(), t = R(), o = R(), r = () => ({ content: Pe(a.content || a.default), ...n.tippyProps });
4367
4367
  function c(l) {
4368
4368
  var m;