feat: suport add child

This commit is contained in:
katherinehhh 2023-03-13 19:03:53 +08:00
parent 118e78fc6d
commit d27cbeb1bd

View File

@ -10,7 +10,7 @@ export const isColumnComponent = (schema: Schema) => {
export function extractIndex(str) { export function extractIndex(str) {
const numbers = []; const numbers = [];
str.split('.').forEach(function (element) { str?.split('.').forEach(function (element) {
if (!isNaN(element)) { if (!isNaN(element)) {
numbers.push(String(Number(element) + 1)); numbers.push(String(Number(element) + 1));
} }