Merge branch 'dev' of github.com:jetlinks/jetlinks-ui-vue into dev

This commit is contained in:
wzyyy 2023-03-01 15:07:37 +08:00
commit a63be77691
1 changed files with 9 additions and 7 deletions

View File

@ -75,7 +75,7 @@ watchEffect(() => {
});
const insert = (val) => {
if (!instance) return
if (!instance) return;
const position = instance.getPosition();
instance.executeEdits(instance.getValue(), [
{
@ -88,17 +88,19 @@ const insert = (val) => {
text: val,
},
]);
}
};
watch(() => props.modelValue,
(val) => {
instance.setValue(val)
})
// watch(
// () => props.modelValue,
// (val) => {
// instance.setValue(val);
// },
// );
defineExpose({
editorFormat,
insert,
})
});
</script>
<style lang="less" scoped>