mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-10-20 10:45:13 +00:00
feat: 调整界面
This commit is contained in:
@@ -257,7 +257,6 @@ const createColumns = (): DataTableColumns<DataProps> => {
|
|||||||
{
|
{
|
||||||
title: t('store.title'),
|
title: t('store.title'),
|
||||||
key: 'renderKey',
|
key: 'renderKey',
|
||||||
width: 160,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('store.description'),
|
title: t('store.description'),
|
||||||
@@ -296,6 +295,7 @@ const createColumns = (): DataTableColumns<DataProps> => {
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
const columns = createColumns()
|
const columns = createColumns()
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
@@ -321,11 +321,13 @@ const dataSource = computed(() => {
|
|||||||
<template>
|
<template>
|
||||||
<NMessageProvider>
|
<NMessageProvider>
|
||||||
<NModal v-model:show="show" style="width: 90%; max-width: 900px;" preset="card">
|
<NModal v-model:show="show" style="width: 90%; max-width: 900px;" preset="card">
|
||||||
<NCard>
|
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<NTabs type="segment">
|
<NTabs type="segment">
|
||||||
<NTabPane name="local" :tab="$t('store.local')">
|
<NTabPane name="local" :tab="$t('store.local')">
|
||||||
<div class="flex items-center justify-between">
|
<div
|
||||||
|
class="flex items-center justify-between"
|
||||||
|
:class="isMobile ? 'flex-col gap-2' : 'flex-row'"
|
||||||
|
>
|
||||||
<div class="flex items-center justify-end space-x-4">
|
<div class="flex items-center justify-end space-x-4">
|
||||||
<NButton
|
<NButton
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -357,7 +359,7 @@ const dataSource = computed(() => {
|
|||||||
</NPopconfirm>
|
</NPopconfirm>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center space-x-4">
|
<div class="flex items-center space-x-4">
|
||||||
<NInput v-model:value="searchValue" />
|
<NInput v-model:value="searchValue" style="width: 100%" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
@@ -424,25 +426,16 @@ const dataSource = computed(() => {
|
|||||||
</NTabPane>
|
</NTabPane>
|
||||||
</NTabs>
|
</NTabs>
|
||||||
</div>
|
</div>
|
||||||
</NCard>
|
|
||||||
</NModal>
|
</NModal>
|
||||||
<NModal v-model:show="showModal">
|
<NModal v-model:show="showModal" style="width: 90%; max-width: 600px;" preset="card">
|
||||||
<NCard
|
|
||||||
style="width: 600px"
|
|
||||||
:bordered="false"
|
|
||||||
size="huge"
|
|
||||||
role="dialog"
|
|
||||||
aria-modal="true"
|
|
||||||
>
|
|
||||||
<NSpace v-if="modalMode === 'add' || modalMode === 'modify'" vertical>
|
<NSpace v-if="modalMode === 'add' || modalMode === 'modify'" vertical>
|
||||||
{{ t('store.title') }}
|
{{ t('store.title') }}
|
||||||
<NInput v-model:value="tempPromptKey" />
|
<NInput v-model:value="tempPromptKey" />
|
||||||
{{ t('store.description') }}
|
{{ t('store.description') }}
|
||||||
<NInput v-model:value="tempPromptValue" type="textarea" />
|
<NInput v-model:value="tempPromptValue" type="textarea" />
|
||||||
<NButton
|
<NButton
|
||||||
strong
|
block
|
||||||
secondary
|
type="primary"
|
||||||
:style="{ width: '100%' }"
|
|
||||||
:disabled="inputStatus"
|
:disabled="inputStatus"
|
||||||
@click="() => { modalMode === 'add' ? addPromptTemplate() : modifyPromptTemplate() }"
|
@click="() => { modalMode === 'add' ? addPromptTemplate() : modifyPromptTemplate() }"
|
||||||
>
|
>
|
||||||
@@ -457,16 +450,14 @@ const dataSource = computed(() => {
|
|||||||
type="textarea"
|
type="textarea"
|
||||||
/>
|
/>
|
||||||
<NButton
|
<NButton
|
||||||
strong
|
block
|
||||||
secondary
|
type="primary"
|
||||||
:style="{ width: '100%' }"
|
|
||||||
:disabled="inputStatus"
|
:disabled="inputStatus"
|
||||||
@click="() => { importPromptTemplate() }"
|
@click="() => { importPromptTemplate() }"
|
||||||
>
|
>
|
||||||
{{ t('common.import') }}
|
{{ t('common.import') }}
|
||||||
</NButton>
|
</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</NCard>
|
|
||||||
</NModal>
|
</NModal>
|
||||||
</NMessageProvider>
|
</NMessageProvider>
|
||||||
</template>
|
</template>
|
||||||
|
@@ -18,6 +18,8 @@ export default {
|
|||||||
clearSuccess: '清除成功',
|
clearSuccess: '清除成功',
|
||||||
yes: '是',
|
yes: '是',
|
||||||
no: '否',
|
no: '否',
|
||||||
|
confirm: '確定',
|
||||||
|
download: '下載',
|
||||||
noData: '暫無資料',
|
noData: '暫無資料',
|
||||||
wrong: '好像出錯了,請稍後再試。',
|
wrong: '好像出錯了,請稍後再試。',
|
||||||
success: '操作成功',
|
success: '操作成功',
|
||||||
@@ -43,6 +45,7 @@ export default {
|
|||||||
deleteMessage: '刪除訊息',
|
deleteMessage: '刪除訊息',
|
||||||
deleteMessageConfirm: '是否刪除此訊息?',
|
deleteMessageConfirm: '是否刪除此訊息?',
|
||||||
deleteHistoryConfirm: '確定刪除此紀錄?',
|
deleteHistoryConfirm: '確定刪除此紀錄?',
|
||||||
|
clearHistoryConfirm: '確定清除紀錄?',
|
||||||
},
|
},
|
||||||
setting: {
|
setting: {
|
||||||
setting: '設定',
|
setting: '設定',
|
||||||
|
Reference in New Issue
Block a user