添加提示

pull/930/merge
lyswhut 2022-04-02 22:14:47 +08:00
parent 26aab15e50
commit 28b7b5581d
5 changed files with 28 additions and 4 deletions

View File

@ -106,6 +106,7 @@
"list_sort_modal_by_up": "Ascending", "list_sort_modal_by_up": "Ascending",
"list_sort_modal_tip_confirm": "Are you sure you want to do this?", "list_sort_modal_tip_confirm": "Are you sure you want to do this?",
"list_update_modal__auto_update": "auto update", "list_update_modal__auto_update": "auto update",
"list_update_modal__tips": "💡 The list with \"Automatic Updates\" checked will be automatically updated each time the software is launched",
"list_update_modal__title": "List update management", "list_update_modal__title": "List update management",
"list_update_modal__update": "Sync", "list_update_modal__update": "Sync",
"lists__duplicate": "Duplicate song", "lists__duplicate": "Duplicate song",

View File

@ -106,6 +106,7 @@
"list_sort_modal_by_up": "升序", "list_sort_modal_by_up": "升序",
"list_sort_modal_tip_confirm": "你确定要这么做吗?", "list_sort_modal_tip_confirm": "你确定要这么做吗?",
"list_update_modal__auto_update": "自动更新", "list_update_modal__auto_update": "自动更新",
"list_update_modal__tips": "💡 每次启动软件时将会自动更新已勾选“自动更新”的列表",
"list_update_modal__title": "列表更新管理", "list_update_modal__title": "列表更新管理",
"list_update_modal__update": "立即更新", "list_update_modal__update": "立即更新",
"lists__duplicate": "重复歌曲", "lists__duplicate": "重复歌曲",

View File

@ -106,6 +106,7 @@
"list_sort_modal_by_up": "升序", "list_sort_modal_by_up": "升序",
"list_sort_modal_tip_confirm": "你確定要這麼做嗎?", "list_sort_modal_tip_confirm": "你確定要這麼做嗎?",
"list_update_modal__auto_update": "自動更新", "list_update_modal__auto_update": "自動更新",
"list_update_modal__tips": "💡 每次啟動軟件時將會自動更新已勾選“自動更新”的列表",
"list_update_modal__title": "列表更新管理", "list_update_modal__title": "列表更新管理",
"list_update_modal__update": "立即更新", "list_update_modal__update": "立即更新",
"lists__duplicate": "重複歌曲", "lists__duplicate": "重複歌曲",

View File

@ -27,6 +27,9 @@
<p v-text="$t('no_item')"></p> <p v-text="$t('no_item')"></p>
</div> </div>
</main> </main>
<div :class="$style.footer">
<div :class="$style.tips">{{$t('list_update_modal__tips')}}</div>
</div>
</material-modal> </material-modal>
</template> </template>
@ -73,6 +76,8 @@ export default {
<style lang="less" module> <style lang="less" module>
@import '@renderer/assets/styles/layout.less'; @import '@renderer/assets/styles/layout.less';
@width: 460px;
.header { .header {
flex: none; flex: none;
padding: 15px; padding: 15px;
@ -83,7 +88,7 @@ export default {
} }
.main { .main {
min-height: 200px; min-height: 200px;
width: 460px; width: @width;
} }
.list { .list {
@ -93,7 +98,7 @@ export default {
position: relative; position: relative;
.listItem { .listItem {
position: relative; position: relative;
padding: 15px 10px; padding: 15px 10px 15px 15px;
transition: .3s ease; transition: .3s ease;
transition-property: background-color, opacity; transition-property: background-color, opacity;
line-height: 1.3; line-height: 1.3;
@ -126,6 +131,7 @@ export default {
.text { .text {
flex: auto; flex: auto;
margin-bottom: 2px;
.mixin-ellipsis-1; .mixin-ellipsis-1;
} }
.checkbox { .checkbox {
@ -179,6 +185,15 @@ export default {
} }
} }
.footer {
width: @width;
}
.tips {
padding: 8px 15px;
font-size: 13px;
line-height: 1.25;
color: @color-theme_2-font;
}
.no-item { .no-item {
position: relative; position: relative;
@ -210,6 +225,9 @@ each(@themes, {
background-color: ~'@{color-@{value}-theme_2-active}'; background-color: ~'@{color-@{value}-theme_2-active}';
} }
} }
.note {
color: ~'@{color-@{value}-theme_2-font}';
}
.no-item { .no-item {
p { p {
color: ~'@{color-@{value}-theme_2-font-label}'; color: ~'@{color-@{value}-theme_2-font-label}';

View File

@ -2,7 +2,7 @@
<div :class="$style.lists" ref="dom_lists"> <div :class="$style.lists" ref="dom_lists">
<div :class="$style.listHeader"> <div :class="$style.listHeader">
<h2 :class="$style.listsTitle">{{$t('my_list')}}</h2> <h2 :class="$style.listsTitle">{{$t('my_list')}}</h2>
<div> <div :class="$style.headerBtns">
<button :class="$style.listsAdd" @click="handleShowNewList" :aria-label="$t('lists__new_list_btn')"> <button :class="$style.listsAdd" @click="handleShowNewList" :aria-label="$t('lists__new_list_btn')">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" height="70%" viewBox="0 0 24 24" space="preserve"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" height="70%" viewBox="0 0 24 24" space="preserve">
<use xlink:href="#icon-list-add"></use> <use xlink:href="#icon-list-add"></use>
@ -499,7 +499,6 @@ export default {
display: flex; display: flex;
flex-flow: row nowrap; flex-flow: row nowrap;
border-bottom: 1px solid rgba(0, 0, 0, 0.12); border-bottom: 1px solid rgba(0, 0, 0, 0.12);
justify-content: space-between;
&:hover { &:hover {
.listsAdd { .listsAdd {
opacity: 1; opacity: 1;
@ -507,9 +506,13 @@ export default {
} }
} }
.listsTitle { .listsTitle {
flex: auto;
font-size: 12px; font-size: 12px;
line-height: 38px; line-height: 38px;
padding: 0 10px; padding: 0 10px;
.mixin-ellipsis-1;
}
.headerBtns {
flex: none; flex: none;
} }
.listsAdd { .listsAdd {