瀏覽代碼

编辑器-导航-场景导航:新增分组时可用enter键操作

任一存 3 年之前
父節點
當前提交
e646ff520f

+ 1 - 0
packages/code/src/views/information/index.vue

@@ -1,4 +1,5 @@
 <template>
+<!-- todo: 用不到了? -->
   <div>
     <setting @select="handleInitScene"></setting>
     <toolbar

+ 2 - 0
packages/code/src/views/navigation/groupSettings.vue

@@ -44,6 +44,7 @@
             placeholder="请输入分组名称,限15个字"
             v-model.trim="newGroupName"
             maxlength="15"
+            @keydown.enter="newGroupName && onConfirmAddingGroup()"
           >
         </div>
 
@@ -53,6 +54,7 @@
           </button>
           <button
             class="ui-button submit"
+            :class="{disable: !newGroupName}"
             @click="onConfirmAddingGroup"
           >
             确定

+ 1 - 0
packages/code/src/views/navigation/index.vue

@@ -1,4 +1,5 @@
 <template>
+<!-- todo: 哪里用到了? -->
   <div class="editor-navigation">
     <GroupSettings
       class="group-settings-area"