lh-ui-next 0.1.0 → 0.1.1
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 +2 -2
- package/lib/lh-ui-next.mjs +67 -55
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +1 -1
- package/static/css/compact/compact.less +8 -0
- package/static/css/package/button.less +12 -0
- package/static/css/theme-compact-blue/main.css +1 -1
- package/static/css/theme-loose-blue/main.css +1 -1
- package/static/css/theme-loose-orange/main.css +1 -1
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.
|
|
8
|
-
## test version : "0.1.
|
|
7
|
+
## Official version : "0.1.1",
|
|
8
|
+
## test version : "0.1.1",
|
|
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
|
package/lib/lh-ui-next.mjs
CHANGED
|
@@ -6651,7 +6651,7 @@ const xa = {
|
|
|
6651
6651
|
lhCheckbox: X,
|
|
6652
6652
|
lhScrollbar: Z
|
|
6653
6653
|
},
|
|
6654
|
-
emits: ["sortChange", "selectionChange"],
|
|
6654
|
+
emits: ["sortChange", "selectionChange", "cellMouseEnter", "cellMouseLeave"],
|
|
6655
6655
|
data() {
|
|
6656
6656
|
return {
|
|
6657
6657
|
tableHeader: [],
|
|
@@ -6900,6 +6900,14 @@ const xa = {
|
|
|
6900
6900
|
},
|
|
6901
6901
|
slotChange() {
|
|
6902
6902
|
this.handleHeader();
|
|
6903
|
+
},
|
|
6904
|
+
cellMouseEnter(e) {
|
|
6905
|
+
let t = null;
|
|
6906
|
+
this.$emit("cellMouseEnter", e, t);
|
|
6907
|
+
},
|
|
6908
|
+
cellMouseLeave(e) {
|
|
6909
|
+
let t = null;
|
|
6910
|
+
this.$emit("cellMouseLeave", e, t);
|
|
6903
6911
|
}
|
|
6904
6912
|
},
|
|
6905
6913
|
mounted() {
|
|
@@ -6916,11 +6924,11 @@ const xa = {
|
|
|
6916
6924
|
}, Ca = ["width"], wa = ["onMousedown", "onMousemove"], Sa = { class: "caret-wrapper" }, Ta = ["onClick"], Ia = ["onClick"], La = {
|
|
6917
6925
|
key: 0,
|
|
6918
6926
|
class: "lh-table__empty-block"
|
|
6919
|
-
}, Pa = { class: "lh-table__empty-text" }, za = ["width"], Va = {
|
|
6927
|
+
}, Pa = { class: "lh-table__empty-text" }, za = ["width"], Va = ["onMouseenter", "onMouseleave"], Na = {
|
|
6920
6928
|
class: "lh-table__column-resize-proxy",
|
|
6921
6929
|
ref: "resizeProxy"
|
|
6922
6930
|
};
|
|
6923
|
-
function
|
|
6931
|
+
function Da(e, t, i, s, l, n) {
|
|
6924
6932
|
const a = w("lh-checkbox"), r = w("lh-scrollbar"), h = We("resize");
|
|
6925
6933
|
return x((o(), c("div", {
|
|
6926
6934
|
class: f(["lh-table", {
|
|
@@ -7001,27 +7009,30 @@ function Na(e, t, i, s, l, n) {
|
|
|
7001
7009
|
}, null, 8, za))), 256))
|
|
7002
7010
|
]),
|
|
7003
7011
|
d("tbody", null, [
|
|
7004
|
-
(o(!0), c(b, null, y(i.data, (u, p) => (o(), c("tr",
|
|
7012
|
+
(o(!0), c(b, null, y(i.data, (u, p) => (o(), c("tr", {
|
|
7013
|
+
onMouseenter: (v) => n.cellMouseEnter(u),
|
|
7014
|
+
onMouseleave: (v) => n.cellMouseLeave(u)
|
|
7015
|
+
}, [
|
|
7005
7016
|
L(e.$slots, "default")
|
|
7006
|
-
]))), 256))
|
|
7017
|
+
], 40, Va))), 256))
|
|
7007
7018
|
])
|
|
7008
7019
|
], 4)
|
|
7009
7020
|
]),
|
|
7010
7021
|
_: 3
|
|
7011
7022
|
}, 8, ["style", "onOnScrollHorizontal", "onInit", "onHorizontalVisibleChange"])
|
|
7012
7023
|
]),
|
|
7013
|
-
x(d("div",
|
|
7024
|
+
x(d("div", Na, null, 512), [
|
|
7014
7025
|
[P, l.isDragging]
|
|
7015
7026
|
])
|
|
7016
7027
|
], 2)), [
|
|
7017
7028
|
[h, n.resizeTableHandler]
|
|
7018
7029
|
]);
|
|
7019
7030
|
}
|
|
7020
|
-
const xe = /* @__PURE__ */ C(xa, [["render",
|
|
7031
|
+
const xe = /* @__PURE__ */ C(xa, [["render", Da]]);
|
|
7021
7032
|
xe.install = function(e) {
|
|
7022
7033
|
e.component(xe.name, xe);
|
|
7023
7034
|
};
|
|
7024
|
-
const
|
|
7035
|
+
const Ma = {
|
|
7025
7036
|
name: "lhTableColumn",
|
|
7026
7037
|
componentName: "lhTableColumn",
|
|
7027
7038
|
components: {
|
|
@@ -7128,8 +7139,8 @@ const Da = {
|
|
|
7128
7139
|
mounted() {
|
|
7129
7140
|
this.initFn();
|
|
7130
7141
|
}
|
|
7131
|
-
},
|
|
7132
|
-
function
|
|
7142
|
+
}, Ra = { key: 0 };
|
|
7143
|
+
function Ba(e, t, i, s, l, n) {
|
|
7133
7144
|
const a = w("lh-checkbox");
|
|
7134
7145
|
return o(), c("td", {
|
|
7135
7146
|
ref: "myTd",
|
|
@@ -7140,7 +7151,7 @@ function Ra(e, t, i, s, l, n) {
|
|
|
7140
7151
|
class: "cell",
|
|
7141
7152
|
style: k({ textAlign: i.align })
|
|
7142
7153
|
}, [
|
|
7143
|
-
i.type === "index" ? (o(), c("span",
|
|
7154
|
+
i.type === "index" ? (o(), c("span", Ra, g(l.trIndex + 1), 1)) : i.type === "selection" ? (o(), M(a, {
|
|
7144
7155
|
key: 1,
|
|
7145
7156
|
label: "2",
|
|
7146
7157
|
modelValue: l.item.selected,
|
|
@@ -7148,18 +7159,19 @@ function Ra(e, t, i, s, l, n) {
|
|
|
7148
7159
|
onCheckChange: n.checkChange
|
|
7149
7160
|
}, null, 8, ["modelValue", "onCheckChange"])) : L(e.$slots, "default", {
|
|
7150
7161
|
key: 2,
|
|
7151
|
-
row: l.item
|
|
7162
|
+
row: l.item,
|
|
7163
|
+
$index: l.trIndex
|
|
7152
7164
|
}, () => [
|
|
7153
7165
|
d("span", null, g(l.item[i.prop]), 1)
|
|
7154
7166
|
])
|
|
7155
7167
|
], 4)
|
|
7156
7168
|
], 6);
|
|
7157
7169
|
}
|
|
7158
|
-
const _e = /* @__PURE__ */ C(
|
|
7170
|
+
const _e = /* @__PURE__ */ C(Ma, [["render", Ba]]);
|
|
7159
7171
|
_e.install = function(e) {
|
|
7160
7172
|
e.component(_e.name, _e);
|
|
7161
7173
|
};
|
|
7162
|
-
const
|
|
7174
|
+
const Wa = {
|
|
7163
7175
|
data() {
|
|
7164
7176
|
return {
|
|
7165
7177
|
text: null,
|
|
@@ -7175,39 +7187,39 @@ const Ba = {
|
|
|
7175
7187
|
this.text = e;
|
|
7176
7188
|
}
|
|
7177
7189
|
}
|
|
7178
|
-
},
|
|
7190
|
+
}, Ea = { class: "lh-loading-spinner" }, Fa = {
|
|
7179
7191
|
key: 0,
|
|
7180
7192
|
class: "circular",
|
|
7181
7193
|
viewBox: "25 25 50 50"
|
|
7182
|
-
},
|
|
7194
|
+
}, Ha = /* @__PURE__ */ d("circle", {
|
|
7183
7195
|
class: "path",
|
|
7184
7196
|
cx: "50",
|
|
7185
7197
|
cy: "50",
|
|
7186
7198
|
r: "20",
|
|
7187
7199
|
fill: "none"
|
|
7188
|
-
}, null, -1),
|
|
7189
|
-
|
|
7190
|
-
],
|
|
7200
|
+
}, null, -1), Oa = [
|
|
7201
|
+
Ha
|
|
7202
|
+
], Aa = {
|
|
7191
7203
|
key: 1,
|
|
7192
7204
|
class: "lh-loading-icon-wapper"
|
|
7193
|
-
},
|
|
7205
|
+
}, Ua = {
|
|
7194
7206
|
key: 2,
|
|
7195
7207
|
class: "lh-loading-text"
|
|
7196
7208
|
};
|
|
7197
|
-
function
|
|
7209
|
+
function ja(e, t, i, s, l, n) {
|
|
7198
7210
|
return o(), M(Ie, { name: "lh-loading-fade" }, {
|
|
7199
7211
|
default: _(() => [
|
|
7200
7212
|
x(d("div", {
|
|
7201
7213
|
class: f(["lh-loading-mask", [l.customClass, { "is-fullscreen": l.fullscreen }]]),
|
|
7202
7214
|
style: k({ backgroundColor: l.background || "" })
|
|
7203
7215
|
}, [
|
|
7204
|
-
d("div",
|
|
7205
|
-
l.spinner ? (o(), c("div",
|
|
7216
|
+
d("div", Ea, [
|
|
7217
|
+
l.spinner ? (o(), c("div", Aa, [
|
|
7206
7218
|
d("i", {
|
|
7207
7219
|
class: f(l.spinner)
|
|
7208
7220
|
}, null, 2)
|
|
7209
|
-
])) : (o(), c("svg",
|
|
7210
|
-
l.text ? (o(), c("p",
|
|
7221
|
+
])) : (o(), c("svg", Fa, Oa)),
|
|
7222
|
+
l.text ? (o(), c("p", Ua, g(l.text), 1)) : m("", !0)
|
|
7211
7223
|
])
|
|
7212
7224
|
], 6), [
|
|
7213
7225
|
[P, l.visible]
|
|
@@ -7216,7 +7228,7 @@ function Ua(e, t, i, s, l, n) {
|
|
|
7216
7228
|
_: 1
|
|
7217
7229
|
});
|
|
7218
7230
|
}
|
|
7219
|
-
const et = /* @__PURE__ */ C(
|
|
7231
|
+
const et = /* @__PURE__ */ C(Wa, [["render", ja]]), De = (e, t) => {
|
|
7220
7232
|
t.value ? Te(() => {
|
|
7221
7233
|
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) => {
|
|
7222
7234
|
const s = i === "top" ? "scrollTop" : "scrollLeft";
|
|
@@ -7240,7 +7252,7 @@ const et = /* @__PURE__ */ C(Ba, [["render", Ua]]), De = (e, t) => {
|
|
|
7240
7252
|
t.instance.hiding || (t.instance.visible = !0);
|
|
7241
7253
|
}), t.domInserted = !0) : t.domVisible && t.instance.hiding === !0 && (t.instance.visible = !0, t.instance.hiding = !1);
|
|
7242
7254
|
};
|
|
7243
|
-
let
|
|
7255
|
+
let Ya = {
|
|
7244
7256
|
mounted: function(e, t, i) {
|
|
7245
7257
|
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;
|
|
7246
7258
|
let u = Le(et).mount(document.createElement("div"));
|
|
@@ -7258,20 +7270,20 @@ let ja = {
|
|
|
7258
7270
|
}
|
|
7259
7271
|
}
|
|
7260
7272
|
};
|
|
7261
|
-
const
|
|
7273
|
+
const Ka = {
|
|
7262
7274
|
text: null,
|
|
7263
7275
|
fullscreen: !0,
|
|
7264
7276
|
body: !1,
|
|
7265
7277
|
lock: !1,
|
|
7266
7278
|
customClass: ""
|
|
7267
7279
|
};
|
|
7268
|
-
let Se,
|
|
7280
|
+
let Se, Ja = function() {
|
|
7269
7281
|
this.fullscreen && (Se = void 0), setTimeout(() => {
|
|
7270
7282
|
const e = this.fullscreen || this.body ? document.body : this.target;
|
|
7271
7283
|
q(e, "lh-loading-parent--relative"), q(e, "lh-loading-parent--hidden"), this.$el && this.$el.parentNode && this.$el.parentNode.removeChild(this.$el);
|
|
7272
7284
|
}, 300), this.visible = !1;
|
|
7273
7285
|
};
|
|
7274
|
-
const
|
|
7286
|
+
const qa = (e, t, i) => {
|
|
7275
7287
|
let s = {};
|
|
7276
7288
|
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) => {
|
|
7277
7289
|
let n = l === "top" ? "scrollTop" : "scrollLeft";
|
|
@@ -7281,17 +7293,17 @@ const Ja = (e, t, i) => {
|
|
|
7281
7293
|
})) : i.originalPosition = E(t, "position"), Object.keys(s).forEach((l) => {
|
|
7282
7294
|
i.$el.style[l] = s[l];
|
|
7283
7295
|
});
|
|
7284
|
-
},
|
|
7285
|
-
if (e = Ze({},
|
|
7296
|
+
}, Xa = (e = {}) => {
|
|
7297
|
+
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)
|
|
7286
7298
|
return Se;
|
|
7287
7299
|
let t = e.body ? document.body : e.target, s = Le(et).mount(document.createElement("div"));
|
|
7288
|
-
return s.close =
|
|
7300
|
+
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(() => {
|
|
7289
7301
|
s.visible = !0;
|
|
7290
7302
|
}), e.fullscreen && (Se = s), e.text && s.setText(e.text), s;
|
|
7291
7303
|
}, Xe = {
|
|
7292
|
-
directive:
|
|
7293
|
-
service:
|
|
7294
|
-
},
|
|
7304
|
+
directive: Ya,
|
|
7305
|
+
service: Xa
|
|
7306
|
+
}, Ga = {
|
|
7295
7307
|
data() {
|
|
7296
7308
|
return {
|
|
7297
7309
|
title: "",
|
|
@@ -7347,26 +7359,26 @@ const Ja = (e, t, i) => {
|
|
|
7347
7359
|
beforeUnmount() {
|
|
7348
7360
|
document.removeEventListener("keydown", this.keydown), document.removeEventListener("hashchange", this.close);
|
|
7349
7361
|
}
|
|
7350
|
-
},
|
|
7351
|
-
function
|
|
7362
|
+
}, 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" };
|
|
7363
|
+
function no(e, t, i, s, l, n) {
|
|
7352
7364
|
const a = w("lh-button");
|
|
7353
7365
|
return o(), M(Ie, {
|
|
7354
7366
|
name: "lh-mb-fade",
|
|
7355
7367
|
onAfterLeave: n.handleAfterLeave
|
|
7356
7368
|
}, {
|
|
7357
7369
|
default: _(() => [
|
|
7358
|
-
x(d("div",
|
|
7370
|
+
x(d("div", Za, [
|
|
7359
7371
|
d("div", {
|
|
7360
7372
|
class: "lh-mb",
|
|
7361
7373
|
style: k(n.positionStyle)
|
|
7362
7374
|
}, [
|
|
7363
|
-
d("div",
|
|
7364
|
-
|
|
7365
|
-
d("span",
|
|
7375
|
+
d("div", Qa, [
|
|
7376
|
+
$a,
|
|
7377
|
+
d("span", eo, g(l.title), 1)
|
|
7366
7378
|
]),
|
|
7367
|
-
d("div",
|
|
7368
|
-
d("div",
|
|
7369
|
-
d("div",
|
|
7379
|
+
d("div", to, g(l.message), 1),
|
|
7380
|
+
d("div", io, [
|
|
7381
|
+
d("div", lo, [
|
|
7370
7382
|
T(a, {
|
|
7371
7383
|
category: "minor",
|
|
7372
7384
|
onClick: n.cancel
|
|
@@ -7392,15 +7404,15 @@ function lo(e, t, i, s, l, n) {
|
|
|
7392
7404
|
_: 1
|
|
7393
7405
|
}, 8, ["onAfterLeave"]);
|
|
7394
7406
|
}
|
|
7395
|
-
const
|
|
7396
|
-
let A = [],
|
|
7407
|
+
const so = /* @__PURE__ */ C(Ga, [["render", no]]);
|
|
7408
|
+
let A = [], ao = 1;
|
|
7397
7409
|
const te = function(e) {
|
|
7398
7410
|
e = e || {};
|
|
7399
|
-
let t = e.onClose, i = "messageBox_" +
|
|
7411
|
+
let t = e.onClose, i = "messageBox_" + ao++;
|
|
7400
7412
|
e.onClose = function() {
|
|
7401
7413
|
te.close(i, t);
|
|
7402
7414
|
};
|
|
7403
|
-
let l = Le(
|
|
7415
|
+
let l = Le(so).mount(document.createElement("div"));
|
|
7404
7416
|
for (let r in e)
|
|
7405
7417
|
l[r] = e[r] || l[r];
|
|
7406
7418
|
l.id = i, document.body.appendChild(l.$el);
|
|
@@ -7431,7 +7443,7 @@ te.closeAll = function() {
|
|
|
7431
7443
|
for (let e = A.length - 1; e >= 0; e--)
|
|
7432
7444
|
A[e].close();
|
|
7433
7445
|
};
|
|
7434
|
-
const
|
|
7446
|
+
const oo = {
|
|
7435
7447
|
conditionSide: {
|
|
7436
7448
|
title: "\u7B5B\u9009\u6761\u4EF6",
|
|
7437
7449
|
reset: "\u91CD\u7F6E",
|
|
@@ -7453,7 +7465,7 @@ const ao = {
|
|
|
7453
7465
|
custom: "\u81EA\u5B9A\u4E49",
|
|
7454
7466
|
unlimit: "\u4E0D\u9650"
|
|
7455
7467
|
}
|
|
7456
|
-
},
|
|
7468
|
+
}, ro = [
|
|
7457
7469
|
j,
|
|
7458
7470
|
Y,
|
|
7459
7471
|
le,
|
|
@@ -7483,11 +7495,11 @@ const ao = {
|
|
|
7483
7495
|
xe,
|
|
7484
7496
|
_e
|
|
7485
7497
|
], tt = function(e, t = {}) {
|
|
7486
|
-
|
|
7498
|
+
ro.map((i) => {
|
|
7487
7499
|
e.component(i.name, i);
|
|
7488
7500
|
}), window.$lhMessage = W, window.$loadingDirective = Xe.directive, window.$loading = Xe.service, window.$confirm = te.confirm, e.config.globalProperties.$lht = (i) => {
|
|
7489
7501
|
let s = [];
|
|
7490
|
-
return t.language && t.language.locale ? s = t.lang[t.language.locale].message : s =
|
|
7502
|
+
return t.language && t.language.locale ? s = t.lang[t.language.locale].message : s = oo, i.split(".").reduce((l, n) => {
|
|
7491
7503
|
if (l)
|
|
7492
7504
|
return l[n];
|
|
7493
7505
|
}, s);
|
|
@@ -7504,7 +7516,7 @@ document.addEventListener("click", function(e) {
|
|
|
7504
7516
|
s[l].classList.remove("active");
|
|
7505
7517
|
}
|
|
7506
7518
|
});
|
|
7507
|
-
const
|
|
7519
|
+
const ho = {
|
|
7508
7520
|
install: tt,
|
|
7509
7521
|
Button: j,
|
|
7510
7522
|
Input: Y,
|
|
@@ -7536,5 +7548,5 @@ const co = {
|
|
|
7536
7548
|
TableColumn: _e
|
|
7537
7549
|
};
|
|
7538
7550
|
export {
|
|
7539
|
-
|
|
7551
|
+
ho as default
|
|
7540
7552
|
};
|