mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
parent
8243db5e3d
commit
778d98e038
@ -171,7 +171,6 @@ function getSingleEndRange(nodes: ChildNode[], index: number, offset: number): [
|
||||
let realIndex = 0;
|
||||
let textOffset = 0;
|
||||
for (let i = 0; i < index + 1; i++) {
|
||||
// console.log(i, realIndex, textOffset);
|
||||
if (nodes[i]?.nodeName === '#text') {
|
||||
if (i !== index && nodes[i + 1] && nodes[i + 1]?.nodeName !== '#text') {
|
||||
realIndex += 1;
|
||||
|
@ -12,10 +12,10 @@ import { css } from '@emotion/css';
|
||||
import { useField, useFieldSchema } from '@formily/react';
|
||||
import { Space } from 'antd';
|
||||
import classNames from 'classnames';
|
||||
//@ts-ignore
|
||||
import React, {
|
||||
createContext,
|
||||
FC,
|
||||
//@ts-ignore
|
||||
startTransition,
|
||||
useCallback,
|
||||
useEffect,
|
||||
|
Loading…
x
Reference in New Issue
Block a user