parent
49070e7118
commit
3902b16e2b
|
|
@ -43,8 +43,13 @@ if (props.type == 'card') {
|
||||||
// 不是卡片类型的设置居中显示
|
// 不是卡片类型的设置居中显示
|
||||||
className.value = 'align-c';
|
className.value = 'align-c';
|
||||||
}
|
}
|
||||||
|
watch(
|
||||||
const from = computed(() => props.data);
|
() => props.data,
|
||||||
|
() => {
|
||||||
|
from.value = props.data;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
const from = ref(props.data);
|
||||||
|
|
||||||
const on_click = (item: any, index: number) => {
|
const on_click = (item: any, index: number) => {
|
||||||
emits('click', item, index);
|
emits('click', item, index);
|
||||||
|
|
@ -58,7 +63,7 @@ const edit = (index: number) => {
|
||||||
};
|
};
|
||||||
// 拖拽更新之后用户更新数据
|
// 拖拽更新之后用户更新数据
|
||||||
const on_sort = () => {
|
const on_sort = () => {
|
||||||
emits('onSort', from);
|
emits('onSort', from.value);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
@ -70,7 +75,8 @@ const on_sort = () => {
|
||||||
.size-16 {
|
.size-16 {
|
||||||
font-size: 1.6rem !important;
|
font-size: 1.6rem !important;
|
||||||
}
|
}
|
||||||
.icon-del-o, .icon-commodity-edit {
|
.icon-del-o,
|
||||||
|
.icon-commodity-edit {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.cursor-move {
|
.cursor-move {
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,6 @@ const init = () => {
|
||||||
link_select.value = props.type[0];
|
link_select.value = props.type[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(link_select.value);
|
|
||||||
url_value_store.set_url_value(res.data);
|
url_value_store.set_url_value(res.data);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue