mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-19 07:15:48 +00:00
update: translate dialog
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{{define "promptModal"}}
|
||||
<a-modal id="prompt-modal" v-model="promptModal.visible" :title="promptModal.title"
|
||||
:closable="true" @ok="promptModal.ok" :mask-closable="false"
|
||||
:ok-text="promptModal.okText" cancel-text="取消">
|
||||
:ok-text="promptModal.okText" cancel-text='{{ i18n "cancel" }}'>
|
||||
<a-input id="prompt-modal-input" :type="promptModal.type"
|
||||
v-model="promptModal.value"
|
||||
:autosize="{minRows: 10, maxRows: 20}"
|
||||
@@ -15,7 +15,7 @@
|
||||
title: '',
|
||||
type: '',
|
||||
value: '',
|
||||
okText: '确定',
|
||||
okText: '{{ i18n "sure"}}',
|
||||
visible: false,
|
||||
keyEnter(e) {
|
||||
if (this.type !== 'textarea') {
|
||||
@@ -38,7 +38,7 @@
|
||||
title='',
|
||||
type='text',
|
||||
value='',
|
||||
okText='确定',
|
||||
okText='{{ i18n "sure"}}',
|
||||
confirm=() => {},
|
||||
}) {
|
||||
this.title = title;
|
||||
|
||||
Reference in New Issue
Block a user