diff options
| author | Henry Jameson <me@hjkos.com> | 2022-03-27 14:16:23 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-03-27 14:16:23 +0300 |
| commit | 53cde520276af98a9b2b20cd0e8acf7bde768e70 (patch) | |
| tree | 6e2043b356d69de83e0fff3808ee825fe0db8caf /src/components/font_control/font_control.js | |
| parent | 75f6506bc7e490dd544548db7bcccbe0420d2727 (diff) | |
fix font control
Diffstat (limited to 'src/components/font_control/font_control.js')
| -rw-r--r-- | src/components/font_control/font_control.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/font_control/font_control.js b/src/components/font_control/font_control.js index 24bad937..92ee3f30 100644 --- a/src/components/font_control/font_control.js +++ b/src/components/font_control/font_control.js @@ -6,11 +6,12 @@ export default { Select }, props: [ - 'name', 'label', 'value', 'fallback', 'options', 'no-inherit' + 'name', 'label', 'modelValue', 'fallback', 'options', 'no-inherit' ], + emits: ['update:modelValue'], data () { return { - lValue: this.value, + lValue: this.modelValue, availableOptions: [ this.noInherit ? '' : 'inherit', 'custom', @@ -22,7 +23,7 @@ export default { } }, beforeUpdate () { - this.lValue = this.value + this.lValue = this.modelValue }, computed: { present () { @@ -37,7 +38,7 @@ export default { }, set (v) { set(this.lValue, 'family', v) - this.$emit('input', this.lValue) + this.$emit('update:modelValue', this.lValue) } }, isCustom () { |
