oeos-components 0.1.96 → 0.1.98

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.
package/README.md CHANGED
@@ -8,8 +8,8 @@
8
8
 
9
9
  ```js
10
10
  import 'oeos-components/dist/style.css'
11
- import oeosComponets from 'oeos-components'
12
- app.use(oeosComponets)
11
+ import OeosComponets from 'oeos-components'
12
+ app.use(OeosComponets)
13
13
  ```
14
14
 
15
15
  ### 在任何一个.vue文件下, 可直接引入组件
@@ -4175,12 +4175,12 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
4175
4175
  }, C = (v) => (_) => _.value.toLowerCase().indexOf(v.toLowerCase()) === 0, w = H(() => ({ resize: "none", rows: 2, clearable: !0, ...Object.entries(n).reduce((v, [_, B]) => (_ !== "class" && _ !== "style" && (v[_] = B), v), {}) }));
4176
4176
  return (v, _) => {
4177
4177
  const B = $("el-autocomplete"), h = $("el-input"), z = $("el-tooltip");
4178
- return i(), s("div", G({ class: "o-input" }, e.subAttrs, { style: { ...b() } }), [ne(z, G({ content: "" + A(r), disabled: o.value || e.hideTooltip }, e.tooltipAttrs), { default: I(() => [d("div", null, [a.options ? (i(), j(B, G({ key: 0 }, v.$attrs, { modelValue: A(r), "onUpdate:modelValue": _[0] || (_[0] = (y) => Ve(r) ? r.value = y : null), "fetch-suggestions": f, placeholder: m(), clearable: v.$attrs.clearable !== !1, onMouseover: _[1] || (_[1] = (y) => p(y)) }), h1({ _: 2 }, [v.$attrs.title ? { name: "prepend", fn: I(() => [d("div", { style: u2({ ...l.value }), class: "o-input__title" }, Y(v.$attrs.title), 5)]), key: "0" } : void 0]), 1040, ["modelValue", "placeholder", "clearable"])) : (i(), j(h, G({ key: 1, modelValue: A(r), "onUpdate:modelValue": _[2] || (_[2] = (y) => Ve(r) ? r.value = y : null), placeholder: m(), class: ["kd-ipt", { "kd-textarea": v.$attrs.type === "textarea" }], showPassword: x.value, maxlength: c.value }, w.value, { "show-word-limit": typeof a.showWordLimit == "boolean" ? a.showWordLimit : n.type === "textarea", onFocus: _[3] || (_[3] = (y) => {
4178
+ return i(), s("div", G({ class: "o-input" }, e.subAttrs, { style: { ...b() } }), [ne(z, G({ content: "" + A(r), disabled: o.value || e.hideTooltip }, e.tooltipAttrs), { default: I(() => [d("div", null, [a.options ? (i(), j(B, G({ key: 0, modelValue: A(r), "onUpdate:modelValue": _[0] || (_[0] = (y) => Ve(r) ? r.value = y : null), "fetch-suggestions": f, placeholder: m(), clearable: v.$attrs.clearable !== !1, onMouseover: _[1] || (_[1] = (y) => p(y)) }, w.value), h1({ _: 2 }, [v.$attrs.title ? { name: "prepend", fn: I(() => [d("div", { style: u2({ ...l.value }), class: "o-input__title" }, Y(v.$attrs.title), 5)]), key: "0" } : void 0]), 1040, ["modelValue", "placeholder", "clearable"])) : (i(), j(h, G({ key: 1, modelValue: A(r), "onUpdate:modelValue": _[2] || (_[2] = (y) => Ve(r) ? r.value = y : null), placeholder: m(), class: ["kd-ipt", { "kd-textarea": v.$attrs.type === "textarea" }], showPassword: x.value, maxlength: c.value }, w.value, { "show-word-limit": typeof a.showWordLimit == "boolean" ? a.showWordLimit : n.type === "textarea", onFocus: _[3] || (_[3] = (y) => {
4179
4179
  return V = y, void (n.type === "password" && V.currentTarget.select());
4180
4180
  var V;
4181
4181
  }), onMouseover: _[4] || (_[4] = (y) => p(y)) }), h1({ default: I(() => [P(v.$slots, "default", {}, void 0, !0)]), _: 2 }, [v.$attrs.title ? { name: "prepend", fn: I(() => [d("div", { style: u2({ ...l.value }), class: "o-input__title" }, Y(v.$attrs.title), 5)]), key: "0" } : void 0, v.$slots.prefix ? { name: "prefix", fn: I(() => [P(v.$slots, "prefix", {}, void 0, !0)]), key: "1" } : void 0, v.$slots.suffix ? { name: "suffix", fn: I(() => [P(v.$slots, "suffix", {}, void 0, !0)]), key: "2" } : void 0, v.$slots.append ? { name: "append", fn: I(() => [P(v.$slots, "append", {}, void 0, !0)]), key: "3" } : void 0, v.$slots.prepend ? { name: "prepend", fn: I(() => [P(v.$slots, "prepend", {}, void 0, !0)]), key: "4" } : void 0]), 1040, ["modelValue", "placeholder", "showPassword", "class", "maxlength", "show-word-limit"]))])]), _: 3 }, 16, ["content", "disabled"]), e.content ? (i(), j(A(Q2), G({ key: 0, class: "o-input__icon" }, { name: "warning", color: "#DCDEE0", size: "16px", ...a.iconAttrs }, { content: e.content }), null, 16, ["content"])) : Z("", !0), v.$attrs.type === "textarea" && A(r) && v.$attrs.disabled !== !0 && v.$attrs.disabled !== "" ? (i(), j(A(Q2), { key: 1, name: "circle-close", class: "o-input__clear", onClick: g })) : Z("", !0)], 16);
4182
4182
  };
4183
- } }), M4 = ge(fe(sh, [["__scopeId", "data-v-38ce8f60"]])), mh = { class: "o-input-box cl-blue" }, uh = { class: "o-input-box__content" }, ph = { key: 0, class: "spanclose", style: { cursor: "not-allowed" } }, hh = ["onClick"], vh = u({ name: "OInputLabel" }), fh = u({ ...vh, props: { modelValue: { type: Array, default: () => [] }, isComplex: { type: Boolean, default: !1 }, regexp: { tupe: RegExp, default: "" }, message: { tupe: String, default: "输入有误" }, inputAttrs: { type: Object, default: () => ({}) } }, emits: ["update:modelValue"], setup(e, { expose: n, emit: a }) {
4183
+ } }), M4 = ge(fe(sh, [["__scopeId", "data-v-1cf0b7d9"]])), mh = { class: "o-input-box cl-blue" }, uh = { class: "o-input-box__content" }, ph = { key: 0, class: "spanclose", style: { cursor: "not-allowed" } }, hh = ["onClick"], vh = u({ name: "OInputLabel" }), fh = u({ ...vh, props: { modelValue: { type: Array, default: () => [] }, isComplex: { type: Boolean, default: !1 }, regexp: { tupe: RegExp, default: "" }, message: { tupe: String, default: "输入有误" }, inputAttrs: { type: Object, default: () => ({}) } }, emits: ["update:modelValue"], setup(e, { expose: n, emit: a }) {
4184
4184
  const t = R(""), o = R([]), r = e, c = a;
4185
4185
  function l() {
4186
4186
  var b;
@@ -4319,7 +4319,7 @@ const ih = u({ name: "OInput" }), sh = u({ ...ih, props: { modelValue: { require
4319
4319
  } }), Th = ge(fe(Oh, [["__scopeId", "data-v-15890cfd"]])), 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-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 }) {
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 }) {
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, z) => {
4348
4348
  const y = $("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(y, { 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 }, [x(O.isShowColumn, O, te) ? (i(), s(re, { key: 0 }, [O.type ? (i(), j(y, G({ key: O.type }, { align: "center", ...O }), null, 16)) : O.baseBtns && O.baseBtns.length > 0 ? (i(), j(y, 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) => [b(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 }, [b(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 }, [x(O.isShowColumn, O, te) ? (i(), s(re, { key: 0 }, [O.type ? (i(), j(y, G({ key: O.type }, { align: "center", ...O }), null, 16)) : O.baseBtns && O.baseBtns.length > 0 ? (i(), j(y, 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) => [b(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 }, [b(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": w.value, "page-size": r.value, "page-sizes": e.pageSizes, layout: "prev, pager, next, sizes, jumper", total: o.value, onSizeChange: v, onCurrentChange: _ }, null, 8, ["current-page", "page-size", "page-sizes", "total"])])])) : Z("", !0)]);
4364
4364
  };
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) {
4365
+ } }), Yh = ge(fe(Xh, [["__scopeId", "data-v-aaf2b6bf"]])), $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;