| | |
| | | </div> |
| | | </div> |
| | | <layer-set v-show="layerSetIsshow" @SETstate="SETstate"></layer-set> |
| | | <attribute-list></attribute-list> |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | |
| | | defineEmits, |
| | | } from "vue"; |
| | | import layerSet from "./layerSet"; |
| | | import attributeList from "./attributeList"; |
| | | const stretchValue = ref(""); |
| | | |
| | | const stretchOptions = [ |
| | |
| | | }; |
| | | const clickdropdown = (res) => { |
| | | console.log(res); |
| | | }; |
| | | const remove = (node: Node, data: Tree) => { |
| | | const parent = node.parent; |
| | | const children: Tree[] = parent.data.children || parent.data; |
| | | const index = children.findIndex((d) => d.id === data.id); |
| | | children.splice(index, 1); |
| | | // menuOption.value = [...menuOption.value]; |
| | | }; |
| | | let id = 1000; |
| | | const append = (data: Tree) => { |
| | | const newChild = { id: id++, name: "testtest", children: [] }; |
| | | if (!data.children) { |
| | | data.children = []; |
| | | } |
| | | data.children.push(newChild); |
| | | // console.log(data); |
| | | // menuOption = [...menuOption]; |
| | | // console.log(menuOption); |
| | | }; |
| | | </script> |
| | | |