pit-docs-mcp 1.0.2
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 +180 -0
- package/dist/codegen.d.ts +5 -0
- package/dist/codegen.d.ts.map +1 -0
- package/dist/codegen.js +112 -0
- package/dist/constants.d.ts +6 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +10 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +115 -0
- package/dist/resources.d.ts +3 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +80 -0
- package/dist/tools.d.ts +3 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +258 -0
- package/dist/utils.d.ts +26 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +198 -0
- package/docs/codegen/pit-simplify-web.md +686 -0
- package/docs/pitBusinessUi/README.md +102 -0
- package/docs/pitBusinessUi/add-date-picker.md +57 -0
- package/docs/pitBusinessUi/add-operation.md +64 -0
- package/docs/pitBusinessUi/batch-download.md +44 -0
- package/docs/pitBusinessUi/bill-tree-dialog.md +82 -0
- package/docs/pitBusinessUi/collapse.md +88 -0
- package/docs/pitBusinessUi/date-time-picker.md +74 -0
- package/docs/pitBusinessUi/design-report-explain.md +47 -0
- package/docs/pitBusinessUi/dialog.md +89 -0
- package/docs/pitBusinessUi/dic-radio.md +67 -0
- package/docs/pitBusinessUi/dic.md +78 -0
- package/docs/pitBusinessUi/document-preview.md +54 -0
- package/docs/pitBusinessUi/drawer.md +67 -0
- package/docs/pitBusinessUi/editor.md +63 -0
- package/docs/pitBusinessUi/expand-search-form.md +65 -0
- package/docs/pitBusinessUi/file-preview.md +56 -0
- package/docs/pitBusinessUi/flow-table-status.md +47 -0
- package/docs/pitBusinessUi/icon-box.md +74 -0
- package/docs/pitBusinessUi/image-preview.md +55 -0
- package/docs/pitBusinessUi/image.md +53 -0
- package/docs/pitBusinessUi/input-formatter.md +100 -0
- package/docs/pitBusinessUi/input-number.md +47 -0
- package/docs/pitBusinessUi/input-select.md +68 -0
- package/docs/pitBusinessUi/input.md +56 -0
- package/docs/pitBusinessUi/jm-preview.md +47 -0
- package/docs/pitBusinessUi/json-editor.md +71 -0
- package/docs/pitBusinessUi/loading-btn.md +64 -0
- package/docs/pitBusinessUi/monaco.md +82 -0
- package/docs/pitBusinessUi/money-input.md +59 -0
- package/docs/pitBusinessUi/pagination.md +70 -0
- package/docs/pitBusinessUi/password-strength.md +59 -0
- package/docs/pitBusinessUi/positive-number.md +63 -0
- package/docs/pitBusinessUi/preview-image.md +62 -0
- package/docs/pitBusinessUi/preview-office.md +50 -0
- package/docs/pitBusinessUi/preview.md +57 -0
- package/docs/pitBusinessUi/quill.md +52 -0
- package/docs/pitBusinessUi/runflow-btn.md +52 -0
- package/docs/pitBusinessUi/search-date-picker.md +60 -0
- package/docs/pitBusinessUi/select-bid-list.md +66 -0
- package/docs/pitBusinessUi/select-color.md +38 -0
- package/docs/pitBusinessUi/select-contract-tree.md +41 -0
- package/docs/pitBusinessUi/select-dept.md +38 -0
- package/docs/pitBusinessUi/select-project-unit.md +48 -0
- package/docs/pitBusinessUi/select-section-tree.md +45 -0
- package/docs/pitBusinessUi/select-section.md +66 -0
- package/docs/pitBusinessUi/select-string.md +60 -0
- package/docs/pitBusinessUi/select-system-unit.md +41 -0
- package/docs/pitBusinessUi/select-user-by-role.md +51 -0
- package/docs/pitBusinessUi/switch.md +43 -0
- package/docs/pitBusinessUi/table-contract.md +66 -0
- package/docs/pitBusinessUi/table-operation.md +81 -0
- package/docs/pitBusinessUi/table.md +75 -0
- package/docs/pitBusinessUi/tag.md +86 -0
- package/docs/pitBusinessUi/textarea.md +65 -0
- package/docs/pitBusinessUi/transfer-direct.md +57 -0
- package/docs/pitBusinessUi/transfer-user-project.md +78 -0
- package/docs/pitBusinessUi/transfer.md +68 -0
- package/docs/pitBusinessUi/tree-lazy.md +72 -0
- package/docs/pitBusinessUi/tree-select-name.md +59 -0
- package/docs/pitBusinessUi/tree-select-plus.md +106 -0
- package/docs/pitBusinessUi/tree-select.md +86 -0
- package/docs/pitBusinessUi/upload-avatar.md +60 -0
- package/docs/pitBusinessUi/upload-file-dialog.md +86 -0
- package/docs/pitBusinessUi/upload-file.md +77 -0
- package/docs/pitBusinessUi/upload-list-card.md +62 -0
- package/docs/pitBusinessUi/upload-table.md +77 -0
- package/docs/pitBusinessUi/user-transform.md +72 -0
- package/docs/pitBusinessUi/utils.md +272 -0
- package/docs/pitBusinessUtils/README.md +144 -0
- package/docs/pitBusinessUtils/auth.md +170 -0
- package/docs/pitBusinessUtils/clipboard.md +72 -0
- package/docs/pitBusinessUtils/filePreview.md +60 -0
- package/docs/pitBusinessUtils/formValidate.md +75 -0
- package/docs/pitBusinessUtils/generateTitle.md +49 -0
- package/docs/pitBusinessUtils/get-page-title.md +65 -0
- package/docs/pitBusinessUtils/i18n.md +130 -0
- package/docs/pitBusinessUtils/jwks.md +82 -0
- package/docs/pitBusinessUtils/oss.md +391 -0
- package/docs/pitBusinessUtils/passwordValidate.md +120 -0
- package/docs/pitBusinessUtils/pit.md +496 -0
- package/docs/pitBusinessUtils/print.md +126 -0
- package/docs/pitBusinessUtils/request.md +137 -0
- package/docs/pitBusinessUtils/scroll-to.md +68 -0
- package/docs/pitBusinessUtils/utils.md +762 -0
- package/docs/pitBusinessUtils/validate.md +224 -0
- package/docs/pitElementUi/alert.md +238 -0
- package/docs/pitElementUi/avatar.md +147 -0
- package/docs/pitElementUi/backtop.md +60 -0
- package/docs/pitElementUi/badge.md +120 -0
- package/docs/pitElementUi/base-tabs.md +73 -0
- package/docs/pitElementUi/border.md +135 -0
- package/docs/pitElementUi/breadcrumb.md +44 -0
- package/docs/pitElementUi/button.md +301 -0
- package/docs/pitElementUi/calendar.md +66 -0
- package/docs/pitElementUi/card.md +170 -0
- package/docs/pitElementUi/carousel.md +212 -0
- package/docs/pitElementUi/cascader.md +1966 -0
- package/docs/pitElementUi/checkbox.md +283 -0
- package/docs/pitElementUi/collapse.md +131 -0
- package/docs/pitElementUi/color-picker.md +123 -0
- package/docs/pitElementUi/color.md +244 -0
- package/docs/pitElementUi/container.md +240 -0
- package/docs/pitElementUi/custom-theme.md +131 -0
- package/docs/pitElementUi/date-picker.md +448 -0
- package/docs/pitElementUi/datetime-picker.md +254 -0
- package/docs/pitElementUi/descriptions.md +191 -0
- package/docs/pitElementUi/dialog-header.md +53 -0
- package/docs/pitElementUi/dialog.md +239 -0
- package/docs/pitElementUi/divider.md +61 -0
- package/docs/pitElementUi/drawer.md +307 -0
- package/docs/pitElementUi/dropdown.md +308 -0
- package/docs/pitElementUi/empty.md +61 -0
- package/docs/pitElementUi/font-family.md +90 -0
- package/docs/pitElementUi/form-base.md +1239 -0
- package/docs/pitElementUi/form-item-checkbox-group.md +48 -0
- package/docs/pitElementUi/form-item-date.md +60 -0
- package/docs/pitElementUi/form-item-dic.md +18 -0
- package/docs/pitElementUi/form-item-editor.md +16 -0
- package/docs/pitElementUi/form-item-input-money.md +19 -0
- package/docs/pitElementUi/form-item-input-number.md +20 -0
- package/docs/pitElementUi/form-item-input.md +18 -0
- package/docs/pitElementUi/form-item-radio-group.md +21 -0
- package/docs/pitElementUi/form-item-select.md +21 -0
- package/docs/pitElementUi/form-item-switch.md +15 -0
- package/docs/pitElementUi/form-item-textarea.md +20 -0
- package/docs/pitElementUi/form-item-tree-select.md +27 -0
- package/docs/pitElementUi/form-item-upload-card.md +18 -0
- package/docs/pitElementUi/form-item-upload.md +1 -0
- package/docs/pitElementUi/form-two.md +102 -0
- package/docs/pitElementUi/form.md +952 -0
- package/docs/pitElementUi/i18n.md +228 -0
- package/docs/pitElementUi/icon-custom.md +99 -0
- package/docs/pitElementUi/icon-line-custom.md +12 -0
- package/docs/pitElementUi/icon.md +28 -0
- package/docs/pitElementUi/image.md +178 -0
- package/docs/pitElementUi/infiniteScroll.md +87 -0
- package/docs/pitElementUi/input-number.md +197 -0
- package/docs/pitElementUi/input-select.md +1 -0
- package/docs/pitElementUi/input.md +800 -0
- package/docs/pitElementUi/installation.md +9 -0
- package/docs/pitElementUi/layout-column.md +376 -0
- package/docs/pitElementUi/layout-tree.md +715 -0
- package/docs/pitElementUi/layout.md +354 -0
- package/docs/pitElementUi/link.md +66 -0
- package/docs/pitElementUi/loading.md +208 -0
- package/docs/pitElementUi/menu.md +403 -0
- package/docs/pitElementUi/message-box.md +326 -0
- package/docs/pitElementUi/message.md +219 -0
- package/docs/pitElementUi/notification.md +311 -0
- package/docs/pitElementUi/page-header.md +40 -0
- package/docs/pitElementUi/pagination.md +200 -0
- package/docs/pitElementUi/popconfirm.md +60 -0
- package/docs/pitElementUi/popover.md +167 -0
- package/docs/pitElementUi/progress.md +178 -0
- package/docs/pitElementUi/quickstart.md +290 -0
- package/docs/pitElementUi/radio.md +211 -0
- package/docs/pitElementUi/rate.md +135 -0
- package/docs/pitElementUi/result.md +76 -0
- package/docs/pitElementUi/select-tree.md +661 -0
- package/docs/pitElementUi/select.md +586 -0
- package/docs/pitElementUi/skeleton.md +316 -0
- package/docs/pitElementUi/slider.md +237 -0
- package/docs/pitElementUi/steps.md +154 -0
- package/docs/pitElementUi/switch.md +142 -0
- package/docs/pitElementUi/table.md +4023 -0
- package/docs/pitElementUi/tabs.md +303 -0
- package/docs/pitElementUi/tag.md +203 -0
- package/docs/pitElementUi/time-picker.md +199 -0
- package/docs/pitElementUi/timeline.md +154 -0
- package/docs/pitElementUi/tooltip.md +177 -0
- package/docs/pitElementUi/transfer.md +249 -0
- package/docs/pitElementUi/transition.md +155 -0
- package/docs/pitElementUi/tree.md +1157 -0
- package/docs/pitElementUi/typography.md +151 -0
- package/docs/pitElementUi/upload-table.md +39 -0
- package/docs/pitElementUi/upload.md +392 -0
- package/docs/pitElementUi/virtual-list.md +154 -0
- package/docs/pitElementUi/virtual-select-tree.md +243 -0
- package/docs/pitElementUi/virtual-select.md +451 -0
- package/docs/pitElementUi/virtual-table-column.md +1 -0
- package/docs/pitElementUi/virtual-table.md +490 -0
- package/docs/pitElementUi/virtual-tree.md +119 -0
- package/package.json +33 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
## Badge 标记
|
|
2
|
+
|
|
3
|
+
出现在按钮、图标旁的数字或状态标记。
|
|
4
|
+
|
|
5
|
+
### 基础用法
|
|
6
|
+
展示新消息数量。
|
|
7
|
+
|
|
8
|
+
:::demo 定义`value`属性,它接受`Number`或者`String`。
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<el-badge :value="12" class="item">
|
|
12
|
+
<el-button size="small">评论</el-button>
|
|
13
|
+
</el-badge>
|
|
14
|
+
<el-badge :value="3" class="item">
|
|
15
|
+
<el-button size="small">回复</el-button>
|
|
16
|
+
</el-badge>
|
|
17
|
+
<el-badge :value="1" class="item" type="primary">
|
|
18
|
+
<el-button size="small">评论</el-button>
|
|
19
|
+
</el-badge>
|
|
20
|
+
<el-badge :value="2" class="item" type="warning">
|
|
21
|
+
<el-button size="small">回复</el-button>
|
|
22
|
+
</el-badge>
|
|
23
|
+
|
|
24
|
+
<el-dropdown trigger="click">
|
|
25
|
+
<span class="el-dropdown-link">
|
|
26
|
+
点我查看<i class="el-icon-caret-bottom el-icon--right"></i>
|
|
27
|
+
</span>
|
|
28
|
+
<el-dropdown-menu slot="dropdown">
|
|
29
|
+
<el-dropdown-item class="clearfix">
|
|
30
|
+
评论
|
|
31
|
+
<el-badge class="mark" :value="12" />
|
|
32
|
+
</el-dropdown-item>
|
|
33
|
+
<el-dropdown-item class="clearfix">
|
|
34
|
+
回复
|
|
35
|
+
<el-badge class="mark" :value="3" />
|
|
36
|
+
</el-dropdown-item>
|
|
37
|
+
</el-dropdown-menu>
|
|
38
|
+
</el-dropdown>
|
|
39
|
+
|
|
40
|
+
<style>
|
|
41
|
+
.item {
|
|
42
|
+
margin-top: 10px;
|
|
43
|
+
margin-right: 40px;
|
|
44
|
+
}
|
|
45
|
+
</style>
|
|
46
|
+
```
|
|
47
|
+
:::
|
|
48
|
+
|
|
49
|
+
### 最大值
|
|
50
|
+
可自定义最大值。
|
|
51
|
+
|
|
52
|
+
:::demo 由`max`属性定义,它接受一个`Number`,需要注意的是,只有当`value`为`Number`时,它才会生效。
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<el-badge :value="200" :max="99" class="item">
|
|
56
|
+
<el-button size="small">评论</el-button>
|
|
57
|
+
</el-badge>
|
|
58
|
+
<el-badge :value="100" :max="10" class="item">
|
|
59
|
+
<el-button size="small">回复</el-button>
|
|
60
|
+
</el-badge>
|
|
61
|
+
|
|
62
|
+
<style>
|
|
63
|
+
.item {
|
|
64
|
+
margin-top: 10px;
|
|
65
|
+
margin-right: 40px;
|
|
66
|
+
}
|
|
67
|
+
</style>
|
|
68
|
+
```
|
|
69
|
+
:::
|
|
70
|
+
|
|
71
|
+
### 自定义内容
|
|
72
|
+
可以显示数字以外的文本内容。
|
|
73
|
+
|
|
74
|
+
:::demo 定义`value`为`String`类型是时可以用于显示自定义文本。
|
|
75
|
+
|
|
76
|
+
```html
|
|
77
|
+
<el-badge value="new" class="item">
|
|
78
|
+
<el-button size="small">评论</el-button>
|
|
79
|
+
</el-badge>
|
|
80
|
+
<el-badge value="hot" class="item">
|
|
81
|
+
<el-button size="small">回复</el-button>
|
|
82
|
+
</el-badge>
|
|
83
|
+
|
|
84
|
+
<style>
|
|
85
|
+
.item {
|
|
86
|
+
margin-top: 10px;
|
|
87
|
+
margin-right: 40px;
|
|
88
|
+
}
|
|
89
|
+
</style>
|
|
90
|
+
```
|
|
91
|
+
:::
|
|
92
|
+
|
|
93
|
+
### 小红点
|
|
94
|
+
以红点的形式标注需要关注的内容。
|
|
95
|
+
|
|
96
|
+
:::demo 除了数字外,设置`is-dot`属性,它接受一个`Boolean`。
|
|
97
|
+
|
|
98
|
+
```html
|
|
99
|
+
<el-badge is-dot class="item">数据查询</el-badge>
|
|
100
|
+
<el-badge is-dot class="item">
|
|
101
|
+
<el-button class="share-button" icon="el-icon-share" type="primary"></el-button>
|
|
102
|
+
</el-badge>
|
|
103
|
+
|
|
104
|
+
<style>
|
|
105
|
+
.item {
|
|
106
|
+
margin-top: 10px;
|
|
107
|
+
margin-right: 40px;
|
|
108
|
+
}
|
|
109
|
+
</style>
|
|
110
|
+
```
|
|
111
|
+
:::
|
|
112
|
+
|
|
113
|
+
### Attributes
|
|
114
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
115
|
+
|------------- |---------------- |---------------- |---------------------- |-------- |
|
|
116
|
+
| value | 显示值 | string, number | — | — |
|
|
117
|
+
| max | 最大值,超过最大值会显示 '{max}+',要求 value 是 Number 类型 | number | — | — |
|
|
118
|
+
| is-dot | 小圆点 | boolean | — | false |
|
|
119
|
+
| hidden | 隐藏 badge | boolean | — | false |
|
|
120
|
+
| type | 类型 | string | primary / success / warning / danger / info | — |
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
## BaseTabs 用于FormBase选项卡切换
|
|
2
|
+
|
|
3
|
+
用于FormBase选项卡切换,用于点击切换不同功能状态。
|
|
4
|
+
|
|
5
|
+
:::demo 定义`value`属性,它接受`Number`或者`String`。
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<el-base-tabs
|
|
9
|
+
style="height: 500px;"
|
|
10
|
+
v-model="activeName"
|
|
11
|
+
:tab-list-data="tabListData">1</el-base-tabs>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
activeName: 'loginLog',
|
|
18
|
+
tabListData: [
|
|
19
|
+
{
|
|
20
|
+
label: "登录日志",
|
|
21
|
+
name: 'loginLog',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: "请求日志",
|
|
25
|
+
name: "requestLog",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: "异常日志",
|
|
29
|
+
name: 'errorLog',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
</script>
|
|
36
|
+
```
|
|
37
|
+
:::
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
:::demo 定义`value`属性,它接受`Number`或者`String`。
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<el-base-tabs
|
|
44
|
+
style="height: 500px;"
|
|
45
|
+
v-model="activeName"
|
|
46
|
+
noCard
|
|
47
|
+
:tab-list-data="tabListData">1</el-base-tabs>
|
|
48
|
+
|
|
49
|
+
<script>
|
|
50
|
+
export default {
|
|
51
|
+
data() {
|
|
52
|
+
return {
|
|
53
|
+
activeName: 'loginLog',
|
|
54
|
+
tabListData: [
|
|
55
|
+
{
|
|
56
|
+
label: "登录日志",
|
|
57
|
+
name: 'loginLog',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "请求日志",
|
|
61
|
+
name: "requestLog",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "异常日志",
|
|
65
|
+
name: 'errorLog',
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
</script>
|
|
72
|
+
```
|
|
73
|
+
:::
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import bus from '../../bus';
|
|
3
|
+
import { ACTION_USER_CONFIG_UPDATE } from '../../components/theme/constant.js';
|
|
4
|
+
const varMap = {
|
|
5
|
+
'$--box-shadow-light': 'boxShadowLight',
|
|
6
|
+
'$--box-shadow-base': 'boxShadowBase',
|
|
7
|
+
'$--border-radius-base': 'borderRadiusBase',
|
|
8
|
+
'$--border-radius-small': 'borderRadiusSmall'
|
|
9
|
+
};
|
|
10
|
+
const original = {
|
|
11
|
+
boxShadowLight: '0 2px 12px 0 rgba(0, 0, 0, 0.1)',
|
|
12
|
+
boxShadowBase: '0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)',
|
|
13
|
+
borderRadiusBase: '4px',
|
|
14
|
+
borderRadiusSmall: '2px'
|
|
15
|
+
}
|
|
16
|
+
export default {
|
|
17
|
+
created() {
|
|
18
|
+
bus.$on(ACTION_USER_CONFIG_UPDATE, this.setGlobal);
|
|
19
|
+
},
|
|
20
|
+
mounted() {
|
|
21
|
+
this.setGlobal();
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
setGlobal() {
|
|
25
|
+
if (window.userThemeConfig) {
|
|
26
|
+
this.global = window.userThemeConfig.global;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
data() {
|
|
31
|
+
return {
|
|
32
|
+
global: {},
|
|
33
|
+
boxShadowLight: '',
|
|
34
|
+
boxShadowBase: '',
|
|
35
|
+
borderRadiusBase: '',
|
|
36
|
+
borderRadiusSmall: ''
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
watch: {
|
|
40
|
+
global: {
|
|
41
|
+
immediate: true,
|
|
42
|
+
handler(value) {
|
|
43
|
+
Object.keys(varMap).forEach((c) => {
|
|
44
|
+
if (value[c]) {
|
|
45
|
+
this[varMap[c]] = value[c]
|
|
46
|
+
} else {
|
|
47
|
+
this[varMap[c]] = original[varMap[c]]
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
## Border 边框
|
|
57
|
+
|
|
58
|
+
我们对边框进行统一规范,可用于按钮、卡片、弹窗等组件里。
|
|
59
|
+
|
|
60
|
+
### 边框
|
|
61
|
+
|
|
62
|
+
我们提供了以下几种边框样式,以供选择。
|
|
63
|
+
|
|
64
|
+
<table class="demo-border">
|
|
65
|
+
<tbody>
|
|
66
|
+
<tr>
|
|
67
|
+
<td class="text">名称</td>
|
|
68
|
+
<td class="text">粗细</td>
|
|
69
|
+
<td class="line">举例</td>
|
|
70
|
+
</tr>
|
|
71
|
+
<tr>
|
|
72
|
+
<td class="text">实线</td>
|
|
73
|
+
<td class="text">1px</td>
|
|
74
|
+
<td class="line">
|
|
75
|
+
<div></div>
|
|
76
|
+
</td>
|
|
77
|
+
</tr>
|
|
78
|
+
<tr>
|
|
79
|
+
<td class="text">虚线</td>
|
|
80
|
+
<td class="text">2px</td>
|
|
81
|
+
<td class="line">
|
|
82
|
+
<div class="dashed"></div>
|
|
83
|
+
</td>
|
|
84
|
+
</tr>
|
|
85
|
+
</tbody>
|
|
86
|
+
</table>
|
|
87
|
+
|
|
88
|
+
### 圆角
|
|
89
|
+
|
|
90
|
+
我们提供了以下几种圆角样式,以供选择。
|
|
91
|
+
|
|
92
|
+
<el-row :gutter="12" class="demo-radius">
|
|
93
|
+
<el-col :span="6" :xs="{span: 12}">
|
|
94
|
+
<div class="title">无圆角</div>
|
|
95
|
+
<div class="value">border-radius: 0px</div>
|
|
96
|
+
<div class="radius"></div>
|
|
97
|
+
</el-col>
|
|
98
|
+
<el-col :span="6" :xs="{span: 12}">
|
|
99
|
+
<div class="title">小圆角</div>
|
|
100
|
+
<div class="value">border-radius: {{borderRadiusSmall}}</div>
|
|
101
|
+
<div
|
|
102
|
+
class="radius"
|
|
103
|
+
:style="{ borderRadius: borderRadiusSmall }"
|
|
104
|
+
></div>
|
|
105
|
+
</el-col>
|
|
106
|
+
<el-col :span="6" :xs="{span: 12}">
|
|
107
|
+
<div class="title">大圆角</div>
|
|
108
|
+
<div class="value">border-radius: {{borderRadiusBase}}</div>
|
|
109
|
+
<div
|
|
110
|
+
class="radius"
|
|
111
|
+
:style="{ borderRadius: borderRadiusBase }"
|
|
112
|
+
></div>
|
|
113
|
+
</el-col>
|
|
114
|
+
<el-col :span="6" :xs="{span: 12}">
|
|
115
|
+
<div class="title">圆形圆角</div>
|
|
116
|
+
<div class="value">border-radius: 30px</div>
|
|
117
|
+
<div class="radius radius-30"></div>
|
|
118
|
+
</el-col>
|
|
119
|
+
</el-row>
|
|
120
|
+
|
|
121
|
+
### 投影
|
|
122
|
+
|
|
123
|
+
我们提供了以下几种投影样式,以供选择。
|
|
124
|
+
|
|
125
|
+
<div
|
|
126
|
+
class="demo-shadow"
|
|
127
|
+
:style="{ boxShadow: boxShadowBase }"
|
|
128
|
+
></div>
|
|
129
|
+
<span class="demo-shadow-text">基础投影 box-shadow: {{boxShadowBase}}</span>
|
|
130
|
+
|
|
131
|
+
<div
|
|
132
|
+
class="demo-shadow"
|
|
133
|
+
:style="{ boxShadow: boxShadowLight }"
|
|
134
|
+
></div>
|
|
135
|
+
<span class="demo-shadow-text">浅色投影 box-shadow: {{boxShadowLight}}</span>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
## Breadcrumb 面包屑
|
|
2
|
+
显示当前页面的路径,快速返回之前的任意页面。
|
|
3
|
+
|
|
4
|
+
### 基础用法
|
|
5
|
+
|
|
6
|
+
适用广泛的基础用法。
|
|
7
|
+
|
|
8
|
+
:::demo 在`el-breadcrumb`中使用`el-breadcrumb-item`标签表示从首页开始的每一级。Element 提供了一个`separator`属性,在`el-breadcrumb`标签中设置它来决定分隔符,它只能是字符串,默认为斜杠`/`。
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<el-breadcrumb separator="/">
|
|
12
|
+
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
|
|
13
|
+
<el-breadcrumb-item><a href="/">活动管理</a></el-breadcrumb-item>
|
|
14
|
+
<el-breadcrumb-item>活动列表</el-breadcrumb-item>
|
|
15
|
+
<el-breadcrumb-item>活动详情</el-breadcrumb-item>
|
|
16
|
+
</el-breadcrumb>
|
|
17
|
+
```
|
|
18
|
+
:::
|
|
19
|
+
|
|
20
|
+
### 图标分隔符
|
|
21
|
+
|
|
22
|
+
:::demo 通过设置 `separator-class` 可使用相应的 `iconfont` 作为分隔符,注意这将使 `separator` 设置失效
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
26
|
+
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
|
|
27
|
+
<el-breadcrumb-item>活动管理</el-breadcrumb-item>
|
|
28
|
+
<el-breadcrumb-item>活动列表</el-breadcrumb-item>
|
|
29
|
+
<el-breadcrumb-item>活动详情</el-breadcrumb-item>
|
|
30
|
+
</el-breadcrumb>
|
|
31
|
+
```
|
|
32
|
+
:::
|
|
33
|
+
|
|
34
|
+
### Breadcrumb Attributes
|
|
35
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
36
|
+
|---------- |-------------- |---------- |-------------------------------- |-------- |
|
|
37
|
+
| separator | 分隔符 | string | — | 斜杠'/' |
|
|
38
|
+
| separator-class | 图标分隔符 class | string | — | - |
|
|
39
|
+
|
|
40
|
+
### Breadcrumb Item Attributes
|
|
41
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
42
|
+
|---------- |-------------- |---------- |-------------------------------- |-------- |
|
|
43
|
+
| to | 路由跳转对象,同 `vue-router` 的 `to` | string/object | — | — |
|
|
44
|
+
| replace | 在使用 to 进行路由跳转时,启用 replace 将不会向 history 添加新记录 | boolean | — | false |
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
## Button 按钮
|
|
2
|
+
常用的操作按钮。
|
|
3
|
+
|
|
4
|
+
### 基础用法
|
|
5
|
+
|
|
6
|
+
基础的按钮用法。
|
|
7
|
+
|
|
8
|
+
:::demo 使用`type`、`plain`、`round`和`circle`属性来定义 Button 的样式。
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<el-row>
|
|
12
|
+
<el-button>默认按钮</el-button>
|
|
13
|
+
<el-button type="primary">主要按钮</el-button>
|
|
14
|
+
<el-button type="success">成功按钮</el-button>
|
|
15
|
+
<el-button type="info">信息按钮</el-button>
|
|
16
|
+
<el-button type="warning">警告按钮</el-button>
|
|
17
|
+
<el-button type="danger">危险按钮</el-button>
|
|
18
|
+
</el-row>
|
|
19
|
+
|
|
20
|
+
<el-row>
|
|
21
|
+
<el-button plain>朴素按钮</el-button>
|
|
22
|
+
<el-button type="primary" plain>主要按钮</el-button>
|
|
23
|
+
<el-button type="success" plain>成功按钮</el-button>
|
|
24
|
+
<el-button type="info" plain>信息按钮</el-button>
|
|
25
|
+
<el-button type="warning" plain>警告按钮</el-button>
|
|
26
|
+
<el-button type="danger" plain>危险按钮</el-button>
|
|
27
|
+
</el-row>
|
|
28
|
+
|
|
29
|
+
<el-row>
|
|
30
|
+
<el-button round>圆角按钮</el-button>
|
|
31
|
+
<el-button type="primary" round>主要按钮</el-button>
|
|
32
|
+
<el-button type="success" round>成功按钮</el-button>
|
|
33
|
+
<el-button type="info" round>信息按钮</el-button>
|
|
34
|
+
<el-button type="warning" round>警告按钮</el-button>
|
|
35
|
+
<el-button type="danger" round>危险按钮</el-button>
|
|
36
|
+
</el-row>
|
|
37
|
+
|
|
38
|
+
<el-row>
|
|
39
|
+
<el-button icon="el-icon-search" circle></el-button>
|
|
40
|
+
<el-button type="primary" icon="el-icon-edit" circle></el-button>
|
|
41
|
+
<el-button type="success" icon="el-icon-check" circle></el-button>
|
|
42
|
+
<el-button type="info" icon="el-icon-message" circle></el-button>
|
|
43
|
+
<el-button type="warning" icon="el-icon-star-off" circle></el-button>
|
|
44
|
+
<el-button type="danger" icon="el-icon-delete" circle></el-button>
|
|
45
|
+
</el-row>
|
|
46
|
+
```
|
|
47
|
+
:::
|
|
48
|
+
|
|
49
|
+
### 自定义按钮
|
|
50
|
+
|
|
51
|
+
自定义的按钮用法。
|
|
52
|
+
|
|
53
|
+
:::demo 使用`type`、`plain`、`round`和`circle`属性来定义 Button 的样式。
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<el-row>
|
|
57
|
+
<el-button type="colour-1">自定义按钮</el-button>
|
|
58
|
+
<el-button type="colour-2">自定义按钮</el-button>
|
|
59
|
+
<el-button type="colour-3">自定义按钮</el-button>
|
|
60
|
+
<el-button type="colour-4">自定义按钮</el-button>
|
|
61
|
+
<el-button type="colour-5">自定义按钮</el-button>
|
|
62
|
+
</el-row>
|
|
63
|
+
|
|
64
|
+
<el-row>
|
|
65
|
+
<el-button type="colour-1" round>自定义按钮</el-button>
|
|
66
|
+
<el-button type="colour-2" round>自定义按钮</el-button>
|
|
67
|
+
<el-button type="colour-3" round>自定义按钮</el-button>
|
|
68
|
+
<el-button type="colour-4" round>自定义按钮</el-button>
|
|
69
|
+
<el-button type="colour-5" round>自定义按钮</el-button>
|
|
70
|
+
</el-row>
|
|
71
|
+
|
|
72
|
+
<el-row>
|
|
73
|
+
<el-button type="colour-1" icon="el-icon-edit" circle></el-button>
|
|
74
|
+
<el-button type="colour-2" icon="el-icon-check" circle></el-button>
|
|
75
|
+
<el-button type="colour-3" icon="el-icon-message" circle></el-button>
|
|
76
|
+
<el-button type="colour-4" icon="el-icon-star-off" circle></el-button>
|
|
77
|
+
<el-button type="colour-5" icon="el-icon-delete" circle></el-button>
|
|
78
|
+
</el-row>
|
|
79
|
+
```
|
|
80
|
+
:::
|
|
81
|
+
|
|
82
|
+
### 自定义按钮-左右渐变
|
|
83
|
+
|
|
84
|
+
自定义的按钮左右渐变用法。
|
|
85
|
+
|
|
86
|
+
:::demo 使用`type`、`plain`、`round`和`circle`属性来定义 Button 的样式。
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<el-row>
|
|
90
|
+
<el-button type="colour-6">自定义按钮</el-button>
|
|
91
|
+
<el-button type="colour-7">自定义按钮</el-button>
|
|
92
|
+
<el-button type="colour-8">自定义按钮</el-button>
|
|
93
|
+
<el-button type="colour-9">自定义按钮</el-button>
|
|
94
|
+
<el-button type="colour-10">自定义按钮</el-button>
|
|
95
|
+
<el-button type="colour-11">自定义按钮</el-button>
|
|
96
|
+
<el-button type="colour-12">自定义按钮</el-button>
|
|
97
|
+
</el-row>
|
|
98
|
+
|
|
99
|
+
<el-row>
|
|
100
|
+
<el-button type="colour-6" round>主要按钮</el-button>
|
|
101
|
+
<el-button type="colour-7" round>成功按钮</el-button>
|
|
102
|
+
<el-button type="colour-8" round>信息按钮</el-button>
|
|
103
|
+
<el-button type="colour-9" round>警告按钮</el-button>
|
|
104
|
+
<el-button type="colour-10" round>危险按钮</el-button>
|
|
105
|
+
</el-row>
|
|
106
|
+
|
|
107
|
+
<el-row>
|
|
108
|
+
<el-button type="colour-6" icon="el-icon-edit" circle></el-button>
|
|
109
|
+
<el-button type="colour-7" icon="el-icon-check" circle></el-button>
|
|
110
|
+
<el-button type="colour-8" icon="el-icon-message" circle></el-button>
|
|
111
|
+
<el-button type="colour-9" icon="el-icon-star-off" circle></el-button>
|
|
112
|
+
<el-button type="colour-10" icon="el-icon-delete" circle></el-button>
|
|
113
|
+
</el-row>
|
|
114
|
+
```
|
|
115
|
+
:::
|
|
116
|
+
|
|
117
|
+
### 自定义按钮-禁用效果
|
|
118
|
+
|
|
119
|
+
自定义的按钮用法。
|
|
120
|
+
|
|
121
|
+
:::demo 使用`type`、`plain`、`round`和`circle`属性来定义 Button 的样式。
|
|
122
|
+
|
|
123
|
+
```html
|
|
124
|
+
<el-row>
|
|
125
|
+
<el-button type="colour-1" disabled>自定义按钮</el-button>
|
|
126
|
+
<el-button type="colour-2" disabled>自定义按钮</el-button>
|
|
127
|
+
<el-button type="colour-3" disabled>自定义按钮</el-button>
|
|
128
|
+
<el-button type="colour-4" disabled>自定义按钮</el-button>
|
|
129
|
+
<el-button type="colour-5" disabled>自定义按钮</el-button>
|
|
130
|
+
</el-row>
|
|
131
|
+
|
|
132
|
+
<el-row>
|
|
133
|
+
<el-button type="colour-1" round disabled>自定义按钮</el-button>
|
|
134
|
+
<el-button type="colour-2" round disabled>自定义按钮</el-button>
|
|
135
|
+
<el-button type="colour-3" round disabled>自定义按钮</el-button>
|
|
136
|
+
<el-button type="colour-4" round disabled>自定义按钮</el-button>
|
|
137
|
+
<el-button type="colour-5" round disabled>自定义按钮</el-button>
|
|
138
|
+
</el-row>
|
|
139
|
+
|
|
140
|
+
<el-row>
|
|
141
|
+
<el-button type="colour-1" icon="el-icon-edit" circle disabled></el-button>
|
|
142
|
+
<el-button type="colour-2" icon="el-icon-check" circle disabled></el-button>
|
|
143
|
+
<el-button type="colour-3" icon="el-icon-message" circle disabled></el-button>
|
|
144
|
+
<el-button type="colour-4" icon="el-icon-star-off" circle disabled></el-button>
|
|
145
|
+
<el-button type="colour-5" icon="el-icon-delete" circle disabled></el-button>
|
|
146
|
+
</el-row>
|
|
147
|
+
```
|
|
148
|
+
:::
|
|
149
|
+
|
|
150
|
+
### 自定义按钮-左右渐变-禁用效果
|
|
151
|
+
|
|
152
|
+
自定义的按钮左右渐变用法。
|
|
153
|
+
|
|
154
|
+
:::demo 使用`type`、`plain`、`round`和`circle`属性来定义 Button 的样式。
|
|
155
|
+
|
|
156
|
+
```html
|
|
157
|
+
<el-row>
|
|
158
|
+
<el-button type="colour-6" disabled>自定义按钮</el-button>
|
|
159
|
+
<el-button type="colour-7" disabled>自定义按钮</el-button>
|
|
160
|
+
<el-button type="colour-8" disabled>自定义按钮</el-button>
|
|
161
|
+
<el-button type="colour-9" disabled>自定义按钮</el-button>
|
|
162
|
+
<el-button type="colour-10" disabled>自定义按钮</el-button>
|
|
163
|
+
<el-button type="colour-11" disabled>自定义按钮</el-button>
|
|
164
|
+
<el-button type="colour-12" disabled>自定义按钮</el-button>
|
|
165
|
+
</el-row>
|
|
166
|
+
|
|
167
|
+
<el-row>
|
|
168
|
+
<el-button type="colour-6" round disabled>主要按钮</el-button>
|
|
169
|
+
<el-button type="colour-7" round disabled>成功按钮</el-button>
|
|
170
|
+
<el-button type="colour-8" round disabled>信息按钮</el-button>
|
|
171
|
+
<el-button type="colour-9" round disabled>警告按钮</el-button>
|
|
172
|
+
<el-button type="colour-10" round disabled>危险按钮</el-button>
|
|
173
|
+
</el-row>
|
|
174
|
+
|
|
175
|
+
<el-row>
|
|
176
|
+
<el-button type="colour-6" icon="el-icon-edit" circle disabled></el-button>
|
|
177
|
+
<el-button type="colour-7" icon="el-icon-check" circle disabled></el-button>
|
|
178
|
+
<el-button type="colour-8" icon="el-icon-message" circle disabled></el-button>
|
|
179
|
+
<el-button type="colour-9" icon="el-icon-star-off" circle disabled></el-button>
|
|
180
|
+
<el-button type="colour-10" icon="el-icon-delete" circle disabled></el-button>
|
|
181
|
+
</el-row>
|
|
182
|
+
```
|
|
183
|
+
:::
|
|
184
|
+
|
|
185
|
+
### 禁用状态
|
|
186
|
+
|
|
187
|
+
按钮不可用状态。
|
|
188
|
+
|
|
189
|
+
:::demo 你可以使用`disabled`属性来定义按钮是否可用,它接受一个`Boolean`值。
|
|
190
|
+
|
|
191
|
+
```html
|
|
192
|
+
<el-row>
|
|
193
|
+
<el-button type="primary" disabled>主要按钮</el-button>
|
|
194
|
+
<el-button type="success" disabled>成功按钮</el-button>
|
|
195
|
+
<el-button type="info" disabled>信息按钮</el-button>
|
|
196
|
+
<el-button type="warning" disabled>警告按钮</el-button>
|
|
197
|
+
<el-button type="danger" disabled>危险按钮</el-button>
|
|
198
|
+
</el-row>
|
|
199
|
+
|
|
200
|
+
<el-row>
|
|
201
|
+
<el-button plain disabled>朴素按钮</el-button>
|
|
202
|
+
<el-button type="primary" plain disabled>主要按钮</el-button>
|
|
203
|
+
<el-button type="success" plain disabled>成功按钮</el-button>
|
|
204
|
+
<el-button type="info" plain disabled>信息按钮</el-button>
|
|
205
|
+
<el-button type="warning" plain disabled>警告按钮</el-button>
|
|
206
|
+
<el-button type="danger" plain disabled>危险按钮</el-button>
|
|
207
|
+
</el-row>
|
|
208
|
+
```
|
|
209
|
+
:::
|
|
210
|
+
|
|
211
|
+
### 文字按钮
|
|
212
|
+
|
|
213
|
+
没有边框和背景色的按钮。
|
|
214
|
+
|
|
215
|
+
:::demo
|
|
216
|
+
```html
|
|
217
|
+
<el-button type="text">文字按钮</el-button>
|
|
218
|
+
<el-button type="text" disabled>文字按钮</el-button>
|
|
219
|
+
```
|
|
220
|
+
:::
|
|
221
|
+
|
|
222
|
+
### 图标按钮
|
|
223
|
+
|
|
224
|
+
带图标的按钮可增强辨识度(有文字)或节省空间(无文字)。
|
|
225
|
+
|
|
226
|
+
:::demo 设置`icon`属性即可,icon 的列表可以参考 Element 的 icon 组件,也可以设置在文字右边的 icon ,只要使用`i`标签即可,可以使用自定义图标。
|
|
227
|
+
|
|
228
|
+
```html
|
|
229
|
+
<el-button type="primary" icon="el-icon-edit"></el-button>
|
|
230
|
+
<el-button type="primary" icon="el-icon-share"></el-button>
|
|
231
|
+
<el-button type="primary" icon="el-icon-delete"></el-button>
|
|
232
|
+
<el-button type="primary" icon="el-icon-search">搜索</el-button>
|
|
233
|
+
<el-button type="primary">上传<i class="el-icon-upload el-icon--right"></i></el-button>
|
|
234
|
+
```
|
|
235
|
+
:::
|
|
236
|
+
|
|
237
|
+
### 按钮组
|
|
238
|
+
|
|
239
|
+
以按钮组的方式出现,常用于多项类似操作。
|
|
240
|
+
|
|
241
|
+
:::demo 使用`<el-button-group>`标签来嵌套你的按钮。
|
|
242
|
+
|
|
243
|
+
```html
|
|
244
|
+
<el-button-group>
|
|
245
|
+
<el-button type="primary" icon="el-icon-arrow-left">上一页</el-button>
|
|
246
|
+
<el-button type="primary">下一页<i class="el-icon-arrow-right el-icon--right"></i></el-button>
|
|
247
|
+
</el-button-group>
|
|
248
|
+
<el-button-group>
|
|
249
|
+
<el-button type="primary" icon="el-icon-edit"></el-button>
|
|
250
|
+
<el-button type="primary" icon="el-icon-share"></el-button>
|
|
251
|
+
<el-button type="primary" icon="el-icon-delete"></el-button>
|
|
252
|
+
</el-button-group>
|
|
253
|
+
```
|
|
254
|
+
:::
|
|
255
|
+
|
|
256
|
+
### 加载中
|
|
257
|
+
|
|
258
|
+
点击按钮后进行数据加载操作,在按钮上显示加载状态。
|
|
259
|
+
|
|
260
|
+
:::demo 要设置为 loading 状态,只要设置`loading`属性为`true`即可。
|
|
261
|
+
|
|
262
|
+
```html
|
|
263
|
+
<el-button type="primary" :loading="true">加载中</el-button>
|
|
264
|
+
```
|
|
265
|
+
:::
|
|
266
|
+
|
|
267
|
+
### 不同尺寸
|
|
268
|
+
|
|
269
|
+
Button 组件提供除了默认值以外的三种尺寸,可以在不同场景下选择合适的按钮尺寸。
|
|
270
|
+
|
|
271
|
+
:::demo 额外的尺寸:`medium`、`small`、`mini`,通过设置`size`属性来配置它们。
|
|
272
|
+
|
|
273
|
+
```html
|
|
274
|
+
<el-row>
|
|
275
|
+
<el-button>默认按钮</el-button>
|
|
276
|
+
<el-button size="medium">中等按钮</el-button>
|
|
277
|
+
<el-button size="small">小型按钮</el-button>
|
|
278
|
+
<el-button size="mini">超小按钮</el-button>
|
|
279
|
+
</el-row>
|
|
280
|
+
<el-row>
|
|
281
|
+
<el-button round>默认按钮</el-button>
|
|
282
|
+
<el-button size="medium" round>中等按钮</el-button>
|
|
283
|
+
<el-button size="small" round>小型按钮</el-button>
|
|
284
|
+
<el-button size="mini" round>超小按钮</el-button>
|
|
285
|
+
</el-row>
|
|
286
|
+
```
|
|
287
|
+
:::
|
|
288
|
+
|
|
289
|
+
### Attributes
|
|
290
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
291
|
+
|---------- |-------- |---------- |------------- |-------- |
|
|
292
|
+
| size | 尺寸 | string | medium / small / mini | — |
|
|
293
|
+
| type | 类型 | string | primary / success / warning / danger / info / text | — |
|
|
294
|
+
| plain | 是否朴素按钮 | boolean | — | false |
|
|
295
|
+
| round | 是否圆角按钮 | boolean | — | false |
|
|
296
|
+
| circle | 是否圆形按钮 | boolean | — | false |
|
|
297
|
+
| loading | 是否加载中状态 | boolean | — | false |
|
|
298
|
+
| disabled | 是否禁用状态 | boolean | — | false |
|
|
299
|
+
| icon | 图标类名 | string | — | — |
|
|
300
|
+
| autofocus | 是否默认聚焦 | boolean | — | false |
|
|
301
|
+
| native-type | 原生 type 属性 | string | button / submit / reset | button |
|