lh-ui-next 0.0.52 → 0.0.54
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 +41 -31
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +1 -1
- package/static/css/compact/compact.less +115 -0
- package/static/css/package/pagination.less +21 -15
- package/static/css/package/selectTile.less +5 -3
- package/static/css/package/tab.less +42 -0
- package/static/css/package/treeSelect.less +0 -27
- package/static/css/theme-compact-blue/main.css +1 -0
- package/static/css/theme-compact-blue/main.less +47 -0
- package/static/css/theme-loose-blue/main.css +1 -0
- package/static/css/{theme-blue → theme-loose-blue}/main.less +5 -4
- package/static/css/theme-loose-orange/main.css +1 -0
- package/static/css/{theme-orange → theme-loose-orange}/main.less +5 -4
- package/static/css/theme-blue/main.css +0 -1
- package/static/css/theme-orange/main.css +0 -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.0.
|
|
8
|
-
## test version : "0.0.
|
|
7
|
+
## Official version : "0.0.54",
|
|
8
|
+
## test version : "0.0.54",
|
|
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
|
@@ -3081,11 +3081,11 @@ const Dl = /* @__PURE__ */ k(Tl, [["render", Nl]]), Ml = {
|
|
|
3081
3081
|
beforeUnmount() {
|
|
3082
3082
|
window.removeEventListener("resize", this.listenResize);
|
|
3083
3083
|
}
|
|
3084
|
-
}, Rl =
|
|
3084
|
+
}, Rl = ["innerHTML"], Bl = ["title"], El = ["innerHTML"], Wl = {
|
|
3085
3085
|
key: 0,
|
|
3086
3086
|
class: "lh-select-node lh-select-node-close pull-left"
|
|
3087
|
-
},
|
|
3088
|
-
function
|
|
3087
|
+
}, Fl = /* @__PURE__ */ d("i", { class: "dropdown-icon lh-ui-font-component icon_component_arrow_down" }, null, -1);
|
|
3088
|
+
function Hl(e, t, i, s, l, n) {
|
|
3089
3089
|
const a = w("lh-input"), r = w("lh-tree"), h = w("lh-button"), u = w("treeResizeWapper"), m = w("lh-popover");
|
|
3090
3090
|
return o(), M(m, {
|
|
3091
3091
|
zIndex: "2500",
|
|
@@ -3094,11 +3094,12 @@ function Ol(e, t, i, s, l, n) {
|
|
|
3094
3094
|
width: l.pWidth,
|
|
3095
3095
|
popoverContentClass: n.popoverContentClass,
|
|
3096
3096
|
offset: 3,
|
|
3097
|
-
ref: "myPopover"
|
|
3098
|
-
class: f(i.size == "mini" ? "lh-tree-select-mini" : "")
|
|
3097
|
+
ref: "myPopover"
|
|
3099
3098
|
}, {
|
|
3100
3099
|
reference: x(() => [
|
|
3101
|
-
d("span",
|
|
3100
|
+
d("span", {
|
|
3101
|
+
class: f(["lh-select", i.size])
|
|
3102
|
+
}, [
|
|
3102
3103
|
d("span", {
|
|
3103
3104
|
class: f(["lh-select-text", i.disabled ? " disabled " : " "]),
|
|
3104
3105
|
ref: "mySelectSpan"
|
|
@@ -3109,7 +3110,7 @@ function Ol(e, t, i, s, l, n) {
|
|
|
3109
3110
|
n.isSingleSelect ? (o(!0), c(b, { key: 0 }, y(l.showList, (_) => (o(), c("div", {
|
|
3110
3111
|
class: "lh-select-single text-overflow",
|
|
3111
3112
|
innerHTML: _.name
|
|
3112
|
-
}, null, 8,
|
|
3113
|
+
}, null, 8, Rl))), 256)) : (o(), c(b, { key: 1 }, [
|
|
3113
3114
|
(o(!0), c(b, null, y(l.showList, (_, S) => (o(), c(b, null, [
|
|
3114
3115
|
S === 0 ? (o(), c("span", {
|
|
3115
3116
|
key: 0,
|
|
@@ -3119,18 +3120,18 @@ function Ol(e, t, i, s, l, n) {
|
|
|
3119
3120
|
}, [
|
|
3120
3121
|
d("span", {
|
|
3121
3122
|
innerHTML: _.name
|
|
3122
|
-
}, null, 8,
|
|
3123
|
+
}, null, 8, El),
|
|
3123
3124
|
d("i", {
|
|
3124
3125
|
class: "lh-ui-font-component icon_component_close",
|
|
3125
3126
|
onClick: t[1] || (t[1] = U((...N) => n.delTopItem && n.delTopItem(...N), ["stop"]))
|
|
3126
3127
|
})
|
|
3127
|
-
], 8,
|
|
3128
|
+
], 8, Bl)) : p("", !0)
|
|
3128
3129
|
], 64))), 256)),
|
|
3129
|
-
l.showList.length > 1 ? (o(), c("span",
|
|
3130
|
+
l.showList.length > 1 ? (o(), c("span", Wl, " +" + g(l.showList.length - 1), 1)) : p("", !0)
|
|
3130
3131
|
], 64)),
|
|
3131
|
-
|
|
3132
|
+
Fl
|
|
3132
3133
|
], 2)
|
|
3133
|
-
])
|
|
3134
|
+
], 2)
|
|
3134
3135
|
]),
|
|
3135
3136
|
default: x(() => [
|
|
3136
3137
|
T(u, {
|
|
@@ -3198,16 +3199,16 @@ function Ol(e, t, i, s, l, n) {
|
|
|
3198
3199
|
}, 8, ["class", "onHandleResizeCallback"])
|
|
3199
3200
|
]),
|
|
3200
3201
|
_: 3
|
|
3201
|
-
}, 8, ["width", "popoverContentClass"
|
|
3202
|
+
}, 8, ["width", "popoverContentClass"]);
|
|
3202
3203
|
}
|
|
3203
|
-
const oe = /* @__PURE__ */ k(Ml, [["render",
|
|
3204
|
+
const oe = /* @__PURE__ */ k(Ml, [["render", Hl]]);
|
|
3204
3205
|
oe.install = function(e) {
|
|
3205
3206
|
e.component(oe.name, oe);
|
|
3206
3207
|
};
|
|
3207
3208
|
Q.install = function(e) {
|
|
3208
3209
|
e.component(Q.name, Q);
|
|
3209
3210
|
};
|
|
3210
|
-
const
|
|
3211
|
+
const Ol = {
|
|
3211
3212
|
name: "lhTab",
|
|
3212
3213
|
componentName: "lhTab",
|
|
3213
3214
|
emits: ["update:modelValue"],
|
|
@@ -3309,13 +3310,13 @@ const Al = {
|
|
|
3309
3310
|
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));
|
|
3310
3311
|
}
|
|
3311
3312
|
}
|
|
3312
|
-
},
|
|
3313
|
+
}, Al = ["onClick"], Ul = ["onClick"], jl = ["onClick"], Yl = ["onClick"], Kl = {
|
|
3313
3314
|
key: 0,
|
|
3314
3315
|
class: "lh-tab-content more-wrap"
|
|
3315
|
-
},
|
|
3316
|
+
}, ql = /* @__PURE__ */ d("span", { class: "more" }, [
|
|
3316
3317
|
/* @__PURE__ */ I("\u66F4\u591A"),
|
|
3317
3318
|
/* @__PURE__ */ d("i", { class: "dropdown-icon lh-ui-font-component icon_component_arrow_down" })
|
|
3318
|
-
], -1),
|
|
3319
|
+
], -1), Jl = { class: "lh-scroll-common" }, Xl = ["onClick"], Gl = ["title"], Zl = ["onClick"], Ql = /* @__PURE__ */ d("div", { style: { clear: "both" } }, null, -1);
|
|
3319
3320
|
function $l(e, t, i, s, l, n) {
|
|
3320
3321
|
return o(), c("div", {
|
|
3321
3322
|
class: f(["lh-tab", i.hasBorder ? "with-border" : ""])
|
|
@@ -3328,7 +3329,7 @@ function $l(e, t, i, s, l, n) {
|
|
|
3328
3329
|
class: f(["lh-tab-content", { active: n.isActive(r), disabled: a.disabled }]),
|
|
3329
3330
|
style: C({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
3330
3331
|
onClick: (h) => n.tabswitch(r)
|
|
3331
|
-
}, g(a.name), 15,
|
|
3332
|
+
}, g(a.name), 15, Al))), 256))
|
|
3332
3333
|
], 2)) : p("", !0),
|
|
3333
3334
|
i.tabType == "n2" ? (o(), c("div", {
|
|
3334
3335
|
key: 1,
|
|
@@ -3338,7 +3339,7 @@ function $l(e, t, i, s, l, n) {
|
|
|
3338
3339
|
class: f(["lh-tab-content", { active: n.isActive(r), disabled: a.disabled }]),
|
|
3339
3340
|
style: C({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
3340
3341
|
onClick: (h) => n.tabswitch(r)
|
|
3341
|
-
}, g(a.name), 15,
|
|
3342
|
+
}, g(a.name), 15, Ul))), 256))
|
|
3342
3343
|
], 2)) : p("", !0),
|
|
3343
3344
|
i.tabType == "n3" ? (o(), c("div", {
|
|
3344
3345
|
key: 2,
|
|
@@ -3348,7 +3349,7 @@ function $l(e, t, i, s, l, n) {
|
|
|
3348
3349
|
class: f(["lh-tab-content", { active: n.isActive(r), disabled: a.disabled }]),
|
|
3349
3350
|
style: C({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
3350
3351
|
onClick: (h) => n.tabswitch(r)
|
|
3351
|
-
}, g(a.name), 15,
|
|
3352
|
+
}, g(a.name), 15, jl))), 256))
|
|
3352
3353
|
], 2)) : p("", !0),
|
|
3353
3354
|
i.tabType == "n4" ? (o(), c("div", {
|
|
3354
3355
|
key: 3,
|
|
@@ -3363,15 +3364,15 @@ function $l(e, t, i, s, l, n) {
|
|
|
3363
3364
|
ref: "n4Item",
|
|
3364
3365
|
style: C({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
3365
3366
|
onClick: (h) => n.tabswitch(r)
|
|
3366
|
-
}, g(a.name), 15,
|
|
3367
|
+
}, g(a.name), 15, Yl))
|
|
3367
3368
|
], 64))), 256)),
|
|
3368
|
-
l.isFold ? (o(), c("span",
|
|
3369
|
-
|
|
3369
|
+
l.isFold ? (o(), c("span", Kl, [
|
|
3370
|
+
ql,
|
|
3370
3371
|
d("div", {
|
|
3371
3372
|
class: "drop-down-wrap",
|
|
3372
3373
|
style: C(i.dropWidth ? `width:${i.dropWidth}px;` : "width:auto;")
|
|
3373
3374
|
}, [
|
|
3374
|
-
d("ul",
|
|
3375
|
+
d("ul", Jl, [
|
|
3375
3376
|
(o(!0), c(b, null, y(l.myTabList, (a, r) => (o(), c(b, null, [
|
|
3376
3377
|
a.isFold && !a.nodisplay ? (o(), c("li", {
|
|
3377
3378
|
key: 0,
|
|
@@ -3381,17 +3382,27 @@ function $l(e, t, i, s, l, n) {
|
|
|
3381
3382
|
class: f(["lh-tab-content", { active: n.isActive(r), disabled: a.disabled }]),
|
|
3382
3383
|
title: a.name,
|
|
3383
3384
|
style: C({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline" })
|
|
3384
|
-
}, g(a.name), 15,
|
|
3385
|
-
], 8,
|
|
3385
|
+
}, g(a.name), 15, Gl)
|
|
3386
|
+
], 8, Xl)) : p("", !0)
|
|
3386
3387
|
], 64))), 256))
|
|
3387
3388
|
])
|
|
3388
3389
|
], 4)
|
|
3389
3390
|
])) : p("", !0)
|
|
3390
3391
|
], 2)) : p("", !0),
|
|
3392
|
+
i.tabType == "n5" ? (o(), c("div", {
|
|
3393
|
+
key: 4,
|
|
3394
|
+
class: f(["lh-tab-div-n5", i.size])
|
|
3395
|
+
}, [
|
|
3396
|
+
(o(!0), c(b, null, y(i.tablist, (a, r) => (o(), c("span", {
|
|
3397
|
+
class: f(["lh-tab-content", { active: n.isActive(r), disabled: a.disabled }]),
|
|
3398
|
+
style: C({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
3399
|
+
onClick: (h) => n.tabswitch(r)
|
|
3400
|
+
}, g(a.name), 15, Zl))), 256))
|
|
3401
|
+
], 2)) : p("", !0),
|
|
3391
3402
|
Ql
|
|
3392
3403
|
], 2);
|
|
3393
3404
|
}
|
|
3394
|
-
const re = /* @__PURE__ */ k(
|
|
3405
|
+
const re = /* @__PURE__ */ k(Ol, [["render", $l]]);
|
|
3395
3406
|
re.install = function(e) {
|
|
3396
3407
|
e.component(re.name, re);
|
|
3397
3408
|
};
|
|
@@ -3829,9 +3840,8 @@ function gn(e, t, i, s, l, n) {
|
|
|
3829
3840
|
(o(!0), c(b, null, y(l.list, (a, r) => v((o(), c("li", {
|
|
3830
3841
|
onClick: (h) => n.optionSwitch(a, r),
|
|
3831
3842
|
class: f([{ active: a.active, disabled: i.disabled }, { mini: i.size == "mini" }]),
|
|
3832
|
-
innerHTML: a.name
|
|
3833
|
-
|
|
3834
|
-
}, null, 14, un)), [
|
|
3843
|
+
innerHTML: a.name
|
|
3844
|
+
}, null, 10, un)), [
|
|
3835
3845
|
[P, a.show]
|
|
3836
3846
|
])), 256)),
|
|
3837
3847
|
i.selectType == 4 || i.selectType == 6 ? (o(), c("div", {
|