lh-ui-next 0.1.6 → 0.1.7-beta.2

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
@@ -4,8 +4,8 @@
4
4
  alpha version is use to self-test; beta version is use to public survey.for example:
5
5
  1.0.0-alpha.1
6
6
  1.0.0-test.2
7
- ## Official version : "0.1.6",
8
- ## test version : "0.1.6",
7
+ ## Official version : "0.1.7-beta.2",
8
+ ## test version : "0.1.7-beta.2",
9
9
  ## npmmirror
10
10
  When cnpm sync execution is unsuccessful,you can go the website(http://www.npmmirror.com/package/lh-ui-next) and press sync button to
11
11
  manual trigger the sync event
@@ -3225,7 +3225,7 @@ Q.install = function(e) {
3225
3225
  const Ol = {
3226
3226
  name: "lhTab",
3227
3227
  componentName: "lhTab",
3228
- emits: ["update:modelValue"],
3228
+ emits: ["update:modelValue", "tabItemClick"],
3229
3229
  props: {
3230
3230
  tablist: {
3231
3231
  type: [Array],
@@ -3321,7 +3321,7 @@ const Ol = {
3321
3321
  typeof this.tabSwitchBeforeEvent == "function" ? this.tabSwitchBeforeEvent(this.realSwitch, e) : this.realSwitch(e);
3322
3322
  },
3323
3323
  realSwitch(e) {
3324
- this.canNotSwitch || this.tablist[e].disabled || (this.beforeSwitchReg === -1 ? this.$emit("update:modelValue", e) : this.beforeSwitchReg ? this.$emit("update:modelValue", e) : this.$msg.warning(this.beforeSwitchRegDes));
3324
+ this.canNotSwitch || this.tablist[e].disabled || (this.beforeSwitchReg === -1 ? (this.$emit("update:modelValue", e), this.$emit("tabItemClick", e)) : this.beforeSwitchReg ? (this.$emit("update:modelValue", e), this.$emit("tabItemClick", e)) : this.$msg.warning(this.beforeSwitchRegDes));
3325
3325
  }
3326
3326
  }
3327
3327
  }, Al = ["onClick"], Ul = ["onClick"], jl = ["onClick"], Yl = ["onClick"], Kl = {
@@ -6694,6 +6694,7 @@ const xa = {
6694
6694
  },
6695
6695
  watch: {
6696
6696
  data: {
6697
+ immediate: !0,
6697
6698
  deep: !0,
6698
6699
  handler: function(e) {
6699
6700
  let t = JSON.parse(JSON.stringify(e));
@@ -7068,7 +7069,7 @@ const Ma = {
7068
7069
  },
7069
7070
  type: {
7070
7071
  type: String,
7071
- default: ""
7072
+ default: "common"
7072
7073
  },
7073
7074
  width: {
7074
7075
  type: [String, Number],
@@ -7138,7 +7139,6 @@ const Ma = {
7138
7139
  },
7139
7140
  initFixed(e) {
7140
7141
  this.$nextTick(() => {
7141
- console.log(e);
7142
7142
  let t = this.$refs.myTd.cellIndex, i = e[t];
7143
7143
  i.hasOwnProperty("left") && (this.left = i.left), i.hasOwnProperty("right") && (this.right = i.right), i.hasOwnProperty("lastColumnLeft") && (this.lastColumnLeft = i.lastColumnLeft), i.hasOwnProperty("firstColumnRight") && (this.firstColumnRight = i.firstColumnRight);
7144
7144
  });
@@ -7158,8 +7158,8 @@ const Ma = {
7158
7158
  mounted() {
7159
7159
  this.initFn();
7160
7160
  }
7161
- }, Ra = { key: 0 };
7162
- function Ba(e, t, i, s, l, n) {
7161
+ }, Ra = { key: 0 }, Ba = { key: 2 };
7162
+ function Wa(e, t, i, s, l, n) {
7163
7163
  const a = w("lh-checkbox");
7164
7164
  return o(), c("td", {
7165
7165
  ref: "myTd",
@@ -7176,21 +7176,22 @@ function Ba(e, t, i, s, l, n) {
7176
7176
  modelValue: l.item.selected,
7177
7177
  "onUpdate:modelValue": t[0] || (t[0] = (r) => l.item.selected = r),
7178
7178
  onCheckChange: n.checkChange
7179
- }, null, 8, ["modelValue", "onCheckChange"])) : L(e.$slots, "default", {
7180
- key: 2,
7181
- row: l.item,
7182
- $index: l.trIndex
7183
- }, () => [
7184
- d("span", null, g(l.item[i.prop]), 1)
7185
- ])
7179
+ }, null, 8, ["modelValue", "onCheckChange"])) : (o(), c("div", Ba, [
7180
+ L(e.$slots, "default", {
7181
+ row: l.item,
7182
+ $index: l.trIndex
7183
+ }, () => [
7184
+ d("span", null, g(l.item[i.prop]), 1)
7185
+ ])
7186
+ ]))
7186
7187
  ], 4)
7187
7188
  ], 6);
7188
7189
  }
7189
- const _e = /* @__PURE__ */ C(Ma, [["render", Ba]]);
7190
+ const _e = /* @__PURE__ */ C(Ma, [["render", Wa]]);
7190
7191
  _e.install = function(e) {
7191
7192
  e.component(_e.name, _e);
7192
7193
  };
7193
- const Wa = {
7194
+ const Ea = {
7194
7195
  data() {
7195
7196
  return {
7196
7197
  text: null,
@@ -7206,39 +7207,39 @@ const Wa = {
7206
7207
  this.text = e;
7207
7208
  }
7208
7209
  }
7209
- }, Ea = { class: "lh-loading-spinner" }, Fa = {
7210
+ }, Fa = { class: "lh-loading-spinner" }, Ha = {
7210
7211
  key: 0,
7211
7212
  class: "circular",
7212
7213
  viewBox: "25 25 50 50"
7213
- }, Ha = /* @__PURE__ */ d("circle", {
7214
+ }, Oa = /* @__PURE__ */ d("circle", {
7214
7215
  class: "path",
7215
7216
  cx: "50",
7216
7217
  cy: "50",
7217
7218
  r: "20",
7218
7219
  fill: "none"
7219
- }, null, -1), Oa = [
7220
- Ha
7221
- ], Aa = {
7220
+ }, null, -1), Aa = [
7221
+ Oa
7222
+ ], Ua = {
7222
7223
  key: 1,
7223
7224
  class: "lh-loading-icon-wapper"
7224
- }, Ua = {
7225
+ }, ja = {
7225
7226
  key: 2,
7226
7227
  class: "lh-loading-text"
7227
7228
  };
7228
- function ja(e, t, i, s, l, n) {
7229
+ function Ya(e, t, i, s, l, n) {
7229
7230
  return o(), M(Ie, { name: "lh-loading-fade" }, {
7230
7231
  default: _(() => [
7231
7232
  x(d("div", {
7232
7233
  class: f(["lh-loading-mask", [l.customClass, { "is-fullscreen": l.fullscreen }]]),
7233
7234
  style: k({ backgroundColor: l.background || "" })
7234
7235
  }, [
7235
- d("div", Ea, [
7236
- l.spinner ? (o(), c("div", Aa, [
7236
+ d("div", Fa, [
7237
+ l.spinner ? (o(), c("div", Ua, [
7237
7238
  d("i", {
7238
7239
  class: f(l.spinner)
7239
7240
  }, null, 2)
7240
- ])) : (o(), c("svg", Fa, Oa)),
7241
- l.text ? (o(), c("p", Ua, g(l.text), 1)) : m("", !0)
7241
+ ])) : (o(), c("svg", Ha, Aa)),
7242
+ l.text ? (o(), c("p", ja, g(l.text), 1)) : m("", !0)
7242
7243
  ])
7243
7244
  ], 6), [
7244
7245
  [P, l.visible]
@@ -7247,7 +7248,7 @@ function ja(e, t, i, s, l, n) {
7247
7248
  _: 1
7248
7249
  });
7249
7250
  }
7250
- const et = /* @__PURE__ */ C(Wa, [["render", ja]]), De = (e, t) => {
7251
+ const et = /* @__PURE__ */ C(Ea, [["render", Ya]]), De = (e, t) => {
7251
7252
  t.value ? Te(() => {
7252
7253
  t.modifiers.fullscreen ? (e.originalPosition = E(document.body, "position"), e.originalOverflow = E(document.body, "overflow"), e.maskStyle.zIndex = "3000", K(e.mask, "is-fullscreen"), Me(document.body, e, t)) : (q(e.mask, "is-fullscreen"), t.modifiers.body ? (e.originalPosition = E(document.body, "position"), ["top", "left"].forEach((i) => {
7253
7254
  const s = i === "top" ? "scrollTop" : "scrollLeft";
@@ -7271,7 +7272,7 @@ const et = /* @__PURE__ */ C(Wa, [["render", ja]]), De = (e, t) => {
7271
7272
  t.instance.hiding || (t.instance.visible = !0);
7272
7273
  }), t.domInserted = !0) : t.domVisible && t.instance.hiding === !0 && (t.instance.visible = !0, t.instance.hiding = !1);
7273
7274
  };
7274
- let Ya = {
7275
+ let Ka = {
7275
7276
  mounted: function(e, t, i) {
7276
7277
  const s = e.getAttribute("lh-loading-text"), l = e.getAttribute("lh-loading-spinner"), n = e.getAttribute("lh-loading-background"), a = e.getAttribute("lh-loading-custom-class"), r = i.context;
7277
7278
  let u = Le(et).mount(document.createElement("div"));
@@ -7289,20 +7290,20 @@ let Ya = {
7289
7290
  }
7290
7291
  }
7291
7292
  };
7292
- const Ka = {
7293
+ const Ja = {
7293
7294
  text: null,
7294
7295
  fullscreen: !0,
7295
7296
  body: !1,
7296
7297
  lock: !1,
7297
7298
  customClass: ""
7298
7299
  };
7299
- let Se, Ja = function() {
7300
+ let Se, qa = function() {
7300
7301
  this.fullscreen && (Se = void 0), setTimeout(() => {
7301
7302
  const e = this.fullscreen || this.body ? document.body : this.target;
7302
7303
  q(e, "lh-loading-parent--relative"), q(e, "lh-loading-parent--hidden"), this.$el && this.$el.parentNode && this.$el.parentNode.removeChild(this.$el);
7303
7304
  }, 300), this.visible = !1;
7304
7305
  };
7305
- const qa = (e, t, i) => {
7306
+ const Xa = (e, t, i) => {
7306
7307
  let s = {};
7307
7308
  e.fullscreen ? (i.originalPosition = E(document.body, "position"), i.originalOverflow = E(document.body, "overflow"), s.zIndex = 3e3) : e.body ? (i.originalPosition = E(document.body, "position"), ["top", "left"].forEach((l) => {
7308
7309
  let n = l === "top" ? "scrollTop" : "scrollLeft";
@@ -7312,17 +7313,17 @@ const qa = (e, t, i) => {
7312
7313
  })) : i.originalPosition = E(t, "position"), Object.keys(s).forEach((l) => {
7313
7314
  i.$el.style[l] = s[l];
7314
7315
  });
7315
- }, Xa = (e = {}) => {
7316
- if (e = Ze({}, Ka, e), typeof e.target == "string" && (e.target = document.querySelector(e.target)), e.target = e.target || document.body, e.target !== document.body ? e.fullscreen = !1 : e.body = !0, e.fullscreen && Se)
7316
+ }, Ga = (e = {}) => {
7317
+ if (e = Ze({}, Ja, e), typeof e.target == "string" && (e.target = document.querySelector(e.target)), e.target = e.target || document.body, e.target !== document.body ? e.fullscreen = !1 : e.body = !0, e.fullscreen && Se)
7317
7318
  return Se;
7318
7319
  let t = e.body ? document.body : e.target, s = Le(et).mount(document.createElement("div"));
7319
- return s.close = Ja, s.originalPosition = "", s.originalOverflow = "", qa(e, t, s), s.originalPosition !== "absolute" && s.originalPosition !== "fixed" && K(t, "lh-loading-parent--relative"), e.fullscreen && e.lock && K(t, "lh-loading-parent--hidden"), t.appendChild(s.$el), Te(() => {
7320
+ return s.close = qa, s.originalPosition = "", s.originalOverflow = "", Xa(e, t, s), s.originalPosition !== "absolute" && s.originalPosition !== "fixed" && K(t, "lh-loading-parent--relative"), e.fullscreen && e.lock && K(t, "lh-loading-parent--hidden"), t.appendChild(s.$el), Te(() => {
7320
7321
  s.visible = !0;
7321
7322
  }), e.fullscreen && (Se = s), e.text && s.setText(e.text), s;
7322
7323
  }, Xe = {
7323
- directive: Ya,
7324
- service: Xa
7325
- }, Ga = {
7324
+ directive: Ka,
7325
+ service: Ga
7326
+ }, Za = {
7326
7327
  data() {
7327
7328
  return {
7328
7329
  title: "",
@@ -7378,26 +7379,26 @@ const qa = (e, t, i) => {
7378
7379
  beforeUnmount() {
7379
7380
  document.removeEventListener("keydown", this.keydown), document.removeEventListener("hashchange", this.close);
7380
7381
  }
7381
- }, Za = { class: "lh-mb-wapper" }, Qa = { class: "lh-mb-header" }, $a = /* @__PURE__ */ d("i", { class: "lh-ui-font-component icon_component_remind02" }, null, -1), eo = { class: "lh-mb-header-span" }, to = { class: "lh-mb-content" }, io = { class: "lh-mb-footer" }, lo = { class: "pull-right" };
7382
- function no(e, t, i, s, l, n) {
7382
+ }, Qa = { class: "lh-mb-wapper" }, $a = { class: "lh-mb-header" }, eo = /* @__PURE__ */ d("i", { class: "lh-ui-font-component icon_component_remind02" }, null, -1), to = { class: "lh-mb-header-span" }, io = { class: "lh-mb-content" }, lo = { class: "lh-mb-footer" }, no = { class: "pull-right" };
7383
+ function so(e, t, i, s, l, n) {
7383
7384
  const a = w("lh-button");
7384
7385
  return o(), M(Ie, {
7385
7386
  name: "lh-mb-fade",
7386
7387
  onAfterLeave: n.handleAfterLeave
7387
7388
  }, {
7388
7389
  default: _(() => [
7389
- x(d("div", Za, [
7390
+ x(d("div", Qa, [
7390
7391
  d("div", {
7391
7392
  class: "lh-mb",
7392
7393
  style: k(n.positionStyle)
7393
7394
  }, [
7394
- d("div", Qa, [
7395
- $a,
7396
- d("span", eo, g(l.title), 1)
7395
+ d("div", $a, [
7396
+ eo,
7397
+ d("span", to, g(l.title), 1)
7397
7398
  ]),
7398
- d("div", to, g(l.message), 1),
7399
- d("div", io, [
7400
- d("div", lo, [
7399
+ d("div", io, g(l.message), 1),
7400
+ d("div", lo, [
7401
+ d("div", no, [
7401
7402
  T(a, {
7402
7403
  category: "minor",
7403
7404
  onClick: n.cancel
@@ -7423,15 +7424,15 @@ function no(e, t, i, s, l, n) {
7423
7424
  _: 1
7424
7425
  }, 8, ["onAfterLeave"]);
7425
7426
  }
7426
- const so = /* @__PURE__ */ C(Ga, [["render", no]]);
7427
- let A = [], ao = 1;
7427
+ const ao = /* @__PURE__ */ C(Za, [["render", so]]);
7428
+ let A = [], oo = 1;
7428
7429
  const te = function(e) {
7429
7430
  e = e || {};
7430
- let t = e.onClose, i = "messageBox_" + ao++;
7431
+ let t = e.onClose, i = "messageBox_" + oo++;
7431
7432
  e.onClose = function() {
7432
7433
  te.close(i, t);
7433
7434
  };
7434
- let l = Le(so).mount(document.createElement("div"));
7435
+ let l = Le(ao).mount(document.createElement("div"));
7435
7436
  for (let r in e)
7436
7437
  l[r] = e[r] || l[r];
7437
7438
  l.id = i, document.body.appendChild(l.$el);
@@ -7462,7 +7463,7 @@ te.closeAll = function() {
7462
7463
  for (let e = A.length - 1; e >= 0; e--)
7463
7464
  A[e].close();
7464
7465
  };
7465
- const oo = {
7466
+ const ro = {
7466
7467
  conditionSide: {
7467
7468
  title: "\u7B5B\u9009\u6761\u4EF6",
7468
7469
  reset: "\u91CD\u7F6E",
@@ -7484,7 +7485,7 @@ const oo = {
7484
7485
  custom: "\u81EA\u5B9A\u4E49",
7485
7486
  unlimit: "\u4E0D\u9650"
7486
7487
  }
7487
- }, ro = [
7488
+ }, co = [
7488
7489
  j,
7489
7490
  Y,
7490
7491
  le,
@@ -7514,11 +7515,11 @@ const oo = {
7514
7515
  xe,
7515
7516
  _e
7516
7517
  ], tt = function(e, t = {}) {
7517
- ro.map((i) => {
7518
+ co.map((i) => {
7518
7519
  e.component(i.name, i);
7519
7520
  }), window.$lhMessage = W, window.$loadingDirective = Xe.directive, window.$loading = Xe.service, window.$confirm = te.confirm, e.config.globalProperties.$lht = (i) => {
7520
7521
  let s = [];
7521
- return t.language && t.language.locale ? s = t.lang[t.language.locale].message : s = oo, i.split(".").reduce((l, n) => {
7522
+ return t.language && t.language.locale ? s = t.lang[t.language.locale].message : s = ro, i.split(".").reduce((l, n) => {
7522
7523
  if (l)
7523
7524
  return l[n];
7524
7525
  }, s);
@@ -7535,7 +7536,7 @@ document.addEventListener("click", function(e) {
7535
7536
  s[l].classList.remove("active");
7536
7537
  }
7537
7538
  });
7538
- const ho = {
7539
+ const uo = {
7539
7540
  install: tt,
7540
7541
  Button: j,
7541
7542
  Input: Y,
@@ -7567,5 +7568,5 @@ const ho = {
7567
7568
  TableColumn: _e
7568
7569
  };
7569
7570
  export {
7570
- ho as default
7571
+ uo as default
7571
7572
  };