mirror of
https://github.com/Codennnn/vue-color-avatar.git
synced 2024-12-22 12:02:38 +00:00
Tweet i18n
This commit is contained in:
parent
8844b9b42a
commit
134928023d
@ -46,20 +46,6 @@
|
|||||||
:key="s.widgetType"
|
:key="s.widgetType"
|
||||||
:title="t(`widgetType.${s.widgetType}`)"
|
:title="t(`widgetType.${s.widgetType}`)"
|
||||||
>
|
>
|
||||||
<ul class="widget-list">
|
|
||||||
<li
|
|
||||||
v-for="it in s.widgetList"
|
|
||||||
:key="it.widgetShape"
|
|
||||||
class="list-item"
|
|
||||||
:class="{
|
|
||||||
selected:
|
|
||||||
it.widgetShape === avatarOption.widgets?.[s.widgetType]?.shape,
|
|
||||||
}"
|
|
||||||
@click="switchWidget(s.widgetType, it.widgetShape)"
|
|
||||||
v-html="it.svgRaw"
|
|
||||||
/>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<details
|
<details
|
||||||
v-if="
|
v-if="
|
||||||
s.widgetType === WidgetType.Tops ||
|
s.widgetType === WidgetType.Tops ||
|
||||||
@ -79,6 +65,20 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<ul class="widget-list">
|
||||||
|
<li
|
||||||
|
v-for="it in s.widgetList"
|
||||||
|
:key="it.widgetShape"
|
||||||
|
class="list-item"
|
||||||
|
:class="{
|
||||||
|
selected:
|
||||||
|
it.widgetShape === avatarOption.widgets?.[s.widgetType]?.shape,
|
||||||
|
}"
|
||||||
|
@click="switchWidget(s.widgetType, it.widgetShape)"
|
||||||
|
v-html="it.svgRaw"
|
||||||
|
/>
|
||||||
|
</ul>
|
||||||
</SectionWrapper>
|
</SectionWrapper>
|
||||||
</div>
|
</div>
|
||||||
</PerfectScrollbar>
|
</PerfectScrollbar>
|
||||||
@ -253,7 +253,7 @@ function setWidgetColor(widgetType: WidgetType, fillColor: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.color-picker {
|
.color-picker {
|
||||||
margin-top: 1rem;
|
margin: 1rem 0 0.5rem 0;
|
||||||
|
|
||||||
summary {
|
summary {
|
||||||
color: darken(var.$color-text, 20);
|
color: darken(var.$color-text, 20);
|
||||||
|
@ -227,7 +227,6 @@ async function make() {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
color: var.$color-text;
|
color: var.$color-text;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
letter-spacing: 0.1rem;
|
|
||||||
background: var.$color-gray;
|
background: var.$color-gray;
|
||||||
border-radius: 0.4rem;
|
border-radius: 0.4rem;
|
||||||
border-radius: 0.6rem;
|
border-radius: 0.6rem;
|
||||||
|
@ -8,7 +8,7 @@ export default {
|
|||||||
code: 'code',
|
code: 'code',
|
||||||
randomize: 'Randomize',
|
randomize: 'Randomize',
|
||||||
download: 'Download',
|
download: 'Download',
|
||||||
downloadMultiple: 'Download multiple',
|
downloadMultiple: 'Generate multiple',
|
||||||
copyCode: 'Copy',
|
copyCode: 'Copy',
|
||||||
copied: 'Copied',
|
copied: 'Copied',
|
||||||
downloading: 'Downloading',
|
downloading: 'Downloading',
|
||||||
|
@ -8,7 +8,7 @@ export default {
|
|||||||
code: '配置代码',
|
code: '配置代码',
|
||||||
randomize: '随机生成',
|
randomize: '随机生成',
|
||||||
download: '下载头像',
|
download: '下载头像',
|
||||||
downloadMultiple: '批量下载',
|
downloadMultiple: '批量生成',
|
||||||
copyCode: '复制代码',
|
copyCode: '复制代码',
|
||||||
copied: '已复制',
|
copied: '已复制',
|
||||||
downloading: '准备下载',
|
downloading: '准备下载',
|
||||||
|
Loading…
Reference in New Issue
Block a user