mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-10-14 03:13:43 +08:00
perf: moved all labels in form item to the top for adjust long text
This commit is contained in:
@@ -8,7 +8,6 @@ const ttlForm = reactive({
|
||||
ttl: -1,
|
||||
})
|
||||
|
||||
const formLabelWidth = '80px'
|
||||
const dialogStore = useDialog()
|
||||
const connectionStore = useConnectionStore()
|
||||
const tabStore = useTabStore()
|
||||
@@ -74,13 +73,7 @@ const onConfirm = async () => {
|
||||
preset="dialog"
|
||||
transform-origin="center"
|
||||
>
|
||||
<n-form
|
||||
:label-width="formLabelWidth"
|
||||
:model="ttlForm"
|
||||
:show-require-mark="false"
|
||||
label-align="right"
|
||||
label-placement="left"
|
||||
>
|
||||
<n-form :model="ttlForm" :show-require-mark="false" label-placement="top">
|
||||
<n-form-item :label="$t('key')">
|
||||
<n-input :value="currentKey" readonly />
|
||||
</n-form-item>
|
||||
|
Reference in New Issue
Block a user