@kne/form-creator 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1620,6 +1620,292 @@ render(<LocaleSwitchExample />);
1620
1620
 
1621
1621
  ```
1622
1622
 
1623
+ - 固定填写项
1624
+ - 字段设置 locked: true 后不可编辑、删除或移动,所在模块位置固定;适合业务依赖的固定字段
1625
+ - _FormCreator(@kne/current-lib_form-creator)[import * as _FormCreator from "@kne/form-creator"],(@kne/current-lib_form-creator/dist/index.css)[import "@kne/form-creator/dist/index.css"],antd(antd)[import antd from "antd"]
1626
+
1627
+ ```jsx
1628
+ const { default: FormCreator, defaultSchema, createBlock, createField } = _FormCreator;
1629
+ const { useState } = React;
1630
+ const { Alert, Space, Typography } = antd;
1631
+ const { Text } = Typography;
1632
+
1633
+ const LockedFieldExample = () => {
1634
+ const [schema, setSchema] = useState(() => ({
1635
+ ...defaultSchema(),
1636
+ blocks: [
1637
+ createBlock('formInfo', {
1638
+ title: '面试评价',
1639
+ column: 1,
1640
+ list: [
1641
+ createField({
1642
+ type: 'RadioGroup',
1643
+ name: 'recommendation',
1644
+ label: '是否通过',
1645
+ rule: 'REQ',
1646
+ locked: true,
1647
+ props: {
1648
+ options: [
1649
+ { label: '通过', value: 'pass' },
1650
+ { label: '待定', value: 'hold' },
1651
+ { label: '不通过', value: 'reject' }
1652
+ ]
1653
+ }
1654
+ }),
1655
+ createField({ type: 'InputNumber', name: 'score', label: '综合评分(1-5)', rule: 'REQ', locked: true, props: { min: 1, max: 5 } }),
1656
+ createField({ type: 'TextArea', name: 'strengths', label: '优势', block: true, props: { rows: 3 } }),
1657
+ createField({ type: 'TextArea', name: 'notes', label: '备注', block: true, props: { rows: 3 } })
1658
+ ]
1659
+ }),
1660
+ createBlock('formInfo', {
1661
+ title: '补充信息',
1662
+ column: 2,
1663
+ list: [createField({ type: 'Input', name: 'expectedSalary', label: '期望薪资', props: { placeholder: '请输入期望薪资' } })]
1664
+ })
1665
+ ]
1666
+ }));
1667
+
1668
+ return (
1669
+ <Space direction="vertical" size={16} style={{ width: '100%' }}>
1670
+ <Alert
1671
+ type="info"
1672
+ showIcon
1673
+ message="固定填写项"
1674
+ description={
1675
+ <span>
1676
+ 字段设置 <Text code>locked: true</Text> 后不可编辑、删除或移动,其他字段也不能换到它前面;所在模块(含步骤、选项)不可删除、不可移动。适合「是否通过」「综合评分」这类业务依赖的固定字段。
1677
+ </span>
1678
+ }
1679
+ />
1680
+ <FormCreator value={schema} onChange={setSchema} />
1681
+ </Space>
1682
+ );
1683
+ };
1684
+
1685
+ render(<LockedFieldExample />);
1686
+
1687
+ ```
1688
+
1689
+ - 超长文案(全屏)
1690
+ - 模块标题、字段 label、选项、步骤标题均为超长文本并叠加固定/隐藏/整行标签,检查编辑器列表与预览的换行和省略
1691
+ - _FormCreator(@kne/current-lib_form-creator)[import * as _FormCreator from "@kne/form-creator"],(@kne/current-lib_form-creator/dist/index.css)[import "@kne/form-creator/dist/index.css"],antd(antd)[import antd from "antd"]
1692
+
1693
+ ```jsx
1694
+ const { default: FormCreator, defaultSchema, createBlock, createField, createStep } = _FormCreator;
1695
+ const { useState } = React;
1696
+ const { Alert, Space, Typography } = antd;
1697
+ const { Text } = Typography;
1698
+
1699
+ const LongLabelExample = () => {
1700
+ const [schema, setSchema] = useState(() => ({
1701
+ ...defaultSchema(),
1702
+ blocks: [
1703
+ createBlock('formInfo', {
1704
+ title: '候选人面试综合评价表(适用于技术岗位、产品岗位以及跨部门协作岗位的多轮面试场景)',
1705
+ subtitle: '请面试官在面试结束后 24 小时内完成填写,评价结果将同步给招聘负责人、用人部门负责人以及 HRBP 作为录用决策依据',
1706
+ column: 2,
1707
+ list: [
1708
+ createField({
1709
+ type: 'RadioGroup',
1710
+ name: 'recommendation',
1711
+ label: '综合以上所有面试环节的表现,您是否推荐该候选人进入下一轮面试或直接发放录用通知',
1712
+ rule: 'REQ',
1713
+ locked: true,
1714
+ props: {
1715
+ options: [
1716
+ { label: '强烈推荐,候选人能力明显超出岗位要求,建议尽快推进后续流程', value: 'pass' },
1717
+ { label: '待定,需要结合其他面试官意见或补充一轮面试后再做决定', value: 'hold' },
1718
+ { label: '不推荐,候选人在核心能力项上与岗位要求存在明显差距', value: 'reject' }
1719
+ ]
1720
+ }
1721
+ }),
1722
+ createField({
1723
+ type: 'InputNumber',
1724
+ name: 'score',
1725
+ label: '综合评分(1-5 分,请结合专业能力、沟通表达、文化契合度与成长潜力综合打分)',
1726
+ rule: 'REQ',
1727
+ locked: true,
1728
+ props: { min: 1, max: 5 }
1729
+ }),
1730
+ createField({
1731
+ type: 'Input',
1732
+ name: 'expectedSalaryAndAvailableDateAndOtherRemarks',
1733
+ label: '候选人期望薪资、最快到岗时间以及其他需要招聘负责人特别关注的事项说明',
1734
+ hidden: true,
1735
+ props: { placeholder: '例如:期望 35K × 15 薪,最快一个月后到岗,需要确认是否接受出差' }
1736
+ }),
1737
+ createField({
1738
+ type: 'Select',
1739
+ name: 'interviewRound',
1740
+ label: '本次面试所属轮次(如为加面或交叉面,请选择最接近的轮次并在备注中说明)',
1741
+ props: {
1742
+ options: [
1743
+ { label: '第一轮:业务部门技术或专业能力面试', value: 'first' },
1744
+ { label: '第二轮:部门负责人综合面试', value: 'second' },
1745
+ { label: '终面:HRBP 与高管联合面试', value: 'final' }
1746
+ ]
1747
+ }
1748
+ }),
1749
+ createField({
1750
+ type: 'TextArea',
1751
+ name: 'strengthsAndWeaknesses',
1752
+ label: '请详细描述候选人在本轮面试中展现出的主要优势、明显短板以及对岗位胜任力的整体判断依据',
1753
+ block: true,
1754
+ props: { rows: 3 }
1755
+ })
1756
+ ]
1757
+ }),
1758
+ createBlock('steps', {
1759
+ title: '分步骤填写的超长模块标题:第一步填写基础评价,第二步填写补充说明与附件',
1760
+ items: [
1761
+ createStep({
1762
+ title: '第一步:基础评价信息(包括专业能力、沟通表达与团队协作等维度)',
1763
+ column: 1,
1764
+ list: [createField({ type: 'Input', name: 'stepRemark', label: '对候选人专业能力与过往项目经验真实性的核实情况说明', props: {} })]
1765
+ }),
1766
+ createStep({
1767
+ title: '第二步:补充说明',
1768
+ column: 1,
1769
+ list: [createField({ type: 'TextArea', name: 'stepNotes', label: '其他补充说明', props: { rows: 2 } })]
1770
+ })
1771
+ ]
1772
+ })
1773
+ ]
1774
+ }));
1775
+
1776
+ return (
1777
+ <Space direction="vertical" size={16} style={{ width: '100%' }}>
1778
+ <Alert
1779
+ type="info"
1780
+ showIcon
1781
+ message="超长文案"
1782
+ description={
1783
+ <span>
1784
+ 模块标题、副标题、字段 label、选项文案、步骤标题均为超长文本,并叠加 <Text code>locked</Text> / <Text code>hidden</Text> / <Text code>block</Text>{' '}
1785
+ 标签,用于检查编辑器列表与右侧预览的换行、省略与对齐。
1786
+ </span>
1787
+ }
1788
+ />
1789
+ <FormCreator value={schema} onChange={setSchema} />
1790
+ </Space>
1791
+ );
1792
+ };
1793
+
1794
+ render(<LongLabelExample />);
1795
+
1796
+ ```
1797
+
1798
+ - 条件显示(全屏)
1799
+ - 字段配置 visibleWhen:按其他字段的值(等于、属于其一、多选包含、数值比较、正则匹配,支持且/或组合)决定是否显示,隐藏时不校验并清空值
1800
+ - _FormCreator(@kne/current-lib_form-creator)[import * as _FormCreator from "@kne/form-creator"],(@kne/current-lib_form-creator/dist/index.css)[import "@kne/form-creator/dist/index.css"],antd(antd)[import antd from "antd"]
1801
+
1802
+ ```jsx
1803
+ const { default: FormCreator, defaultSchema, createBlock, createField, schemaToDataSchema } = _FormCreator;
1804
+ const { useState } = React;
1805
+ const { Alert, Collapse, Space, Typography } = antd;
1806
+ const { Text } = Typography;
1807
+
1808
+ const ConditionalFieldExample = () => {
1809
+ const [schema, setSchema] = useState(() => ({
1810
+ ...defaultSchema(),
1811
+ blocks: [
1812
+ createBlock('formInfo', {
1813
+ title: '面试评价',
1814
+ column: 1,
1815
+ list: [
1816
+ createField({
1817
+ type: 'RadioGroup',
1818
+ name: 'recommendation',
1819
+ label: '是否通过',
1820
+ rule: 'REQ',
1821
+ props: {
1822
+ options: [
1823
+ { label: '通过', value: 'pass' },
1824
+ { label: '待定', value: 'hold' },
1825
+ { label: '不通过', value: 'reject' }
1826
+ ]
1827
+ }
1828
+ }),
1829
+ createField({
1830
+ type: 'TextArea',
1831
+ name: 'rejectReason',
1832
+ label: '不通过原因',
1833
+ rule: 'REQ',
1834
+ block: true,
1835
+ props: { rows: 3 },
1836
+ visibleWhen: { logic: 'and', conditions: [{ field: 'recommendation', operator: 'eq', value: 'reject' }] }
1837
+ }),
1838
+ createField({ type: 'InputNumber', name: 'score', label: '综合评分(1-5)', rule: 'REQ', props: { min: 1, max: 5 } }),
1839
+ createField({
1840
+ type: 'TextArea',
1841
+ name: 'improvement',
1842
+ label: '改进建议',
1843
+ block: true,
1844
+ props: { rows: 3 },
1845
+ visibleWhen: { logic: 'and', conditions: [{ field: 'score', operator: 'lte', value: 2 }] }
1846
+ }),
1847
+ createField({
1848
+ type: 'CheckboxGroup',
1849
+ name: 'dimensions',
1850
+ label: '考察维度',
1851
+ props: {
1852
+ options: [
1853
+ { label: '专业能力', value: 'skill' },
1854
+ { label: '沟通表达', value: 'communication' },
1855
+ { label: '管理能力', value: 'management' }
1856
+ ]
1857
+ }
1858
+ }),
1859
+ createField({
1860
+ type: 'InputNumber',
1861
+ name: 'teamSize',
1862
+ label: '带过的团队规模(人)',
1863
+ rule: 'REQ',
1864
+ props: { min: 1 },
1865
+ visibleWhen: { logic: 'and', conditions: [{ field: 'dimensions', operator: 'includesAny', value: ['management'] }] }
1866
+ }),
1867
+ createField({ type: 'Input', name: 'interviewerEmail', label: '面试官邮箱' }),
1868
+ createField({
1869
+ type: 'Input',
1870
+ name: 'referrer',
1871
+ label: '内部推荐人',
1872
+ visibleWhen: { logic: 'and', conditions: [{ field: 'interviewerEmail', operator: 'regex', value: '@leapin\\.ai$', flags: 'i' }] }
1873
+ })
1874
+ ]
1875
+ })
1876
+ ]
1877
+ }));
1878
+
1879
+ return (
1880
+ <Space direction="vertical" size={16} style={{ width: '100%' }}>
1881
+ <Alert
1882
+ type="info"
1883
+ showIcon
1884
+ message="条件显示"
1885
+ description={
1886
+ <span>
1887
+ 字段配置 <Text code>visibleWhen</Text> 后,满足条件才显示:选「不通过」出现「不通过原因」;评分 ≤ 2 出现「改进建议」;考察维度勾选「管理能力」出现「团队规模」;面试官邮箱匹配 <Text code>/@leapin\.ai$/i</Text> 出现「内部推荐人」。隐藏的字段不参与校验,已填的值会被清空。在编辑弹窗的「条件显示」中可修改条件。
1888
+ </span>
1889
+ }
1890
+ />
1891
+ <FormCreator value={schema} onChange={setSchema} />
1892
+ <Collapse
1893
+ items={[
1894
+ {
1895
+ key: 'data-schema',
1896
+ label: 'schemaToDataSchema 输出(条件字段不进 required,description 附条件说明)',
1897
+ children: <pre style={{ margin: 0, maxHeight: 360, overflow: 'auto' }}>{JSON.stringify(schemaToDataSchema(schema), null, 2)}</pre>
1898
+ }
1899
+ ]}
1900
+ />
1901
+ </Space>
1902
+ );
1903
+ };
1904
+
1905
+ render(<ConditionalFieldExample />);
1906
+
1907
+ ```
1908
+
1623
1909
  ### API
1624
1910
 
1625
1911
  | 属性 | 类型 | 默认值 | 说明 |
@@ -1784,7 +2070,7 @@ import { SchemaContent, SchemaContentInner } from '@kne/form-creator';
1784
2070
  title?, subtitle?, column?, gap?, bordered?, important?,
1785
2071
  name?, label?, addText?, addPosition?, maxLength?, minLength?, fieldType?, autoStep?,
1786
2072
  mode?, selectorName?, selectorInData?, discriminator?,
1787
- list?: [{ id, type, name, label, tips?, description?, rule?, block?, hidden?, props? }],
2073
+ list?: [{ id, type, name, label, tips?, description?, rule?, block?, hidden?, locked?, visibleWhen?, props? }],
1788
2074
  itemBlocks?: Block[], // list / editableList:列表项内子模块
1789
2075
  blocks?: Block[], // formInfo / object:子模块
1790
2076
  options?: [{ id, title, list?, blocks?: Block[] }], // choice
@@ -1795,6 +2081,43 @@ import { SchemaContent, SchemaContentInner } from '@kne/form-creator';
1795
2081
 
1796
2082
  `actions` 由 FormCreator 顶部「添加模块」旁的设置按钮弹窗配置,写入 Schema;`SchemaRenderer` 会读取并渲染居中操作按钮(组件 props 可覆盖 Schema)。设置按钮后面可用 `extraToolbar` 追加自定义按钮。
1797
2083
 
2084
+ 字段 `locked: true` 为固定填写项:编辑器中不可编辑、删除或移动,其他字段也不能与其交换位置;包含锁定字段的模块、步骤、选项不可删除、不可移动。渲染与提交不受影响。工具方法 `isFieldLocked(field)`、`blockHasLockedField(block)` 可用于业务侧判断。
2085
+
2086
+ #### 条件显示(visibleWhen)
2087
+
2088
+ 字段可配置 `visibleWhen`,表单中其他字段的值满足条件时才显示该字段(编辑弹窗「条件显示」中配置):
2089
+
2090
+ ```js
2091
+ {
2092
+ name: 'rejectReason',
2093
+ label: '不通过原因',
2094
+ rule: 'REQ',
2095
+ visibleWhen: {
2096
+ logic: 'and', // 'and' 全部满足 | 'or' 满足任一,缺省 and
2097
+ conditions: [{ field: 'recommendation', operator: 'eq', value: 'reject' }]
2098
+ }
2099
+ }
2100
+ ```
2101
+
2102
+ | operator | 含义 | value |
2103
+ |----------|------|-------|
2104
+ | `eq` / `neq` | 等于 / 不等于 | 单值 |
2105
+ | `in` | 属于其一 | 数组 |
2106
+ | `includesAny` | 多选值包含任一 | 数组 |
2107
+ | `empty` / `notEmpty` | 为空 / 不为空(`undefined`、`null`、`''`、`[]` 视为空) | 无 |
2108
+ | `gt` / `gte` / `lt` / `lte` | 数值比较,非数字视为不满足 | 数字 |
2109
+ | `regex` | 正则匹配;值为数组时任一项匹配即满足 | 正则源码(不含 `/`),可加 `flags`(仅 `i` `m` `s` `u`) |
2110
+
2111
+ 规则:
2112
+
2113
+ - `field` 为提交数据中的路径,object 模块内字段带前缀,如 `contact.phone`
2114
+ - 不满足条件的字段不渲染、不参与校验,已填的值会被清空;`SchemaContent` 按数据同样隐藏
2115
+ - 列表类模块(list / tableList / editableList / multiField)内的字段既不能配置条件,也不能作为触发字段
2116
+ - 条件引用的字段不存在、位于列表类模块内或正则无效时,该条件被忽略(编辑器显示「条件失效」);全部条件失效时字段照常显示
2117
+ - 编辑器会拦截循环依赖;触发字段改名时自动同步引用
2118
+ - `schemaToDataSchema` 中条件字段不进入 `required`,并在 `description` 中附加条件说明
2119
+ - 工具方法:`evaluateVisibleWhen(visibleWhen, formData, knownNames?)`、`evaluateCondition(condition, formData)`、`collectConditionFields(schema)`、`findConditionCycle(schema)`、`renameConditionReferences(schema, oldPath, newPath)`
2120
+
1798
2121
  顶层模块渲染时会自动挂上 `InfoPage.partRootClassName`,嵌入外层 FormInfo Part 时标题从一级重新起算;模块内再嵌套仍为二级胶囊。
1799
2122
  #### 多语言文案
1800
2123
 
@@ -1888,6 +2211,7 @@ const dataSchema = schemaToDataSchema(schema);
1888
2211
  说明:
1889
2212
 
1890
2213
  - **hidden 字段仍进入** data schema(可提交)
2214
+ - 配置了 `visibleWhen` 的字段不进入 `required`,`description` 追加条件说明(按 `options.locale` 输出中文或英文)
1891
2215
  - 字段值类型来自 registry 的 `valueSchema`;`rule` 含 `REQ` 时写入父 object 的 `required`(choice 支内同样生效)
1892
2216
  - 扩展字段在 `preset` / `registerField` 中声明 `valueSchema`(对象或 `(field) => schema`);未声明则回退 `{ type: 'string' }`
1893
2217
 
package/dist/index.css CHANGED
@@ -319,6 +319,12 @@
319
319
  white-space: nowrap;
320
320
  }
321
321
 
322
+ .kne-form-creator_0iyhP {
323
+ display: inline-flex;
324
+ align-items: center;
325
+ gap: 4px;
326
+ }
327
+
322
328
  .kne-form-creator_Ue-nT {
323
329
  flex-shrink: 0;
324
330
  }
@@ -494,6 +500,15 @@
494
500
  .kne-form-creator_ftlwp {
495
501
  flex: 1;
496
502
  min-width: 0;
503
+ display: flex;
504
+ flex-direction: column;
505
+ align-items: flex-start;
506
+ gap: 4px;
507
+ }
508
+
509
+ .kne-form-creator_XAxbE {
510
+ max-width: 100%;
511
+ word-break: break-word;
497
512
  }
498
513
 
499
514
  .kne-form-creator_yP-RF {
@@ -694,6 +709,36 @@
694
709
  min-width: 0;
695
710
  }
696
711
 
712
+ /* label 在上的 inner 布局不需要按最长 label 对齐;react-form-helper 会给每个 label 写行内 min-width,长 label 会铺到相邻列 */
713
+ .react-form--inner .kne-form-creator_q9ydz .react-form__field-label,
714
+ .react-form--inner--small .kne-form-creator_q9ydz .react-form__field-label,
715
+ .react-form--inner--large .kne-form-creator_q9ydz .react-form__field-label {
716
+ min-width: 0 !important;
717
+ }
718
+ .react-form--inner,
719
+ .react-form--inner--small,
720
+ .react-form--inner--large {
721
+ /* 错误提示默认 absolute 在 22px 下边距内单行展示,长 label 拼出的提示会折行压到下一个字段;改为文档流,单行时高度与原来一致 */
722
+ }
723
+ .react-form--inner .kne-form-creator_q9ydz .react-form__field.is-error,
724
+ .react-form--inner--small .kne-form-creator_q9ydz .react-form__field.is-error,
725
+ .react-form--inner--large .kne-form-creator_q9ydz .react-form__field.is-error {
726
+ margin-bottom: 8px;
727
+ }
728
+ .react-form--inner .kne-form-creator_q9ydz .react-form__field-error,
729
+ .react-form--inner--small .kne-form-creator_q9ydz .react-form__field-error,
730
+ .react-form--inner--large .kne-form-creator_q9ydz .react-form__field-error {
731
+ position: static;
732
+ padding-top: 1px;
733
+ }
734
+
735
+ /* antd 竖排步骤标题 flex: 0 0 auto 不收缩,超长标题会被裁切 */
736
+ .kne-form-creator_q9ydz .ant-steps-vertical .ant-steps-item-title {
737
+ flex-shrink: 1;
738
+ min-width: 0;
739
+ word-break: break-word;
740
+ }
741
+
697
742
  /* 表单底部操作区:与内容分隔,固定落在表单最下方 */
698
743
  .kne-form-creator_Y4eEH {
699
744
  width: 100%;
@@ -1010,10 +1055,141 @@
1010
1055
  margin: 12px 0;
1011
1056
  }
1012
1057
 
1058
+ /* 选项行与列头共用同一套列宽规则,保证列头文字与下方输入框严格对齐 */
1059
+ .kne-form-creator_uohD0,
1060
+ .kne-form-creator_As4L6 {
1061
+ /* 行内控件统一以 0 为基准按份分配:antd Input 默认 width: 100%,会把 flex-basis 为 0 的选项名称挤到不可见 */
1062
+ }
1063
+ .kne-form-creator_uohD0 > .ant-input,
1064
+ .kne-form-creator_uohD0 > .ant-input-affix-wrapper,
1065
+ .kne-form-creator_uohD0 > .kne-form-creator_7-99l,
1066
+ .kne-form-creator_uohD0 > .kne-form-creator_UhnVH,
1067
+ .kne-form-creator_uohD0 > .kne-form-creator_2c35V,
1068
+ .kne-form-creator_uohD0 > .kne-form-creator_ibWvX,
1069
+ .kne-form-creator_As4L6 > .ant-input,
1070
+ .kne-form-creator_As4L6 > .ant-input-affix-wrapper,
1071
+ .kne-form-creator_As4L6 > .kne-form-creator_7-99l,
1072
+ .kne-form-creator_As4L6 > .kne-form-creator_UhnVH,
1073
+ .kne-form-creator_As4L6 > .kne-form-creator_2c35V,
1074
+ .kne-form-creator_As4L6 > .kne-form-creator_ibWvX {
1075
+ flex: 1 1 0;
1076
+ min-width: 0;
1077
+ }
1078
+ .kne-form-creator_uohD0,
1079
+ .kne-form-creator_As4L6 {
1080
+ /* 选项名称 / 描述(含多语言双输入)占 2 份,值占 1 份 */
1081
+ }
1082
+ .kne-form-creator_uohD0 > .kne-form-creator_7-99l,
1083
+ .kne-form-creator_uohD0 > .kne-form-creator_UhnVH,
1084
+ .kne-form-creator_uohD0 > .kne-form-creator_ibWvX,
1085
+ .kne-form-creator_As4L6 > .kne-form-creator_7-99l,
1086
+ .kne-form-creator_As4L6 > .kne-form-creator_UhnVH,
1087
+ .kne-form-creator_As4L6 > .kne-form-creator_ibWvX {
1088
+ flex-grow: 2;
1089
+ }
1090
+ .kne-form-creator_uohD0 > .ant-input-number,
1091
+ .kne-form-creator_As4L6 > .ant-input-number {
1092
+ flex: 0 0 120px;
1093
+ }
1094
+ .kne-form-creator_uohD0 > .kne-form-creator_GAh-t,
1095
+ .kne-form-creator_uohD0 > .kne-form-creator_nTN1E,
1096
+ .kne-form-creator_As4L6 > .kne-form-creator_GAh-t,
1097
+ .kne-form-creator_As4L6 > .kne-form-creator_nTN1E {
1098
+ flex: 0 0 28px;
1099
+ }
1100
+
1013
1101
  .kne-form-creator_uohD0 {
1014
1102
  width: 100%;
1015
1103
  }
1016
1104
 
1105
+ .kne-form-creator_As4L6 {
1106
+ display: flex;
1107
+ gap: 8px;
1108
+ align-items: center;
1109
+ width: 100%;
1110
+ color: rgba(0, 0, 0, 0.45);
1111
+ font-size: 12px;
1112
+ line-height: 1.4;
1113
+ }
1114
+ .kne-form-creator_As4L6 > * {
1115
+ overflow: hidden;
1116
+ text-overflow: ellipsis;
1117
+ white-space: nowrap;
1118
+ }
1119
+
1120
+ .kne-form-creator_ttGnB {
1121
+ display: flex;
1122
+ flex-direction: column;
1123
+ gap: 8px;
1124
+ padding: 0 2px;
1125
+ }
1126
+
1127
+ .kne-form-creator_hPtdv {
1128
+ font-size: 12px;
1129
+ }
1130
+
1131
+ .kne-form-creator_aoAt6 {
1132
+ display: flex;
1133
+ flex-direction: column;
1134
+ gap: 8px;
1135
+ }
1136
+
1137
+ .kne-form-creator_phRgr {
1138
+ width: 100%;
1139
+ padding: 8px;
1140
+ border-radius: 6px;
1141
+ background: #fafafa;
1142
+ }
1143
+
1144
+ .kne-form-creator_l-J7d {
1145
+ flex: 1;
1146
+ min-width: 0;
1147
+ display: flex;
1148
+ flex-direction: column;
1149
+ gap: 8px;
1150
+ }
1151
+
1152
+ .kne-form-creator_YRh5W {
1153
+ flex: 1 1 220px;
1154
+ min-width: 0;
1155
+ }
1156
+
1157
+ .kne-form-creator_DIqFq {
1158
+ flex: 0 0 140px;
1159
+ }
1160
+
1161
+ .kne-form-creator_CHcia {
1162
+ width: 100%;
1163
+ }
1164
+
1165
+ .kne-form-creator_lKpVo {
1166
+ width: 100%;
1167
+ display: flex;
1168
+ flex-direction: column;
1169
+ gap: 6px;
1170
+ }
1171
+
1172
+ .kne-form-creator_Ps-cu {
1173
+ flex: 0 0 160px;
1174
+ }
1175
+
1176
+ .kne-form-creator_Wf4eG {
1177
+ width: 100%;
1178
+ }
1179
+ .kne-form-creator_Wf4eG .ant-input-affix-wrapper,
1180
+ .kne-form-creator_Wf4eG .ant-input {
1181
+ flex: 1;
1182
+ }
1183
+ .kne-form-creator_Wf4eG > span:last-child {
1184
+ flex-shrink: 0;
1185
+ }
1186
+
1187
+ @container kne-responsive (max-width: 768px) {
1188
+ .kne-form-creator_DIqFq,
1189
+ .kne-form-creator_Ps-cu {
1190
+ flex: 1 1 100%;
1191
+ }
1192
+ }
1017
1193
  .kne-form-creator_vrTmK {
1018
1194
  display: block;
1019
1195
  margin-top: 8px;
@@ -1071,7 +1247,7 @@
1071
1247
  }
1072
1248
 
1073
1249
  .kne-form-creator_7-99l {
1074
- flex: 2;
1250
+ flex: 2 1 0;
1075
1251
  min-width: 0;
1076
1252
  }
1077
1253