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, () =>
unref(options).map((option: IOption) =>
// @ts-ignore
h(NRadio, option, () => option.label)
)
)

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

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

Loading…
Cancel
Save