/
githubmirror
/
element
Обзор
Документация
Войти
/
githubmirror
/
element
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
examples/components/theme-configurator/editor/simpleText.vue
41 строка
745 B
iamkun
Chore: Theme Extension (#16686)
09 авг 2019, 12:53
Не верифицирован
09 авг 2019, 12:53
f29f49a
Код
Авторство
О чём код?
<template> <section class="config" :key="displayName"> <div class="config-label"> <el-tooltip :content="displayName" placement="top"> <span>{{displayKeyName}}</span> </el-tooltip> </div> <div class="config-content"> <theme-input :val="value" size="medium" @change="onChange" ></theme-input> </div> </section> </template> <script> import Input from './input'; import Mixin from './mixin'; export default { components: { themeInput: Input }, data() { return { value: '' }; }, mixins: [Mixin], watch: { 'mergedValue': { immediate: true, handler(value) { this.value = this.mergedValue; } } } }; </script>