bugfix: 清除标签后同步style弹窗
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { ref, watch } from 'vue'
|
||||
import { getStyleImage } from '../style'
|
||||
import type { OptionItem } from './types'
|
||||
|
||||
@@ -69,6 +69,14 @@
|
||||
const tempSelectedValue = ref('')
|
||||
const stylePopupVisible = ref(false)
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
(value) => {
|
||||
tempSelectedValue.value = value
|
||||
},
|
||||
{ immediate: true }
|
||||
)
|
||||
|
||||
const openStylePopup = () => {
|
||||
tempSelectedValue.value = props.modelValue
|
||||
stylePopupVisible.value = true
|
||||
|
||||
Reference in New Issue
Block a user