urit-qf-ui 0.0.1
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 +43 -0
- package/dist/index.js +2652 -0
- package/dist/index.umd.cjs +1 -0
- package/dist/style.css +1 -0
- package/package.json +32 -0
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# urit-qf-ui
|
|
2
|
+
|
|
3
|
+
基于 Quasar 的业务组件库
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install urit-qf-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 使用
|
|
12
|
+
|
|
13
|
+
```vue
|
|
14
|
+
<template>
|
|
15
|
+
<LoginForm
|
|
16
|
+
v-model:loading="loading"
|
|
17
|
+
@submit="handleLogin"
|
|
18
|
+
/>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script setup>
|
|
22
|
+
import { LoginForm } from 'urit-qf-ui'
|
|
23
|
+
</script>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## 组件
|
|
27
|
+
|
|
28
|
+
### LoginForm
|
|
29
|
+
|
|
30
|
+
登录表单组件
|
|
31
|
+
|
|
32
|
+
**Props:**
|
|
33
|
+
- `loading` - 加载状态 (v-model:loading)
|
|
34
|
+
- `error` - 错误信息
|
|
35
|
+
- `usernameLabel` - 用户名标签
|
|
36
|
+
- `passwordLabel` - 密码标签
|
|
37
|
+
- `rememberLabel` - 记住我标签
|
|
38
|
+
- `submitLabel` - 提交按钮文字
|
|
39
|
+
- `usernameRules` - 用户名验证规则
|
|
40
|
+
- `passwordRules` - 密码验证规则
|
|
41
|
+
|
|
42
|
+
**Events:**
|
|
43
|
+
- `submit` - 提交事件,参数 `{ username, password, remember }`
|