oeos-components 0.2.22 → 0.2.23

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.
Files changed (30) hide show
  1. package/dist/{index-CaSY-U7O.js → index-B-ygmUzr.js} +3 -3
  2. package/dist/{index-JmmAM1p4.js → index-Bb3fGUsu.js} +1 -1
  3. package/dist/index-BdG9MfHW.js +68 -0
  4. package/dist/{index-Bmrnfgvu.js → index-BhUjVpDn.js} +1 -1
  5. package/dist/{index-BuXcEqxo.js → index-BlSRGbTa.js} +2 -2
  6. package/dist/{index-amhN_7QJ.js → index-Bx7LxMPA.js} +2 -2
  7. package/dist/{index-BIcu2-wb.js → index-C2Q04YaE.js} +1 -1
  8. package/dist/{index-CXzKuZP-.js → index-C4zebkH-.js} +1 -1
  9. package/dist/{index-BlCncjns.js → index-C8CBmVdg.js} +1 -1
  10. package/dist/{index-CxCZc2Ww.js → index-CI7M5JUV.js} +2 -2
  11. package/dist/{index-DacfJzdq.js → index-CeFiQw-e.js} +1 -1
  12. package/dist/{index-eTdzKQSf.js → index-CiU-dy8E.js} +1 -1
  13. package/dist/{index-CU4JzrVQ.js → index-CwWhE2XM.js} +1 -1
  14. package/dist/{index-Bat-sdaw.js → index-CzOkH60S.js} +2 -2
  15. package/dist/{index-DFpHH1sr.js → index-D6ltpHL0.js} +3 -3
  16. package/dist/{index-Br_coPdb.js → index-DJ_UAr-6.js} +1 -1
  17. package/dist/{index-BzJwoLIR.js → index-DRsDXefI.js} +1 -1
  18. package/dist/{index-DEfZXGVK.js → index-DUTNY_YA.js} +3 -3
  19. package/dist/{index-B2yUHtXe.js → index-Dj1Fc-fq.js} +1 -1
  20. package/dist/{index-C5trOMLF.js → index-DmTxRLqL.js} +1 -1
  21. package/dist/{index-eagdaWyv.js → index-NXvTgPcC.js} +1 -1
  22. package/dist/{index-oKZkmdJE.js → index-Pgb7joEc.js} +1573 -1582
  23. package/dist/{index-C2XEWjPc.js → index-dYBFnUgu.js} +1 -1
  24. package/dist/{index-BBpNruQw.js → index-l1_Vs-iC.js} +1 -1
  25. package/dist/{index-BNvP4O6r.js → index-pLYGaLJF.js} +1 -1
  26. package/dist/{index-CKmxF-4w.js → index-rU8G4dAk.js} +1 -1
  27. package/dist/oeos-components-es.js +1 -1
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
  30. package/dist/index-YVlUw8GC.js +0 -69
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as u, ref as j, resolveComponent as y, resolveDirective as w, createElementBlock as c, openBlock as r, createVNode as k, mergeProps as a, withCtx as p, Fragment as R, renderList as x, createBlock as i, renderSlot as h, withDirectives as B, resolveDynamicComponent as D, createCommentVNode as L, unref as A } from "vue";
2
- import { v as $, i as q, _ as N, w as S } from "./index-oKZkmdJE.js";
3
- import U from "./index-eagdaWyv.js";
4
- import E from "./index-C5trOMLF.js";
2
+ import { v as $, i as q, _ as N, w as S } from "./index-Pgb7joEc.js";
3
+ import U from "./index-NXvTgPcC.js";
4
+ import E from "./index-DmTxRLqL.js";
5
5
  const I = u({ name: "RenderComp", props: { render: Function, item: Object }, render: (t) => t.render(t == null ? void 0 : t.item) }), P = ["src"], z = u({ name: "OForm" }), M = S(N(u({ ...z, props: { fieldList: { type: Object, required: !0 }, model: { type: Object, required: !0 } }, setup(t, { expose: F }) {
6
6
  const O = (l) => {
7
7
  if (l.comp && typeof l.comp == "string") {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as r, resolveComponent as v, createBlock as s, openBlock as t, normalizeProps as n, guardReactiveProps as d, withCtx as u, renderSlot as i, createElementBlock as f, Fragment as g, renderList as S, resolveDynamicComponent as B, mergeProps as h, createTextVNode as k, toDisplayString as w } from "vue";
2
- import { w as C } from "./index-oKZkmdJE.js";
2
+ import { w as C } from "./index-Pgb7joEc.js";
3
3
  const x = p({ name: "ORadio" }), T = C(p({ ...x, props: { type: { type: String, validator: (a) => ["boolean", "simple", ""].includes(a), default: "" }, showType: { type: String, validator: (a) => ["radio", "button"].includes(a), default: "radio" }, options: { type: Array, default: () => [] }, border: { type: Boolean, default: !1 }, value: { type: [String, Number, Boolean], default: "value" }, label: { type: [String, Number, Boolean], default: "label" }, subAttrs: { type: Object, default: () => ({}) } }, setup(a) {
4
4
  const e = a, b = r(() => ({ radio: "el-radio", button: "el-radio-button" })[e.showType] ?? "el-radio"), m = r(() => e.type === "boolean" ? [{ label: !0, value: !0 }, { label: !1, value: !1 }] : e.type === "simple" && e.options.length > 0 ? e.options.map((o) => ({ label: o, value: o })) : e.options);
5
5
  return (o, A) => {
@@ -0,0 +1,68 @@
1
+ import { getCurrentInstance as J, ref as j, watch as B, nextTick as M, computed as x, defineComponent as G, useAttrs as U, resolveComponent as V, createElementBlock as q, openBlock as h, mergeProps as w, createVNode as F, createBlock as C, createCommentVNode as E, unref as O, withCtx as u, createElementVNode as W, isRef as L, createSlots as T, normalizeStyle as I, toDisplayString as z, renderSlot as b } from "vue";
2
+ import { m as R, p as D, _ as H, w as K } from "./index-Pgb7joEc.js";
3
+ function Q(n, o, a, y = {}) {
4
+ var f, r, $;
5
+ const { clone: v = !1, passive: g = !1, eventName: k, deep: A = !1, defaultValue: N, shouldEmit: S } = y, i = J(), _ = (i == null ? void 0 : i.emit) || ((f = i == null ? void 0 : i.$emit) == null ? void 0 : f.bind(i)) || (($ = (r = i == null ? void 0 : i.proxy) == null ? void 0 : r.$emit) == null ? void 0 : $.bind(i == null ? void 0 : i.proxy));
6
+ let p = k;
7
+ o || (o = "modelValue"), p = p || `update:${o.toString()}`;
8
+ const e = (s) => {
9
+ return v ? typeof v == "function" ? v(s) : (d = s, JSON.parse(JSON.stringify(d))) : s;
10
+ var d;
11
+ }, t = () => n[o] !== void 0 ? e(n[o]) : N, m = (s) => {
12
+ S ? S(s) && _(p, s) : _(p, s);
13
+ };
14
+ if (g) {
15
+ const s = t(), d = j(s);
16
+ let c = !1;
17
+ return B(() => n[o], (l) => {
18
+ c || (c = !0, d.value = e(l), M(() => c = !1));
19
+ }), B(d, (l) => {
20
+ c || l === n[o] && !A || m(l);
21
+ }, { deep: A }), d;
22
+ }
23
+ return x({ get: () => t(), set(s) {
24
+ m(s);
25
+ } });
26
+ }
27
+ const X = G({ name: "OInput" }), ee = K(H(G({ ...X, props: { modelValue: { required: !0 }, titleAttrs: { type: Object, default: () => {
28
+ } }, width: { type: [String, Number], default: "100%" }, showWordLimit: { type: [Boolean, String], default: "" }, block: { type: Boolean, default: !1 }, disPlaceholder: { type: String, default: "" }, subAttrs: { type: Object, default: () => ({}) }, tooltipAttrs: { type: Object, default: () => ({}) }, iconAttrs: { type: Object, default: () => ({}) }, hideTooltip: { type: Boolean, default: !1 }, options: { type: Array }, content: { type: String, default: "" } }, setup(n) {
29
+ const o = U(), a = n, y = j([]), f = j(!0), r = Q(a), $ = x(() => o.type === "textarea" ? o.maxlength || 1e3 : o.maxlength || "");
30
+ B(() => a.options, (e) => {
31
+ e && (y.value = e.map((t) => R(t) === "object" ? t : { value: t }));
32
+ }, { deep: !0, immediate: !0 });
33
+ const v = x(() => {
34
+ var e;
35
+ if ((e = a.titleAttrs) != null && e.width) {
36
+ let t = parseInt(a.titleAttrs.width) - 8 + "px";
37
+ return { ...a.titleAttrs, width: D(t, !0) };
38
+ }
39
+ return a.titleAttrs;
40
+ });
41
+ function g() {
42
+ return o.disabled === "" || o.disabled ? a.disPlaceholder : o.placeholder || "请输入";
43
+ }
44
+ function k(e) {
45
+ const t = e.target;
46
+ t.offsetWidth + 4 < t.scrollWidth ? f.value = !1 : f.value = !0;
47
+ }
48
+ const A = () => {
49
+ if (!a.width)
50
+ return {};
51
+ let e = D(a.width, !0);
52
+ return a.content && e && (e = `calc(${e} - 32px)`), { width: e };
53
+ }, N = () => {
54
+ r.value = "";
55
+ }, S = x(() => o.type === "password" && o.showPassword !== !1), i = (e, t) => {
56
+ t(e ? y.value.filter(_(e)) : y.value);
57
+ }, _ = (e) => (t) => t.value.toLowerCase().indexOf(e.toLowerCase()) === 0, p = x(() => ({ resize: "none", rows: 2, clearable: !0, ...Object.entries(o).reduce((e, [t, m]) => (t !== "class" && t !== "style" && (e[t] = m), e), {}) }));
58
+ return (e, t) => {
59
+ const m = V("el-autocomplete"), s = V("el-input"), d = V("el-tooltip"), c = V("o-icon");
60
+ return h(), q("div", w({ class: "o-input" }, n.subAttrs, { style: { ...A() } }), [F(d, w({ content: "" + O(r), disabled: f.value || n.hideTooltip }, n.tooltipAttrs), { default: u(() => [W("div", null, [a.options ? (h(), C(m, w({ key: 0, modelValue: O(r), "onUpdate:modelValue": t[0] || (t[0] = (l) => L(r) ? r.value = l : null), "fetch-suggestions": i, placeholder: g(), clearable: e.$attrs.clearable !== !1, onMouseover: t[1] || (t[1] = (l) => k(l)) }, p.value), T({ _: 2 }, [e.$attrs.title ? { name: "prepend", fn: u(() => [W("div", { style: I({ ...v.value }), class: "o-input__title" }, z(e.$attrs.title), 5)]), key: "0" } : void 0]), 1040, ["modelValue", "placeholder", "clearable"])) : (h(), C(s, w({ key: 1, modelValue: O(r), "onUpdate:modelValue": t[2] || (t[2] = (l) => L(r) ? r.value = l : null), placeholder: g(), class: ["kd-ipt", { "kd-textarea": e.$attrs.type === "textarea" }], showPassword: S.value, maxlength: $.value }, p.value, { "show-word-limit": typeof a.showWordLimit == "boolean" ? a.showWordLimit : o.type === "textarea", onFocus: t[3] || (t[3] = (l) => {
61
+ return P = l, void (o.type === "password" && P.currentTarget.select());
62
+ var P;
63
+ }), onMouseover: t[4] || (t[4] = (l) => k(l)) }), T({ default: u(() => [b(e.$slots, "default", {}, void 0, !0)]), _: 2 }, [e.$attrs.title ? { name: "prepend", fn: u(() => [W("div", { style: I({ ...v.value }), class: "o-input__title" }, z(e.$attrs.title), 5)]), key: "0" } : void 0, e.$slots.prefix ? { name: "prefix", fn: u(() => [b(e.$slots, "prefix", {}, void 0, !0)]), key: "1" } : void 0, e.$slots.suffix ? { name: "suffix", fn: u(() => [b(e.$slots, "suffix", {}, void 0, !0)]), key: "2" } : void 0, e.$slots.append ? { name: "append", fn: u(() => [b(e.$slots, "append", {}, void 0, !0)]), key: "3" } : void 0, e.$slots.prepend ? { name: "prepend", fn: u(() => [b(e.$slots, "prepend", {}, void 0, !0)]), key: "4" } : void 0]), 1040, ["modelValue", "placeholder", "showPassword", "class", "maxlength", "show-word-limit"]))])]), _: 3 }, 16, ["content", "disabled"]), n.content ? (h(), C(c, w({ key: 0, class: "o-input__icon" }, { name: "warning", color: "#DCDEE0", size: "16px", ...a.iconAttrs }, { content: n.content }), null, 16, ["content"])) : E("", !0), e.$attrs.type === "textarea" && O(r) && e.$attrs.disabled !== !0 && e.$attrs.disabled !== "" ? (h(), C(c, { key: 1, name: "circle-close", class: "o-input__clear", onClick: N })) : E("", !0)], 16);
64
+ };
65
+ } }), [["__scopeId", "data-v-fa217d2f"]]));
66
+ export {
67
+ ee as default
68
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, useSlots as m, ref as p, onMounted as d, h as v, resolveComponent as C, createBlock as g, openBlock as h, mergeProps as y, withModifiers as x, withCtx as b, renderSlot as P } from "vue";
2
- import { q as i, w as k } from "./index-oKZkmdJE.js";
2
+ import { q as i, w as k } from "./index-Pgb7joEc.js";
3
3
  const w = u({ name: "OText" }), $ = k(u({ ...w, props: { lineClamp: { type: [String, Number] }, tippyProps: { type: Object, default: () => ({}) } }, setup(a) {
4
4
  const s = a, o = m(), n = p(), l = p(), r = () => ({ content: v(o.content || o.default), ...s.tippyProps });
5
5
  function c(e) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, useAttrs as p, computed as l, resolveComponent as d, createElementBlock as T, openBlock as v, normalizeStyle as x, createVNode as D, unref as i, mergeProps as h } from "vue";
2
- import { p as f, _ as Y, w as y } from "./index-oKZkmdJE.js";
3
- import M from "./index-BBpNruQw.js";
2
+ import { p as f, _ as Y, w as y } from "./index-Pgb7joEc.js";
3
+ import M from "./index-l1_Vs-iC.js";
4
4
  const S = m({ name: "ODateRange" }), z = y(Y(m({ ...S, props: { title: { type: String, default: "" }, width: { type: [String, Number], default: "300px" } }, setup(u) {
5
5
  const r = p(), s = u, n = 864e5, w = l(() => o.value.type === "daterange" || o.value.type === "datetimerange" ? [{ text: "今天", value: () => {
6
6
  const e = new Date((/* @__PURE__ */ new Date()).toLocaleDateString()).getTime();
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as N, withDirectives as z, h as E, inject as H, createElementBlock as m, unref as n, openBlock as a, Fragment as v, createElementVNode as x, renderList as B, createBlock as $, createVNode as O, useSlots as U, provide as X, computed as q, normalizeClass as C, createCommentVNode as Y, renderSlot as F, createTextVNode as L, toDisplayString as P, useCssVars as Z, mergeProps as ee, withCtx as j } from "vue";
2
- import { g as le, a as I, u as J, b as te, c as R, d as ae, e as K, f as se, h as ne, j as re, k as oe, l as ie, p as ce, _ as de, w as pe } from "./index-oKZkmdJE.js";
3
- import G from "./index-C5trOMLF.js";
2
+ import { g as le, a as I, u as J, b as te, c as R, d as ae, e as K, f as se, h as ne, j as re, k as oe, l as ie, p as ce, _ as de, w as pe } from "./index-Pgb7joEc.js";
3
+ import G from "./index-DmTxRLqL.js";
4
4
  const T = Symbol("elDescriptions");
5
5
  var A = N({ name: "ElDescriptionsCell", props: { cell: { type: Object }, tag: { type: String, default: "td" }, type: { type: String } }, setup: () => ({ descriptions: H(T, {}) }), render() {
6
6
  var g;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, ref as g, resolveComponent as p, createElementBlock as f, openBlock as m, createVNode as a, mergeProps as $, withCtx as n, renderSlot as i, createElementVNode as u, toDisplayString as x, createTextVNode as v, onMounted as N } from "vue";
2
- import { _ as B, w as E } from "./index-oKZkmdJE.js";
2
+ import { _ as B, w as E } from "./index-Pgb7joEc.js";
3
3
  const V = { key: 0 }, q = { class: "o-popconfirm__content" }, z = { class: "o-popconfirm__footer" }, P = y({ name: "OPopconfirm" }), L = E(B(y({ ...P, props: { title: { type: String, default: "删除" }, width: { type: [String, Number], default: 200 }, content: { type: String, required: !0 }, reConfirm: { type: Boolean, default: !0 } }, emits: ["confirm", "cancel"], setup(t, { expose: _, emit: k }) {
4
4
  const s = g(!1), C = () => {
5
5
  N(() => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, computed as V, resolveComponent as d, createElementBlock as n, openBlock as l, createVNode as y, mergeProps as p, withCtx as s, Fragment as g, renderList as _, createBlock as S, renderSlot as m, createTextVNode as k, toDisplayString as x } from "vue";
2
- import { _ as A, w as B } from "./index-oKZkmdJE.js";
2
+ import { _ as A, w as B } from "./index-Pgb7joEc.js";
3
3
  const C = { class: "tabs-box" }, $ = i({ name: "OTabs" }), O = B(A(i({ ...$, props: { modelValue: { type: String }, options: { type: Array, default: () => [] }, label: { type: String, default: "label" }, value: { type: String, default: "value" }, subAttrs: { type: Object, default: () => {
4
4
  } } }, emits: ["update:modelValue"], setup(o, { emit: b }) {
5
5
  const e = o, c = b, u = V({ get: () => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, useAttrs as O, computed as _, resolveComponent as c, createElementBlock as C, openBlock as l, createVNode as w, mergeProps as d, withCtx as s, createElementVNode as y, createCommentVNode as i, renderSlot as p, createBlock as b, createTextVNode as f, toDisplayString as u, unref as z } from "vue";
2
- import { _ as g, w as V } from "./index-oKZkmdJE.js";
2
+ import { _ as g, w as V } from "./index-Pgb7joEc.js";
3
3
  const S = { class: "o-drawer" }, j = { class: "drawer-main" }, N = { class: "content" }, $ = { key: 0, class: "kd-drawer-footer" }, D = h({ name: "ODrawer" }), P = V(g(h({ ...D, props: { confirmText: { type: String, default: "提交" }, cancelText: { type: String, default: "取消" }, showFooter: { type: Boolean, default: !0 }, showConfirm: { type: Boolean, default: !0 }, showCancel: { type: Boolean, default: !0 }, wrapperClosable: { type: Boolean, default: !0 }, confirmAttrs: { type: Object, default: () => ({}) }, cancelAttrs: { type: Object, default: () => ({}) }, detailAttrs: { type: Object, default: () => {
4
4
  } }, type: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e, { emit: v }) {
5
5
  const k = v, o = e, a = O(), r = _(() => {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as Q, getCurrentInstance as W, useAttrs as _, useSlots as z, computed as m, ref as w, watch as q, resolveComponent as v, createElementBlock as p, openBlock as u, normalizeStyle as H, normalizeClass as Z, unref as g, createVNode as b, createCommentVNode as F, mergeProps as L, createSlots as M, withCtx as c, withModifiers as $, createTextVNode as ee, Fragment as le, renderList as x, createBlock as te, renderSlot as k, toDisplayString as V, createElementVNode as I, pushScopeId as ae, popScopeId as oe } from "vue";
2
- import { i as S, p as se, _ as ie, w as ne } from "./index-oKZkmdJE.js";
3
- import ue from "./index-BBpNruQw.js";
2
+ import { i as S, p as se, _ as ie, w as ne } from "./index-Pgb7joEc.js";
3
+ import ue from "./index-l1_Vs-iC.js";
4
4
  const re = { key: 0 }, de = { key: 1 }, pe = { key: 0, class: "po-r" }, ce = ((o) => (ae("data-v-d3a669d0"), o = o(), oe(), o))(() => I("div", { class: "mt" }, "全选", -1)), me = ["src"], ge = Q({ name: "OSelect" }), ye = ne(ie(Q({ ...ge, 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: () => {
5
5
  } }, url: { type: [String, Function], default: "" }, urlParams: { type: Object, default: () => {
6
6
  } }, optionsExpression: { type: String, default: "" }, emptyColor: { type: Boolean, default: !1 } }, emits: ["changeSelect", "update:modelValue", "change"], setup(o, { emit: N }) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, getCurrentInstance as y, createElementBlock as o, openBlock as a, createCommentVNode as r, createElementVNode as c, normalizeStyle as s, renderSlot as l } from "vue";
2
- import { _ as n, w as i } from "./index-oKZkmdJE.js";
2
+ import { _ as n, w as i } from "./index-Pgb7joEc.js";
3
3
  const f = { class: "basic-layout-box" }, m = d({ name: "OBasicLayout" }), b = i(n(d({ ...m, props: { headerStyle: { type: Object, default: () => ({}) }, mainStyle: { type: Object, default: () => ({}) }, footerStyle: { type: Object, default: () => ({}) } }, setup(t) {
4
4
  const { proxy: p } = y();
5
5
  return (e, u) => (a(), o("div", f, [e.$slots.header ? (a(), o("div", { key: 0, class: "header", style: s(t.headerStyle) }, [l(e.$slots, "header", {}, void 0, !0)], 4)) : r("", !0), c("div", { class: "main", style: s(t.mainStyle) }, [l(e.$slots, "default", {}, void 0, !0)], 4), e.$slots.footer ? (a(), o("div", { key: 1, class: "footer", style: s(t.footerStyle) }, [l(e.$slots, "footer", {}, void 0, !0)], 4)) : r("", !0)]));
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, ref as i, watch as $, computed as j, resolveComponent as b, createElementBlock as y, openBlock as c, createBlock as h, createCommentVNode as A, createVNode as B, mergeProps as r, withCtx as m, createTextVNode as k, renderSlot as V, Fragment as O, renderList as F, resolveDynamicComponent as N, normalizeProps as P, guardReactiveProps as T, toDisplayString as U } from "vue";
2
- import { i as g, _ as z, w as E } from "./index-oKZkmdJE.js";
2
+ import { i as g, _ as z, w as E } from "./index-Pgb7joEc.js";
3
3
  const I = { class: "checkbox" }, R = x({ name: "OCheckbox" }), H = E(z(x({ ...R, props: { type: { type: String, default: "" }, options: { type: Object, default: () => [] }, showType: { type: String, validator: (u) => ["check", "button"].includes(u), default: "check" }, modelValue: { type: Array, defalut: () => [] }, label: { type: String, default: "label" }, value: { type: String, default: "value" }, showAll: { type: Boolean, default: !0 }, attrs: { type: Object, default: () => {
4
4
  } }, customDisabled: { type: Function, default: () => {
5
5
  } }, customLabel: { type: [Function, String], default: "" } }, emits: ["update:modelValue"], setup(u, { emit: w }) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, getCurrentInstance as o, resolveComponent as a, createBlock as r, openBlock as n, mergeProps as c } from "vue";
2
- import { _ as p, w as m } from "./index-oKZkmdJE.js";
2
+ import { _ as p, w as m } from "./index-Pgb7joEc.js";
3
3
  const l = s({ name: "OSwitch" }), h = m(p(s({ ...l, setup(u) {
4
4
  const { proxy: i } = o();
5
5
  return (t, f) => {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, computed as l, createElementBlock as a, openBlock as n, mergeProps as A, unref as r, createBlock as i, renderSlot as g, createElementVNode as p } from "vue";
2
- import m from "./index-eagdaWyv.js";
3
- import { p as y, _ as b, w as d } from "./index-oKZkmdJE.js";
2
+ import m from "./index-NXvTgPcC.js";
3
+ import { p as y, _ as b, w as d } from "./index-Pgb7joEc.js";
4
4
  const h = { key: 0, src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAqJJREFUWEftl0tPE2EUht/TGW90oKWlJhqXeI0ujIQF0b9gXIhJt0oKM1VD2Lhi5cqNIQpTWi9bEnFh/AsaFo3GhXdhqya0UyhM8UJnjk5bDHTaudQqG77dZM457zPvOedLhrDNh7ZZHzsAOw607MCi0tUrsnEPBBYgJELqykIrA90ygCZLN0G4URFl3Iqm9PH/BqANSycg4CWAvTXR7zBwJprW3/mF8O3AlwQ69ojBOwBd2SrGD36US9cPZrDmB8I3QEEJxhmUAhCqEyoSWI6opZl/BsCDEAr7g3Ng6m8oQpyNLJYGaBaGVwjPDlTEY8GrAE04F+fRSK406RXCM0BO7jxKxDMEnLYACFgA8/0KDNEQA73VhcArZorHUqsfvbjgGUBLSmkwEpuKPjfL5iXrOSAGHgE4++cdIROd0ofbBpBXpOMEZAFIngAAnYH+HlV/7wbh6sCyHOo2yXjIwIW6Ys0dqLboSYCFy+FUcckJwhVAU6SLAKxe16+dIwCAIoChqKo/bhlAuxbpgvHzBYDDtiLEWRMsV2bAuhcar+Y8hN190buFlWYQjg7kZSlJhMkmyasAPtXeHQHQ2SiOgGRE1VXfALnhUJ8gGDMb6+U2TA4CC4YhxGPpouWk3chmiXmla4pgjlQcbnzmwTxduwesOHubqnkmIzDdo64kPQNoSucAwM8cxK1abkO4Wc8E6FxUXZ2rh7DNwNJoOGyulzNgDLrY/gGg29UYHgNwzDGeMBvYJSa6J5aXN8fZAAqyNMIEq/C+VvveJO8bMcYiKb3attqxAWiK9BrAyTaLb5R7+/te2FLbBpBXgk8JOAUEXC8pf5CmycCbHrV03tGBXKLjAIniIZjt/WkRmcx1Xv8cy6x9dQTw91V/H91mm/0D7QD8AkUR3SFsA4XSAAAAAElFTkSuQmCC", class: "icon" }, u = s({ name: "OWarning" }), C = d(b(s({ ...u, props: { content: { type: String, required: !0 }, type: { type: String, default: "" }, width: { type: [String, Number], default: "100%" }, dangerouslyUseHTMLString: { type: Boolean, default: !1 } }, setup(e) {
5
5
  const t = e, c = l(() => t.dangerouslyUseHTMLString ? { innerHTML: t.content } : { textContent: t.content });
6
6
  return (o, E) => (n(), a("div", A({ class: [e.type === "icon" ? "icon-box" : e.type === "info" ? "info-box" : "warning-box", "base-box"], style: { ...r(y)(t.width) } }, o.$attrs), [e.type === "" ? (n(), a("img", h)) : (n(), i(r(m), A({ key: 1, name: "warning", color: "var(--45)" }, o.$attrs, { class: "icon", size: "16" }), null, 16, ["color"])), g(o.$slots, "content", {}, () => [p("span", A({ class: ["warning-box__content", e.type === "icon" && "cl-45 fs-14"] }, c.value), null, 16)], !0)], 16));
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as f, ref as c, watch as b, createElementBlock as n, openBlock as u, createElementVNode as d, createBlock as C, createCommentVNode as w, createVNode as _, Fragment as A, renderList as B, normalizeClass as D, toDisplayString as K, unref as m, withKeys as j, withModifiers as E } from "vue";
2
- import I from "./index-YVlUw8GC.js";
3
- import N from "./index-eagdaWyv.js";
4
- import { o as p, $ as v, _ as O, w as L } from "./index-oKZkmdJE.js";
2
+ import I from "./index-BdG9MfHW.js";
3
+ import N from "./index-NXvTgPcC.js";
4
+ import { o as p, $ as v, _ as O, w as L } from "./index-Pgb7joEc.js";
5
5
  const S = { class: "o-input-box cl-blue" }, $ = { class: "o-input-box__content" }, z = { key: 0, class: "spanclose", style: { cursor: "not-allowed" } }, F = ["onClick"], M = f({ name: "OInputLabel" }), P = L(O(f({ ...M, 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(g, { expose: x, emit: h }) {
6
6
  const t = c(""), l = c([]), o = g, r = h;
7
7
  function y() {