From 36f2140b322d6c7e623b3ad83b5ac3b5813095e6 Mon Sep 17 00:00:00 2001
From: Jevan Tang <22316055+jevantang@users.noreply.github.com>
Date: Tue, 4 Jun 2024 05:52:27 +0800
Subject: [PATCH] refactor: key name
---
sdk/editor/editor.js | 6 +++---
sdk/editor/editor.wxml | 2 +-
sdk/editor/tips/edit-controls/edit-controls.js | 2 +-
sdk/editor/tips/edit-controls/edit-controls.wxml | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/sdk/editor/editor.js b/sdk/editor/editor.js
index b0f23ef..f485597 100644
--- a/sdk/editor/editor.js
+++ b/sdk/editor/editor.js
@@ -52,7 +52,7 @@ Component({
draftSelector: false,
editorForm: false,
- editControls: {},
+ controls: {},
draftDetail: {},
archiveGroupConfigs: [],
@@ -110,7 +110,7 @@ Component({
this.setData({
draftSelector: false,
editorForm: true,
- editControls: draftData.editControls,
+ controls: draftData.controls,
draftDetail: draftData.detail,
did: draftData.detail.did,
});
@@ -361,7 +361,7 @@ Component({
if (detailRes.code == 0) {
this.setData({
- editControls: detailRes.data.editControls,
+ controls: detailRes.data.controls,
draftDetail: detailRes.data.detail,
});
}
diff --git a/sdk/editor/editor.wxml b/sdk/editor/editor.wxml
index d999887..9540278 100644
--- a/sdk/editor/editor.wxml
+++ b/sdk/editor/editor.wxml
@@ -8,7 +8,7 @@
-
+
diff --git a/sdk/editor/tips/edit-controls/edit-controls.js b/sdk/editor/tips/edit-controls/edit-controls.js
index dd49d94..17bf029 100644
--- a/sdk/editor/tips/edit-controls/edit-controls.js
+++ b/sdk/editor/tips/edit-controls/edit-controls.js
@@ -8,7 +8,7 @@ import { fresnsLang } from '../../../helpers/configs';
Component({
/** 组件的属性列表 **/
properties: {
- editControls: {
+ controls: {
type: Object,
value: {},
},
diff --git a/sdk/editor/tips/edit-controls/edit-controls.wxml b/sdk/editor/tips/edit-controls/edit-controls.wxml
index bbbb4f4..e2757ae 100644
--- a/sdk/editor/tips/edit-controls/edit-controls.wxml
+++ b/sdk/editor/tips/edit-controls/edit-controls.wxml
@@ -4,9 +4,9 @@
Licensed under the Apache-2.0 license
* -->
-
+
{{fresnsLang.editorEditTimeTitle}}
- {{fresnsLang.editorEditTimeDesc}}: {{editControls.editableTime}} ({{editControls.deadlineTime}})
+ {{fresnsLang.editorEditTimeDesc}}: {{controls.editableTime}} ({{controls.deadlineTime}})
{{fresnsLang.errorTimeout}}