@unizhen/ui 0.1.49 → 0.1.50
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/ui.js +3 -3
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -4569,7 +4569,7 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
|
|
|
4569
4569
|
new ResizeObserver((e) => {
|
|
4570
4570
|
for (let n of e) {
|
|
4571
4571
|
let e = n.target;
|
|
4572
|
-
e.offsetWidth >
|
|
4572
|
+
e.offsetWidth > 1100 ? (t.instance.gridSpan = 1, t.instance.more = t.instance.moreCache, t.instance.offset = t.instance.offsetCache) : e.offsetWidth <= 1100 && e.offsetWidth > 550 ? (t.instance.gridSpan = 2, t.instance.more = t.instance.moreIndex > 2, t.instance.offset = t.instance.moreIndex === 1 ? 1 : -1) : (t.instance.gridSpan = 4, t.instance.more = t.instance.moreIndex > 1, t.instance.offset = -1);
|
|
4573
4573
|
}
|
|
4574
4574
|
}).observe(e);
|
|
4575
4575
|
} } },
|
|
@@ -4728,7 +4728,7 @@ function ap(t, a, o, s, u, d) {
|
|
|
4728
4728
|
}, null, 8, ["offset"])) : r("", !0),
|
|
4729
4729
|
(x(!0), i(e, null, T(t.itemData, (e, r) => (x(), n(m, {
|
|
4730
4730
|
key: `${r}_${Date.now()}`,
|
|
4731
|
-
span: e.search.show ? e.search.span || t.gridSpan : 0
|
|
4731
|
+
span: e.search.show ? e.search.span === 1 ? t.gridSpan : e.search.span || t.gridSpan : 0
|
|
4732
4732
|
}, {
|
|
4733
4733
|
default: N(() => [l(y, null, {
|
|
4734
4734
|
default: N(() => [l(_, {
|
|
@@ -8359,7 +8359,7 @@ function Ah(e, t, n) {
|
|
|
8359
8359
|
}
|
|
8360
8360
|
//#endregion
|
|
8361
8361
|
//#region package.json
|
|
8362
|
-
var jh = "0.1.
|
|
8362
|
+
var jh = "0.1.50", Mh;
|
|
8363
8363
|
async function Nh() {
|
|
8364
8364
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8365
8365
|
method: "HEAD",
|