chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -32,13 +32,13 @@ export interface ArrayOptions {
|
||||
getDefaultAppendValue?: () => any;
|
||||
fields?: Field[];
|
||||
|
||||
/** 入参最大数量,若没有提供,默认为整数最大值 */
|
||||
/** The maximum number of imported parameters, if not provided, defaults to the maximum integer value */
|
||||
maxItems?: number;
|
||||
|
||||
/** 入参最小数量,若没有提供,默认为 0 */
|
||||
/** The minimum number of imported parameters, if not provided, the default is 0 */
|
||||
minItems?: number;
|
||||
|
||||
/** 单条是否可删除 */
|
||||
/** Can a single item be deleted? */
|
||||
disableDeleteItem?: ((value: unknown, index: number) => boolean) | boolean;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ export const Array: Setter<Array<any>, ArrayOptions> = ({
|
||||
const [currentAddIndex, setCurrentAddIndex] = useState<number | undefined>();
|
||||
const { node, meta } = context || {};
|
||||
|
||||
// 后端返回的 value 可能为 null,此时不会赋值给 [],这里重新兜底下
|
||||
// The value returned by the backend may be null, and it will not be assigned to [] at this time. Here is the bottom line again.
|
||||
const originValue = value || [];
|
||||
|
||||
const add = () => {
|
||||
|
||||
@@ -34,11 +34,11 @@ async function clickNumberButtonUp(container: HTMLElement) {
|
||||
}
|
||||
|
||||
async function clickNumberButton(container: HTMLElement, arrow: 'up' | 'down') {
|
||||
// 先触发 hover
|
||||
// Trigger the hover first
|
||||
const numberContainer = container.firstChild as HTMLElement;
|
||||
fireEvent.mouseEnter(numberContainer);
|
||||
|
||||
// 等待下一个事件循环
|
||||
// Wait for the next event loop
|
||||
await Promise.resolve();
|
||||
|
||||
const upButton = container.querySelector(
|
||||
|
||||
@@ -27,7 +27,7 @@ export interface StringOptions {
|
||||
placeholder?: string;
|
||||
width?: number | string;
|
||||
maxCount?: number;
|
||||
// 新增这个配置的原因是readonly样式带有输入框 有些场景需要只展示文本
|
||||
// The reason for adding this configuration is that the readonly style has a text box, and some scenes need to display only text.
|
||||
textMode?: boolean;
|
||||
testId?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user