Use v-model for expression and time_format

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-06-13 17:08:12 +09:00
parent 838a3e484a
commit a0ecbfa004

View File

@ -42,8 +42,21 @@
"data-placement" => "right", "data-placement" => "right",
"v-bind:title" => "option.desc"} "v-bind:title" => "option.desc"}
{{ option.name }} {{ option.name }}
%input{"v-bind:id" => "inputId(pluginType, option)", %template{"v-if" => 'option.name === "expression"'}
"v-bind:name" => "inputName(pluginType, option)", %input{"v-bind:id" => "inputId(pluginType, option)",
"v-bind:value" => "option.default", "v-bind:name" => "inputName(pluginType, option)",
"type" => "text", "v-model.lazy" => "expression",
"class" => "form-control"} "type" => "text",
"class" => "form-control"}
%template{"v-else-if" => 'option.name === "time_format"'}
%input{"v-bind:id" => "inputId(pluginType, option)",
"v-bind:name" => "inputName(pluginType, option)",
"v-model.lazy" => "timeFormat",
"type" => "text",
"class" => "form-control"}
%template(v-else)
%input{"v-bind:id" => "inputId(pluginType, option)",
"v-bind:name" => "inputName(pluginType, option)",
"v-bind:value" => "option.default",
"type" => "text",
"class" => "form-control"}