@ditari/bsui 5.1.13 → 5.1.14
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/cjs/components/layout/AppLayout.cjs +2 -2
- package/dist/cjs/components/layout/AppLayout.cjs.map +1 -1
- package/dist/cjs/components/layout/index.cjs.map +1 -1
- package/dist/esm/components/layout/AppLayout.mjs +2 -2
- package/dist/esm/components/layout/AppLayout.mjs.map +1 -1
- package/dist/esm/components/layout/index.mjs.map +1 -1
- package/dist/types/components/layout/AppLayout.d.ts.map +1 -1
- package/dist/types/components/layout/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var css = require('@emotion/css');
|
|
7
6
|
var pinia = require('pinia');
|
|
8
|
-
var store = require('@ditari/store');
|
|
9
7
|
var style = require('./style.cjs');
|
|
8
|
+
var store = require('@ditari/store');
|
|
9
|
+
var css = require('@emotion/css');
|
|
10
10
|
var useDesign = require('../../hooks/useDesign.cjs');
|
|
11
11
|
|
|
12
12
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayout.cjs","sources":["../../../../src/components/layout/AppLayout.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"AppLayout.cjs","sources":["../../../../src/components/layout/AppLayout.tsx"],"sourcesContent":["import { defineComponent } from \"vue\";\r\nimport { storeToRefs } from \"pinia\";\r\n\r\nimport { useAppLayoutStyle } from \"./style\";\r\nimport { useDeviceStore } from \"@ditari/store\";\r\nimport { cx } from \"@emotion/css\";\r\n\r\nimport { useDesign } from \"../../hooks/useDesign\";\r\n\r\nconst DAppLayout = defineComponent({\r\n name: \"DAppLayout\",\r\n setup(_, { slots }) {\r\n const deviceStore = useDeviceStore();\r\n // 使用 storeToRefs 解构出响应式引用\r\n const { isMobile, isTablet, isDesktop } =\r\n storeToRefs(deviceStore);\r\n\r\n const { getPrefixCls } = useDesign(\"app-layout\");\r\n const styles = useAppLayoutStyle();\r\n\r\n return () => {\r\n const rootCls = getPrefixCls();\r\n const mobileCls = getPrefixCls(\"mobile\");\r\n const tabletCls = getPrefixCls(\"tablet\");\r\n const desktopCls = getPrefixCls(\"desktop\");\r\n\r\n let layoutContent;\r\n if (isMobile.value) {\r\n layoutContent = slots.mobile ? (\r\n <div class={cx(mobileCls, styles.mobile)}>\r\n {slots.mobile()}\r\n </div>\r\n ) : undefined;\r\n } else if (isTablet.value) {\r\n layoutContent = slots.tablet ? (\r\n <div class={cx(tabletCls)}>{slots.tablet()}</div>\r\n ) : undefined;\r\n } else {\r\n layoutContent = slots.desktop ? (\r\n <div class={cx(desktopCls)}>\r\n {slots.desktop()}\r\n </div>\r\n ) : undefined;\r\n }\r\n\r\n return (\r\n <div class={cx(rootCls, styles.appLayout)}>\r\n {layoutContent}\r\n </div>\r\n );\r\n };\r\n }\r\n});\r\n\r\nexport default DAppLayout;\r\n"],"names":["DAppLayout","defineComponent","name","setup","_","slots","deviceStore","useDeviceStore","isMobile","isTablet","isDesktop","storeToRefs","getPrefixCls","useDesign","styles","useAppLayoutStyle","rootCls","mobileCls","tabletCls","desktopCls","layoutContent","value","mobile","_createVNode","cx","undefined","tablet","desktop","appLayout"],"mappings":";;;;;;;;;;;;AASA,MAAMA,6BAAaC,mBAAAA,CAAgB;AAAA,EACjCC,IAAAA,EAAM,YAAA;AAAA,EACNC,MAAMC,CAAAA,EAAG;AAAA,IAAEC;AAAAA,GAAM,EAAG;AAClB,IAAA,MAAMC,cAAcC,oBAAAA,EAAe;AAEnC,IAAA,MAAM;AAAA,MAAEC,QAAAA;AAAAA,MAAUC,QAAAA;AAAAA,MAAUC;AAAAA,KAAU,GACpCC,kBAAYL,WAAW,CAAA;AAEzB,IAAA,MAAM;AAAA,MAAEM;AAAAA,KAAa,GAAIC,oBAAU,YAAY,CAAA;AAC/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;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../src/components/layout/index.ts"],"sourcesContent":["import AppLayout from \"./AppLayout\";\r\n// import List from \"./components/pc/List\";\r\n// import Show from \"./components/pc/Show\";\r\nimport type { App } from \"vue\";\r\
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/layout/index.ts"],"sourcesContent":["import AppLayout from \"./AppLayout\";\r\nimport List from \"./List\";\r\nimport Show from \"./Show\";\r\n// import List from \"./components/pc/List\";\r\n// import Show from \"./components/pc/Show\";\r\nimport type { App } from \"vue\";\r\n\r\nimport Layout from \"./Layout.vue\";\r\n\r\nexport * from \"./AppContext\";\r\nexport * from \"./components\";\r\n\r\nList.install = function (app: App) {\r\n app.component(List.name!, List);\r\n return app;\r\n};\r\n\r\nShow.install = function (app: App) {\r\n app.component(Show.name!, Show);\r\n return app;\r\n};\r\n\r\nLayout.install = function (app: App) {\r\n app.component(\"DLayout\", Layout);\r\n return app;\r\n};\r\n\r\nAppLayout.install = (app: App) => {\r\n app.component(AppLayout.name!, AppLayout);\r\n};\r\n\r\nList.install = (app: App) => {\r\n app.component(List.name!, List);\r\n};\r\n\r\nexport { AppLayout, Layout, List, Show };\r\n"],"names":["List","Show","Layout","AppLayout"],"mappings":";;;;;;;;;;;;;;AAYAA,YAAA,CAAK,OAAA,GAAU,SAAU,GAAA,EAAU;AACjC,EAAA,GAAA,CAAI,SAAA,CAAUA,YAAA,CAAK,IAAA,EAAOA,YAAI,CAAA;AAC9B,EAAA,OAAO,GAAA;AACT,CAAA;AAEAC,YAAA,CAAK,OAAA,GAAU,SAAU,GAAA,EAAU;AACjC,EAAA,GAAA,CAAI,SAAA,CAAUA,YAAA,CAAK,IAAA,EAAOA,YAAI,CAAA;AAC9B,EAAA,OAAO,GAAA;AACT,CAAA;AAEAC,kDAAA,CAAO,OAAA,GAAU,SAAU,GAAA,EAAU;AACnC,EAAA,GAAA,CAAI,SAAA,CAAU,WAAWA,kDAAM,CAAA;AAC/B,EAAA,OAAO,GAAA;AACT,CAAA;AAEAC,iBAAA,CAAU,OAAA,GAAU,CAAC,GAAA,KAAa;AAChC,EAAA,GAAA,CAAI,SAAA,CAAUA,iBAAA,CAAU,IAAA,EAAOA,iBAAS,CAAA;AAC1C,CAAA;AAEAH,YAAA,CAAK,OAAA,GAAU,CAAC,GAAA,KAAa;AAC3B,EAAA,GAAA,CAAI,SAAA,CAAUA,YAAA,CAAK,IAAA,EAAOA,YAAI,CAAA;AAChC,CAAA;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, createVNode } from 'vue';
|
|
2
|
-
import { cx } from '@emotion/css';
|
|
3
2
|
import { storeToRefs } from 'pinia';
|
|
4
|
-
import { useDeviceStore } from '@ditari/store';
|
|
5
3
|
import { useAppLayoutStyle } from './style.mjs';
|
|
4
|
+
import { useDeviceStore } from '@ditari/store';
|
|
5
|
+
import { cx } from '@emotion/css';
|
|
6
6
|
import { useDesign } from '../../hooks/useDesign.mjs';
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayout.mjs","sources":["../../../../src/components/layout/AppLayout.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"AppLayout.mjs","sources":["../../../../src/components/layout/AppLayout.tsx"],"sourcesContent":["import { defineComponent } from \"vue\";\r\nimport { storeToRefs } from \"pinia\";\r\n\r\nimport { useAppLayoutStyle } from \"./style\";\r\nimport { useDeviceStore } from \"@ditari/store\";\r\nimport { cx } from \"@emotion/css\";\r\n\r\nimport { useDesign } from \"../../hooks/useDesign\";\r\n\r\nconst DAppLayout = defineComponent({\r\n name: \"DAppLayout\",\r\n setup(_, { slots }) {\r\n const deviceStore = useDeviceStore();\r\n // 使用 storeToRefs 解构出响应式引用\r\n const { isMobile, isTablet, isDesktop } =\r\n storeToRefs(deviceStore);\r\n\r\n const { getPrefixCls } = useDesign(\"app-layout\");\r\n const styles = useAppLayoutStyle();\r\n\r\n return () => {\r\n const rootCls = getPrefixCls();\r\n const mobileCls = getPrefixCls(\"mobile\");\r\n const tabletCls = getPrefixCls(\"tablet\");\r\n const desktopCls = getPrefixCls(\"desktop\");\r\n\r\n let layoutContent;\r\n if (isMobile.value) {\r\n layoutContent = slots.mobile ? (\r\n <div class={cx(mobileCls, styles.mobile)}>\r\n {slots.mobile()}\r\n </div>\r\n ) : undefined;\r\n } else if (isTablet.value) {\r\n layoutContent = slots.tablet ? (\r\n <div class={cx(tabletCls)}>{slots.tablet()}</div>\r\n ) : undefined;\r\n } else {\r\n layoutContent = slots.desktop ? (\r\n <div class={cx(desktopCls)}>\r\n {slots.desktop()}\r\n </div>\r\n ) : undefined;\r\n }\r\n\r\n return (\r\n <div class={cx(rootCls, styles.appLayout)}>\r\n {layoutContent}\r\n </div>\r\n );\r\n };\r\n }\r\n});\r\n\r\nexport default DAppLayout;\r\n"],"names":["DAppLayout","defineComponent","name","setup","_","slots","deviceStore","useDeviceStore","isMobile","isTablet","isDesktop","storeToRefs","getPrefixCls","useDesign","styles","useAppLayoutStyle","rootCls","mobileCls","tabletCls","desktopCls","layoutContent","value","mobile","_createVNode","cx","undefined","tablet","desktop","appLayout"],"mappings":";;;;;;;;AASA,MAAMA,6BAAaC,eAAAA,CAAgB;AAAA,EACjCC,IAAAA,EAAM,YAAA;AAAA,EACNC,MAAMC,CAAAA,EAAG;AAAA,IAAEC;AAAAA,GAAM,EAAG;AAClB,IAAA,MAAMC,cAAcC,cAAAA,EAAe;AAEnC,IAAA,MAAM;AAAA,MAAEC,QAAAA;AAAAA,MAAUC,QAAAA;AAAAA,MAAUC;AAAAA,KAAU,GACpCC,YAAYL,WAAW,CAAA;AAEzB,IAAA,MAAM;AAAA,MAAEM;AAAAA,KAAa,GAAIC,UAAU,YAAY,CAAA;AAC/C,IAAA,MAAMC,SAASC,iBAAAA,EAAkB;AAEjC,IAAA,OAAO,MAAM;AAC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../../../src/components/layout/index.ts"],"sourcesContent":["import AppLayout from \"./AppLayout\";\r\n// import List from \"./components/pc/List\";\r\n// import Show from \"./components/pc/Show\";\r\nimport type { App } from \"vue\";\r\
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/layout/index.ts"],"sourcesContent":["import AppLayout from \"./AppLayout\";\r\nimport List from \"./List\";\r\nimport Show from \"./Show\";\r\n// import List from \"./components/pc/List\";\r\n// import Show from \"./components/pc/Show\";\r\nimport type { App } from \"vue\";\r\n\r\nimport Layout from \"./Layout.vue\";\r\n\r\nexport * from \"./AppContext\";\r\nexport * from \"./components\";\r\n\r\nList.install = function (app: App) {\r\n app.component(List.name!, List);\r\n return app;\r\n};\r\n\r\nShow.install = function (app: App) {\r\n app.component(Show.name!, Show);\r\n return app;\r\n};\r\n\r\nLayout.install = function (app: App) {\r\n app.component(\"DLayout\", Layout);\r\n return app;\r\n};\r\n\r\nAppLayout.install = (app: App) => {\r\n app.component(AppLayout.name!, AppLayout);\r\n};\r\n\r\nList.install = (app: App) => {\r\n app.component(List.name!, List);\r\n};\r\n\r\nexport { AppLayout, Layout, List, Show };\r\n"],"names":["List","Show","Layout","AppLayout"],"mappings":";;;;;;;;;;;;AAYAA,IAAA,CAAK,OAAA,GAAU,SAAU,GAAA,EAAU;AACjC,EAAA,GAAA,CAAI,SAAA,CAAUA,IAAA,CAAK,IAAA,EAAOA,IAAI,CAAA;AAC9B,EAAA,OAAO,GAAA;AACT,CAAA;AAEAC,IAAA,CAAK,OAAA,GAAU,SAAU,GAAA,EAAU;AACjC,EAAA,GAAA,CAAI,SAAA,CAAUA,IAAA,CAAK,IAAA,EAAOA,IAAI,CAAA;AAC9B,EAAA,OAAO,GAAA;AACT,CAAA;AAEAC,SAAA,CAAO,OAAA,GAAU,SAAU,GAAA,EAAU;AACnC,EAAA,GAAA,CAAI,SAAA,CAAU,WAAWA,SAAM,CAAA;AAC/B,EAAA,OAAO,GAAA;AACT,CAAA;AAEAC,UAAA,CAAU,OAAA,GAAU,CAAC,GAAA,KAAa;AAChC,EAAA,GAAA,CAAI,SAAA,CAAUA,UAAA,CAAU,IAAA,EAAOA,UAAS,CAAA;AAC1C,CAAA;AAEAH,IAAA,CAAK,OAAA,GAAU,CAAC,GAAA,KAAa;AAC3B,EAAA,GAAA,CAAI,SAAA,CAAUA,IAAA,CAAK,IAAA,EAAOA,IAAI,CAAA;AAChC,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/AppLayout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/AppLayout.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,UAAU,wTA2Cd,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAK1B,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAyB7B,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditari/bsui",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"./theme/*": "./dist/style/*"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ditari/store": "^5.1.
|
|
33
|
-
"@ditari/core": "^5.1.
|
|
32
|
+
"@ditari/store": "^5.1.5",
|
|
33
|
+
"@ditari/core": "^5.1.4"
|
|
34
34
|
}
|
|
35
35
|
}
|