@ruixinkeji/prism-ui 1.0.12 → 1.0.13
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/README.md +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,10 +33,21 @@ export function createApp() {
|
|
|
33
33
|
}
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
### 2.
|
|
36
|
+
### 2. 引入样式并初始化主题
|
|
37
37
|
|
|
38
38
|
```vue
|
|
39
39
|
<!-- App.vue -->
|
|
40
|
+
<script setup>
|
|
41
|
+
import { onLaunch } from '@dcloudio/uni-app'
|
|
42
|
+
import { useAppStore } from '@ruixinkeji/prism-ui/store/app'
|
|
43
|
+
|
|
44
|
+
onLaunch(() => {
|
|
45
|
+
// 初始化主题(恢复保存的主题设置)
|
|
46
|
+
const appStore = useAppStore()
|
|
47
|
+
appStore.initTheme()
|
|
48
|
+
})
|
|
49
|
+
</script>
|
|
50
|
+
|
|
40
51
|
<style lang="scss">
|
|
41
52
|
@import '@ruixinkeji/prism-ui/styles/index.scss';
|
|
42
53
|
@import '@ruixinkeji/prism-ui/fonts/font-awesome.css';
|