forked from github/dataease
fix: 修复仪表板tab组件样式
This commit is contained in:
parent
c74e3863e0
commit
2586a4b37d
@ -19,15 +19,15 @@
|
||||
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item :command="beforeHandleCommond('editTitle', item)">
|
||||
编辑标题
|
||||
{{ $t('detabs.eidttitle') }}
|
||||
</el-dropdown-item>
|
||||
|
||||
<el-dropdown-item :command="beforeHandleCommond('selectView', item)">
|
||||
选择视图
|
||||
{{ $t('detabs.selectview') }}
|
||||
</el-dropdown-item>
|
||||
|
||||
<el-dropdown-item v-if="tabList.length > 1" :command="beforeHandleCommond('deleteCur', item)">
|
||||
删除
|
||||
{{ $t('table.delete') }}
|
||||
</el-dropdown-item>
|
||||
|
||||
</el-dropdown-menu>
|
||||
@ -42,7 +42,7 @@
|
||||
</el-tabs>
|
||||
|
||||
<el-dialog
|
||||
title="编辑标题"
|
||||
:title="$t('detabs.eidttitle')"
|
||||
:append-to-body="true"
|
||||
:visible.sync="dialogVisible"
|
||||
width="30%"
|
||||
@ -52,29 +52,29 @@
|
||||
v-model="textarea"
|
||||
type="textarea"
|
||||
:rows="2"
|
||||
placeholder="请输入内容"
|
||||
:placeholder="$t('dataset.input_content')"
|
||||
/>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="sureCurTitle">确 定</el-button>
|
||||
<el-button @click="dialogVisible = false">{{ $t('table.cancel') }}</el-button>
|
||||
<el-button type="primary" @click="sureCurTitle">{{ $t('table.confirm') }}</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
title="选择视图"
|
||||
:title="$t('detabs.selectview')"
|
||||
:append-to-body="true"
|
||||
:visible.sync="viewDialogVisible"
|
||||
width="20%"
|
||||
height="400px"
|
||||
center
|
||||
>
|
||||
<div style="width: 100%;min-height: 250px; max-height: 400px;">
|
||||
<div style="width: 100%;min-height: 250px; max-height: 300px; overflow-y: auto;">
|
||||
<view-select ref="viewSelect" :select-model="true" />
|
||||
</div>
|
||||
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="viewDialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="sureViewSelector">确 定</el-button>
|
||||
<el-button @click="viewDialogVisible = false">{{ $t('table.cancel') }}</el-button>
|
||||
<el-button type="primary" @click="sureViewSelector">{{ $t('table.confirm') }}</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
|
@ -395,6 +395,10 @@ export default {
|
||||
cancel: 'Cancel',
|
||||
confirm: 'Confirm'
|
||||
},
|
||||
detabs: {
|
||||
eidttitle: 'Edit Title',
|
||||
selectview: 'Select View'
|
||||
},
|
||||
example: {
|
||||
warning: 'Creating and editing pages cannot be cached by keep-alive because keep-alive include does not currently support caching based on routes, so it is currently cached based on component name. If you want to achieve a similar caching effect, you can use a browser caching scheme such as localStorage. Or do not use keep-alive include to cache all pages directly. See details'
|
||||
},
|
||||
|
@ -395,6 +395,10 @@ export default {
|
||||
cancel: '取 消',
|
||||
confirm: '確 定'
|
||||
},
|
||||
detabs: {
|
||||
eidttitle: '編輯標題',
|
||||
selectview: '選擇視圖'
|
||||
},
|
||||
example: {
|
||||
warning: '創建和編輯頁面是不能被 keep-alive 緩存的,因爲keep-alive 的 include 目前不支持根據路由來緩存,所以目前都是基于 component name 來進行緩存的。如果你想類似的實現緩存效果,可以使用 localStorage 等浏覽器緩存方案。或者不要使用 keep-alive 的 include,直接緩存所有頁面。詳情見'
|
||||
},
|
||||
|
@ -395,6 +395,10 @@ export default {
|
||||
cancel: '取 消',
|
||||
confirm: '确 定'
|
||||
},
|
||||
detabs: {
|
||||
eidttitle: '编辑标题',
|
||||
selectview: '选择视图'
|
||||
},
|
||||
example: {
|
||||
warning: '创建和编辑页面是不能被 keep-alive 缓存的,因为keep-alive 的 include 目前不支持根据路由来缓存,所以目前都是基于 component name 来进行缓存的。如果你想类似的实现缓存效果,可以使用 localStorage 等浏览器缓存方案。或者不要使用 keep-alive 的 include,直接缓存所有页面。详情见'
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user