Commit 533b350d authored by yuanchongyou's avatar yuanchongyou

初步完成

parent 44a337f3
......@@ -19,6 +19,7 @@
</template>
<script>
import { mapState} from 'vuex';
import SimpleColor from './colorpage/SimpleColor';
import SizeInput from './colorpage/SizeInput'
export default {
......@@ -43,6 +44,9 @@ export default {
mounted() {
this.textStyle()
},
computed:{
...mapState(['layerStyle']),
},
methods: {
hide() {
this.visible = false;
......@@ -58,7 +62,6 @@ export default {
this.$emit('styleLayer', this.subObj);
},
InputChange(item){
console.log(item,'注记')
if(item.type === 'size'){
this.layerstroke.msg = item.msg
}else{
......@@ -77,6 +80,22 @@ export default {
let d = "true"
let obj2 = {[[c]]:d}
Object.assign(this.subObj,obj2)
if((this.layerStyle.id === 'agnp') || (this.layerStyle.id === 'agnp_shcs')){
let c = 'et_content'
let d = "[NAME]"
let obj2 = {[[c]]:d}
Object.assign(this.subObj,obj2)
}else if(this.layerStyle.id === 'mark') {
let c = 'et_content'
let d = "[TextString]"
let obj2 = {[[c]]:d}
Object.assign(this.subObj,obj2)
}else {
let c = 'et_content'
let d = "[XZNAME]"
let obj2 = {[[c]]:d}
Object.assign(this.subObj,obj2)
}
this.$emit('styleLayer', this.subObj);
}
},
......
......@@ -172,8 +172,8 @@ export default {
layerStyle(val){
this.drawerTitle = val
this.styleVisible = true;
console.log(val,'val')
this.getlayerstyle(val)
},
afterVisibleChange(val) {
console.log('visible', val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment