@fishawack/lab-velocity 0.9.2 → 0.9.4
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/components/_basic.scss +6 -0
- package/components/_checkbox.scss +1 -0
- package/components/_datepicker.scss +4 -0
- package/components/_form.scss +3 -2
- package/components/_inputNumber.scss +4 -0
- package/components/_select.scss +3 -0
- package/components/_switch.scss +7 -1
- package/components/_upload.scss +15 -1
- package/form/DatePicker.vue +17 -2
- package/package.json +1 -1
package/components/_basic.scss
CHANGED
package/components/_form.scss
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
label {
|
|
4
4
|
margin-bottom: $spacing;
|
|
5
5
|
display: inline-block;
|
|
6
|
+
font-weight: 500;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
&:not(:last-child) {
|
|
@@ -13,9 +14,9 @@
|
|
|
13
14
|
.form__group--error {
|
|
14
15
|
|
|
15
16
|
.el-select__wrapper, .el-select__wrapper:hover, .el-input__wrapper, .el-input__wrapper:hover {
|
|
16
|
-
box-shadow: 0 0 0 1px $
|
|
17
|
+
box-shadow: 0 0 0 1px $colorAlert inset;
|
|
17
18
|
.el-select__icon {
|
|
18
|
-
color: $
|
|
19
|
+
color: $colorAlert;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
}
|
package/components/_select.scss
CHANGED
package/components/_switch.scss
CHANGED
package/components/_upload.scss
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
@import "element-plus/theme-chalk/el-upload";
|
|
1
|
+
@import "element-plus/theme-chalk/el-upload";
|
|
2
|
+
|
|
3
|
+
.vel-upload {
|
|
4
|
+
.el-upload__tip {
|
|
5
|
+
color: $color11;
|
|
6
|
+
}
|
|
7
|
+
&.form__group--error {
|
|
8
|
+
.el-upload__tip {
|
|
9
|
+
color: $colorAlert;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
&__error {
|
|
13
|
+
color: $colorAlert;
|
|
14
|
+
}
|
|
15
|
+
}
|
package/form/DatePicker.vue
CHANGED
|
@@ -16,12 +16,14 @@
|
|
|
16
16
|
v-model="content"
|
|
17
17
|
@change="handleInput"
|
|
18
18
|
:value-format="valueFormat"
|
|
19
|
+
:date-format="dateFormat"
|
|
20
|
+
:time-format="timeFormat"
|
|
19
21
|
:format="format"
|
|
20
|
-
popper-class="
|
|
22
|
+
:popper-class="popperClass"
|
|
23
|
+
:prefix-icon="prefixIcon"
|
|
21
24
|
/>
|
|
22
25
|
</XInput>
|
|
23
26
|
</template>
|
|
24
|
-
|
|
25
27
|
<script>
|
|
26
28
|
import dayjs from "dayjs";
|
|
27
29
|
import { ElDatePicker } from "element-plus";
|
|
@@ -44,6 +46,12 @@ export default {
|
|
|
44
46
|
valueFormat: {
|
|
45
47
|
type: String
|
|
46
48
|
},
|
|
49
|
+
dateFormat: {
|
|
50
|
+
type: String
|
|
51
|
+
},
|
|
52
|
+
timeFormat: {
|
|
53
|
+
type: String
|
|
54
|
+
},
|
|
47
55
|
baseClass: {
|
|
48
56
|
type: String,
|
|
49
57
|
default: "vel-datepicker",
|
|
@@ -62,6 +70,13 @@ export default {
|
|
|
62
70
|
type: String,
|
|
63
71
|
default: "default",
|
|
64
72
|
},
|
|
73
|
+
popperClass: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: "vel-popper",
|
|
76
|
+
},
|
|
77
|
+
prefixIcon: {
|
|
78
|
+
type: String,
|
|
79
|
+
},
|
|
65
80
|
},
|
|
66
81
|
components: {
|
|
67
82
|
XInput,
|