File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,10 @@ export default {
103
103
``` js
104
104
// 2.x
105
105
{
106
- class: [' button' , ' is-outlined' ],
107
- style: { color: ' #34495E' },
106
+ staticClass: ' button' ,
107
+ class: {' is-outlined' : isOutlined },
108
+ staticStyle: { color: ' #34495E' },
109
+ style: { backgroundColor: buttonColor },
108
110
attrs: { id: ' submit' },
109
111
domProps: { innerHTML: ' ' },
110
112
on: { click: submitForm },
@@ -119,8 +121,8 @@ export default {
119
121
``` js
120
122
// 3.x での構文
121
123
{
122
- class: [' button' , ' is-outlined' ],
123
- style: { color: ' #34495E' },
124
+ class: [' button' , { ' is-outlined' : isOutlined } ],
125
+ style: [ { color: ' #34495E' }, { backgroundColor : buttonColor }] ,
124
126
id: ' submit' ,
125
127
innerHTML: ' ' ,
126
128
onClick: submitForm,
You can’t perform that action at this time.
0 commit comments