TreeSelect demo fixes

pull/4101/head^2
Tuğçe Küçükoğlu 2023-07-06 17:03:51 +03:00
parent e961e48c81
commit 883b44426c
8 changed files with 51 additions and 25 deletions

View File

@ -14,6 +14,7 @@
<script>
import { NodeService } from '/service/NodeService';
export default {
data() {
return {
@ -30,6 +31,8 @@ export default {
</template>
<script>
import { NodeService } from './service/NodeService';
export default {
data() {
return {
@ -51,6 +54,7 @@ export default {
<script setup>
import { ref, onMounted } from 'vue';
import { NodeService } from './service/NodeService';
const nodes = ref(null);
const selectedValue = ref(null);

View File

@ -15,6 +15,7 @@
<script>
import { NodeService } from '/service/NodeService';
export default {
data() {
return {
@ -40,6 +41,8 @@ export default {
</template>
<script>
import { NodeService } from './service/NodeService';
export default {
data() {
return {
@ -61,6 +64,7 @@ mounted() {
<script setup>
import { ref, onMounted } from 'vue';
import { NodeService } from './service/NodeService';
const nodes = ref(null);
const selectedValue = ref(null);

View File

@ -26,6 +26,8 @@ export default {
</template>
<script>
import { NodeService } from './service/NodeService';
export default {
data() {
return {
@ -47,6 +49,7 @@ export default {
<script setup>
import { ref, onMounted } from 'vue';
import { NodeService } from './service/NodeService';
const nodes = ref(null);
const selectedValue = ref(null);

View File

@ -13,6 +13,7 @@
<script>
import { NodeService } from '/service/NodeService';
export default {
data() {
return {
@ -33,6 +34,8 @@ export default {
</template>
<script>
import { NodeService } from './service/NodeService';
export default {
data() {
return {
@ -56,6 +59,7 @@ export default {
<script setup>
import { ref, onMounted } from 'vue';
import { NodeService } from './service/NodeService';
const nodes = ref(null);
const selectedValue = ref(null);

View File

@ -10,6 +10,7 @@
<script>
import { NodeService } from '/service/NodeService';
export default {
data() {
return {
@ -26,6 +27,8 @@ export default {
</template>
<script>
import { NodeService } from './service/NodeService';
export default {
data() {
return {
@ -47,6 +50,7 @@ NodeService.getTreeNodes().then((data) => (this.nodes = data));
<script setup>
import { ref, onMounted } from 'vue';
import { NodeService } from './service/NodeService';
const nodes = ref(null);
const selectedValue = ref(null);

View File

@ -38,6 +38,8 @@ export default {
</template>
<script>
import { NodeService } from './service/NodeService';
export default {
data() {
return {
@ -59,6 +61,7 @@ export default {
<script setup>
import { ref, onMounted } from 'vue';
import { NodeService } from './service/NodeService';
const nodes = ref(null);
const selectedValue = ref(null);

View File

@ -67,6 +67,7 @@ export default {
import { useToast } from 'primevue/usetoast';
import { useField, useForm } from 'vee-validate';
import { NodeService } from '@/service/NodeService';
export default {
setup() {
const { handleSubmit, resetForm } = useForm();

View File

@ -60,6 +60,8 @@ export default {
</template>
<script>
import { NodeService } from './service/NodeService';
export default {
data() {
return {
@ -93,6 +95,7 @@ export default {
<script setup>
import { ref, onMounted } from 'vue';
import { NodeService } from './service/NodeService';
const nodes = ref(null);
const selectedValue = ref(null);