Skip to content

Commit

Permalink
refactor: key name
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Jun 3, 2024
1 parent d88b12f commit 36f2140
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions sdk/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Component({
draftSelector: false,

editorForm: false,
editControls: {},
controls: {},
draftDetail: {},

archiveGroupConfigs: [],
Expand Down Expand Up @@ -110,7 +110,7 @@ Component({
this.setData({
draftSelector: false,
editorForm: true,
editControls: draftData.editControls,
controls: draftData.controls,
draftDetail: draftData.detail,
did: draftData.detail.did,
});
Expand Down Expand Up @@ -361,7 +361,7 @@ Component({

if (detailRes.code == 0) {
this.setData({
editControls: detailRes.data.editControls,
controls: detailRes.data.controls,
draftDetail: detailRes.data.detail,
});
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/editor/editor.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<view class="editor-tip">
<tip-publish-perm wx:if="{{!publishPerm.draft || !publishPerm.publish}}" publishPerm="{{publishPerm}}"/>
<tip-publish-limit wx:if="{{publishLimit.status && publishLimit.isInTime}}" publishLimit="{{publishLimit}}"/>
<tip-edit-controls wx:if="{{editControls.isEditDraft}}" editControls="{{editControls}}"/>
<tip-edit-controls wx:if="{{controls.isEditDraft}}" controls="{{controls}}"/>
</view>

<!-- 草稿选择器 -->
Expand Down
2 changes: 1 addition & 1 deletion sdk/editor/tips/edit-controls/edit-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { fresnsLang } from '../../../helpers/configs';
Component({
/** 组件的属性列表 **/
properties: {
editControls: {
controls: {
type: Object,
value: {},
},
Expand Down
4 changes: 2 additions & 2 deletions sdk/editor/tips/edit-controls/edit-controls.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
Licensed under the Apache-2.0 license
* -->
<view class="editor-edit-tip">
<block wx:if="{{editControls.editableStatus}}">
<block wx:if="{{controls.editableStatus}}">
<view class="tip-title">{{fresnsLang.editorEditTimeTitle}}</view>
<view class="tip-desc">{{fresnsLang.editorEditTimeDesc}}: {{editControls.editableTime}} ({{editControls.deadlineTime}})</view>
<view class="tip-desc">{{fresnsLang.editorEditTimeDesc}}: {{controls.editableTime}} ({{controls.deadlineTime}})</view>
</block>
<block wx:else>
<view class="tip-title">{{fresnsLang.errorTimeout}}</view>
Expand Down

0 comments on commit 36f2140

Please sign in to comment.