yxuse 2.0.24 → 2.0.28

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/lib/index.es2.js CHANGED
@@ -46,9 +46,10 @@ var ot = (a, i, r) => new Promise((u, h) => {
46
46
  import { y as Xf, i as b_, u as x_ } from "./index.es3.js";
47
47
  import { y as S_ } from "./index.es4.js";
48
48
  import { g as T_, a as E_, b as I_ } from "./index.es5.js";
49
- import { d as Zn, r as C_, a as rt, o as oe, c as Ze, b as A_, w as It, e as Ie, f as Se, g as Jt, h as ls, i as Kf, F as Mt, j as Ct, k as hn, l as Ae, m as Zt, n as dn, u as fs, p as cs, q as qn, s as D_, t as R_, v as qf, x as N_, y as Xo, z as mr, A as rn, B as O_, C as L_, D as P_, E as B_, G as Zf, H as Ko, I as F_ } from "./vue.runtime.esm-bundler.es.js";
50
- import { c as Cn, g as Jf, y as M_ } from "./index.es6.js";
51
- import { w as W_, a as U_, g as $_, h as Qf, v as jf, T as k_, u as Y_, c as H_, s as z_ } from "./index.es7.js";
49
+ import { defineComponent as Zn, reactive as C_, resolveComponent as rt, openBlock as oe, createBlock as Ze, createSlots as A_, withCtx as It, renderSlot as ls, createElementVNode as Ie, createVNode as Se, createTextVNode as Jt, watch as Kf, resolveDynamicComponent as Ct, mergeProps as dn, createElementBlock as Ae, Fragment as Mt, renderList as hn, createCommentVNode as Zt, useSlots as fs, useAttrs as cs, ref as qn, onMounted as D_, nextTick as R_, isVNode as qf, withModifiers as N_, computed as O_, unref as Xo, normalizeStyle as mr, toDisplayString as rn, withKeys as L_, toHandlers as P_, pushScopeId as B_, popScopeId as F_, createStaticVNode as M_, withDirectives as Zf, vShow as Jf, Transition as W_, normalizeClass as Ko, useCssVars as U_, version as $_, createApp as k_ } from "vue";
50
+ import { c as Cn, g as Qf, y as Y_ } from "./index.es6.js";
51
+ import { g as H_, h as jf, s as z_ } from "./index.es7.js";
52
+ import "element-plus";
52
53
  import { u as V_ } from "./index.es8.js";
53
54
  import { d as G_ } from "./index.es9.js";
54
55
  const X_ = "@font-face {font-family: 'YX-TITLE';font-size: 16px; src: url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699612675710_ALIBABAPUHUITI-2-105-HEAVY.TTF') format('woff'), url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699612675710_ALIBABAPUHUITI-2-105-HEAVY.TTF') format('woff2'); font-style: normal;font-display: swap;}", K_ = "@font-face { font-family: 'YX-SP-TITLE'; font-size: 16px; src: url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699844184489_bt.ttf') format('woff'),url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699844184489_bt.ttf') format('woff2');font-style: normal; font-display: swap}", q_ = "@font-face {font-family: 'YX-TEXT'; font-size: 16px;src: url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699611032932_ALIBABAPUHUITI-2-65-MEDIUM.TTF') format('woff'),url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/1699611032932_ALIBABAPUHUITI-2-65-MEDIUM.TTF') format('woff2'); font-style: normal; font-display: swap;}", Z_ = "@font-face {font-family: 'PingFang SC'; font-size: 16px;src: url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/苹方-繁 中黑体.otf') format('woff'),url('https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/苹方-繁 中黑体.otf') format('woff2'); font-style: normal; font-display: swap}", J_ = X_ + K_ + q_ + Z_, Q_ = {
@@ -1521,7 +1522,7 @@ const A0 = /* @__PURE__ */ Zn({
1521
1522
  return Se("div", {
1522
1523
  class: "flex justify-center items-center cursor-pointer"
1523
1524
  }, [(F = se.operate) == null ? void 0 : F.filter((V) => !V.show || V.show(I.row)).map((V) => V != null && V.render ? V.render(I.row) : Se("span", {
1524
- onClick: W_(() => {
1525
+ onClick: N_(() => {
1525
1526
  V != null && V.onClick && (V == null || V.onClick(I.row)), y("operate-handle", V.key, I.row);
1526
1527
  }, ["stop"]),
1527
1528
  class: "table-handle whitespace-nowrap"
@@ -1738,7 +1739,7 @@ const H0 = { render: Y0 }, z0 = {
1738
1739
  formData: {}
1739
1740
  },
1740
1741
  setup(a, { expose: i }) {
1741
- const r = ["date-picker"], u = a, h = qn(), p = qn(E()), _ = A(), y = N_(() => {
1742
+ const r = ["date-picker"], u = a, h = qn(), p = qn(E()), _ = A(), y = O_(() => {
1742
1743
  const Y = u.formConfig.compList, K = {};
1743
1744
  return Y.forEach((G) => {
1744
1745
  (typeof G.hidden == "function" ? !G.hidden(p.value, u.status) : !G.hidden) && G.name && (K[G.name] = p.value[G.name]);
@@ -1854,8 +1855,8 @@ const H0 = { render: Y0 }, z0 = {
1854
1855
  disabled: q(I.disabled),
1855
1856
  modelValue: p.value[I.name],
1856
1857
  "onUpdate:modelValue": (F) => p.value[I.name] = F,
1857
- onKeyup: U_((F) => q(I == null ? void 0 : I.enter), ["enter"])
1858
- }, O_(I.event)), {
1858
+ onKeyup: L_((F) => q(I == null ? void 0 : I.enter), ["enter"])
1859
+ }, P_(I.event)), {
1859
1860
  default: It(() => [
1860
1861
  I.ctype === "select" ? (oe(!0), Ae(Mt, { key: 0 }, hn(I.selectOptions, (F) => (oe(), Ze(Ct("el-option"), {
1861
1862
  key: F.value,
@@ -1898,7 +1899,7 @@ const q0 = () => {
1898
1899
  localStorage.setItem(pc, gc), window.location.reload(!0);
1899
1900
  }, Z0 = () => {
1900
1901
  K0.unmount(), document.body.removeChild(document.querySelector("#update")), localStorage.setItem(pc, gc);
1901
- }, J0 = (a) => (L_("data-v-ebf4f18f"), a = a(), P_(), a), Q0 = { class: "update-wrap flex items-center justify-center" }, j0 = { class: "relative update-content" }, e1 = { class: "flex items-center justify-center" }, t1 = { class: "flex flex-col gap-5 mt-10" }, n1 = { class: "update-title" }, r1 = { class: "update-item px-20" }, i1 = { class: "text-end" }, o1 = { class: "flex justify-end items-center mt-10" }, a1 = /* @__PURE__ */ J0(() => /* @__PURE__ */ Ie("span", { class: "tips mt-10" }, "提示: 选择立即更新后,会立即刷新页面更新系统,当前页面缓存数据会消失选择暂不更新后,请稍后自行刷新页面更新系统。", -1)), u1 = /* @__PURE__ */ Zn({
1902
+ }, J0 = (a) => (B_("data-v-ebf4f18f"), a = a(), F_(), a), Q0 = { class: "update-wrap flex items-center justify-center" }, j0 = { class: "relative update-content" }, e1 = { class: "flex items-center justify-center" }, t1 = { class: "flex flex-col gap-5 mt-10" }, n1 = { class: "update-title" }, r1 = { class: "update-item px-20" }, i1 = { class: "text-end" }, o1 = { class: "flex justify-end items-center mt-10" }, a1 = /* @__PURE__ */ J0(() => /* @__PURE__ */ Ie("span", { class: "tips mt-10" }, "提示: 选择立即更新后,会立即刷新页面更新系统,当前页面缓存数据会消失选择暂不更新后,请稍后自行刷新页面更新系统。", -1)), u1 = /* @__PURE__ */ Zn({
1902
1903
  __name: "index",
1903
1904
  props: {
1904
1905
  title: {},
@@ -2231,7 +2232,7 @@ const v1 = {
2231
2232
  height: "50",
2232
2233
  fill: "none",
2233
2234
  viewBox: "0 0 16 16"
2234
- }, _1 = /* @__PURE__ */ B_('<g stroke="currentColor" stroke-linejoin="round" stroke-width="1.333" clip-path="url(#a)"><path d="M8 14.666c1.986 0 .778-2.954 2-4.333 1.042-1.176 4.666-.638 4.666-2.333A6.667 6.667 0 1 0 8 14.666Z"></path><path d="M9.333 5.667a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.333 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 11.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"></path></clipPath></defs>', 2), y1 = [
2235
+ }, _1 = /* @__PURE__ */ M_('<g stroke="currentColor" stroke-linejoin="round" stroke-width="1.333" clip-path="url(#a)"><path d="M8 14.666c1.986 0 .778-2.954 2-4.333 1.042-1.176 4.666-.638 4.666-2.333A6.667 6.667 0 1 0 8 14.666Z"></path><path d="M9.333 5.667a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.333 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 11.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"></path></clipPath></defs>', 2), y1 = [
2235
2236
  _1
2236
2237
  ];
2237
2238
  function w1(a, i) {
@@ -3721,7 +3722,7 @@ var vc = { exports: {} };
3721
3722
  });
3722
3723
  })(vc);
3723
3724
  var O1 = vc.exports;
3724
- const gs = /* @__PURE__ */ Jf(O1);
3725
+ const gs = /* @__PURE__ */ Qf(O1);
3725
3726
  gs.config({
3726
3727
  name: "yxI18n"
3727
3728
  });
@@ -3732,10 +3733,10 @@ const Ei = (a, i) => ot(void 0, null, function* () {
3732
3733
  }), L1 = {
3733
3734
  URL: "/gateway/integrated-management/api/v1/translate/get"
3734
3735
  }, P1 = {
3735
- URL: $_("translateApiUrl") || L1.URL
3736
+ URL: H_("translateApiUrl") || L1.URL
3736
3737
  }, $f = (h) => ot(void 0, [h], function* ({ words: a, systemFlag: i, toSource: r = "en", fromSource: u = "zh" }) {
3737
3738
  try {
3738
- const { data: p } = yield Qf.post(
3739
+ const { data: p } = yield jf.post(
3739
3740
  P1.URL,
3740
3741
  {
3741
3742
  words: a,
@@ -7426,7 +7427,7 @@ function print() { __p += __j.call(arguments, '') }
7426
7427
  }).call(Cn);
7427
7428
  })(ta, ta.exports);
7428
7429
  var B1 = ta.exports;
7429
- const kf = /* @__PURE__ */ Jf(B1), Kt = /[\u4e00-\u9fa5]+/;
7430
+ const kf = /* @__PURE__ */ Qf(B1), Kt = /[\u4e00-\u9fa5]+/;
7430
7431
  let ns;
7431
7432
  const Yf = ["svg", "g", "path", "polyline", "circle"], F1 = { childList: !0, subtree: !0, characterData: !0, attributes: !0, attributeFilter: ["readonly"] };
7432
7433
  let rs;
@@ -7640,7 +7641,7 @@ function Y1(a, i, r, u, h, p) {
7640
7641
  return Zf((oe(), Ae("div", k1, [
7641
7642
  Ie("sup", null, rn(r.value), 1)
7642
7643
  ], 512)), [
7643
- [jf, r.value > 0]
7644
+ [Jf, r.value > 0]
7644
7645
  ]);
7645
7646
  }
7646
7647
  const bc = /* @__PURE__ */ _r($1, [["render", Y1], ["__scopeId", "data-v-588a1297"]]), H1 = {
@@ -7776,7 +7777,7 @@ const bc = /* @__PURE__ */ _r($1, [["render", Y1], ["__scopeId", "data-v-588a129
7776
7777
  }, ey = ["onClick", "title"];
7777
7778
  function ty(a, i, r, u, h, p) {
7778
7779
  const _ = rt("Badge");
7779
- return oe(), Ze(k_, {
7780
+ return oe(), Ze(W_, {
7780
7781
  name: "zoom",
7781
7782
  mode: "out-in"
7782
7783
  }, {
@@ -7841,7 +7842,7 @@ function ty(a, i, r, u, h, p) {
7841
7842
  ])) : Zt("", !0)
7842
7843
  ])) : Zt("", !0)
7843
7844
  ], 2), [
7844
- [jf, r.showTool]
7845
+ [Jf, r.showTool]
7845
7846
  ])
7846
7847
  ]),
7847
7848
  _: 1
@@ -7933,7 +7934,7 @@ const uy = { render: ay }, ms = {
7933
7934
  }
7934
7935
  }
7935
7936
  }, Hf = () => {
7936
- Y_((a) => ({
7937
+ U_((a) => ({
7937
7938
  "7d9b552a": a.panelWidthPX,
7938
7939
  "53d65213": a.panelHeightPX
7939
7940
  }));
@@ -7983,7 +7984,7 @@ const qr = class qr {
7983
7984
  }
7984
7985
  /** 当前vue版本 */
7985
7986
  get vueVersion() {
7986
- return F_[0];
7987
+ return $_[0];
7987
7988
  }
7988
7989
  /** 初始化 */
7989
7990
  init() {
@@ -7993,7 +7994,7 @@ const qr = class qr {
7993
7994
  mount() {
7994
7995
  const i = document.createElement("div");
7995
7996
  if (i.id = Fo(this, Jr), document.body.appendChild(i), this.vueVersion === "3")
7996
- return H_(Vf).mount(`#${Fo(this, Jr)}`);
7997
+ return k_(Vf).mount(`#${Fo(this, Jr)}`);
7997
7998
  {
7998
7999
  const r = require("vue");
7999
8000
  return new r({ render: (u) => u(Vf) }).$mount(`#${Fo(this, Jr)}`);
@@ -8019,7 +8020,7 @@ const cy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8019
8020
  let i = ra();
8020
8021
  try {
8021
8022
  yield dy(a);
8022
- const { data: u } = yield Qf.get(a.themeApiUrl);
8023
+ const { data: u } = yield jf.get(a.themeApiUrl);
8023
8024
  if (a.isRenderLang && a.systemKey) {
8024
8025
  const _ = yield yc();
8025
8026
  yield mc({ to: _ || a.lang, systemKey: a.systemKey });
@@ -8114,7 +8115,7 @@ const cy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8114
8115
  }, yy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8115
8116
  __proto__: null,
8116
8117
  default: _y
8117
- }, Symbol.toStringTag, { value: "Module" })), aa = new BroadcastChannel("YXUSE_BC"), Dy = {
8118
+ }, Symbol.toStringTag, { value: "Module" })), aa = new BroadcastChannel("YXUSE_BC"), Ry = {
8118
8119
  utils: x_,
8119
8120
  api: I_,
8120
8121
  theme: my,
@@ -8123,7 +8124,7 @@ const cy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8123
8124
  BC: aa,
8124
8125
  translate: U1,
8125
8126
  yxi18n: yy,
8126
- yxHooks: M_,
8127
+ yxHooks: Y_,
8127
8128
  yxIcon: S_
8128
8129
  };
8129
8130
  export {
@@ -8149,7 +8150,7 @@ export {
8149
8150
  oa as p,
8150
8151
  gy as q,
8151
8152
  vy as r,
8152
- Dy as s,
8153
+ Ry as s,
8153
8154
  my as t,
8154
8155
  Tc as u,
8155
8156
  cy as v,
Binary file
package/lib/index.es4.js CHANGED
@@ -15,6 +15,7 @@ var r = (o, t, e) => new Promise((s, a) => {
15
15
  i((e = e.apply(o, t)).next());
16
16
  });
17
17
  import "./index.es7.js";
18
+ import "element-plus";
18
19
  import { g, a as u } from "./index.es8.js";
19
20
  const d = "yxIcon", w = () => {
20
21
  m();
@@ -36,11 +37,11 @@ const d = "yxIcon", w = () => {
36
37
  install: function(o) {
37
38
  w();
38
39
  }
39
- }, v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40
+ }, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40
41
  __proto__: null,
41
42
  default: h
42
43
  }, Symbol.toStringTag, { value: "Module" }));
43
44
  export {
44
45
  h as i,
45
- v as y
46
+ _ as y
46
47
  };
package/lib/index.es6.js CHANGED
@@ -1,4 +1,4 @@
1
- import { q as R } from "./vue.runtime.esm-bundler.es.js";
1
+ import { ref as R } from "vue";
2
2
  var X = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
3
3
  function tt(y) {
4
4
  return y && y.__esModule && Object.prototype.hasOwnProperty.call(y, "default") ? y.default : y;
Binary file