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