修改页面显示

v1.2.0
于肖磊 2025-01-10 17:13:48 +08:00
parent 5bfa9eb9e5
commit 5853970519
3 changed files with 11 additions and 10 deletions

View File

@ -29,7 +29,7 @@
<p>3. 示例shortlink://#://ShopXO/WxblCyRUmDqGpcz</p> <p>3. 示例shortlink://#://ShopXO/WxblCyRUmDqGpcz</p>
<p class="title">拨打电话</p> <p class="title">拨打电话</p>
<p>1. 以tel://</p> <p>1. 以tel://</p>
<p>2. 例如tel://wx13222222222</p> <p>2. 例如tel://13222222222</p>
<p class="title">跳转原生地图查看指定位置</p> <p class="title">跳转原生地图查看指定位置</p>
<p>1. 以map://</p> <p>1. 以map://</p>
<p>2. 例如map://|||</p> <p>2. 例如map://|||</p>

View File

@ -188,7 +188,9 @@ const operation_end = (is_compare: boolean = true) => {
} }
// //
const new_compare_data = cloneDeep(draglist.value.diy_data); 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 (!is_compare || !isEqual(old_compare_data, new_compare_data)) {
// //
if (props.configType == 'custom') { if (props.configType == 'custom') {

View File

@ -209,7 +209,7 @@ const on_sort = (item: SortableEvent) => {
//#endregion //#endregion
//#region //#region
// //
const diy_data = toRef(props.list); const diy_data = ref(props.list);
// //
// onMounted(() => { // onMounted(() => {
// // // //
@ -879,8 +879,8 @@ const back = (index: number, type: string) => {
setIndex(type, new_index); setIndex(type, new_index);
const data = list[new_index]; const data = list[new_index];
if (!isEmpty(data)) { if (!isEmpty(data)) {
diy_data.value = data.value; diy_data.value = cloneDeep(data.value);
center_height.value = data?.height || center_height.value; center_height.value = cloneDeep(data?.height || center_height.value);
cancel(); cancel();
} }
} }
@ -895,8 +895,8 @@ const forward = (index: number, type: string) => {
setIndex(type, new_index); setIndex(type, new_index);
const data = list[new_index]; const data = list[new_index];
if (!isEmpty(data)) { if (!isEmpty(data)) {
diy_data.value = data.value; diy_data.value = cloneDeep(data.value);
center_height.value = data?.height || center_height.value; center_height.value = cloneDeep(data?.height || center_height.value);
cancel(); cancel();
} }
} }
@ -910,13 +910,12 @@ const handle_history = (index: number, type: string) => {
setIndex(type, index); setIndex(type, index);
const data = list[index]; const data = list[index];
if (!isEmpty(data)) { if (!isEmpty(data)) {
diy_data.value = data.value; diy_data.value = cloneDeep(data.value);
center_height.value = data?.height || center_height.value; center_height.value = cloneDeep(data?.height || center_height.value);
cancel(); cancel();
} }
} }
}; };
const handleKeyUp = (e: KeyboardEvent) => { const handleKeyUp = (e: KeyboardEvent) => {
// //
const default_list = ['textarea', 'input']; const default_list = ['textarea', 'input'];