Browse Source

[Fix][UI][V1.0.0-Beta] Fix the problem of packing failure. (#9962)

3.1.0-release
Amy0104 3 years ago committed by GitHub
parent
commit
1971d8b3b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      dolphinscheduler-ui/src/components/form/fields/radio.ts
  2. 13
      dolphinscheduler-ui/src/components/form/types.ts

1
dolphinscheduler-ui/src/components/form/fields/radio.ts

@ -39,7 +39,6 @@ export function renderRadio(item: IJsonItem, fields: { [field: string]: any }) {
() => () =>
h(NSpace, null, () => h(NSpace, null, () =>
unref(options).map((option: IOption) => unref(options).map((option: IOption) =>
// @ts-ignore
h(NRadio, option, () => option.label) h(NRadio, option, () => option.label)
) )
) )

13
dolphinscheduler-ui/src/components/form/types.ts

@ -15,14 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
import { Ref } from 'vue' import { Ref } from 'vue'
import type { import type { GridProps, FormProps, FormItemRule, FormRules } from 'naive-ui'
GridProps,
FormProps,
FormItemRule,
FormRules,
SelectOption,
TreeSelectOption
} from 'naive-ui'
type IType = type IType =
| 'input' | 'input'
@ -38,7 +31,9 @@ type IType =
| 'custom' | 'custom'
| 'multi-condition' | 'multi-condition'
type IOption = SelectOption | TreeSelectOption interface IOption {
[key: string]: any
}
interface IFormItem { interface IFormItem {
showLabel?: boolean showLabel?: boolean

Loading…
Cancel
Save