tntd 3.0.31-beta.1 → 3.0.32
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/CHANGELOG.json +1034 -0
- package/CHANGELOG.md +605 -0
- package/es/checkbox/checkbox-group.js +5 -0
- package/es/checkbox/checkbox-group.js.map +1 -0
- package/es/index.js +0 -1
- package/es/index.js.map +1 -1
- package/es/query-form/Field/Checkbox.js +1 -1
- package/es/query-form/Field/Checkbox.js.map +1 -1
- package/es/query-form/Field/Composition/FieldPopover.js +9 -6
- package/es/query-form/Field/Composition/FieldPopover.js.map +1 -1
- package/es/query-form/Field/Composition/ValueTag.js +5 -4
- package/es/query-form/Field/Composition/ValueTag.js.map +1 -1
- package/es/query-form/Field/Composition/index.js +2 -11
- package/es/query-form/Field/Composition/index.js.map +1 -1
- package/es/query-form/Field/Composition/utils.js +7 -5
- package/es/query-form/Field/Composition/utils.js.map +1 -1
- package/es/query-form/Field/SelectInput.js +4 -22
- package/es/query-form/Field/SelectInput.js.map +1 -1
- package/es/query-form/Field/fieldsMap.js +2 -2
- package/es/query-form/Field/fieldsMap.js.map +1 -1
- package/es/query-form/Field/index.js +0 -1
- package/es/query-form/Field/index.js.map +1 -1
- package/es/query-form/index.js +335 -172
- package/es/query-form/index.js.map +1 -1
- package/es/query-form/index.less +60 -26
- package/es/query-list-scene/List.js +2 -14
- package/es/query-list-scene/List.js.map +1 -1
- package/es/query-list-scene/QueryForm.js +11 -36
- package/es/query-list-scene/QueryForm.js.map +1 -1
- package/es/query-list-scene/index.js +1 -2
- package/es/query-list-scene/index.js.map +1 -1
- package/es/radio/radio-group.js +5 -0
- package/es/radio/radio-group.js.map +1 -0
- package/es/steps/stepStyle/small.less +5 -0
- package/es/table/resizableTable/index.less +1 -1
- package/es/tntd-rc-select/style/index.less +27 -19
- package/es/tntd-select/index.js.map +1 -1
- package/es/tntd-virtual-tree/index.js +21 -14
- package/es/tntd-virtual-tree/index.js.map +1 -1
- package/es/tntd-virtual-tree/index.less +10 -7
- package/es/tntd-virtual-tree-select/index.js +2 -2
- package/es/tntd-virtual-tree-select/index.js.map +1 -1
- package/es/tntd-virtual-tree-select/index.less +0 -17
- package/es/tntd-virtual-tree-select/utils.js +2 -2
- package/es/tntd-virtual-tree-select/utils.js.map +1 -1
- package/lib/checkbox/checkbox-group.d.ts +8 -0
- package/lib/checkbox/checkbox-group.d.ts.map +1 -0
- package/lib/checkbox/checkbox-group.js +12 -0
- package/lib/checkbox/checkbox-group.js.map +1 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -7
- package/lib/index.js.map +1 -1
- package/lib/query-form/Field/Checkbox.js +1 -1
- package/lib/query-form/Field/Checkbox.js.map +1 -1
- package/lib/query-form/Field/Composition/FieldPopover.js +9 -11
- package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -1
- package/lib/query-form/Field/Composition/ValueTag.d.ts.map +1 -1
- package/lib/query-form/Field/Composition/ValueTag.js +5 -6
- package/lib/query-form/Field/Composition/ValueTag.js.map +1 -1
- package/lib/query-form/Field/Composition/index.d.ts +0 -1
- package/lib/query-form/Field/Composition/index.js +2 -11
- package/lib/query-form/Field/Composition/index.js.map +1 -1
- package/lib/query-form/Field/Composition/utils.d.ts +1 -0
- package/lib/query-form/Field/Composition/utils.d.ts.map +1 -1
- package/lib/query-form/Field/Composition/utils.js +7 -7
- package/lib/query-form/Field/Composition/utils.js.map +1 -1
- package/lib/query-form/Field/SelectInput.d.ts.map +1 -1
- package/lib/query-form/Field/SelectInput.js +3 -15
- package/lib/query-form/Field/SelectInput.js.map +1 -1
- package/lib/query-form/Field/fieldsMap.d.ts +3 -6
- package/lib/query-form/Field/fieldsMap.js +2 -2
- package/lib/query-form/Field/fieldsMap.js.map +1 -1
- package/lib/query-form/Field/index.d.ts.map +1 -1
- package/lib/query-form/Field/index.js +0 -1
- package/lib/query-form/Field/index.js.map +1 -1
- package/lib/query-form/index.d.ts +27 -19
- package/lib/query-form/index.d.ts.map +1 -1
- package/lib/query-form/index.js +360 -192
- package/lib/query-form/index.js.map +1 -1
- package/lib/query-form/index.less +60 -26
- package/lib/query-list-scene/List.d.ts.map +1 -1
- package/lib/query-list-scene/List.js +2 -15
- package/lib/query-list-scene/List.js.map +1 -1
- package/lib/query-list-scene/QueryForm.d.ts +3 -5
- package/lib/query-list-scene/QueryForm.d.ts.map +1 -1
- package/lib/query-list-scene/QueryForm.js +12 -38
- package/lib/query-list-scene/QueryForm.js.map +1 -1
- package/lib/query-list-scene/index.d.ts.map +1 -1
- package/lib/query-list-scene/index.js +1 -2
- package/lib/query-list-scene/index.js.map +1 -1
- package/lib/radio/radio-group.d.ts +8 -0
- package/lib/radio/radio-group.d.ts.map +1 -0
- package/lib/radio/radio-group.js +12 -0
- package/lib/radio/radio-group.js.map +1 -0
- package/lib/steps/stepStyle/small.less +5 -0
- package/lib/table/resizableTable/index.less +1 -1
- package/lib/tntd-rc-select/style/index.less +27 -19
- package/lib/tntd-select/index.d.ts.map +1 -1
- package/lib/tntd-select/index.js.map +1 -1
- package/lib/tntd-virtual-tree/index.d.ts +1 -1
- package/lib/tntd-virtual-tree/index.d.ts.map +1 -1
- package/lib/tntd-virtual-tree/index.js +23 -14
- package/lib/tntd-virtual-tree/index.js.map +1 -1
- package/lib/tntd-virtual-tree/index.less +10 -7
- package/lib/tntd-virtual-tree-select/index.d.ts +1 -1
- package/lib/tntd-virtual-tree-select/index.js +2 -3
- package/lib/tntd-virtual-tree-select/index.js.map +1 -1
- package/lib/tntd-virtual-tree-select/index.less +0 -17
- package/lib/tntd-virtual-tree-select/utils.js +2 -2
- package/lib/tntd-virtual-tree-select/utils.js.map +1 -1
- package/package.json +2 -3
- package/es/query-form/Field/Composition/FieldPopover.less +0 -35
- package/es/query-form/Field/Composition/index.less +0 -144
- package/es/query-form-v2/index.less +0 -133
- package/es/scroll-bar/scrollBar.less +0 -59
- package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form/Field/Composition/index.less +0 -144
- package/lib/query-form-v2/Field/Checkbox.d.ts +0 -8
- package/lib/query-form-v2/Field/Checkbox.d.ts.map +0 -1
- package/lib/query-form-v2/Field/Checkbox.js +0 -28
- package/lib/query-form-v2/Field/Checkbox.js.map +0 -1
- package/lib/query-form-v2/Field/Select.d.ts +0 -4
- package/lib/query-form-v2/Field/Select.d.ts.map +0 -1
- package/lib/query-form-v2/Field/Select.js +0 -80
- package/lib/query-form-v2/Field/Select.js.map +0 -1
- package/lib/query-form-v2/Field/SelectInput.d.ts +0 -4
- package/lib/query-form-v2/Field/SelectInput.d.ts.map +0 -1
- package/lib/query-form-v2/Field/SelectInput.js +0 -88
- package/lib/query-form-v2/Field/SelectInput.js.map +0 -1
- package/lib/query-form-v2/Field/fieldsMap.d.ts +0 -24
- package/lib/query-form-v2/Field/fieldsMap.d.ts.map +0 -1
- package/lib/query-form-v2/Field/fieldsMap.js +0 -35
- package/lib/query-form-v2/Field/fieldsMap.js.map +0 -1
- package/lib/query-form-v2/Field/index.d.ts +0 -14
- package/lib/query-form-v2/Field/index.d.ts.map +0 -1
- package/lib/query-form-v2/Field/index.js +0 -146
- package/lib/query-form-v2/Field/index.js.map +0 -1
- package/lib/query-form-v2/createActions.d.ts +0 -14
- package/lib/query-form-v2/createActions.d.ts.map +0 -1
- package/lib/query-form-v2/createActions.js +0 -54
- package/lib/query-form-v2/createActions.js.map +0 -1
- package/lib/query-form-v2/index.d.ts +0 -39
- package/lib/query-form-v2/index.d.ts.map +0 -1
- package/lib/query-form-v2/index.js +0 -391
- package/lib/query-form-v2/index.js.map +0 -1
- package/lib/query-form-v2/index.less +0 -133
- package/lib/query-form-v2/useForm.d.ts +0 -13
- package/lib/query-form-v2/useForm.d.ts.map +0 -1
- package/lib/query-form-v2/useForm.js +0 -13
- package/lib/query-form-v2/useForm.js.map +0 -1
- package/lib/query-form-v3/Field/Checkbox.d.ts +0 -8
- package/lib/query-form-v3/Field/Checkbox.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Checkbox.js +0 -28
- package/lib/query-form-v3/Field/Checkbox.js.map +0 -1
- package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts +0 -19
- package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Composition/FieldPopover.js +0 -381
- package/lib/query-form-v3/Field/Composition/FieldPopover.js.map +0 -1
- package/lib/query-form-v3/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form-v3/Field/Composition/Select.d.ts +0 -4
- package/lib/query-form-v3/Field/Composition/Select.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Composition/Select.js +0 -131
- package/lib/query-form-v3/Field/Composition/Select.js.map +0 -1
- package/lib/query-form-v3/Field/Composition/index.d.ts +0 -10
- package/lib/query-form-v3/Field/Composition/index.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Composition/index.js +0 -255
- package/lib/query-form-v3/Field/Composition/index.js.map +0 -1
- package/lib/query-form-v3/Field/Composition/index.less +0 -118
- package/lib/query-form-v3/Field/Composition/utils.d.ts +0 -22
- package/lib/query-form-v3/Field/Composition/utils.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Composition/utils.js +0 -147
- package/lib/query-form-v3/Field/Composition/utils.js.map +0 -1
- package/lib/query-form-v3/Field/Select.d.ts +0 -4
- package/lib/query-form-v3/Field/Select.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Select.js +0 -80
- package/lib/query-form-v3/Field/Select.js.map +0 -1
- package/lib/query-form-v3/Field/SelectInput.d.ts +0 -4
- package/lib/query-form-v3/Field/SelectInput.d.ts.map +0 -1
- package/lib/query-form-v3/Field/SelectInput.js +0 -100
- package/lib/query-form-v3/Field/SelectInput.js.map +0 -1
- package/lib/query-form-v3/Field/fieldsMap.d.ts +0 -27
- package/lib/query-form-v3/Field/fieldsMap.d.ts.map +0 -1
- package/lib/query-form-v3/Field/fieldsMap.js +0 -35
- package/lib/query-form-v3/Field/fieldsMap.js.map +0 -1
- package/lib/query-form-v3/Field/index.d.ts +0 -14
- package/lib/query-form-v3/Field/index.d.ts.map +0 -1
- package/lib/query-form-v3/Field/index.js +0 -147
- package/lib/query-form-v3/Field/index.js.map +0 -1
- package/lib/query-form-v3/createActions.d.ts +0 -14
- package/lib/query-form-v3/createActions.d.ts.map +0 -1
- package/lib/query-form-v3/createActions.js +0 -54
- package/lib/query-form-v3/createActions.js.map +0 -1
- package/lib/query-form-v3/index.d.ts +0 -27
- package/lib/query-form-v3/index.d.ts.map +0 -1
- package/lib/query-form-v3/index.js +0 -206
- package/lib/query-form-v3/index.js.map +0 -1
- package/lib/query-form-v3/index.less +0 -91
- package/lib/query-form-v3/useForm.d.ts +0 -13
- package/lib/query-form-v3/useForm.d.ts.map +0 -1
- package/lib/query-form-v3/useForm.js +0 -13
- package/lib/query-form-v3/useForm.js.map +0 -1
- package/lib/scroll-bar/scrollBar.less +0 -59
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tntd-virtual-tree-select/index.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;GAMG;AACH,+CAAyD;AACzD,uEAAyC;AACzC,6EAAmD;AACnD,yCAA8F;AAC9F,wBAAsB;AAEtB,MAAM,qBAAqB,GAAG,CAAC,EAsB9B,EAAE,EAAE;QAtB0B,EAC7B,MAAM,GAAG,EAAE,EACX,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tntd-virtual-tree-select/index.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;GAMG;AACH,+CAAyD;AACzD,uEAAyC;AACzC,6EAAmD;AACnD,yCAA8F;AAC9F,wBAAsB;AAEtB,MAAM,qBAAqB,GAAG,CAAC,EAsB9B,EAAE,EAAE;QAtB0B,EAC7B,MAAM,GAAG,EAAE,EACX,UAAU,E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BAAT,SAAS,CAAE,MAAM,KAAI,GAAG;gBAChC,QAAQ;gBACR,SAAS;gBACT,gBAAgB,EAAE,oBAAoB;gBACtC,YAAY,EAAE,gBAAgB;gBAC9B,UAAU;gBACV,QAAQ,EAAE,YAAY;gBACtB,WAAW,EAAE,eAAe;gBAC5B,QAAQ,EAAE,YAAY;aACvB,CAAC;YACF,IAAI,aAAa,EAAE;gBACjB,GAAG,mCAAQ,GAAG,KAAE,WAAW,EAAE,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,GAAE,CAAC;aACxH;iBAAM;gBACL,GAAG,mCAAQ,GAAG,KAAE,KAAK,GAAE,CAAC;aACzB;YACD,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC,IACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,qBAAqB,CAAC,UAAU,GAAG,YAAY,CAAA;AAC/C,qBAAqB,CAAC,QAAQ,GAAG,UAAU,CAAA;AAE3C,kBAAe,qBAAqB,CAAC","sourcesContent":["/*\n * @Descripttion: 用select包裹虚拟树\n * @Author: 郑泳健\n * @Date: 2024-08-05 10:50:17\n * @LastEditors: 郑泳健\n * @LastEditTime: 2024-11-06 16:05:58\n */\nimport React, { useState, useRef, useMemo } from 'react';\nimport RcSelect from '../tntd-rc-select';\nimport TntdVirtualTree from '../tntd-virtual-tree';\nimport { filterLastestNode, flatWithParents, getLableByValue, flatTreeData } from './utils.js'\nimport './index.less';\n\nconst TntdVirtualTreeSelect = ({\n indent = 24,\n itemHeight,\n isOrg = false,\n showPrefixIcon= false,\n dropdownClassName,\n value,\n onChange,\n treeData,\n showSearch,\n fieldNames,\n dropdownMatchSelectWidth,\n dropdownStyle,\n showCheckedStrategy,\n treeCheckable,\n treeCheckStrictly,\n treeDefaultExpandAll,\n treeExpandedKeys,\n onTreeCheck,\n onTreeExpand,\n treeTitleRender,\n ...restProps\n}) => {\n const selectRef = useRef(null);\n const [filterKey, setFilterKey] = useState(undefined);\n\n const mergeDropdownStyle = useMemo(() => {\n return Array.isArray(treeData) && treeData.length ? dropdownStyle : {};\n }, [dropdownStyle, treeData]);\n\n const mergeDropdownMatchSelectWidth = useMemo(() => {\n return Array.isArray(treeData) && treeData.length ? dropdownMatchSelectWidth : true;\n }, [dropdownMatchSelectWidth, treeData]);\n\n const treeNodeWithParents = useMemo(() => {\n return flatWithParents(treeData, fieldNames)\n }, [treeData, fieldNames])\n\n const treeList = useMemo(() => {\n return flatTreeData(treeData, fieldNames)\n }, [treeData, fieldNames])\n\n\n const selectValue = useMemo(() => {\n if(!treeCheckable) {\n return getLableByValue(treeList, value)\n }\n\n if(Array.isArray(value)) {\n if(showCheckedStrategy === TntdVirtualTreeSelect.SHOW_ALL) {\n return value.map(i => getLableByValue(treeList, i))\n }\n // 过滤掉有子节点,\n const filterList = value.filter(i => {\n return filterLastestNode(treeNodeWithParents, i, value)\n })\n return filterList.map(i => getLableByValue(treeList, i))\n }\n return undefined\n\n }, [treeCheckable, treeNodeWithParents, value, showCheckedStrategy, treeList])\n\n const mergeMode = useMemo(() => {\n if(treeCheckable) {\n return {\n multiple: true,\n mode: 'tags'\n }\n }\n return {}\n }, [treeCheckable])\n\n const handleRender = ({ showSearch, ...rest }) => {\n return (\n <div className=\"virtual-tree-options\">\n <TntdVirtualTree {...rest} />\n </div>\n );\n };\n\n const handleChange = (val) => {\n onChange(val);\n };\n\n const handleSearch = (val) => {\n setFilterKey(val);\n };\n\n const handleSelect = (val) => {\n const item = Array.isArray(treeList) ? treeList.find(i => i.value === val) : {}\n onChange?.(val, item);\n if (selectRef.current) {\n // 主动触发下拉框消失\n selectRef.current?.blur();\n }\n };\n\n return (\n <RcSelect\n ref={selectRef}\n value={selectValue}\n onChange={handleChange}\n showSearch={showSearch}\n onSearch={handleSearch}\n {...mergeMode}\n {...restProps}\n dropdownClassName={`${dropdownClassName} tntd-virtual-tree-select-dropdown`}\n dropdownMatchSelectWidth={mergeDropdownMatchSelectWidth}\n dropdownStyle={{ maxHeight: '100vh', overflow: 'auto', ...mergeDropdownStyle }}\n dropdownRender={() => {\n let obj = {\n indent,\n itemHeight,\n isOrg,\n showPrefixIcon,\n height: restProps?.height || 300,\n treeData,\n filterKey,\n defaultExpandAll: treeDefaultExpandAll,\n expandedKeys: treeExpandedKeys,\n fieldNames,\n onExpand: onTreeExpand,\n titleRender: treeTitleRender,\n onSelect: handleSelect\n };\n if (treeCheckable) {\n obj = { ...obj, checkedKeys: value, checkStrictly: treeCheckStrictly, checkable: treeCheckable, onCheck: onTreeCheck };\n } else {\n obj = { ...obj, value };\n }\n return handleRender(obj);\n }}\n />\n );\n};\n\nTntdVirtualTreeSelect.SHOW_CHILD = 'SHOW_CHILD'\nTntdVirtualTreeSelect.SHOW_ALL = 'SHOW_ALL'\n\nexport default TntdVirtualTreeSelect;\n"]}
|
|
@@ -2,20 +2,3 @@
|
|
|
2
2
|
padding: 16px;
|
|
3
3
|
margin: -4px 0;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
&.tntd-virtual-tree-select-dropdown{
|
|
7
|
-
border-radius: 16px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.tntd-rc-select-selection-placeholder{
|
|
11
|
-
color: rgba(23, 35, 61, 0.3);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.tntd-rc-select:not(.tntd-rc-select-disabled):hover .tntd-rc-select-selector{
|
|
15
|
-
border-color: var(--blue-6) !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.tnt-select-focused .tnt-select-selection, .tnt-select-selection:focus, .tnt-select-selection:active{
|
|
19
|
-
border-color: var(--blue-5);
|
|
20
|
-
box-shadow: 0 0 0 2px rgba(var(--blue-6-fade), 0.2);
|
|
21
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/tntd-virtual-tree-select/utils.js"],"names":[],"mappings":";;;AAAA;;;;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A;aAC9D;QACH,CAAC,CAAC,CAAA;KACH;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAC;AAdW,QAAA,YAAY,gBAcvB;AAEK,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE;IACjD,IAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC1B,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,IAAI,EAAE,CAAA;QAC7D,OAAO,KAAK,IAAI,KAAK,CAAC;KACvB;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AANY,QAAA,eAAe,mBAM3B","sourcesContent":["/**\n * 给每个节点增加一个parent字段,记录其父节点用于showCheckedStrategy\n * @param {*} treeData \n * @param {*} fieldNames \n * @param {*} parents \n * @returns \n */\nexport const flatWithParents = (treeData, fieldNames = { title: 'title', value: 'value', children: 'children', disabled: 'disabled' }, parents = [], result = {}) => {\n if(Array.isArray(treeData)) {\n treeData.forEach(i => {\n result[i[fieldNames['value']]] = parents;\n if(Array.isArray(i[fieldNames['children']])){\n const list = flatWithParents(i[fieldNames['children']], fieldNames, [...parents, i[fieldNames['value']]])\n result = {...result, ...list}\n }else{\n \n }\n })\n }\n return result\n}\n\nexport const filterLastestNode = (treeNodeWithParents, item, list) => {\n const parents = treeNodeWithParents[item] || {}\n \n if(Array.isArray(parents) && !!parents.length && Array.isArray(list) && !!list.length) {\n return parents.every(el => !list.includes(el))\n }\n\n return false\n}\n\n/**\n * 扁平树\n * @param {*} treeData\n * @param {*} fieldNames 展开的节点\n * @returns\n */\nexport const flatTreeData = (treeData, fieldNames = { title: 'title', value: 'value', children: 'children', disabled: 'disabled' }, result = []) => {\n if(Array.isArray(treeData)) {\n treeData.forEach(i => {\n i['title'] = i[fieldNames['title']];\n i['value'] = i[fieldNames['value']]\n i['children'] = i[fieldNames['children']]\n result.push(i);\n\n if(Array.isArray(i.children) && !!i.children.length) {\n result = [...result, ...flatTreeData(i.children, fieldNames)]\n }\n })\n }\n return result\n};\n\nexport const getLableByValue = (treeList, value) => {\n if(Array.isArray(treeList)) {\n const { title } = treeList.find(i => i.value === value) || {}\n return title || value;\n }\n return value\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tntd",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.32",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "heft start --storybook",
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
"react": "~16.14.0",
|
|
63
63
|
"react-dom": "~16.14.0",
|
|
64
64
|
"jest": "~28.1.0",
|
|
65
|
-
"eslint-plugin-react": "^7.*.*",
|
|
66
65
|
"eslint-plugin-react-hooks": "~4.3.0",
|
|
67
66
|
"eslint": "~8.11.0",
|
|
68
67
|
"eslint-plugin-import": "~2.25.4",
|
|
@@ -114,4 +113,4 @@
|
|
|
114
113
|
"main": "lib/index.js",
|
|
115
114
|
"module": "es/index.js",
|
|
116
115
|
"typings": "lib/index.d.ts"
|
|
117
|
-
}
|
|
116
|
+
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.tnt-queryform-field-popover {
|
|
2
|
-
min-width: 280px;
|
|
3
|
-
.ant-popover-inner-content {
|
|
4
|
-
padding: @padding-sm 0;
|
|
5
|
-
}
|
|
6
|
-
// .ant-calendar-picker {
|
|
7
|
-
// margin: @margin-xxs 0;
|
|
8
|
-
// }
|
|
9
|
-
label {
|
|
10
|
-
color: tint(@text-color, 50%);
|
|
11
|
-
margin-bottom: @margin-xs;
|
|
12
|
-
display: block;
|
|
13
|
-
padding: 0 @padding-sm;
|
|
14
|
-
}
|
|
15
|
-
.ant-select-dropdown-menu {
|
|
16
|
-
&-item {
|
|
17
|
-
padding: @padding-xxs @padding-sm;
|
|
18
|
-
&:hover {
|
|
19
|
-
background-color: @bg-color-quaternary;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
&-content {
|
|
24
|
-
padding: @padding-xxs @padding-sm;
|
|
25
|
-
}
|
|
26
|
-
.ant-select-selected-icon {
|
|
27
|
-
position: absolute;
|
|
28
|
-
right: @margin-base;
|
|
29
|
-
top: @margin-xs;
|
|
30
|
-
color: @blue-6;
|
|
31
|
-
}
|
|
32
|
-
.tnt-highlight {
|
|
33
|
-
color: @blue-6;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
@import '../../../style/themes/index';
|
|
2
|
-
@import '../../../style/mixins/index';
|
|
3
|
-
@import '../../../input/style/mixin';
|
|
4
|
-
|
|
5
|
-
.tnt-queryform-composition-input {
|
|
6
|
-
// width: 100%;
|
|
7
|
-
max-height: 162px;
|
|
8
|
-
overflow-x: hidden;
|
|
9
|
-
cursor: text;
|
|
10
|
-
padding: 2px @padding-xl;
|
|
11
|
-
position: relative;
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
background-color: @select-background;
|
|
14
|
-
border: @border-width-base @border-style-base @select-border-color;
|
|
15
|
-
border-top-width: calc(@border-width-base + 0.02px);
|
|
16
|
-
border-radius: @border-radius-base;
|
|
17
|
-
outline: none;
|
|
18
|
-
transition: all 0.3s @ease-in-out;
|
|
19
|
-
user-select: none;
|
|
20
|
-
margin-bottom: @margin-sm;
|
|
21
|
-
|
|
22
|
-
&-prefix {
|
|
23
|
-
position: absolute;
|
|
24
|
-
left: @padding-sm;
|
|
25
|
-
top: 50%;
|
|
26
|
-
transform: translateY(-50%);
|
|
27
|
-
i.anticon {
|
|
28
|
-
color: #8B919E;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-width {
|
|
33
|
-
height: 0;
|
|
34
|
-
opacity: 0;
|
|
35
|
-
width: auto;
|
|
36
|
-
position: absolute;
|
|
37
|
-
max-width: 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-items {
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-wrap: wrap;
|
|
43
|
-
padding: 0;
|
|
44
|
-
list-style: none;
|
|
45
|
-
margin: 0;
|
|
46
|
-
width: 100%;
|
|
47
|
-
&-item {
|
|
48
|
-
padding: 3px 0;
|
|
49
|
-
}
|
|
50
|
-
li {
|
|
51
|
-
line-height: 1;
|
|
52
|
-
}
|
|
53
|
-
&-input {
|
|
54
|
-
flex: 1;
|
|
55
|
-
min-width: 160px;
|
|
56
|
-
.inputClass {
|
|
57
|
-
background: none;
|
|
58
|
-
border: none !important;
|
|
59
|
-
outline: none;
|
|
60
|
-
box-shadow: none !important;
|
|
61
|
-
width: 100% !important;
|
|
62
|
-
height: 26px;
|
|
63
|
-
line-height: 26px;
|
|
64
|
-
padding: 0;
|
|
65
|
-
input {
|
|
66
|
-
border: none !important;
|
|
67
|
-
outline: none !important;
|
|
68
|
-
box-shadow: none !important;
|
|
69
|
-
height: 26px;
|
|
70
|
-
line-height: 26px;
|
|
71
|
-
padding: 0;
|
|
72
|
-
}
|
|
73
|
-
textarea {
|
|
74
|
-
padding: 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
.inputClass-with-placeholder {
|
|
78
|
-
min-width: 398px !important;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
&-clear {
|
|
83
|
-
position: absolute;
|
|
84
|
-
right: @margin-sm;
|
|
85
|
-
top: 50%;
|
|
86
|
-
transform: translateY(-50%);
|
|
87
|
-
display: none;
|
|
88
|
-
i.anticon {
|
|
89
|
-
color: tint(@bg-color-spotilight, 50%);
|
|
90
|
-
}
|
|
91
|
-
&:hover {
|
|
92
|
-
.anticon {
|
|
93
|
-
color: @text-color-secondary !important;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
&-search {
|
|
98
|
-
position: absolute;
|
|
99
|
-
right: 0;
|
|
100
|
-
top: 0;
|
|
101
|
-
height: 100%;
|
|
102
|
-
border-left: @border-width-base @border-style-base @select-border-color;
|
|
103
|
-
background-color: @fill-color-quaternary;
|
|
104
|
-
display: flex;
|
|
105
|
-
width: 30px;
|
|
106
|
-
justify-content: center;
|
|
107
|
-
align-items: center;
|
|
108
|
-
transition: border-color 0.3s @ease-in-out;
|
|
109
|
-
cursor: pointer;
|
|
110
|
-
&:hover {
|
|
111
|
-
background-color: #E6F4FF;
|
|
112
|
-
i.anticon {
|
|
113
|
-
color: @primary-color;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
&:hover,
|
|
118
|
-
&:focus,
|
|
119
|
-
&:active {
|
|
120
|
-
border-color: @primary-color;
|
|
121
|
-
box-shadow: 0px 0px 4px 0px rgba(18, 107, 251, 0.10), 0px 0px 5px 0px rgba(18, 107, 251, 0.30);
|
|
122
|
-
outline: 0;
|
|
123
|
-
.tnt-queryform-composition-input-prefix {
|
|
124
|
-
i.anticon {
|
|
125
|
-
color: @text-color;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
.tnt-queryform-composition-input-clear {
|
|
129
|
-
display: block;
|
|
130
|
-
}
|
|
131
|
-
.tnt-queryform-composition-input-search {
|
|
132
|
-
border-color: @primary-color;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
.ant-tag {
|
|
136
|
-
padding: 0 @padding-xs;
|
|
137
|
-
border: none;
|
|
138
|
-
background: @fill-color-tertiary;
|
|
139
|
-
height: 20px;
|
|
140
|
-
.ant-tag-addon-wrap {
|
|
141
|
-
margin-top: -2px;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
.tnt-queryform {
|
|
2
|
-
display: flex;
|
|
3
|
-
|
|
4
|
-
&-extra {
|
|
5
|
-
line-height: 32px;
|
|
6
|
-
margin-left: 12px;
|
|
7
|
-
& > * {
|
|
8
|
-
margin-left: 8px;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-actions {
|
|
13
|
-
align-items: center;
|
|
14
|
-
display: inline-block;
|
|
15
|
-
height: 32px;
|
|
16
|
-
line-height: 32px;
|
|
17
|
-
|
|
18
|
-
& > *:not(.expand-link) {
|
|
19
|
-
margin-right: 10px;
|
|
20
|
-
}
|
|
21
|
-
& > .expand-link {
|
|
22
|
-
padding: 0;
|
|
23
|
-
margin-right: 0;
|
|
24
|
-
}
|
|
25
|
-
& > .ant-badge {
|
|
26
|
-
.tnt-icon {
|
|
27
|
-
margin-right: 8px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ant-form {
|
|
33
|
-
display: inline-block;
|
|
34
|
-
margin-bottom: 12px;
|
|
35
|
-
display: flex;
|
|
36
|
-
flex: 1;
|
|
37
|
-
&.ant-form-inline {
|
|
38
|
-
flex-wrap: unset;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
& > div:nth-child(1) {
|
|
42
|
-
height: 32px;
|
|
43
|
-
overflow: hidden;
|
|
44
|
-
.ant-form-item-label {
|
|
45
|
-
label {
|
|
46
|
-
// bottom: 4px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.expanded {
|
|
52
|
-
& > div:nth-child(1) {
|
|
53
|
-
height: auto !important;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.showMore {
|
|
58
|
-
& > div:nth-child(1) {
|
|
59
|
-
.ant-form-item {
|
|
60
|
-
margin-bottom: 12px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
& > div:nth-child(2) {
|
|
66
|
-
display: flex;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.ant-form-inline .ant-form-item {
|
|
70
|
-
margin-right: 10px;
|
|
71
|
-
display: inline-block;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ant-form-item-control {
|
|
75
|
-
// min-width: 160px;
|
|
76
|
-
line-height: unset;
|
|
77
|
-
.ant-calendar-picker-input {
|
|
78
|
-
padding: 0 11px;
|
|
79
|
-
}
|
|
80
|
-
.ant-form-item-children {
|
|
81
|
-
& > .ant-input,
|
|
82
|
-
& > .ant-input-affix-wrapper {
|
|
83
|
-
width: 160px;
|
|
84
|
-
// width: 200px;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&-drawer {
|
|
91
|
-
margin-top: 50px;
|
|
92
|
-
&.large-size {
|
|
93
|
-
margin-top: 60px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&.ant-drawer.ant-drawer-open {
|
|
97
|
-
.ant-drawer-mask {
|
|
98
|
-
opacity: 0;
|
|
99
|
-
background: unset;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
.ant-drawer-body {
|
|
103
|
-
.ant-form-item {
|
|
104
|
-
display: block;
|
|
105
|
-
margin-right: 0;
|
|
106
|
-
margin-bottom: 20px;
|
|
107
|
-
width: 100%;
|
|
108
|
-
}
|
|
109
|
-
.ant-form-item-label {
|
|
110
|
-
display: block;
|
|
111
|
-
text-align: left;
|
|
112
|
-
line-height: 22px;
|
|
113
|
-
margin-bottom: 10px;
|
|
114
|
-
}
|
|
115
|
-
.ant-form-item-control-wrapper,
|
|
116
|
-
.ant-form-item-control,
|
|
117
|
-
.ant-calendar-picker,
|
|
118
|
-
.ant-input {
|
|
119
|
-
min-width: 100%;
|
|
120
|
-
width: 100%;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
& > .ant-btn {
|
|
124
|
-
display: block;
|
|
125
|
-
width: 100%;
|
|
126
|
-
margin-bottom: 10px;
|
|
127
|
-
&.ant-btn-primary {
|
|
128
|
-
margin-top: 20px;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
.tntd-scroll-bar {
|
|
2
|
-
position: relative;
|
|
3
|
-
height: 100%;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
}
|
|
6
|
-
.tntd-scroll-bar-wrap {
|
|
7
|
-
height: 100%;
|
|
8
|
-
overflow: auto;
|
|
9
|
-
}
|
|
10
|
-
.tntd-scroll-bar-wrap-hidden-default {
|
|
11
|
-
scrollbar-width: none;
|
|
12
|
-
&::-webkit-scrollbar {
|
|
13
|
-
display: none;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
.tntd-scroll-bar-view {
|
|
17
|
-
width: fit-content;
|
|
18
|
-
min-width: 100%;
|
|
19
|
-
}
|
|
20
|
-
.tntd-scroll-bar-bar {
|
|
21
|
-
position: absolute;
|
|
22
|
-
right: 2px;
|
|
23
|
-
bottom: 2px;
|
|
24
|
-
z-index: 1;
|
|
25
|
-
border-radius: 4px;
|
|
26
|
-
|
|
27
|
-
&.vertical {
|
|
28
|
-
top: 2px;
|
|
29
|
-
width: 6px;
|
|
30
|
-
|
|
31
|
-
> div {
|
|
32
|
-
width: 100%;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.horizontal {
|
|
37
|
-
left: 2px;
|
|
38
|
-
height: 6px;
|
|
39
|
-
|
|
40
|
-
> div {
|
|
41
|
-
height: 100%;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
.tntd-scroll-bar-thumb {
|
|
46
|
-
position: relative;
|
|
47
|
-
display: block;
|
|
48
|
-
width: 0;
|
|
49
|
-
height: 0;
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
background-color: #909399;
|
|
52
|
-
border-radius: inherit;
|
|
53
|
-
opacity: 0.3;
|
|
54
|
-
transition: 0.3s background-color;
|
|
55
|
-
|
|
56
|
-
&:hover {
|
|
57
|
-
opacity: 0.5;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.tnt-queryform-field-popover {
|
|
2
|
-
min-width: 280px;
|
|
3
|
-
.ant-popover-inner-content {
|
|
4
|
-
padding: @padding-sm 0;
|
|
5
|
-
}
|
|
6
|
-
// .ant-calendar-picker {
|
|
7
|
-
// margin: @margin-xxs 0;
|
|
8
|
-
// }
|
|
9
|
-
label {
|
|
10
|
-
color: tint(@text-color, 50%);
|
|
11
|
-
margin-bottom: @margin-xs;
|
|
12
|
-
display: block;
|
|
13
|
-
padding: 0 @padding-sm;
|
|
14
|
-
}
|
|
15
|
-
.ant-select-dropdown-menu {
|
|
16
|
-
&-item {
|
|
17
|
-
padding: @padding-xxs @padding-sm;
|
|
18
|
-
&:hover {
|
|
19
|
-
background-color: @bg-color-quaternary;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
&-content {
|
|
24
|
-
padding: @padding-xxs @padding-sm;
|
|
25
|
-
}
|
|
26
|
-
.ant-select-selected-icon {
|
|
27
|
-
position: absolute;
|
|
28
|
-
right: @margin-base;
|
|
29
|
-
top: @margin-xs;
|
|
30
|
-
color: @blue-6;
|
|
31
|
-
}
|
|
32
|
-
.tnt-highlight {
|
|
33
|
-
color: @blue-6;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
@import '../../../style/themes/index';
|
|
2
|
-
@import '../../../style/mixins/index';
|
|
3
|
-
@import '../../../input/style/mixin';
|
|
4
|
-
|
|
5
|
-
.tnt-queryform-composition-input {
|
|
6
|
-
// width: 100%;
|
|
7
|
-
max-height: 162px;
|
|
8
|
-
overflow-x: hidden;
|
|
9
|
-
cursor: text;
|
|
10
|
-
padding: 2px @padding-xl;
|
|
11
|
-
position: relative;
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
background-color: @select-background;
|
|
14
|
-
border: @border-width-base @border-style-base @select-border-color;
|
|
15
|
-
border-top-width: calc(@border-width-base + 0.02px);
|
|
16
|
-
border-radius: @border-radius-base;
|
|
17
|
-
outline: none;
|
|
18
|
-
transition: all 0.3s @ease-in-out;
|
|
19
|
-
user-select: none;
|
|
20
|
-
margin-bottom: @margin-sm;
|
|
21
|
-
|
|
22
|
-
&-prefix {
|
|
23
|
-
position: absolute;
|
|
24
|
-
left: @padding-sm;
|
|
25
|
-
top: 50%;
|
|
26
|
-
transform: translateY(-50%);
|
|
27
|
-
i.anticon {
|
|
28
|
-
color: #8B919E;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-width {
|
|
33
|
-
height: 0;
|
|
34
|
-
opacity: 0;
|
|
35
|
-
width: auto;
|
|
36
|
-
position: absolute;
|
|
37
|
-
max-width: 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-items {
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-wrap: wrap;
|
|
43
|
-
padding: 0;
|
|
44
|
-
list-style: none;
|
|
45
|
-
margin: 0;
|
|
46
|
-
width: 100%;
|
|
47
|
-
&-item {
|
|
48
|
-
padding: 3px 0;
|
|
49
|
-
}
|
|
50
|
-
li {
|
|
51
|
-
line-height: 1;
|
|
52
|
-
}
|
|
53
|
-
&-input {
|
|
54
|
-
flex: 1;
|
|
55
|
-
min-width: 160px;
|
|
56
|
-
.inputClass {
|
|
57
|
-
background: none;
|
|
58
|
-
border: none !important;
|
|
59
|
-
outline: none;
|
|
60
|
-
box-shadow: none !important;
|
|
61
|
-
width: 100% !important;
|
|
62
|
-
height: 26px;
|
|
63
|
-
line-height: 26px;
|
|
64
|
-
padding: 0;
|
|
65
|
-
input {
|
|
66
|
-
border: none !important;
|
|
67
|
-
outline: none !important;
|
|
68
|
-
box-shadow: none !important;
|
|
69
|
-
height: 26px;
|
|
70
|
-
line-height: 26px;
|
|
71
|
-
padding: 0;
|
|
72
|
-
}
|
|
73
|
-
textarea {
|
|
74
|
-
padding: 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
.inputClass-with-placeholder {
|
|
78
|
-
min-width: 398px !important;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
&-clear {
|
|
83
|
-
position: absolute;
|
|
84
|
-
right: @margin-sm;
|
|
85
|
-
top: 50%;
|
|
86
|
-
transform: translateY(-50%);
|
|
87
|
-
display: none;
|
|
88
|
-
i.anticon {
|
|
89
|
-
color: tint(@bg-color-spotilight, 50%);
|
|
90
|
-
}
|
|
91
|
-
&:hover {
|
|
92
|
-
.anticon {
|
|
93
|
-
color: @text-color-secondary !important;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
&-search {
|
|
98
|
-
position: absolute;
|
|
99
|
-
right: 0;
|
|
100
|
-
top: 0;
|
|
101
|
-
height: 100%;
|
|
102
|
-
border-left: @border-width-base @border-style-base @select-border-color;
|
|
103
|
-
background-color: @fill-color-quaternary;
|
|
104
|
-
display: flex;
|
|
105
|
-
width: 30px;
|
|
106
|
-
justify-content: center;
|
|
107
|
-
align-items: center;
|
|
108
|
-
transition: border-color 0.3s @ease-in-out;
|
|
109
|
-
cursor: pointer;
|
|
110
|
-
&:hover {
|
|
111
|
-
background-color: #E6F4FF;
|
|
112
|
-
i.anticon {
|
|
113
|
-
color: @primary-color;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
&:hover,
|
|
118
|
-
&:focus,
|
|
119
|
-
&:active {
|
|
120
|
-
border-color: @primary-color;
|
|
121
|
-
box-shadow: 0px 0px 4px 0px rgba(18, 107, 251, 0.10), 0px 0px 5px 0px rgba(18, 107, 251, 0.30);
|
|
122
|
-
outline: 0;
|
|
123
|
-
.tnt-queryform-composition-input-prefix {
|
|
124
|
-
i.anticon {
|
|
125
|
-
color: @text-color;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
.tnt-queryform-composition-input-clear {
|
|
129
|
-
display: block;
|
|
130
|
-
}
|
|
131
|
-
.tnt-queryform-composition-input-search {
|
|
132
|
-
border-color: @primary-color;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
.ant-tag {
|
|
136
|
-
padding: 0 @padding-xs;
|
|
137
|
-
border: none;
|
|
138
|
-
background: @fill-color-tertiary;
|
|
139
|
-
height: 20px;
|
|
140
|
-
.ant-tag-addon-wrap {
|
|
141
|
-
margin-top: -2px;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/query-form-v2/Field/Checkbox.js"],"names":[],"mappings":"AAIe;;;;sBAQd"}
|