chore: init theme (#14508)

* chore: init theme

* chore: update faas config
This commit is contained in:
iamkun
2019-02-28 16:00:59 +08:00
committed by Zhi Cun
parent 2604c6192f
commit febdd3bbb4
63 changed files with 5552 additions and 805 deletions

View File

@@ -0,0 +1,45 @@
<template>
<el-input
@keyup.enter.native="onUpdate"
v-model="value"
@blur="onUpdate"
v-bind="$attrs"
>
<template slot="suffix">
<slot name="suffix"></slot>
</template>
</el-input>
</template>
<script>
export default {
props: ['val', 'onChange'],
data() {
return {
value: '',
oldValue: ''
};
},
methods: {
onUpdate(e) {
const { value } = e.target;
if (value !== this.oldValue) {
this.oldValue = value;
this.$emit('change', value);
}
}
},
watch: {
val: {
immediate: true,
handler(value) {
this.value = value;
if (!this.oldValue) {
this.oldValue = value;
}
}
}
}
};
</script>