File tree Expand file tree Collapse file tree 1 file changed +47
-3
lines changed
packages/sparrow-client/src/components/CssPanel/Font Expand file tree Collapse file tree 1 file changed +47
-3
lines changed Original file line number Diff line number Diff line change 24
24
></el-input-number >
25
25
</div >
26
26
<div >
27
- <el-input class =" mb10" size =" mini" placeholder =" 请输入内容" >
27
+ <el-input
28
+ v-model =" fontForm.color"
29
+ class =" mb10"
30
+ size =" mini"
31
+ placeholder =" 请输入内容"
32
+ >
28
33
<template slot="append">
29
34
<el-popover placement =" bottom" width =" 225" trigger =" click" >
30
35
<chrome-picker v-model =" fontForm.color" ></chrome-picker >
42
47
</div >
43
48
</css-item >
44
49
<css-item lang =" 对齐方式" >
45
- <s-radio-group :list =" textAlignList" ></s-radio-group >
50
+ <s-radio-group
51
+ v-model =" fontForm.textAlign"
52
+ :list =" textAlignList"
53
+ ></s-radio-group >
54
+ </css-item >
55
+ <css-item >
56
+ <s-radio-group
57
+ v-model =" fontForm.verticalAlign"
58
+ :list =" verticalAlignList"
59
+ ></s-radio-group >
46
60
</css-item >
47
61
<css-item label =" 透明度" >
48
62
<div >
@@ -68,7 +82,7 @@ export default {
68
82
fontForm: {
69
83
fontWeight: ' ' ,
70
84
fontSize: ' ' ,
71
- color: ' #000000 ' ,
85
+ color: ' ' ,
72
86
lineHeight: ' ' ,
73
87
textAlign: ' ' ,
74
88
verticalAlign: ' ' ,
@@ -109,8 +123,38 @@ export default {
109
123
icon: ' 两端' ,
110
124
value: ' justify' ,
111
125
}
126
+ ],
127
+ verticalAlignList: [
128
+ {
129
+ label: ' baseline' ,
130
+ icon: ' 基线' ,
131
+ value: ' baseline' ,
132
+ },
133
+ {
134
+ label: ' top' ,
135
+ icon: ' 上' ,
136
+ value: ' top' ,
137
+ },
138
+ {
139
+ label: ' bottom' ,
140
+ icon: ' 下' ,
141
+ value: ' bottom' ,
142
+ },
143
+ {
144
+ label: ' middle' ,
145
+ icon: ' 居中' ,
146
+ value: ' middle' ,
147
+ }
112
148
]
113
149
};
150
+ },
151
+ watch: {
152
+ fontForm: {
153
+ handler : function (val , oldVal ) {
154
+ this .$emit (' change' , this .fontForm );
155
+ },
156
+ deep: true
157
+ }
114
158
}
115
159
};
116
160
</script >
You can’t perform that action at this time.
0 commit comments