@ithinkdt/ui 4.0.8 → 4.0.10
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/dist/index.js +15 -15
- package/esm/index.d.ts +0 -2
- package/locale.d.ts +1 -1
- package/package.json +7 -6
package/dist/index.js
CHANGED
|
@@ -169,7 +169,7 @@ var ge = /* @__PURE__ */ m({
|
|
|
169
169
|
{ bottom: !0 }
|
|
170
170
|
]]);
|
|
171
171
|
}
|
|
172
|
-
}), q = "
|
|
172
|
+
}), q = "APP_SIDEBAR_COLLAPSED", J = () => p("svg", {
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
174
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
175
175
|
role: "img",
|
|
@@ -291,7 +291,7 @@ var ye = /* @__PURE__ */ m({
|
|
|
291
291
|
}), Se = /* @__PURE__ */ r([
|
|
292
292
|
i("layout", {
|
|
293
293
|
display: "grid",
|
|
294
|
-
gridTemplateAreas: "\n '
|
|
294
|
+
gridTemplateAreas: "\n 'sidebar header'\n 'sidebar content'\n 'sidebar footer'\n ",
|
|
295
295
|
gridTemplateRows: "auto 1fr auto",
|
|
296
296
|
gridTemplateColumns: "auto 1fr",
|
|
297
297
|
position: "relative",
|
|
@@ -299,10 +299,10 @@ var ye = /* @__PURE__ */ m({
|
|
|
299
299
|
left: "0",
|
|
300
300
|
transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
301
301
|
"--app-content-height": "calc(100vh - var(--app-header-height) - var(--app-footer-height))"
|
|
302
|
-
}, [o("full-header", { gridTemplateAreas: "\n 'header header'\n '
|
|
303
|
-
width: "calc(100% + var(--app-
|
|
302
|
+
}, [o("full-header", { gridTemplateAreas: "\n 'header header'\n 'sidebar content'\n 'sidebar footer'\n " }), o("full-content", {
|
|
303
|
+
width: "calc(100% + var(--app-sidebar-width))",
|
|
304
304
|
height: "calc(100% + var(--app-header-height))",
|
|
305
|
-
left: "calc(-1 * var(--app-
|
|
305
|
+
left: "calc(-1 * var(--app-sidebar-width))",
|
|
306
306
|
top: "calc(-1 * var(--app-header-height))"
|
|
307
307
|
})]),
|
|
308
308
|
i("header", {
|
|
@@ -311,9 +311,9 @@ var ye = /* @__PURE__ */ m({
|
|
|
311
311
|
zIndex: 2,
|
|
312
312
|
height: "var(--app-header-height, 44px)"
|
|
313
313
|
}),
|
|
314
|
-
i("
|
|
315
|
-
gridArea: "
|
|
316
|
-
width: "var(--app-
|
|
314
|
+
i("sidebar", {
|
|
315
|
+
gridArea: "sidebar",
|
|
316
|
+
width: "var(--app-sidebar-width, 220px)",
|
|
317
317
|
display: "flex",
|
|
318
318
|
flexDirection: "column",
|
|
319
319
|
overflow: "auto",
|
|
@@ -377,7 +377,7 @@ var ye = /* @__PURE__ */ m({
|
|
|
377
377
|
setup(e, { slots: t }) {
|
|
378
378
|
n("-layout", Se, b("app"), !1);
|
|
379
379
|
let r = y({
|
|
380
|
-
|
|
380
|
+
sidebarWidth: "0px",
|
|
381
381
|
headerHeight: "0px",
|
|
382
382
|
footerHeight: "0px",
|
|
383
383
|
hasMultiTab: !1
|
|
@@ -391,7 +391,7 @@ var ye = /* @__PURE__ */ m({
|
|
|
391
391
|
"app-layout--full-content": e.fullContent
|
|
392
392
|
},
|
|
393
393
|
style: {
|
|
394
|
-
"--app-
|
|
394
|
+
"--app-sidebar-width": r.sidebarWidth,
|
|
395
395
|
"--app-header-height": r.headerHeight,
|
|
396
396
|
"--app-footer-height": r.footerHeight
|
|
397
397
|
}
|
|
@@ -429,13 +429,13 @@ var ye = /* @__PURE__ */ m({
|
|
|
429
429
|
setup(t, { emit: n, slots: r }) {
|
|
430
430
|
v(q, S(t, "collapsed"));
|
|
431
431
|
let { t: i } = e(), a = X();
|
|
432
|
-
return () => (a.
|
|
433
|
-
class: "app-
|
|
432
|
+
return () => (a.sidebarWidth = (t.collapsed ? t.collapsedWidth : t.width) + "px", p("div", { class: "app-sidebar" }, [x(r, "default"), t.showCollapseBtn ? D(p(j, {
|
|
433
|
+
class: "app-sidebar__collapse-btn",
|
|
434
434
|
quaternary: !0,
|
|
435
435
|
onClick: () => {
|
|
436
436
|
n("update:collapsed", !t.collapsed);
|
|
437
437
|
}
|
|
438
|
-
}, { default: () => [p(F, { size: "20" }, { default: () => [t.collapsed ? p(we, null, null) : p(Ce, null, null)] })] }), [[s, t.collapsed ? i("common.layout.
|
|
438
|
+
}, { default: () => [p(F, { size: "20" }, { default: () => [t.collapsed ? p(we, null, null) : p(Ce, null, null)] })] }), [[s, t.collapsed ? i("common.layout.sidebar.expand") : i("common.layout.sidebar.collapse")]]) : void 0]));
|
|
439
439
|
}
|
|
440
440
|
}), Oe = /* @__PURE__ */ m({
|
|
441
441
|
name: "AppContent",
|
|
@@ -497,8 +497,8 @@ var je = /* @__PURE__ */ m({
|
|
|
497
497
|
}, [x(t, "default", void 0, () => [p("div", {
|
|
498
498
|
class: "app-logo__img",
|
|
499
499
|
style: `
|
|
500
|
-
width: ${a ? "var(--app-
|
|
501
|
-
font-size: ${a ? "calc(var(--app-
|
|
500
|
+
width: ${a ? "var(--app-sidebar-width, 60px)" : "56px"};
|
|
501
|
+
font-size: ${a ? "calc(var(--app-sidebar-width, 60px) - 24px)" : "32px"};
|
|
502
502
|
transition: width 0.2s ease-in-out 0.1s;
|
|
503
503
|
flex: 0 0 auto;
|
|
504
504
|
display: flex;
|
package/esm/index.d.ts
CHANGED
package/locale.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ithinkdt/ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "iThinkDT UI",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"sortablejs": "^1.15.7",
|
|
69
69
|
"@types/sortablejs": "^1.15.9",
|
|
70
70
|
"nanoid": "^5.1.7",
|
|
71
|
-
"@ithinkdt/common": "^4.0.
|
|
71
|
+
"@ithinkdt/common": "^4.0.7"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@ithinkdt/page": ">=4.0",
|
|
@@ -88,12 +88,13 @@
|
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
90
90
|
"ithinkdt-ui": "^1.9.1",
|
|
91
|
-
"typescript": "~
|
|
91
|
+
"typescript": "~6.0.2",
|
|
92
92
|
"unocss": ">=66.6.7",
|
|
93
|
-
"vite": "^8.0.
|
|
94
|
-
"vue": "^3.5.
|
|
93
|
+
"vite": "^8.0.3",
|
|
94
|
+
"vue": "^3.5.31",
|
|
95
95
|
"vue-router": "^5.0.4",
|
|
96
|
-
"@
|
|
96
|
+
"@vue/test-utils": "^2.4.6",
|
|
97
|
+
"@ithinkdt/page": "^4.0.10"
|
|
97
98
|
},
|
|
98
99
|
"scripts": {
|
|
99
100
|
"dev": "vite build --watch",
|