feat: add boolean type

This commit is contained in:
Joel
2025-07-04 15:27:52 +08:00
parent c9c49200e0
commit 77aa35ff15
6 changed files with 154 additions and 39 deletions

View File

@ -1,7 +1,7 @@
'use client'
import type { FC } from 'react'
import React from 'react'
import { RiAlignLeft, RiCheckboxMultipleLine, RiFileCopy2Line, RiFileList2Line, RiHashtag, RiTextSnippet } from '@remixicon/react'
import { RiAlignLeft, RiCheckboxLine, RiCheckboxMultipleLine, RiFileCopy2Line, RiFileList2Line, RiHashtag, RiTextSnippet } from '@remixicon/react'
import { InputVarType } from '../../../types'
type Props = {
@ -15,6 +15,7 @@ const getIcon = (type: InputVarType) => {
[InputVarType.paragraph]: RiAlignLeft,
[InputVarType.select]: RiCheckboxMultipleLine,
[InputVarType.number]: RiHashtag,
[InputVarType.boolean]: RiCheckboxLine,
[InputVarType.singleFile]: RiFileList2Line,
[InputVarType.multiFiles]: RiFileCopy2Line,
} as any)[type] || RiTextSnippet

View File

@ -175,6 +175,7 @@ export enum InputVarType {
paragraph = 'paragraph',
select = 'select',
number = 'number',
boolean = 'boolean',
url = 'url',
files = 'files',
json = 'json', // obj, array