oeos-components 0.3.73 → 0.3.76

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 CHANGED
@@ -19,11 +19,11 @@ app.use(OeosComponets)
19
19
  <o-title title="这是o-title"></o-title>
20
20
  ```
21
21
 
22
- ## 2. 在vue3项目中使用公共函数
22
+ ## 2. 在vue3项目中使用公共函数, 安装@oeos-components/utils
23
23
 
24
24
  ```js
25
25
  // 如果想将所有函数挂载至全局使用
26
- import { utils } from 'oeos-components'
26
+ import * as utils from '@oeos-components/utils'
27
27
  // 将oeos-components下的公共函数赋值到全局
28
28
  Object.keys(utils).forEach((v) => {
29
29
  app.config.globalProperties[v] = utils[v]
@@ -31,7 +31,7 @@ Object.keys(utils).forEach((v) => {
31
31
  然后通过`proxy.$toast('哈哈')`, 这种方式去使用函数
32
32
 
33
33
  // 如果想单独的引用某个函数
34
- import { $toast } from 'oeos-components'
34
+ import { $toast } from '@oeos-components/utils'
35
35
  $toast('嘿嘿')
36
36
  ```
37
37