@ditari/store 5.1.4 → 5.1.5
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/index.cjs +2 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/modules/useDeviceStore.cjs +32 -0
- package/dist/cjs/modules/useDeviceStore.cjs.map +1 -0
- package/dist/cjs/types.cjs +2 -0
- package/dist/cjs/types.cjs.map +1 -1
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/modules/useDeviceStore.mjs +30 -0
- package/dist/esm/modules/useDeviceStore.mjs.map +1 -0
- package/dist/esm/types.mjs +2 -1
- package/dist/esm/types.mjs.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/useDeviceStore.d.ts +17 -0
- package/dist/types/modules/useDeviceStore.d.ts.map +1 -0
- package/dist/types/types.d.ts +1 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var useAppStore = require('./modules/useAppStore.cjs');
|
|
4
4
|
var useBreadStore = require('./modules/useBreadStore.cjs');
|
|
5
|
+
var useDeviceStore = require('./modules/useDeviceStore.cjs');
|
|
5
6
|
var useDicStore = require('./modules/useDicStore.cjs');
|
|
6
7
|
var useKeepAliveStore = require('./modules/useKeepAliveStore.cjs');
|
|
7
8
|
var useMenuStore = require('./modules/useMenuStore.cjs');
|
|
@@ -12,6 +13,7 @@ var useUserStore = require('./modules/useUserStore.cjs');
|
|
|
12
13
|
|
|
13
14
|
exports.useAppStore = useAppStore.default;
|
|
14
15
|
exports.useBreadStore = useBreadStore.useBreadStore;
|
|
16
|
+
exports.useDeviceStore = useDeviceStore.useDeviceStore;
|
|
15
17
|
exports.useDicStore = useDicStore.default;
|
|
16
18
|
exports.useKeepAliveStore = useKeepAliveStore.default;
|
|
17
19
|
exports.useMenuStore = useMenuStore.default;
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var pinia = require('pinia');
|
|
5
|
+
var core = require('@vueuse/core');
|
|
6
|
+
var types = require('../types.cjs');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const useDeviceStore = pinia.defineStore(types.DEVICE_ID, () => {
|
|
10
|
+
const breakpoints = core.useBreakpoints(core.breakpointsTailwind);
|
|
11
|
+
const isAdaptive = vue.ref(false);
|
|
12
|
+
const isMobile = vue.computed(
|
|
13
|
+
() => isAdaptive.value ? breakpoints.smaller("md").value : false
|
|
14
|
+
);
|
|
15
|
+
const isTablet = vue.computed(
|
|
16
|
+
() => isAdaptive.value ? breakpoints.between("md", "lg").value : false
|
|
17
|
+
);
|
|
18
|
+
const isDesktop = vue.computed(() => {
|
|
19
|
+
if (!isAdaptive.value) return true;
|
|
20
|
+
return breakpoints.greaterOrEqual("lg").value;
|
|
21
|
+
});
|
|
22
|
+
return {
|
|
23
|
+
isAdaptive,
|
|
24
|
+
// 暴露开关,允许手动控制
|
|
25
|
+
isMobile,
|
|
26
|
+
isTablet,
|
|
27
|
+
isDesktop
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
exports.useDeviceStore = useDeviceStore;
|
|
32
|
+
//# sourceMappingURL=useDeviceStore.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeviceStore.cjs","sources":["../../../src/modules/useDeviceStore.ts"],"sourcesContent":["import { computed, ref } from \"vue\";\r\nimport { defineStore } from \"pinia\";\r\nimport {\r\n breakpointsTailwind,\r\n useBreakpoints\r\n} from \"@vueuse/core\";\r\n\r\nimport { DEVICE_ID } from \"../types\";\r\n\r\nexport const useDeviceStore = defineStore(DEVICE_ID, () => {\r\n const breakpoints = useBreakpoints(breakpointsTailwind);\r\n\r\n // 1. 定义开关属性 (默认为 false 或根据业务逻辑设置)\r\n const isAdaptive = ref(false);\r\n\r\n // 2. 只有在 isAdaptive 为 true 时,才返回真实的断点判断\r\n // 否则可以强制返回 false 或某个固定值\r\n const isMobile = computed(() =>\r\n isAdaptive.value\r\n ? breakpoints.smaller(\"md\").value\r\n : false\r\n );\r\n const isTablet = computed(() =>\r\n isAdaptive.value\r\n ? breakpoints.between(\"md\", \"lg\").value\r\n : false\r\n );\r\n const isDesktop = computed(() => {\r\n if (!isAdaptive.value) return true; // 如果不开启适配,默认当成 PC 端处理\r\n return breakpoints.greaterOrEqual(\"lg\").value;\r\n });\r\n\r\n return {\r\n isAdaptive, // 暴露开关,允许手动控制\r\n isMobile,\r\n isTablet,\r\n isDesktop\r\n };\r\n});\r\n"],"names":["defineStore","DEVICE_ID","useBreakpoints","breakpointsTailwind","ref","computed"],"mappings":";;;;;;;;AASO,MAAM,cAAA,GAAiBA,iBAAA,CAAYC,eAAA,EAAW,MAAM;AACzD,EAAA,MAAM,WAAA,GAAcC,oBAAeC,wBAAmB,CAAA;AAGtD,EAAA,MAAM,UAAA,GAAaC,QAAI,KAAK,CAAA;AAI5B,EAAA,MAAM,QAAA,GAAWC,YAAA;AAAA,IAAS,MACxB,UAAA,CAAW,KAAA,GACP,YAAY,OAAA,CAAQ,IAAI,EAAE,KAAA,GAC1B;AAAA,GACN;AACA,EAAA,MAAM,QAAA,GAAWA,YAAA;AAAA,IAAS,MACxB,WAAW,KAAA,GACP,WAAA,CAAY,QAAQ,IAAA,EAAM,IAAI,EAAE,KAAA,GAChC;AAAA,GACN;AACA,EAAA,MAAM,SAAA,GAAYA,aAAS,MAAM;AAC/B,IAAA,IAAI,CAAC,UAAA,CAAW,KAAA,EAAO,OAAO,IAAA;AAC9B,IAAA,OAAO,WAAA,CAAY,cAAA,CAAe,IAAI,CAAA,CAAE,KAAA;AAAA,EAC1C,CAAC,CAAA;AAED,EAAA,OAAO;AAAA,IACL,UAAA;AAAA;AAAA,IACA,QAAA;AAAA,IACA,QAAA;AAAA,IACA;AAAA,GACF;AACF,CAAC;;;;"}
|
package/dist/cjs/types.cjs
CHANGED
|
@@ -10,10 +10,12 @@ const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;
|
|
|
10
10
|
const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;
|
|
11
11
|
const USER_ID = `${id_prefix}USER_ID`;
|
|
12
12
|
const APP_ID = `${id_prefix}APP_ID`;
|
|
13
|
+
const DEVICE_ID = `${id_prefix}DEVICE_ID`;
|
|
13
14
|
|
|
14
15
|
exports.APP_ID = APP_ID;
|
|
15
16
|
exports.BREADCRUMB_ID = BREADCRUMB_ID;
|
|
16
17
|
exports.DATA_DICTIONARY_ID = DATA_DICTIONARY_ID;
|
|
18
|
+
exports.DEVICE_ID = DEVICE_ID;
|
|
17
19
|
exports.KEEP_ALIVE_ID = KEEP_ALIVE_ID;
|
|
18
20
|
exports.MENU_ID = MENU_ID;
|
|
19
21
|
exports.NAV_TAB_ID = NAV_TAB_ID;
|
package/dist/cjs/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","sources":["../../src/types.ts"],"sourcesContent":["const id_prefix = \"_STORE_\";\n//面包屑\nexport const BREADCRUMB_ID = `${id_prefix}BREADCRUMB_ID`;\n//字典ID\nexport const DATA_DICTIONARY_ID = `${id_prefix}DATA_DICTIONARY_ID`;\n//缓存组件ID\nexport const KEEP_ALIVE_ID = `${id_prefix}KEEP_ALIVE_ID`;\n//菜单ID\nexport const MENU_ID = `${id_prefix}MENU_ID`;\n//多标签ID\nexport const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;\n//用户信息ID\nexport const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;\n//用户信息ID\nexport const USER_ID = `${id_prefix}USER_ID`;\n//存储APP配置信息\nexport const APP_ID = `${id_prefix}APP_ID`;\n"],"names":[],"mappings":";;;AAAA,MAAM,SAAA,GAAY,SAAA;AAEX,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,kBAAA,GAAqB,GAAG,SAAS,CAAA,kBAAA;AAEvC,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,UAAA,GAAa,GAAG,SAAS,CAAA,WAAA;AAE/B,MAAM,WAAA,GAAc,GAAG,SAAS,CAAA,WAAA;AAEhC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,MAAA,GAAS,GAAG,SAAS,CAAA,MAAA
|
|
1
|
+
{"version":3,"file":"types.cjs","sources":["../../src/types.ts"],"sourcesContent":["const id_prefix = \"_STORE_\";\r\n//面包屑\r\nexport const BREADCRUMB_ID = `${id_prefix}BREADCRUMB_ID`;\r\n//字典ID\r\nexport const DATA_DICTIONARY_ID = `${id_prefix}DATA_DICTIONARY_ID`;\r\n//缓存组件ID\r\nexport const KEEP_ALIVE_ID = `${id_prefix}KEEP_ALIVE_ID`;\r\n//菜单ID\r\nexport const MENU_ID = `${id_prefix}MENU_ID`;\r\n//多标签ID\r\nexport const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;\r\n//用户信息ID\r\nexport const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;\r\n//用户信息ID\r\nexport const USER_ID = `${id_prefix}USER_ID`;\r\n//存储APP配置信息\r\nexport const APP_ID = `${id_prefix}APP_ID`;\r\nexport const DEVICE_ID = `${id_prefix}DEVICE_ID`;\r\n"],"names":[],"mappings":";;;AAAA,MAAM,SAAA,GAAY,SAAA;AAEX,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,kBAAA,GAAqB,GAAG,SAAS,CAAA,kBAAA;AAEvC,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,UAAA,GAAa,GAAG,SAAS,CAAA,WAAA;AAE/B,MAAM,WAAA,GAAc,GAAG,SAAS,CAAA,WAAA;AAEhC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,MAAA,GAAS,GAAG,SAAS,CAAA,MAAA;AAC3B,MAAM,SAAA,GAAY,GAAG,SAAS,CAAA,SAAA;;;;;;;;;;;;"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as useAppStore } from './modules/useAppStore.mjs';
|
|
2
2
|
export { useBreadStore } from './modules/useBreadStore.mjs';
|
|
3
|
+
export { useDeviceStore } from './modules/useDeviceStore.mjs';
|
|
3
4
|
export { default as useDicStore } from './modules/useDicStore.mjs';
|
|
4
5
|
export { default as useKeepAliveStore } from './modules/useKeepAliveStore.mjs';
|
|
5
6
|
export { default as useMenuStore } from './modules/useMenuStore.mjs';
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ref, computed } from 'vue';
|
|
2
|
+
import { defineStore } from 'pinia';
|
|
3
|
+
import { useBreakpoints, breakpointsTailwind } from '@vueuse/core';
|
|
4
|
+
import { DEVICE_ID } from '../types.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const useDeviceStore = defineStore(DEVICE_ID, () => {
|
|
8
|
+
const breakpoints = useBreakpoints(breakpointsTailwind);
|
|
9
|
+
const isAdaptive = ref(false);
|
|
10
|
+
const isMobile = computed(
|
|
11
|
+
() => isAdaptive.value ? breakpoints.smaller("md").value : false
|
|
12
|
+
);
|
|
13
|
+
const isTablet = computed(
|
|
14
|
+
() => isAdaptive.value ? breakpoints.between("md", "lg").value : false
|
|
15
|
+
);
|
|
16
|
+
const isDesktop = computed(() => {
|
|
17
|
+
if (!isAdaptive.value) return true;
|
|
18
|
+
return breakpoints.greaterOrEqual("lg").value;
|
|
19
|
+
});
|
|
20
|
+
return {
|
|
21
|
+
isAdaptive,
|
|
22
|
+
// 暴露开关,允许手动控制
|
|
23
|
+
isMobile,
|
|
24
|
+
isTablet,
|
|
25
|
+
isDesktop
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export { useDeviceStore };
|
|
30
|
+
//# sourceMappingURL=useDeviceStore.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeviceStore.mjs","sources":["../../../src/modules/useDeviceStore.ts"],"sourcesContent":["import { computed, ref } from \"vue\";\r\nimport { defineStore } from \"pinia\";\r\nimport {\r\n breakpointsTailwind,\r\n useBreakpoints\r\n} from \"@vueuse/core\";\r\n\r\nimport { DEVICE_ID } from \"../types\";\r\n\r\nexport const useDeviceStore = defineStore(DEVICE_ID, () => {\r\n const breakpoints = useBreakpoints(breakpointsTailwind);\r\n\r\n // 1. 定义开关属性 (默认为 false 或根据业务逻辑设置)\r\n const isAdaptive = ref(false);\r\n\r\n // 2. 只有在 isAdaptive 为 true 时,才返回真实的断点判断\r\n // 否则可以强制返回 false 或某个固定值\r\n const isMobile = computed(() =>\r\n isAdaptive.value\r\n ? breakpoints.smaller(\"md\").value\r\n : false\r\n );\r\n const isTablet = computed(() =>\r\n isAdaptive.value\r\n ? breakpoints.between(\"md\", \"lg\").value\r\n : false\r\n );\r\n const isDesktop = computed(() => {\r\n if (!isAdaptive.value) return true; // 如果不开启适配,默认当成 PC 端处理\r\n return breakpoints.greaterOrEqual(\"lg\").value;\r\n });\r\n\r\n return {\r\n isAdaptive, // 暴露开关,允许手动控制\r\n isMobile,\r\n isTablet,\r\n isDesktop\r\n };\r\n});\r\n"],"names":[],"mappings":";;;;;;AASO,MAAM,cAAA,GAAiB,WAAA,CAAY,SAAA,EAAW,MAAM;AACzD,EAAA,MAAM,WAAA,GAAc,eAAe,mBAAmB,CAAA;AAGtD,EAAA,MAAM,UAAA,GAAa,IAAI,KAAK,CAAA;AAI5B,EAAA,MAAM,QAAA,GAAW,QAAA;AAAA,IAAS,MACxB,UAAA,CAAW,KAAA,GACP,YAAY,OAAA,CAAQ,IAAI,EAAE,KAAA,GAC1B;AAAA,GACN;AACA,EAAA,MAAM,QAAA,GAAW,QAAA;AAAA,IAAS,MACxB,WAAW,KAAA,GACP,WAAA,CAAY,QAAQ,IAAA,EAAM,IAAI,EAAE,KAAA,GAChC;AAAA,GACN;AACA,EAAA,MAAM,SAAA,GAAY,SAAS,MAAM;AAC/B,IAAA,IAAI,CAAC,UAAA,CAAW,KAAA,EAAO,OAAO,IAAA;AAC9B,IAAA,OAAO,WAAA,CAAY,cAAA,CAAe,IAAI,CAAA,CAAE,KAAA;AAAA,EAC1C,CAAC,CAAA;AAED,EAAA,OAAO;AAAA,IACL,UAAA;AAAA;AAAA,IACA,QAAA;AAAA,IACA,QAAA;AAAA,IACA;AAAA,GACF;AACF,CAAC;;;;"}
|
package/dist/esm/types.mjs
CHANGED
|
@@ -8,6 +8,7 @@ const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;
|
|
|
8
8
|
const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;
|
|
9
9
|
const USER_ID = `${id_prefix}USER_ID`;
|
|
10
10
|
const APP_ID = `${id_prefix}APP_ID`;
|
|
11
|
+
const DEVICE_ID = `${id_prefix}DEVICE_ID`;
|
|
11
12
|
|
|
12
|
-
export { APP_ID, BREADCRUMB_ID, DATA_DICTIONARY_ID, KEEP_ALIVE_ID, MENU_ID, NAV_TAB_ID, SETTINGS_ID, USER_ID };
|
|
13
|
+
export { APP_ID, BREADCRUMB_ID, DATA_DICTIONARY_ID, DEVICE_ID, KEEP_ALIVE_ID, MENU_ID, NAV_TAB_ID, SETTINGS_ID, USER_ID };
|
|
13
14
|
//# sourceMappingURL=types.mjs.map
|
package/dist/esm/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sources":["../../src/types.ts"],"sourcesContent":["const id_prefix = \"_STORE_\";\n//面包屑\nexport const BREADCRUMB_ID = `${id_prefix}BREADCRUMB_ID`;\n//字典ID\nexport const DATA_DICTIONARY_ID = `${id_prefix}DATA_DICTIONARY_ID`;\n//缓存组件ID\nexport const KEEP_ALIVE_ID = `${id_prefix}KEEP_ALIVE_ID`;\n//菜单ID\nexport const MENU_ID = `${id_prefix}MENU_ID`;\n//多标签ID\nexport const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;\n//用户信息ID\nexport const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;\n//用户信息ID\nexport const USER_ID = `${id_prefix}USER_ID`;\n//存储APP配置信息\nexport const APP_ID = `${id_prefix}APP_ID`;\n"],"names":[],"mappings":";AAAA,MAAM,SAAA,GAAY,SAAA;AAEX,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,kBAAA,GAAqB,GAAG,SAAS,CAAA,kBAAA;AAEvC,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,UAAA,GAAa,GAAG,SAAS,CAAA,WAAA;AAE/B,MAAM,WAAA,GAAc,GAAG,SAAS,CAAA,WAAA;AAEhC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,MAAA,GAAS,GAAG,SAAS,CAAA,MAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"types.mjs","sources":["../../src/types.ts"],"sourcesContent":["const id_prefix = \"_STORE_\";\r\n//面包屑\r\nexport const BREADCRUMB_ID = `${id_prefix}BREADCRUMB_ID`;\r\n//字典ID\r\nexport const DATA_DICTIONARY_ID = `${id_prefix}DATA_DICTIONARY_ID`;\r\n//缓存组件ID\r\nexport const KEEP_ALIVE_ID = `${id_prefix}KEEP_ALIVE_ID`;\r\n//菜单ID\r\nexport const MENU_ID = `${id_prefix}MENU_ID`;\r\n//多标签ID\r\nexport const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;\r\n//用户信息ID\r\nexport const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;\r\n//用户信息ID\r\nexport const USER_ID = `${id_prefix}USER_ID`;\r\n//存储APP配置信息\r\nexport const APP_ID = `${id_prefix}APP_ID`;\r\nexport const DEVICE_ID = `${id_prefix}DEVICE_ID`;\r\n"],"names":[],"mappings":";AAAA,MAAM,SAAA,GAAY,SAAA;AAEX,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,kBAAA,GAAqB,GAAG,SAAS,CAAA,kBAAA;AAEvC,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,UAAA,GAAa,GAAG,SAAS,CAAA,WAAA;AAE/B,MAAM,WAAA,GAAc,GAAG,SAAS,CAAA,WAAA;AAEhC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,MAAA,GAAS,GAAG,SAAS,CAAA,MAAA;AAC3B,MAAM,SAAA,GAAY,GAAG,SAAS,CAAA,SAAA;;;;"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { App } from "./modules/useAppStore";
|
|
2
2
|
export { default as useAppStore } from "./modules/useAppStore";
|
|
3
3
|
export * from "./modules/useBreadStore";
|
|
4
|
+
export * from "./modules/useDeviceStore";
|
|
4
5
|
export { default as useDicStore } from "./modules/useDicStore";
|
|
5
6
|
export { default as useKeepAliveStore } from "./modules/useKeepAliveStore";
|
|
6
7
|
export { default as useMenuStore } from "./modules/useMenuStore";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const useDeviceStore: import("pinia").StoreDefinition<"_STORE_DEVICE_ID", Pick<{
|
|
2
|
+
isAdaptive: import("vue").Ref<boolean, boolean>;
|
|
3
|
+
isMobile: import("vue").ComputedRef<boolean>;
|
|
4
|
+
isTablet: import("vue").ComputedRef<boolean>;
|
|
5
|
+
isDesktop: import("vue").ComputedRef<boolean>;
|
|
6
|
+
}, "isAdaptive">, Pick<{
|
|
7
|
+
isAdaptive: import("vue").Ref<boolean, boolean>;
|
|
8
|
+
isMobile: import("vue").ComputedRef<boolean>;
|
|
9
|
+
isTablet: import("vue").ComputedRef<boolean>;
|
|
10
|
+
isDesktop: import("vue").ComputedRef<boolean>;
|
|
11
|
+
}, "isMobile" | "isTablet" | "isDesktop">, Pick<{
|
|
12
|
+
isAdaptive: import("vue").Ref<boolean, boolean>;
|
|
13
|
+
isMobile: import("vue").ComputedRef<boolean>;
|
|
14
|
+
isTablet: import("vue").ComputedRef<boolean>;
|
|
15
|
+
isDesktop: import("vue").ComputedRef<boolean>;
|
|
16
|
+
}, never>>;
|
|
17
|
+
//# sourceMappingURL=useDeviceStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeviceStore.d.ts","sourceRoot":"","sources":["../../../src/modules/useDeviceStore.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;UA6BzB,CAAC"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ export declare const NAV_TAB_ID = "_STORE_NAV_TABS_ID";
|
|
|
6
6
|
export declare const SETTINGS_ID = "_STORE_SETTINGS_ID";
|
|
7
7
|
export declare const USER_ID = "_STORE_USER_ID";
|
|
8
8
|
export declare const APP_ID = "_STORE_APP_ID";
|
|
9
|
+
export declare const DEVICE_ID = "_STORE_DEVICE_ID";
|
|
9
10
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAA8B,CAAC;AAEzD,eAAO,MAAM,kBAAkB,8BAAmC,CAAC;AAEnE,eAAO,MAAM,aAAa,yBAA8B,CAAC;AAEzD,eAAO,MAAM,OAAO,mBAAwB,CAAC;AAE7C,eAAO,MAAM,UAAU,uBAA4B,CAAC;AAEpD,eAAO,MAAM,WAAW,uBAA4B,CAAC;AAErD,eAAO,MAAM,OAAO,mBAAwB,CAAC;AAE7C,eAAO,MAAM,MAAM,kBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAA8B,CAAC;AAEzD,eAAO,MAAM,kBAAkB,8BAAmC,CAAC;AAEnE,eAAO,MAAM,aAAa,yBAA8B,CAAC;AAEzD,eAAO,MAAM,OAAO,mBAAwB,CAAC;AAE7C,eAAO,MAAM,UAAU,uBAA4B,CAAC;AAEpD,eAAO,MAAM,WAAW,uBAA4B,CAAC;AAErD,eAAO,MAAM,OAAO,mBAAwB,CAAC;AAE7C,eAAO,MAAM,MAAM,kBAAuB,CAAC;AAC3C,eAAO,MAAM,SAAS,qBAA0B,CAAC"}
|