rrj-astra-ui 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.en.md +36 -0
- package/README.md +37 -0
- package/components/AuiBadge.vue +50 -0
- package/components/AuiBlockBox.vue +85 -0
- package/components/AuiButton.vue +210 -0
- package/components/AuiCustomerForm.vue +304 -0
- package/components/AuiDivider.vue +66 -0
- package/components/AuiFold.vue +40 -0
- package/components/AuiFoldItem.vue +173 -0
- package/components/AuiForm.vue +76 -0
- package/components/AuiFormItem.vue +88 -0
- package/components/AuiGrid.vue +26 -0
- package/components/AuiGridItem.vue +20 -0
- package/components/AuiIcon.vue +145 -0
- package/components/AuiImage.vue +152 -0
- package/components/AuiInput.vue +176 -0
- package/components/AuiLamp.vue +254 -0
- package/components/AuiLineProgress.vue +169 -0
- package/components/AuiList.vue +18 -0
- package/components/AuiListItem.vue +142 -0
- package/components/AuiMultiSelect.vue +303 -0
- package/components/AuiNoticeBar.vue +62 -0
- package/components/AuiNumberBox.vue +282 -0
- package/components/AuiPicker.vue +619 -0
- package/components/AuiPopup.vue +57 -0
- package/components/AuiSelectGroup.vue +312 -0
- package/components/AuiTab.vue +173 -0
- package/components/AuiTabItem.vue +43 -0
- package/components/AuiTable.vue +357 -0
- package/components/AuiTag.vue +112 -0
- package/components/AuiText.vue +81 -0
- package/components/AuiTextarea.vue +203 -0
- package/components/AuiToast.vue +96 -0
- package/components/AuiUpdate.vue +271 -0
- package/components/AuiUpload.vue +524 -0
- package/index.js +93 -0
- package/package.json +36 -0
- package/style.scss +30 -0
package/README.en.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# astra-ui
|
|
2
|
+
|
|
3
|
+
#### Description
|
|
4
|
+
uniapp-ui
|
|
5
|
+
|
|
6
|
+
#### Software Architecture
|
|
7
|
+
Software architecture description
|
|
8
|
+
|
|
9
|
+
#### Installation
|
|
10
|
+
|
|
11
|
+
1. xxxx
|
|
12
|
+
2. xxxx
|
|
13
|
+
3. xxxx
|
|
14
|
+
|
|
15
|
+
#### Instructions
|
|
16
|
+
|
|
17
|
+
1. xxxx
|
|
18
|
+
2. xxxx
|
|
19
|
+
3. xxxx
|
|
20
|
+
|
|
21
|
+
#### Contribution
|
|
22
|
+
|
|
23
|
+
1. Fork the repository
|
|
24
|
+
2. Create Feat_xxx branch
|
|
25
|
+
3. Commit your code
|
|
26
|
+
4. Create Pull Request
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#### Gitee Feature
|
|
30
|
+
|
|
31
|
+
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
+
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
+
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
+
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
+
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
+
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# astra-ui
|
|
2
|
+
|
|
3
|
+
#### 介绍
|
|
4
|
+
uniapp-ui
|
|
5
|
+
|
|
6
|
+
#### 软件架构
|
|
7
|
+
软件架构说明
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
#### 安装教程
|
|
11
|
+
|
|
12
|
+
1. xxxx
|
|
13
|
+
2. xxxx
|
|
14
|
+
3. xxxx
|
|
15
|
+
|
|
16
|
+
#### 使用说明
|
|
17
|
+
|
|
18
|
+
1. xxxx
|
|
19
|
+
2. xxxx
|
|
20
|
+
3. xxxx
|
|
21
|
+
|
|
22
|
+
#### 参与贡献
|
|
23
|
+
|
|
24
|
+
1. Fork 本仓库
|
|
25
|
+
2. 新建 Feat_xxx 分支
|
|
26
|
+
3. 提交代码
|
|
27
|
+
4. 新建 Pull Request
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#### 特技
|
|
31
|
+
|
|
32
|
+
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
33
|
+
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
34
|
+
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
|
35
|
+
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
|
36
|
+
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
37
|
+
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span :class="['aui-badge', `aui-badge-${type}`]">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</span>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
import { defineProps } from 'vue';
|
|
9
|
+
const __name = 'AuiBadge';
|
|
10
|
+
|
|
11
|
+
defineOptions({
|
|
12
|
+
name: __name
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
const props = defineProps({
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'primary',
|
|
19
|
+
validator: (value) => ['primary', 'success', 'warning', 'danger'].includes(value)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="scss">
|
|
25
|
+
@import '../style.scss';
|
|
26
|
+
|
|
27
|
+
.aui-badge {
|
|
28
|
+
display: inline-block;
|
|
29
|
+
padding: 3px 6px;
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
border-radius: 3px;
|
|
32
|
+
color: white;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.aui-badge-primary {
|
|
36
|
+
background-color: $aui-primary-color;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.aui-badge-success {
|
|
40
|
+
background-color: $aui-success-color;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.aui-badge-warning {
|
|
44
|
+
background-color: $aui-warning-color;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.aui-badge-danger {
|
|
48
|
+
background-color: $aui-danger-color;
|
|
49
|
+
}
|
|
50
|
+
</style>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view :class="`aui-block-box-theme-${theme}`" >
|
|
3
|
+
<view class="aui-block-box_head">
|
|
4
|
+
<view :class="`aui-block-box-radio-theme-${radioTheme}`" v-if="theme!='none'"></view>
|
|
5
|
+
<view class="aui-block-box-head_title" :style="titleStyle">{{ title }}</view>
|
|
6
|
+
</view>
|
|
7
|
+
<view class="aui-block-box_content">
|
|
8
|
+
<slot></slot>
|
|
9
|
+
</view>
|
|
10
|
+
</view>
|
|
11
|
+
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
|
|
16
|
+
import { defineProps } from 'vue';
|
|
17
|
+
const __name = 'AuiBlockBox';
|
|
18
|
+
|
|
19
|
+
defineOptions({
|
|
20
|
+
name: __name
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const props = defineProps({
|
|
24
|
+
title: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ''
|
|
27
|
+
},
|
|
28
|
+
titleStyle: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ''
|
|
31
|
+
},
|
|
32
|
+
radioTheme: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: 'none',
|
|
35
|
+
validator: (value) => ['none','primary'].includes(value)
|
|
36
|
+
},
|
|
37
|
+
theme:{
|
|
38
|
+
type:String,
|
|
39
|
+
default:'primary'
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
</script>
|
|
43
|
+
<style scoped lang="scss">
|
|
44
|
+
@import '../style.scss';
|
|
45
|
+
.aui-block-box {
|
|
46
|
+
display: block;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
margin: 20px 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.aui-block-box_head {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.aui-block-box-head_title {
|
|
58
|
+
flex:1;
|
|
59
|
+
font-size: 16px;
|
|
60
|
+
color: $aui-text-color;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.aui-block-box-head_right {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
}
|
|
67
|
+
.aui-block-box_content {
|
|
68
|
+
display: block;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
margin-top: 10px;
|
|
71
|
+
}
|
|
72
|
+
.aui-block-box-radio-theme-primary {
|
|
73
|
+
width:4px;height: 16px;
|
|
74
|
+
background-color: #2563EB;
|
|
75
|
+
border-radius: 999px;
|
|
76
|
+
margin-right: 10px;
|
|
77
|
+
}
|
|
78
|
+
.aui-block-box-theme-cyan{
|
|
79
|
+
background-color: #F5F5F5;
|
|
80
|
+
border-radius: 8px;
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
padding:13px
|
|
83
|
+
}
|
|
84
|
+
.aui-block-box-theme-cyan .aui-block-box-head_title{color:#4B5563;font-size: 14px;}
|
|
85
|
+
</style>
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button
|
|
3
|
+
:style="{height}" :class="['aui-button', { 'aui-button--disabled': disabled }, `aui-button-${size}`, `aui-button-type-${type}`, `aui-button-type-${type}`, { 'aui-button-plain': plain }, `aui-button-shape-${shape}`]">
|
|
4
|
+
<slot></slot>
|
|
5
|
+
</button>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script setup>
|
|
9
|
+
import { defineProps, defineEmits } from 'vue';
|
|
10
|
+
const __name = 'AuiButton';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
defineOptions({
|
|
14
|
+
name: __name
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const props = defineProps({
|
|
18
|
+
disabled: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: 'normal',
|
|
25
|
+
validator: (value) => ['normal', 'small', 'large', 'mini'].includes(value)
|
|
26
|
+
},
|
|
27
|
+
type: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: 'primary',
|
|
30
|
+
validator: (value) => ['primary', 'success', 'warning', 'danger'].includes(value)
|
|
31
|
+
},
|
|
32
|
+
plain: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
icon: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ''
|
|
39
|
+
},
|
|
40
|
+
shape: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: 'normal',
|
|
43
|
+
validator: (value) => ['normal', 'circle', 'astra'].includes(value)
|
|
44
|
+
},
|
|
45
|
+
height:{
|
|
46
|
+
type: String,
|
|
47
|
+
default: '44px',
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<style scoped lang="scss">
|
|
53
|
+
@import '../style.scss';
|
|
54
|
+
|
|
55
|
+
.aui-button {
|
|
56
|
+
display: block;
|
|
57
|
+
padding: 10px 0px;
|
|
58
|
+
width: 100%;
|
|
59
|
+
font-size: $aui-font-size;
|
|
60
|
+
background-color: $aui-primary-color;
|
|
61
|
+
color: white;
|
|
62
|
+
border: none !important;
|
|
63
|
+
border-radius: 3px;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
transition: background-color 0.3s;
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.aui-button--disabled {
|
|
72
|
+
background-color: $aui-disabled-color;
|
|
73
|
+
border: 1px solid $aui-disabled-color;
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.aui-button-small {
|
|
78
|
+
padding: 5px 10px;
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.aui-button-large {
|
|
83
|
+
padding: 15px 30px;
|
|
84
|
+
font-size: 18px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.aui-button-mini {
|
|
88
|
+
padding: 3px 6px;
|
|
89
|
+
font-size: 10px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.aui-button-normal {
|
|
93
|
+
padding: 3px 20px;
|
|
94
|
+
font-size: $aui-font-size;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.aui-button-type-primary {
|
|
98
|
+
background-color: $aui-primary-color;
|
|
99
|
+
border: 1px solid $aui-primary-color;
|
|
100
|
+
|
|
101
|
+
&:hover:not(.aui-button--disabled) {
|
|
102
|
+
background-color: $aui-primary-color-hover;
|
|
103
|
+
border-color: $aui-primary-color-hover;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.aui-button-type-primary-gradient {
|
|
108
|
+
background: linear-gradient(135deg, #007bff, #0056b3);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.aui-button-type-success {
|
|
112
|
+
background-color: $aui-success-color;
|
|
113
|
+
border: 1px solid $aui-success-color;
|
|
114
|
+
|
|
115
|
+
&:hover:not(.aui-button--disabled) {
|
|
116
|
+
background-color: $aui-success-color-hover;
|
|
117
|
+
border-color: $aui-success-color-hover;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.aui-button-type-success-gradient {
|
|
121
|
+
background: linear-gradient(135deg, #28a745, #1e7e34);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.aui-button-type-warning {
|
|
125
|
+
background-color: $aui-warning-color;
|
|
126
|
+
border: 1px solid $aui-warning-color;
|
|
127
|
+
|
|
128
|
+
&:hover:not(.aui-button--disabled) {
|
|
129
|
+
background-color: $aui-warning-color-hover;
|
|
130
|
+
border-color: $aui-warning-color-hover;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
.aui-button-type-warning-gradient {
|
|
134
|
+
background: linear-gradient(135deg, #ffc107, #d39e00);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.aui-button-type-danger {
|
|
138
|
+
background-color: $aui-danger-color;
|
|
139
|
+
border: 1px solid $aui-danger-color;
|
|
140
|
+
|
|
141
|
+
&:hover:not(.aui-button--disabled) {
|
|
142
|
+
background-color: $aui-danger-color-hover;
|
|
143
|
+
border-color: $aui-danger-color-hover;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
.aui-button-type-danger-gradient {
|
|
147
|
+
background: linear-gradient(135deg, #dc3545, #b02a37);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.aui-button-plain {
|
|
151
|
+
background-color: transparent;
|
|
152
|
+
color: inherit;
|
|
153
|
+
|
|
154
|
+
&.aui-button-type-primary {
|
|
155
|
+
border: 1px solid $aui-primary-color;
|
|
156
|
+
color: $aui-primary-color;
|
|
157
|
+
|
|
158
|
+
&:hover:not(.aui-button--disabled) {
|
|
159
|
+
background-color: $aui-primary-color-hover;
|
|
160
|
+
border-color: $aui-primary-color-hover;
|
|
161
|
+
color: white;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.aui-button-type-success {
|
|
166
|
+
border: 1px solid $aui-success-color;
|
|
167
|
+
color: $aui-success-color;
|
|
168
|
+
|
|
169
|
+
&:hover:not(.aui-button--disabled) {
|
|
170
|
+
background-color: $aui-success-color-hover;
|
|
171
|
+
border-color: $aui-success-color-hover;
|
|
172
|
+
color: white;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&.aui-button-type-warning {
|
|
177
|
+
border: 1px solid $aui-warning-color;
|
|
178
|
+
color: $aui-warning-color;
|
|
179
|
+
|
|
180
|
+
&:hover:not(.aui-button--disabled) {
|
|
181
|
+
background-color: $aui-warning-color-hover;
|
|
182
|
+
border-color: $aui-warning-color-hover;
|
|
183
|
+
color: white;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&.aui-button-type-danger {
|
|
188
|
+
border: 1px solid $aui-danger-color;
|
|
189
|
+
color: $aui-danger-color;
|
|
190
|
+
|
|
191
|
+
&:hover:not(.aui-button--disabled) {
|
|
192
|
+
background-color: $aui-danger-color-hover;
|
|
193
|
+
border-color: $aui-danger-color-hover;
|
|
194
|
+
color: white;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.aui-button-shape-circle {
|
|
200
|
+
border-radius: 50%;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.aui-button-shape-astra {
|
|
204
|
+
border-radius: 0 50%;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.aui-button i {
|
|
208
|
+
margin-right: 5px;
|
|
209
|
+
}
|
|
210
|
+
</style>
|