import { EditorProperty } from "@iplusplus/y-model"
import { CellRender, CellRenderBuilder2 } from "../../types"
import { KeyValueItem } from "./types"
import { CellEnumSelectList } from "./CellEnumSelectList"
function parseKeyValueString(str: string): KeyValueItem[] {
if (str === "") return []
return str
.split(";")
.filter(s => s.indexOf("=") > 0)
.map(s => {
const idx = s.indexOf("=")
return [s.substring(0, idx), s.substring(idx + 1)]
})
}
export function renderEnumSelectCell(items: KeyValueItem[]): CellRender {
return params => {
return