for admin form page
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { FIELD_TYPES } from '../../utils/constants.js';
|
||||
import { COLORS, SPACING, IS_FIELD_TYPE_DISPLAY } from '../../features/add-field-label/settings.js';
|
||||
import { COLORS, SPACING, IS_FIELD_TYPE_DISPLAY, LABEL_STYLE } from '../../features/add-field-label/settings.js';
|
||||
|
||||
/**
|
||||
* 创建带有适当样式的字段标签 span 元素
|
||||
@@ -53,7 +53,8 @@ const createFieldSpanElement = ({ code, type, width }) => {
|
||||
*/
|
||||
export const createFieldWithLabels = ({ code, type, width }) => {
|
||||
const container = document.createElement('div');
|
||||
container.style.display = 'inline-block'; // 布局的内联块显示
|
||||
// container.style.display = 'inline-block'; // 布局的内联块显示
|
||||
Object.assign(container.style, LABEL_STYLE)
|
||||
|
||||
const fieldSpan = createFieldSpanElement({ code, type, width });
|
||||
container.appendChild(fieldSpan);
|
||||
|
||||
Reference in New Issue
Block a user