hy-app 0.3.4 → 0.3.5
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.
|
@@ -55,7 +55,7 @@ export default {
|
|
|
55
55
|
</script>
|
|
56
56
|
|
|
57
57
|
<script setup lang="ts">
|
|
58
|
-
import { computed
|
|
58
|
+
import { computed } from "vue";
|
|
59
59
|
import type { CSSProperties, PropType } from "vue";
|
|
60
60
|
import type { ITagEmits } from "./typing";
|
|
61
61
|
import { IconConfig } from "../../config";
|
|
@@ -93,7 +93,7 @@ const props = defineProps({
|
|
|
93
93
|
},
|
|
94
94
|
/**
|
|
95
95
|
* 标签的大小
|
|
96
|
-
* @values large,medium,small
|
|
96
|
+
* @values large,medium,small,mini
|
|
97
97
|
* */
|
|
98
98
|
size: {
|
|
99
99
|
type: String,
|
|
@@ -26,6 +26,12 @@ $hy-background--disabled);
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
@include e(text) {
|
|
29
|
+
|
|
30
|
+
@include m(mini) {
|
|
31
|
+
font-size: 20rpx;
|
|
32
|
+
line-height: 20rpx;
|
|
33
|
+
}
|
|
34
|
+
|
|
29
35
|
@include m(small) {
|
|
30
36
|
font-size: $hy-font-size-sm;
|
|
31
37
|
line-height: $hy-font-size-sm;
|
|
@@ -42,6 +48,12 @@ $hy-background--disabled);
|
|
|
42
48
|
}
|
|
43
49
|
}
|
|
44
50
|
|
|
51
|
+
@include m(mini) {
|
|
52
|
+
height: 17px;
|
|
53
|
+
line-height: 17px;
|
|
54
|
+
padding: 0 $hy-border-margin-padding-sm;
|
|
55
|
+
}
|
|
56
|
+
|
|
45
57
|
@include m(small) {
|
|
46
58
|
height: 22px;
|
|
47
59
|
line-height: 22px;
|
|
@@ -98,8 +98,11 @@ const props = defineProps({
|
|
|
98
98
|
default: "",
|
|
99
99
|
required: true,
|
|
100
100
|
},
|
|
101
|
-
/**
|
|
102
|
-
|
|
101
|
+
/**
|
|
102
|
+
* 主题颜色
|
|
103
|
+
* @values primary,success,error,warning,info
|
|
104
|
+
* */
|
|
105
|
+
type: String as PropType<HyApp.ThemeType>,
|
|
103
106
|
/** 是否显示 */
|
|
104
107
|
show: {
|
|
105
108
|
type: Boolean,
|