Skip to content

Commit ab4436a

Browse files
committed
fix(view): 组件增加字体设置
1 parent 4b5055b commit ab4436a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

admin/src/components/FloatButton/index.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@click="onBtnClicked"
77
>
88
<slot name="icon" />
9-
<p>{{ text }}</p>
9+
<p :style="{'font-size': fontSize+'px'}">{{ text }}</p>
1010
</div>
1111
</template>
1212

@@ -33,6 +33,10 @@ export default {
3333
coefficientHeight: {
3434
type: Number,
3535
default: 0.8
36+
},
37+
fontSize: {
38+
type: Number,
39+
default: 12
3640
}
3741
},
3842
data() {
@@ -134,7 +138,4 @@ export default {
134138
margin-bottom: 3px;
135139
}
136140
137-
.ys-float-btn p {
138-
font-size: 7px;
139-
}
140141
</style>

0 commit comments

Comments
 (0)