|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div
|
|
|
- class="RoySimpleText"
|
|
|
+ class="yvan-simple-text"
|
|
|
style="width: 100%; height: 100%"
|
|
|
@click="activeCell"
|
|
|
@contextmenu="setEdit"
|
|
@@ -32,7 +32,6 @@
|
|
|
<script>
|
|
|
import {mapState} from 'pinia'
|
|
|
import {globalStore} from "@/store"
|
|
|
-import toast from '@/utils/toast'
|
|
|
import commonMixin from '@/mixin/commonMixin'
|
|
|
import {StyledSimpleText} from '@/components/PageComponents/style'
|
|
|
|
|
@@ -142,8 +141,7 @@ export default {
|
|
|
let bindingDataSource = this.dataSource[index]
|
|
|
if (bindingDataSource) {
|
|
|
this.$emit('update:bindValue', bindingDataSource)
|
|
|
- // this.$emit('update:propValue', `[绑定:${bindingDataSource.title}]`)
|
|
|
- this.$store.commit('printTemplateModule/updateDataValue', {
|
|
|
+ globalStore().updateDataValue({
|
|
|
data: this.element,
|
|
|
value: `<span class="yvan-binding-value">[绑定:${bindingDataSource.title}]</span>`,
|
|
|
key: 'propValue'
|
|
@@ -155,7 +153,7 @@ export default {
|
|
|
this.canEdit = false
|
|
|
}
|
|
|
} else {
|
|
|
- toast('拖拽元素非数据源元素,此次拖拽无效', 'info')
|
|
|
+ System.toast('拖拽元素非数据源元素,此次拖拽无效', 'info')
|
|
|
}
|
|
|
},
|
|
|
handleDragEnter() {
|
|
@@ -191,7 +189,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
|
-.RoySimpleText {
|
|
|
+.yvan-simple-text {
|
|
|
.edit-area {
|
|
|
width: 100%;
|
|
|
height: 100%;
|