修改页面显示
parent
5bfa9eb9e5
commit
5853970519
|
|
@ -29,7 +29,7 @@
|
|||
<p>3. 示例:shortlink://#小程序://ShopXO系统/WxblCyRUmDqGpcz</p>
|
||||
<p class="title">拨打电话</p>
|
||||
<p>1. 以tel://开头</p>
|
||||
<p>2. 例如:tel://wx13222222222</p>
|
||||
<p>2. 例如:tel://13222222222</p>
|
||||
<p class="title">跳转原生地图查看指定位置</p>
|
||||
<p>1. 以map://开头</p>
|
||||
<p>2. 例如:map://名称|地址|经度|纬度</p>
|
||||
|
|
|
|||
|
|
@ -188,7 +188,9 @@ const operation_end = (is_compare: boolean = true) => {
|
|||
}
|
||||
// 新的数据
|
||||
const new_compare_data = cloneDeep(draglist.value.diy_data);
|
||||
|
||||
console.log(old_compare_data);
|
||||
console.log(new_compare_data);
|
||||
console.log(!isEqual(old_compare_data, new_compare_data));
|
||||
if (!is_compare || !isEqual(old_compare_data, new_compare_data)) {
|
||||
// 如果是自定点击完成,需要将数据传递给父组件
|
||||
if (props.configType == 'custom') {
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ const on_sort = (item: SortableEvent) => {
|
|||
//#endregion
|
||||
//#region 中间区域的处理逻辑
|
||||
// 数据只需要一次更新即可,避免多次更新导致数据不一致
|
||||
const diy_data = toRef(props.list);
|
||||
const diy_data = ref(props.list);
|
||||
// 因为容器变更的话,需要重新计算高度,所以不能默认选中第一个
|
||||
// onMounted(() => {
|
||||
// // 如果默认不等于空的话,则默认选中第一个
|
||||
|
|
@ -879,8 +879,8 @@ const back = (index: number, type: string) => {
|
|||
setIndex(type, new_index);
|
||||
const data = list[new_index];
|
||||
if (!isEmpty(data)) {
|
||||
diy_data.value = data.value;
|
||||
center_height.value = data?.height || center_height.value;
|
||||
diy_data.value = cloneDeep(data.value);
|
||||
center_height.value = cloneDeep(data?.height || center_height.value);
|
||||
cancel();
|
||||
}
|
||||
}
|
||||
|
|
@ -895,8 +895,8 @@ const forward = (index: number, type: string) => {
|
|||
setIndex(type, new_index);
|
||||
const data = list[new_index];
|
||||
if (!isEmpty(data)) {
|
||||
diy_data.value = data.value;
|
||||
center_height.value = data?.height || center_height.value;
|
||||
diy_data.value = cloneDeep(data.value);
|
||||
center_height.value = cloneDeep(data?.height || center_height.value);
|
||||
cancel();
|
||||
}
|
||||
}
|
||||
|
|
@ -910,13 +910,12 @@ const handle_history = (index: number, type: string) => {
|
|||
setIndex(type, index);
|
||||
const data = list[index];
|
||||
if (!isEmpty(data)) {
|
||||
diy_data.value = data.value;
|
||||
center_height.value = data?.height || center_height.value;
|
||||
diy_data.value = cloneDeep(data.value);
|
||||
center_height.value = cloneDeep(data?.height || center_height.value);
|
||||
cancel();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const handleKeyUp = (e: KeyboardEvent) => {
|
||||
// 排除默认事件
|
||||
const default_list = ['textarea', 'input'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue