@ruixinkeji/prism-ui 1.0.25 → 1.0.27

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/index.esm.js CHANGED
@@ -3,23 +3,35 @@
3
3
  * @ruixinkeji/prism-ui
4
4
  */
5
5
 
6
- export const version = '1.0.0';
6
+ import { useAppStore } from './store/app';
7
+
8
+ export const version = '1.0.27';
7
9
 
8
10
  export const STYLES_PATH = '@ruixinkeji/prism-ui/styles/index.scss';
9
11
 
10
12
  export const info = {
11
13
  name: '@ruixinkeji/prism-ui',
12
- version: '1.0.0',
14
+ version: '1.0.27',
13
15
  description: 'Prism UI - 现代化玻璃态设计 uni-app 组件库',
14
16
  author: 'Ruixin'
15
17
  };
16
18
 
17
- export function install(app) {
18
- console.log('Prism UI installed');
19
+ export function install() {
20
+ console.log(
21
+ '%c Prism UI %c v1.0.27 ',
22
+ 'background: #3B82F6; color: #fff; border-radius: 3px 0 0 3px; padding: 2px 6px;',
23
+ 'background: #1E293B; color: #fff; border-radius: 0 3px 3px 0; padding: 2px 6px;'
24
+ );
25
+ // 初始化主题
26
+ const appStore = useAppStore();
27
+ appStore.initTheme();
19
28
  }
20
29
 
30
+ export { useAppStore };
31
+
21
32
  export default {
22
33
  version,
23
34
  info,
24
- install
35
+ install,
36
+ useAppStore
25
37
  };
package/index.js CHANGED
@@ -3,23 +3,35 @@
3
3
  * @ruixinkeji/prism-ui
4
4
  */
5
5
 
6
- export const version = '1.0.0';
6
+ import { useAppStore } from './store/app';
7
+
8
+ export const version = '1.0.27';
7
9
 
8
10
  export const STYLES_PATH = '@ruixinkeji/prism-ui/styles/index.scss';
9
11
 
10
12
  export const info = {
11
13
  name: '@ruixinkeji/prism-ui',
12
- version: '1.0.0',
14
+ version: '1.0.27',
13
15
  description: 'Prism UI - 现代化玻璃态设计 uni-app 组件库',
14
16
  author: 'Ruixin'
15
17
  };
16
18
 
17
- export function install(app) {
18
- console.log('Prism UI installed');
19
+ export function install() {
20
+ console.log(
21
+ '%c Prism UI %c v1.0.27 ',
22
+ 'background: #3B82F6; color: #fff; border-radius: 3px 0 0 3px; padding: 2px 6px;',
23
+ 'background: #1E293B; color: #fff; border-radius: 0 3px 3px 0; padding: 2px 6px;'
24
+ );
25
+ // 初始化主题
26
+ const appStore = useAppStore();
27
+ appStore.initTheme();
19
28
  }
20
29
 
30
+ export { useAppStore };
31
+
21
32
  export default {
22
33
  version,
23
34
  info,
24
- install
35
+ install,
36
+ useAppStore
25
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruixinkeji/prism-ui",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Prism UI - 现代化玻璃态设计 uni-app 组件库",
5
5
  "main": "index.js",
6
6
  "module": "index.esm.js",
package/store/app.js CHANGED
@@ -97,14 +97,6 @@ export const useAppStore = defineStore('app', {
97
97
  },
98
98
 
99
99
  initTheme() {
100
- // 显示 Prism UI 版本信息
101
- const version = '1.0.25';
102
- console.log(
103
- '%c Prism UI %c v' + version + ' ',
104
- 'background: #3B82F6; color: #fff; border-radius: 3px 0 0 3px; padding: 2px 6px;',
105
- 'background: #1E293B; color: #fff; border-radius: 0 3px 3px 0; padding: 2px 6px;'
106
- );
107
-
108
100
  // 获取保存的主题模式
109
101
  const savedMode = uni.getStorageSync('prism_theme_mode');
110
102
  if (savedMode) {