Browse Source

[Fix][UI Next][V1.0.0-Beta] Add a return button and set the form to disabled on the file detail page. (#9802)

3.0.0/version-upgrade
Amy0104 2 years ago committed by GitHub
parent
commit
1c4b8d1811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx

5
dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx

@ -73,11 +73,11 @@ export default defineComponent({
rules={this.rules} rules={this.rules}
ref='fileFormRef' ref='fileFormRef'
class={styles['form-content']} class={styles['form-content']}
disabled={this.componentName !== 'resource-file-edit'}
> >
<NFormItem path='content'> <NFormItem path='content'>
<MonacoEditor v-model={[this.resourceViewRef.content, 'value']} /> <MonacoEditor v-model={[this.resourceViewRef.content, 'value']} />
</NFormItem> </NFormItem>
{this.componentName === 'resource-file-edit' && (
<NSpace> <NSpace>
<NButton <NButton
type='info' type='info'
@ -89,6 +89,7 @@ export default defineComponent({
> >
{t('resource.file.return')} {t('resource.file.return')}
</NButton> </NButton>
{this.componentName === 'resource-file-edit' && (
<NButton <NButton
type='info' type='info'
size='small' size='small'
@ -98,8 +99,8 @@ export default defineComponent({
> >
{t('resource.file.save')} {t('resource.file.save')}
</NButton> </NButton>
</NSpace>
)} )}
</NSpace>
</NForm> </NForm>
</div> </div>
</Card> </Card>

Loading…
Cancel
Save