wui-components-v2 1.0.21 → 1.0.23

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.
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { defineOptions, reactive } from 'vue'
2
+ import { defineOptions, reactive, ref } from 'vue'
3
3
  import { useRouter } from 'uni-mini-router'
4
4
  import { useGlobalToast } from '../../composables/useGlobalToast'
5
5
  import { getUserConfig, login } from '../../api/login'
@@ -9,6 +9,7 @@
9
9
  */
10
10
  import { defineStore } from 'pinia'
11
11
  import type { ToastOptions } from 'wot-design-uni/components/wd-toast/types'
12
+ import { CommonUtil } from 'wot-design-uni'
12
13
  import { getCurrentPath } from '../utils/index'
13
14
 
14
15
  interface GlobalLoading {
@@ -1,6 +1,6 @@
1
1
  import { defineStore } from 'pinia'
2
2
  import type { MessageOptions, MessageResult } from 'wot-design-uni/components/wd-message-box/types'
3
-
3
+ import { CommonUtil } from 'wot-design-uni'
4
4
  import { getCurrentPath } from '../utils/index'
5
5
 
6
6
  export type GlobalMessageOptions = MessageOptions & {
@@ -1,5 +1,6 @@
1
1
  import { defineStore } from 'pinia'
2
2
  import type { ToastOptions } from 'wot-design-uni/components/wd-toast/types'
3
+ import { CommonUtil } from 'wot-design-uni'
3
4
  import { getCurrentPath } from '../utils/index'
4
5
 
5
6
  interface GlobalToast {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",
package/store/persist.ts CHANGED
@@ -8,6 +8,7 @@
8
8
  * 记得注释
9
9
  */
10
10
  import type { PiniaPluginContext } from 'pinia'
11
+ import { CommonUtil } from 'wot-design-uni'
11
12
 
12
13
  function persist({ store }: PiniaPluginContext, excludedIds: string[]) {
13
14
  // 检查当前store的id是否在排除列表中