| | |
| | | v-for="(item, i) in tabList"
|
| | | :class="activePage == i ? 'menu-item-active' : ''"
|
| | | :key="i"
|
| | | @click="openRight(item, i)"
|
| | | @click="openRight( i)"
|
| | | ref="leftbar"
|
| | | >
|
| | | <span class="iconfont">{{ item.icon }}</span>
|
| | | <img :src="item.icon_black" alt="" v-if="activePage != i" class="secondIcon">
|
| | | <img :src="item.icon_white" alt="" v-else class="secondIcon">
|
| | | <span class="title">{{ item.name }}</span>
|
| | | </div>
|
| | | </div>
|
| | | <div class="language-right">
|
| | | <div class="lang" v-if="activePage == 0">
|
| | | <div class="title">语言列表</div>
|
| | | <div class="bar title">语言列表</div>
|
| | | <div
|
| | | class="bar"
|
| | | v-for="(item, i) in langList"
|
| | |
| | | <span class="name">{{ item.Name }}</span>
|
| | | <span
|
| | | class="icon iconfont"
|
| | | style="color: #3d68e1;font-size:18px;"
|
| | | style="color: var(--colorCard);font-size:16px;"
|
| | | v-show="activeLang == item.Lang"
|
| | | ></span
|
| | | ></span
|
| | | >
|
| | | </div>
|
| | | </div>
|
| | | <div class="lang" v-if="activePage == 1">
|
| | | <div class="title">键盘布局</div>
|
| | | <div class="title bar">键盘布局</div>
|
| | | <div
|
| | | class="bar"
|
| | | v-for="(item, i) in keyboardList"
|
| | |
| | | <span class="name">{{ item.name }}</span>
|
| | | <span
|
| | | class="icon iconfont"
|
| | | style="color: #3d68e1;font-size:18px;"
|
| | | style="color: #4E94FF;font-size:16px;"
|
| | | v-show="activeKb == item.id"
|
| | | ></span
|
| | | ></span
|
| | | >
|
| | | </div>
|
| | | </div>
|
| | |
| | | langList: [],
|
| | | keyboardList: [],
|
| | | tabList: [
|
| | | { name: "系统语言", icon: "\ue6e8" },
|
| | | { name: "键盘管理", icon: "\ue6fe" },
|
| | | { name: "系统语言", icon: "\ue74a" ,icon_white:"/images/settings/语言-白.png",icon_black:"/images/settings/语言-黑.png"},
|
| | | { name: "键盘管理", icon: "\ue74e" ,icon_white:"/images/settings/键盘-白.png",icon_black:"/images/settings/键盘-黑.png"},
|
| | | ],
|
| | | activePage: 0,
|
| | | };
|
| | |
| | | }
|
| | | );
|
| | | },
|
| | | openRight(item, i) {
|
| | | openRight(i) {
|
| | | this.activePage = i;
|
| | | },
|
| | | },
|
| | |
| | | }
|
| | |
|
| | | .kb-content {
|
| | | font-weight: 700;
|
| | | height: 100%;
|
| | | display: flex;
|
| | | flex-direction: row;
|
| | |
| | | box-sizing: border-box;
|
| | | .kb-center {
|
| | | height: 100%;
|
| | | width: 280px;
|
| | | width: 300px;
|
| | | overflow: auto;
|
| | | box-sizing: border-box;
|
| | | flex-shrink: 0;
|
| | | padding: 10px;
|
| | | border-right: 5px solid #f8f8f8;
|
| | | padding: 6px 10px 0px 10px;
|
| | | background-color: #FBFAFF;
|
| | | border-right: 4px solid #F2F2F7;
|
| | | border-top: 4px solid #F2F2F7;
|
| | | border-left: 4px solid #F2F2F7;
|
| | | .menu-item {
|
| | | background-color: #f8f8f8;
|
| | | height: 50px;
|
| | | margin-bottom: 10px;
|
| | | /* background-color: #F2F2F7; */
|
| | | height: 56px;
|
| | | margin-bottom: 4px;
|
| | | border-radius: 8px;
|
| | | line-height: 50px;
|
| | | line-height: 56px;
|
| | | box-sizing: border-box;
|
| | | font-size: 14px;
|
| | | padding: 0 20px;
|
| | | padding: 0 20px;cursor: pointer;
|
| | | display: flex;
|
| | | align-items: center;
|
| | | color: #4F4F4F;
|
| | | .title {
|
| | | font-size: 16px;
|
| | | font-weight: 700;
|
| | | }
|
| | | .iconfont {
|
| | | margin-right: 10px;
|
| | | font-size: 19px;
|
| | | .secondIcon {
|
| | | margin: 15px;
|
| | | width: 24px;
|
| | | height: 24px;
|
| | | }
|
| | | }
|
| | | .menu-item-active {
|
| | | background-color: #3d68e1;
|
| | | background-color: var(--colorCard) !important;
|
| | | color: white;
|
| | | |
| | | }
|
| | | .menu-item:hover {
|
| | | background-color: #3d68e1;
|
| | | color: white;
|
| | | background-color: #F2F2F7;
|
| | | }
|
| | | }
|
| | | .language-right {
|
| | |
| | | overflow: auto;
|
| | | box-sizing: border-box;
|
| | | position: relative;
|
| | | padding: 20px 40px;
|
| | | padding: 10px;
|
| | | padding-top: 6px;
|
| | | border-top: 4px solid #F2F2F7;
|
| | | .el-form-item.is-required:not(.is-no-asterisk)
|
| | | > .el-form-item__label:before,
|
| | | .el-form-item.is-required:not(.is-no-asterisk)
|
| | |
| | | max-width: none !important;
|
| | | }
|
| | | .lang {
|
| | | .title {
|
| | | height: 30px;
|
| | | line-height: 30px;
|
| | | font-size: 16px;
|
| | | margin-bottom: 10px;
|
| | | }
|
| | | .bar {
|
| | | height: 48px;
|
| | | background-color: #f8f8f8;
|
| | | border-radius: 10px;
|
| | | border-radius: 8px;
|
| | | line-height: 50px;
|
| | | box-sizing: border-box;
|
| | | padding: 0 20px;
|
| | | box-sizing: content-box;
|
| | | padding: 0 15px 0 20px;
|
| | | display: flex;
|
| | | justify-content: space-between;
|
| | | cursor: pointer;
|
| | | margin-bottom: 12px;
|
| | | margin-bottom: 4px;
|
| | | border: 2px solid #f8f8f8;
|
| | | .name{
|
| | | font-size: 15px;
|
| | | font-size: 14px;
|
| | | }
|
| | | }
|
| | | .bar:hover{
|
| | | background-color: #e9e9e9;
|
| | | border: 2px solid var(--colorCard);
|
| | | }
|
| | | .title {
|
| | | cursor:default ;
|
| | | font-size: 16px;
|
| | | justify-content: center;
|
| | | border: 2px solid #f8f8f8 !important;
|
| | | }
|
| | | }
|
| | | .save-btn {
|
| | | /* .save-btn {
|
| | | background-color: #3d68e1;
|
| | | width: 240px;
|
| | | height: 40px;
|
| | |
| | | line-height: 40px;
|
| | | font-size: 14px;
|
| | | margin-top: 20px;
|
| | | }
|
| | | } */
|
| | | }
|
| | | }
|
| | | </style>
|