@ -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)
)
@ -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