oeos-components 0.0.65
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/LICENSE +21 -0
- package/README.md +41 -0
- package/dist/favicon.ico +0 -0
- package/dist/oeos-components-es.js +23114 -0
- package/dist/oeos-components-umd.js +6 -0
- package/dist/style.css +1 -0
- package/package.json +75 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 刘力豪
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#### 1. 组件的使用
|
|
2
|
+
|
|
3
|
+
1. 在vue3项目的main.js里引入
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
import 'oeos-components/dist/style.css'
|
|
7
|
+
import oeosV3Componets from 'oeos-components'
|
|
8
|
+
app.use(oeosV3Componets)
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
2. 在任何一个.vue文件下, 可直接引入组件
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
<o-button>这是o-button</o-button>
|
|
15
|
+
<o-title title="这是o-title"></o-title>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
3 在vue3项目中使用公共函数
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
// 如果想将所有函数挂载至全局使用
|
|
22
|
+
import { utils } from 'oeos-components'
|
|
23
|
+
// 将oeos-components下的公共函数赋值到全局
|
|
24
|
+
Object.keys(utils).forEach((v) => {
|
|
25
|
+
app.config.globalProperties[v] = utils[v]
|
|
26
|
+
})
|
|
27
|
+
然后通过`proxy.$toast('哈哈')`, 这种方式去使用函数
|
|
28
|
+
|
|
29
|
+
// 如果想单独的引用某个函数
|
|
30
|
+
import { $toast } from 'oeos-components'
|
|
31
|
+
$toast('嘿嘿')
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
4. 在vue3项目中使用自定义指令
|
|
35
|
+
当前项目支持的自定义指令有以下
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
v-copy
|
|
39
|
+
v-number
|
|
40
|
+
v-focus
|
|
41
|
+
```
|
package/dist/favicon.ico
ADDED
|
Binary file
|