@teamix/pro 1.2.11 → 1.2.15
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/dist/212.js +799 -767
- package/dist/pro.css +1 -1
- package/dist/pro.js +2518 -1793
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/actions/dialog-component.js +2 -2
- package/es/actions/dialog-form.js +2 -2
- package/es/actions/dialog.js +5 -3
- package/es/actions/index.js +11 -7
- package/es/actions/index.scss +14 -0
- package/es/actions/link.js +2 -2
- package/es/actions/request.js +2 -2
- package/es/actions/utils.js +2 -2
- package/es/card/card-container.js +2 -2
- package/es/card/divider.js +2 -2
- package/es/card/index.d.ts +6 -3
- package/es/card/index.js +11 -6
- package/es/card/index.scss +4 -0
- package/es/card/selectable.js +2 -2
- package/es/card/tab.js +2 -2
- package/es/form/Components/Editable/index.js +2 -2
- package/es/form/Components/FormGroup/index.js +2 -2
- package/es/form/Components/LightFilter/componentMap.d.ts +2 -0
- package/es/form/Components/LightFilter/componentMap.js +5 -0
- package/es/form/Components/LightFilter/index.d.ts +15 -0
- package/es/form/Components/{QueryFilter → LightFilter}/index.js +46 -44
- package/es/form/Components/LightFilter/index.scss +74 -0
- package/es/form/Components/ProField/index.js +2 -2
- package/es/form/Components/Text/index.js +2 -2
- package/es/form/Filter/index.d.ts +2 -5
- package/es/form/Filter/index.js +5 -46
- package/es/form/Filter/index.scss +25 -0
- package/es/form/Filter/index2.d.ts +8 -0
- package/es/form/Filter/index2.js +366 -0
- package/es/form/Filter/index2.scss +73 -0
- package/es/form/ProForm/index.js +2 -2
- package/es/form/ProForm/index.scss +10 -28
- package/es/form/ProForm/useAutoSubmit.js +2 -2
- package/es/form/ProForm/useFieldRequest.js +2 -2
- package/es/form/ProForm/useFormDisplayValues.d.ts +3 -5
- package/es/form/ProForm/useFormDisplayValues.js +79 -42
- package/es/form/ProForm/useInitialRequest.js +2 -2
- package/es/form/SchemaForm/adapterType.js +1 -0
- package/es/form/SchemaForm/index.js +4 -4
- package/es/form/SchemaForm/initializeArrayCards.js +2 -2
- package/es/form/SchemaForm/initializeArrayCollapse.js +2 -2
- package/es/form/SchemaForm/initializeArrayItems.js +2 -2
- package/es/form/SchemaForm/initializeArrayTable.js +2 -2
- package/es/form/SchemaForm/initializeFormButton.js +2 -2
- package/es/form/SchemaForm/initializeFormCollapse.js +2 -2
- package/es/form/SchemaForm/initializeFormGroup.js +2 -2
- package/es/form/SchemaForm/initializeFormStep.js +2 -2
- package/es/form/SchemaForm/initializeFormTab.js +2 -2
- package/es/form/SchemaForm/initializeReactions.js +2 -2
- package/es/form/SchemaForm/initializeRules.js +2 -2
- package/es/form/SchemaForm/reactions.js +4 -8
- package/es/form/fieldTypeMap.js +1 -0
- package/es/form/global.scss +1 -0
- package/es/form/index.d.ts +2 -1
- package/es/form/index.js +5 -4
- package/es/form/typing.d.ts +9 -0
- package/es/form/utils.js +2 -2
- package/es/form/warning.js +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/info/components/InfoGroup/index.js +2 -2
- package/es/info/components/InfoValueItem/index.js +2 -2
- package/es/info/components/ProInfoItem/index.js +3 -1
- package/es/info/components/tableInfo/index.js +2 -2
- package/es/info/index.js +2 -2
- package/es/info/utils/index.js +2 -2
- package/es/nocode/pages/playground.js +2 -2
- package/es/nocode/pages/renderer.d.ts +2 -2
- package/es/nocode/pages/renderer.js +5 -5
- package/es/nocode/playground.js +2 -2
- package/es/page-header/index.d.ts +1 -2
- package/es/page-header/index.js +4 -14
- package/es/sidebar/components/sidebar-container/index.js +2 -2
- package/es/sidebar/components/tree/index.js +2 -2
- package/es/sidebar/index.js +2 -2
- package/es/table/components/Filter/index.js +10 -8
- package/es/table/components/Filter/index.scss +7 -3
- package/es/table/components/Layout/index.js +13 -4
- package/es/table/components/QuickAction/index.js +3 -3
- package/es/table/components/ToolBar/FilterColumnIcon.js +54 -19
- package/es/table/components/ToolBar/index.js +2 -2
- package/es/table/components/ToolBar/index.scss +1 -0
- package/es/table/index.js +30 -14
- package/es/table/typing.d.ts +9 -1
- package/es/table/utils/columnRender.js +61 -3
- package/es/table/utils/genProColumnToColumn.js +2 -2
- package/es/table/utils/index.js +24 -4
- package/es/table/utils/useTableSelection.js +2 -2
- package/es/templates/List/index.js +2 -2
- package/es/utils/message.d.ts +1 -1
- package/es/utils/message.js +9 -9
- package/lib/actions/dialog-component.js +2 -2
- package/lib/actions/dialog-form.js +3 -3
- package/lib/actions/dialog.js +6 -4
- package/lib/actions/index.js +11 -7
- package/lib/actions/index.scss +14 -0
- package/lib/actions/link.js +2 -2
- package/lib/actions/request.js +2 -2
- package/lib/actions/utils.js +2 -2
- package/lib/card/card-container.js +2 -2
- package/lib/card/divider.js +2 -2
- package/lib/card/index.d.ts +6 -3
- package/lib/card/index.js +11 -6
- package/lib/card/index.scss +4 -0
- package/lib/card/selectable.js +2 -2
- package/lib/card/tab.js +2 -2
- package/lib/field/index.js +1 -1
- package/lib/form/Components/Editable/index.js +3 -3
- package/lib/form/Components/FormGroup/index.js +2 -2
- package/lib/form/Components/LightFilter/componentMap.d.ts +2 -0
- package/lib/form/Components/LightFilter/componentMap.js +12 -0
- package/lib/form/Components/LightFilter/index.d.ts +15 -0
- package/lib/form/Components/{QueryFilter → LightFilter}/index.js +51 -44
- package/lib/form/Components/LightFilter/index.scss +74 -0
- package/lib/form/Components/ProField/index.js +2 -2
- package/lib/form/Components/Text/index.js +2 -2
- package/lib/form/Filter/index.d.ts +2 -5
- package/lib/form/Filter/index.js +7 -48
- package/lib/form/Filter/index.scss +25 -0
- package/lib/form/Filter/index2.d.ts +8 -0
- package/lib/form/Filter/index2.js +392 -0
- package/lib/form/Filter/index2.scss +73 -0
- package/lib/form/ProForm/index.js +3 -3
- package/lib/form/ProForm/index.scss +10 -28
- package/lib/form/ProForm/useAutoSubmit.js +2 -2
- package/lib/form/ProForm/useFieldRequest.js +2 -2
- package/lib/form/ProForm/useFormDisplayValues.d.ts +3 -5
- package/lib/form/ProForm/useFormDisplayValues.js +83 -44
- package/lib/form/ProForm/useInitialRequest.js +2 -2
- package/lib/form/SchemaForm/adapterType.js +1 -0
- package/lib/form/SchemaForm/index.js +5 -5
- package/lib/form/SchemaForm/initializeArrayCards.js +2 -2
- package/lib/form/SchemaForm/initializeArrayCollapse.js +2 -2
- package/lib/form/SchemaForm/initializeArrayItems.js +2 -2
- package/lib/form/SchemaForm/initializeArrayTable.js +2 -2
- package/lib/form/SchemaForm/initializeFormButton.js +2 -2
- package/lib/form/SchemaForm/initializeFormCollapse.js +2 -2
- package/lib/form/SchemaForm/initializeFormGroup.js +2 -2
- package/lib/form/SchemaForm/initializeFormStep.js +2 -2
- package/lib/form/SchemaForm/initializeFormTab.js +2 -2
- package/lib/form/SchemaForm/initializeReactions.js +2 -2
- package/lib/form/SchemaForm/initializeRules.js +2 -2
- package/lib/form/SchemaForm/reactions.js +3 -7
- package/lib/form/fieldTypeMap.js +1 -0
- package/lib/form/global.scss +1 -0
- package/lib/form/index.d.ts +2 -1
- package/lib/form/index.js +8 -6
- package/lib/form/typing.d.ts +9 -0
- package/lib/form/utils.js +2 -2
- package/lib/form/warning.js +2 -2
- package/lib/hooks/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/info/components/InfoGroup/index.js +3 -3
- package/lib/info/components/InfoValueItem/index.js +3 -3
- package/lib/info/components/ProInfoItem/index.js +3 -1
- package/lib/info/components/tableInfo/index.js +3 -3
- package/lib/info/index.js +3 -3
- package/lib/info/utils/index.js +2 -2
- package/lib/nocode/configurators/index.js +1 -1
- package/lib/nocode/pages/playground.js +3 -3
- package/lib/nocode/pages/renderer.d.ts +2 -2
- package/lib/nocode/pages/renderer.js +5 -5
- package/lib/nocode/playground.js +3 -3
- package/lib/page-container/index.js +1 -1
- package/lib/page-header/index.d.ts +1 -2
- package/lib/page-header/index.js +6 -17
- package/lib/sidebar/components/sidebar-container/index.js +2 -2
- package/lib/sidebar/components/tree/index.js +3 -3
- package/lib/sidebar/index.js +3 -3
- package/lib/skeleton/index.js +1 -1
- package/lib/table/components/Filter/index.js +11 -9
- package/lib/table/components/Filter/index.scss +7 -3
- package/lib/table/components/Layout/index.js +13 -4
- package/lib/table/components/QuickAction/index.js +3 -3
- package/lib/table/components/ToolBar/DensityIcon.js +1 -1
- package/lib/table/components/ToolBar/FilterColumnIcon.js +55 -20
- package/lib/table/components/ToolBar/FullScreenIcon.js +1 -1
- package/lib/table/components/ToolBar/Fullscreen.js +1 -1
- package/lib/table/components/ToolBar/index.js +2 -2
- package/lib/table/components/ToolBar/index.scss +1 -0
- package/lib/table/index.js +29 -13
- package/lib/table/typing.d.ts +9 -1
- package/lib/table/utils/columnRender.js +61 -3
- package/lib/table/utils/genProColumnToColumn.js +2 -2
- package/lib/table/utils/index.js +24 -4
- package/lib/table/utils/useTableSelection.js +2 -2
- package/lib/templates/List/index.js +3 -3
- package/lib/utils/index.js +1 -1
- package/lib/utils/message.d.ts +1 -1
- package/lib/utils/message.js +9 -9
- package/package.json +4 -4
- package/es/form/Components/Query/index.d.ts +0 -4
- package/es/form/Components/Query/index.js +0 -70
- package/es/form/Components/Query/index.scss +0 -85
- package/es/form/Components/QueryFilter/index.d.ts +0 -3
- package/es/utils/components/tags/index.d.ts +0 -11
- package/es/utils/components/tags/index.js +0 -50
- package/es/utils/components/tags/index.scss +0 -12
- package/lib/form/Components/Query/index.d.ts +0 -4
- package/lib/form/Components/Query/index.js +0 -91
- package/lib/form/Components/Query/index.scss +0 -85
- package/lib/form/Components/QueryFilter/index.d.ts +0 -3
- package/lib/utils/components/tags/index.d.ts +0 -11
- package/lib/utils/components/tags/index.js +0 -66
- package/lib/utils/components/tags/index.scss +0 -12
@@ -1,8 +1,8 @@
|
|
1
1
|
var _excluded = ["children", "className"];
|
2
2
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
4
4
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
6
6
|
|
7
7
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
8
8
|
|
@@ -1,16 +1,13 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { IFilterProps } from '../typing';
|
3
|
+
import './index.scss';
|
3
4
|
/**
|
4
5
|
* 简单筛选
|
5
6
|
*/
|
6
7
|
declare const SimpleFilter: React.FC<IFilterProps>;
|
7
|
-
/**
|
8
|
-
* 查询筛选
|
9
|
-
*/
|
10
|
-
declare const QueryFilter: React.FC<IFilterProps>;
|
11
8
|
/**
|
12
9
|
* 高级筛选
|
13
10
|
*/
|
14
11
|
declare const AdvancedFilter: React.FC<IFilterProps>;
|
15
|
-
export { AdvancedFilter, SimpleFilter
|
12
|
+
export { AdvancedFilter, SimpleFilter };
|
16
13
|
export default AdvancedFilter;
|
package/es/form/Filter/index.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
var _excluded = ["schema", "triggerType", "onFilter"]
|
2
|
-
_excluded2 = ["schema", "triggerType", "onFilter"];
|
1
|
+
var _excluded = ["schema", "triggerType", "onFilter"];
|
3
2
|
|
4
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
5
4
|
|
@@ -17,9 +16,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
17
16
|
|
18
17
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
19
18
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
21
20
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
21
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
23
22
|
|
24
23
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
25
24
|
|
@@ -29,6 +28,7 @@ import { usePrefixCls, getMessage } from '@teamix/utils';
|
|
29
28
|
import { createForm } from '@formily/core';
|
30
29
|
import ProForm from '../ProForm';
|
31
30
|
import { mergeArrayValue } from '../utils';
|
31
|
+
import './index.scss';
|
32
32
|
|
33
33
|
var getEventProps = function getEventProps(triggerType, onFilter) {
|
34
34
|
var keydownEvent = {
|
@@ -89,47 +89,6 @@ var SimpleFilter = /*#__PURE__*/memo(function (props) {
|
|
89
89
|
SimpleFilter.defaultProps = {
|
90
90
|
triggerType: 'change'
|
91
91
|
};
|
92
|
-
/**
|
93
|
-
* 查询筛选
|
94
|
-
*/
|
95
|
-
|
96
|
-
var QueryFilter = /*#__PURE__*/memo(function (props) {
|
97
|
-
var schema = props.schema,
|
98
|
-
triggerType = props.triggerType,
|
99
|
-
onFilter = props.onFilter,
|
100
|
-
otherProps = _objectWithoutProperties(props, _excluded2);
|
101
|
-
|
102
|
-
var prefixCls = usePrefixCls('', {
|
103
|
-
prefix: 'teamix-pro-form-filter-query'
|
104
|
-
});
|
105
|
-
var querySchema = useMemo(function () {
|
106
|
-
return [{
|
107
|
-
component: 'QueryFilter',
|
108
|
-
props: {
|
109
|
-
placeholder: 'placeholder'
|
110
|
-
},
|
111
|
-
children: schema
|
112
|
-
}, {
|
113
|
-
type: 'void',
|
114
|
-
decorator: null,
|
115
|
-
component: 'Submit',
|
116
|
-
props: {
|
117
|
-
style: _objectSpread({}, triggerType === 'submit' ? {} : {
|
118
|
-
display: 'none'
|
119
|
-
})
|
120
|
-
}
|
121
|
-
}];
|
122
|
-
}, []);
|
123
|
-
var eventProps = getEventProps(triggerType, onFilter);
|
124
|
-
return /*#__PURE__*/React.createElement(ProForm, _objectSpread(_objectSpread(_objectSpread({
|
125
|
-
feedbackLayout: "none",
|
126
|
-
breakpoints: [],
|
127
|
-
bordered: false
|
128
|
-
}, otherProps), eventProps), {}, {
|
129
|
-
className: cls(prefixCls, props.className),
|
130
|
-
schema: querySchema
|
131
|
-
}));
|
132
|
-
});
|
133
92
|
/**
|
134
93
|
* 高级筛选
|
135
94
|
*/
|
@@ -221,5 +180,5 @@ AdvancedFilter.defaultProps = {
|
|
221
180
|
labelCol: 6,
|
222
181
|
wrapperCol: 18
|
223
182
|
};
|
224
|
-
export { AdvancedFilter, SimpleFilter
|
183
|
+
export { AdvancedFilter, SimpleFilter };
|
225
184
|
export default AdvancedFilter;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@import '../global.scss';
|
2
|
+
|
3
|
+
// 筛选
|
4
|
+
.#{$teamix-pro-form}-filter-advanced,
|
5
|
+
.#{$teamix-pro-form}-filter-simple {
|
6
|
+
.#{$form-item-cls}-feedback-layout-popover {
|
7
|
+
margin-bottom: 0;
|
8
|
+
}
|
9
|
+
.#{$css-prefix}date-picker2-input {
|
10
|
+
.#{$css-prefix}input {
|
11
|
+
width: inherit;
|
12
|
+
input {
|
13
|
+
width: inherit;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
// 筛选和抽屉按钮
|
20
|
+
.#{$teamix-pro-form}-filter-advanced,
|
21
|
+
.#{$css-prefix}drawer-footer {
|
22
|
+
.#{$css-prefix}formily-button-group {
|
23
|
+
margin-top: 0;
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,366 @@
|
|
1
|
+
var _excluded = ["schema", "onChange", "onSubmit"],
|
2
|
+
_excluded2 = ["form", "schema", "onSubmit", "onChange"],
|
3
|
+
_excluded3 = ["schema", "onSubmit", "onChange", "onReset", "layout", "labelAlign", "wrapperAlign", "labelCol", "wrapperCol"],
|
4
|
+
_excluded4 = ["addonAfter", "addonBefore", "onFilter", "mode", "expand"];
|
5
|
+
|
6
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
7
|
+
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
9
|
+
|
10
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
11
|
+
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
13
|
+
|
14
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
15
|
+
|
16
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
17
|
+
|
18
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
19
|
+
|
20
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
21
|
+
|
22
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
23
|
+
|
24
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
25
|
+
|
26
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
27
|
+
|
28
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
29
|
+
|
30
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
31
|
+
|
32
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
33
|
+
|
34
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
35
|
+
|
36
|
+
import React, { memo, useCallback, useMemo, useState, useEffect } from 'react';
|
37
|
+
import cls from 'classnames';
|
38
|
+
import { Tag, Button, Badge } from '@alicloudfe/components';
|
39
|
+
import TeamixIcon from '@teamix/icon';
|
40
|
+
import { createForm } from '@formily/core';
|
41
|
+
import { usePrefixCls, getMessage, isSignificative } from '@teamix/utils';
|
42
|
+
import ProField from '../../field/index';
|
43
|
+
import ProForm from '../ProForm';
|
44
|
+
import fieldTypeMap from '../fieldTypeMap';
|
45
|
+
import { getFormDisplayValues } from '../ProForm/useFormDisplayValues';
|
46
|
+
import { mergeArrayValue } from '../utils';
|
47
|
+
import './index2.scss';
|
48
|
+
/**
|
49
|
+
* 简单筛选
|
50
|
+
*/
|
51
|
+
|
52
|
+
var SimpleFilter = /*#__PURE__*/memo(function (props) {
|
53
|
+
var schema = props.schema,
|
54
|
+
onChange = props.onChange,
|
55
|
+
onSubmit = props.onSubmit,
|
56
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
57
|
+
|
58
|
+
var prefixCls = usePrefixCls('', {
|
59
|
+
prefix: 'teamix-pro-form-query-filter-simple'
|
60
|
+
});
|
61
|
+
var simpleSchema = useMemo(function () {
|
62
|
+
return [{
|
63
|
+
component: 'FormFlex',
|
64
|
+
props: {
|
65
|
+
size: 8
|
66
|
+
},
|
67
|
+
children: schema
|
68
|
+
}, {
|
69
|
+
component: 'Submit',
|
70
|
+
props: {
|
71
|
+
style: {
|
72
|
+
display: 'none'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}];
|
76
|
+
}, [schema]);
|
77
|
+
return /*#__PURE__*/React.createElement(ProForm, _objectSpread(_objectSpread({}, otherProps), {}, {
|
78
|
+
className: cls(prefixCls, props.className),
|
79
|
+
schema: simpleSchema,
|
80
|
+
feedbackLayout: "popover",
|
81
|
+
breakpoints: [],
|
82
|
+
inset: true,
|
83
|
+
onSubmit: onSubmit,
|
84
|
+
onChange: onChange
|
85
|
+
}));
|
86
|
+
});
|
87
|
+
/**
|
88
|
+
* 轻量筛选
|
89
|
+
*/
|
90
|
+
|
91
|
+
var LightFilter = /*#__PURE__*/memo(function (props) {
|
92
|
+
var form = props.form,
|
93
|
+
schema = props.schema,
|
94
|
+
onSubmit = props.onSubmit,
|
95
|
+
onChange = props.onChange,
|
96
|
+
otherProps = _objectWithoutProperties(props, _excluded2);
|
97
|
+
|
98
|
+
var prefixCls = usePrefixCls('', {
|
99
|
+
prefix: 'teamix-pro-form-query-filter-light'
|
100
|
+
});
|
101
|
+
var LightSchema = useMemo(function () {
|
102
|
+
return [{
|
103
|
+
component: 'LightFilter',
|
104
|
+
children: schema
|
105
|
+
}, {
|
106
|
+
component: 'Submit',
|
107
|
+
props: {
|
108
|
+
style: {
|
109
|
+
display: 'none'
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}];
|
113
|
+
}, [schema]); // useEffect(() => {
|
114
|
+
// form.addEffects('onChange', () => {
|
115
|
+
// onFieldValueChange('',(field:any) => {
|
116
|
+
// console.log(field.value);
|
117
|
+
// });
|
118
|
+
// });
|
119
|
+
// }, [form, onChange]);
|
120
|
+
|
121
|
+
return /*#__PURE__*/React.createElement(ProForm, _objectSpread(_objectSpread({}, otherProps), {}, {
|
122
|
+
form: form,
|
123
|
+
className: cls(prefixCls, props.className),
|
124
|
+
schema: LightSchema,
|
125
|
+
feedbackLayout: "popover",
|
126
|
+
breakpoints: [],
|
127
|
+
bordered: false,
|
128
|
+
onSubmit: onSubmit,
|
129
|
+
onChange: onChange
|
130
|
+
}));
|
131
|
+
});
|
132
|
+
/**
|
133
|
+
* 高级筛选
|
134
|
+
*/
|
135
|
+
|
136
|
+
var AdvancedFilter = /*#__PURE__*/memo(function (props) {
|
137
|
+
var schema = props.schema,
|
138
|
+
onSubmit = props.onSubmit,
|
139
|
+
onChange = props.onChange,
|
140
|
+
onReset = props.onReset,
|
141
|
+
layout = props.layout,
|
142
|
+
labelAlign = props.labelAlign,
|
143
|
+
wrapperAlign = props.wrapperAlign,
|
144
|
+
labelCol = props.labelCol,
|
145
|
+
wrapperCol = props.wrapperCol,
|
146
|
+
otherProps = _objectWithoutProperties(props, _excluded3);
|
147
|
+
|
148
|
+
var prefixCls = usePrefixCls('', {
|
149
|
+
prefix: 'teamix-pro-form-query-filter-advanced'
|
150
|
+
});
|
151
|
+
var gridSchema = useMemo(function () {
|
152
|
+
return [{
|
153
|
+
name: 'FormGrid',
|
154
|
+
component: 'FormGrid',
|
155
|
+
props: {
|
156
|
+
breakpoints: [480, 720, 990, 1200, Infinity],
|
157
|
+
maxColumns: [1, 2, 3, 3, 4],
|
158
|
+
columnGap: 16,
|
159
|
+
rowGap: 12
|
160
|
+
},
|
161
|
+
children: [].concat(_toConsumableArray(schema), [{
|
162
|
+
component: 'FormGrid.GridColumn',
|
163
|
+
props: {
|
164
|
+
gridSpan: -1
|
165
|
+
},
|
166
|
+
children: [{
|
167
|
+
component: 'FormButtonGroup',
|
168
|
+
props: {
|
169
|
+
align: 'right'
|
170
|
+
},
|
171
|
+
children: [{
|
172
|
+
component: 'Reset',
|
173
|
+
props: {
|
174
|
+
onResetValidateSuccess: onReset,
|
175
|
+
children: getMessage('reset')
|
176
|
+
}
|
177
|
+
}, {
|
178
|
+
component: 'Submit',
|
179
|
+
props: {
|
180
|
+
style: {
|
181
|
+
marginRight: -8
|
182
|
+
},
|
183
|
+
children: getMessage('search')
|
184
|
+
}
|
185
|
+
}]
|
186
|
+
}]
|
187
|
+
}])
|
188
|
+
}];
|
189
|
+
}, [schema, onReset]);
|
190
|
+
var getTeamixLayout = useMemo(function () {
|
191
|
+
return {
|
192
|
+
breakpoints: [990],
|
193
|
+
layout: mergeArrayValue(['vertical'], layout),
|
194
|
+
labelAlign: mergeArrayValue(['left'], labelAlign),
|
195
|
+
wrapperAlign: mergeArrayValue(['left'], wrapperAlign),
|
196
|
+
labelCol: mergeArrayValue([24], labelCol),
|
197
|
+
wrapperCol: mergeArrayValue([24], wrapperCol)
|
198
|
+
};
|
199
|
+
}, [layout, labelAlign, wrapperAlign, labelCol, wrapperCol]);
|
200
|
+
return /*#__PURE__*/React.createElement(ProForm, _objectSpread(_objectSpread(_objectSpread({
|
201
|
+
className: cls(prefixCls, props.className),
|
202
|
+
schema: gridSchema,
|
203
|
+
feedbackLayout: "popover"
|
204
|
+
}, otherProps), getTeamixLayout), {}, {
|
205
|
+
onSubmit: onSubmit
|
206
|
+
}));
|
207
|
+
});
|
208
|
+
AdvancedFilter.defaultProps = {
|
209
|
+
layout: 'horizontal',
|
210
|
+
labelAlign: 'right',
|
211
|
+
labelCol: 6,
|
212
|
+
wrapperCol: 18
|
213
|
+
};
|
214
|
+
/**
|
215
|
+
* 查询筛选
|
216
|
+
*/
|
217
|
+
|
218
|
+
var QueryFilter = /*#__PURE__*/memo(function (props) {
|
219
|
+
var addonAfter = props.addonAfter,
|
220
|
+
addonBefore = props.addonBefore,
|
221
|
+
onFilter = props.onFilter,
|
222
|
+
mode = props.mode,
|
223
|
+
expand = props.expand,
|
224
|
+
otherProps = _objectWithoutProperties(props, _excluded4);
|
225
|
+
|
226
|
+
var form = useMemo(function () {
|
227
|
+
return props.form || createForm({
|
228
|
+
validateFirst: true
|
229
|
+
});
|
230
|
+
}, []);
|
231
|
+
|
232
|
+
var _useState = useState(expand),
|
233
|
+
_useState2 = _slicedToArray(_useState, 2),
|
234
|
+
advancedFilterVisible = _useState2[0],
|
235
|
+
setAdvancedFilterVisible = _useState2[1];
|
236
|
+
|
237
|
+
var _useState3 = useState([]),
|
238
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
239
|
+
tagDataSource = _useState4[0],
|
240
|
+
setTagDataSource = _useState4[1];
|
241
|
+
|
242
|
+
var prefixCls = usePrefixCls('', {
|
243
|
+
prefix: 'teamix-pro-form-query-filter'
|
244
|
+
}); // 展开收起高级筛选
|
245
|
+
|
246
|
+
var toggleAdvancedFilter = useCallback(function () {
|
247
|
+
setAdvancedFilterVisible(function (visible) {
|
248
|
+
return !visible;
|
249
|
+
});
|
250
|
+
}, []); // 获取标签数据
|
251
|
+
|
252
|
+
var getTagDataSource = useCallback(function (form) {
|
253
|
+
var displayValues = getFormDisplayValues(form);
|
254
|
+
return Object.entries(displayValues).map(function (_ref) {
|
255
|
+
var _data$displayValue;
|
256
|
+
|
257
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
258
|
+
key = _ref2[0],
|
259
|
+
data = _ref2[1];
|
260
|
+
|
261
|
+
return {
|
262
|
+
key: key,
|
263
|
+
type: fieldTypeMap[data.component] || 'text',
|
264
|
+
label: data.title,
|
265
|
+
value: (_data$displayValue = data.displayValue) !== null && _data$displayValue !== void 0 ? _data$displayValue : data.value
|
266
|
+
};
|
267
|
+
}).filter(function (item) {
|
268
|
+
return isSignificative(item.value);
|
269
|
+
});
|
270
|
+
}, []); // 表单值提交
|
271
|
+
|
272
|
+
var onFormSubmit = useCallback(function (values) {
|
273
|
+
setTagDataSource(getTagDataSource(form));
|
274
|
+
onFilter && onFilter(values);
|
275
|
+
}, []); // 轻量表单onChange
|
276
|
+
|
277
|
+
var onLightValueChange = useCallback(function (values) {
|
278
|
+
form.reset();
|
279
|
+
setTagDataSource(getTagDataSource(form));
|
280
|
+
onFilter && onFilter(values);
|
281
|
+
}, [form]); // 简单表单onChange
|
282
|
+
|
283
|
+
var onSimpleValueChange = useCallback(function (values) {
|
284
|
+
setTagDataSource(getTagDataSource(form));
|
285
|
+
onFilter && onFilter(values);
|
286
|
+
}, []); // 关闭标签清空表单字段值
|
287
|
+
|
288
|
+
var onTagClose = useCallback(function (key) {
|
289
|
+
form.setValuesIn(key, undefined);
|
290
|
+
}, [form]); // 设置默认值标签数据
|
291
|
+
|
292
|
+
useEffect(function () {
|
293
|
+
setTagDataSource(getTagDataSource(form));
|
294
|
+
}, []);
|
295
|
+
return /*#__PURE__*/React.createElement("div", {
|
296
|
+
className: cls(prefixCls, props.className)
|
297
|
+
}, /*#__PURE__*/React.createElement("div", {
|
298
|
+
className: "".concat(prefixCls, "-inline")
|
299
|
+
}, /*#__PURE__*/React.createElement("div", {
|
300
|
+
className: "".concat(prefixCls, "-left")
|
301
|
+
}, addonBefore ? /*#__PURE__*/React.createElement("div", {
|
302
|
+
className: "".concat(prefixCls, "-addonBefore")
|
303
|
+
}, addonBefore) : null, mode === 'panel' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
304
|
+
className: "".concat(prefixCls, "-inline-form")
|
305
|
+
}, /*#__PURE__*/React.createElement(LightFilter, _objectSpread(_objectSpread({}, otherProps), {}, {
|
306
|
+
form: form,
|
307
|
+
onFilter: onLightValueChange,
|
308
|
+
onSubmit: onFormSubmit
|
309
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
310
|
+
className: "".concat(prefixCls, "-toggle")
|
311
|
+
}, /*#__PURE__*/React.createElement(Badge, {
|
312
|
+
count: tagDataSource.length,
|
313
|
+
style: _objectSpread({
|
314
|
+
backgroundColor: 'var(--color-brand1-6, #0064c8)',
|
315
|
+
color: 'var(--color-white, #fff)'
|
316
|
+
}, advancedFilterVisible ? {
|
317
|
+
display: 'none'
|
318
|
+
} : {})
|
319
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
320
|
+
onClick: toggleAdvancedFilter
|
321
|
+
}, advancedFilterVisible ? /*#__PURE__*/React.createElement(TeamixIcon, {
|
322
|
+
type: "up-line"
|
323
|
+
}) : /*#__PURE__*/React.createElement(TeamixIcon, {
|
324
|
+
type: "filter-line"
|
325
|
+
}), getMessage('advancedFilter'))))) : /*#__PURE__*/React.createElement("div", {
|
326
|
+
className: "".concat(prefixCls, "-inline-form")
|
327
|
+
}, /*#__PURE__*/React.createElement(SimpleFilter, _objectSpread(_objectSpread({}, otherProps), {}, {
|
328
|
+
form: form,
|
329
|
+
onFilter: onSimpleValueChange,
|
330
|
+
onSubmit: onFormSubmit
|
331
|
+
})))), addonAfter ? /*#__PURE__*/React.createElement("div", {
|
332
|
+
className: "".concat(prefixCls, "-addonAfter")
|
333
|
+
}, addonAfter) : null), mode === 'panel' ? /*#__PURE__*/React.createElement("div", {
|
334
|
+
className: "".concat(prefixCls, "-panel")
|
335
|
+
}, /*#__PURE__*/React.createElement("div", {
|
336
|
+
className: cls("".concat(prefixCls, "-tag"), advancedFilterVisible ? "".concat(prefixCls, "-tag-hidden") : '')
|
337
|
+
}, /*#__PURE__*/React.createElement(Tag.Group, null, tagDataSource.map(function (_ref3) {
|
338
|
+
var key = _ref3.key,
|
339
|
+
label = _ref3.label,
|
340
|
+
value = _ref3.value,
|
341
|
+
type = _ref3.type;
|
342
|
+
return /*#__PURE__*/React.createElement(Tag.Closeable, {
|
343
|
+
key: key,
|
344
|
+
afterClose: function afterClose() {
|
345
|
+
return onTagClose(key);
|
346
|
+
}
|
347
|
+
}, /*#__PURE__*/React.createElement("span", {
|
348
|
+
className: "".concat(prefixCls, "-tag-title")
|
349
|
+
}, label), /*#__PURE__*/React.createElement("span", {
|
350
|
+
className: "".concat(prefixCls, "-tag-content")
|
351
|
+
}, /*#__PURE__*/React.createElement(ProField, {
|
352
|
+
type: type,
|
353
|
+
value: value
|
354
|
+
})));
|
355
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
356
|
+
className: cls("".concat(prefixCls, "-advanced-wrap"), !advancedFilterVisible ? "".concat(prefixCls, "-advanced-wrap-hidden") : '')
|
357
|
+
}, /*#__PURE__*/React.createElement(AdvancedFilter, _objectSpread(_objectSpread({}, otherProps), {}, {
|
358
|
+
form: form,
|
359
|
+
onSubmit: onFormSubmit
|
360
|
+
})))) : null);
|
361
|
+
});
|
362
|
+
QueryFilter.defaultProps = {
|
363
|
+
mode: 'inline',
|
364
|
+
expand: false
|
365
|
+
};
|
366
|
+
export { QueryFilter };
|
@@ -0,0 +1,73 @@
|
|
1
|
+
@import '../global.scss';
|
2
|
+
|
3
|
+
$query-filter: #{$teamix-pro-form}-query-filter;
|
4
|
+
|
5
|
+
.#{$query-filter} {
|
6
|
+
.#{$query-filter}-inline {
|
7
|
+
display: flex;
|
8
|
+
justify-content: space-between;
|
9
|
+
}
|
10
|
+
.#{$query-filter}-left {
|
11
|
+
display: flex;
|
12
|
+
}
|
13
|
+
.#{$query-filter}-addonBefore {
|
14
|
+
flex: 0 1 auto;
|
15
|
+
margin-right: 8px;
|
16
|
+
}
|
17
|
+
.#{$query-filter}-inline-form {
|
18
|
+
flex: 0 0 auto;
|
19
|
+
margin-right: 8px;
|
20
|
+
margin-bottom: 8px;
|
21
|
+
}
|
22
|
+
.#{$query-filter}-toggle {
|
23
|
+
margin-bottom: 8px;
|
24
|
+
}
|
25
|
+
.#{$query-filter}-addonAfter {
|
26
|
+
flex: 0 1 auto;
|
27
|
+
margin-left: 8px;
|
28
|
+
}
|
29
|
+
.#{$query-filter}-tag-title {
|
30
|
+
margin-right: 12px;
|
31
|
+
color: var(--color-text1-8, #848484);
|
32
|
+
}
|
33
|
+
.#{$query-filter}-tag-content {
|
34
|
+
.#{$teamix-pro-field} {
|
35
|
+
display: inline-block;
|
36
|
+
.#{$css-prefix}form-preview {
|
37
|
+
color: var(--color-text1-2, #5a5a5a);
|
38
|
+
font-weight: bold;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
.#{$query-filter}-tag-hidden {
|
43
|
+
display: none;
|
44
|
+
}
|
45
|
+
.#{$query-filter}-advanced-wrap {
|
46
|
+
padding: 16px;
|
47
|
+
background-color: var(--color-fill1-2, #f7f7f7);
|
48
|
+
}
|
49
|
+
.#{$query-filter}-advanced-wrap-hidden {
|
50
|
+
display: none;
|
51
|
+
}
|
52
|
+
|
53
|
+
.#{$query-filter}-advanced {
|
54
|
+
.#{$css-prefix}formily-button-group {
|
55
|
+
margin-top: 0;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
.#{$query-filter}-advanced,
|
59
|
+
.#{$query-filter}-simple,
|
60
|
+
.#{$query-filter}-light {
|
61
|
+
.#{$form-item-cls}-feedback-layout-popover {
|
62
|
+
margin-bottom: 0;
|
63
|
+
}
|
64
|
+
.#{$css-prefix}date-picker2-input {
|
65
|
+
.#{$css-prefix}input {
|
66
|
+
width: inherit;
|
67
|
+
input {
|
68
|
+
width: inherit;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
package/es/form/ProForm/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
var _excluded = ["form", "initialValues", "initialRequest", "schema", "scope", "context", "components", "children", "layout", "labelAlign", "wrapperAlign", "labelCol", "wrapperCol", "breakpoints", "onChange", "onSubmit", "onSubmitFailed", "className"];
|
2
2
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
4
4
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
6
6
|
|
7
7
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
8
8
|
|
@@ -32,11 +32,11 @@
|
|
32
32
|
> .#{$form-item-cls}-control-content {
|
33
33
|
> .#{$form-item-cls}-control-content-component {
|
34
34
|
line-height: initial;
|
35
|
-
>
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
> .#{$teamix-pro-field}-checkbox,
|
36
|
+
.#{$teamix-pro-field}-radio,
|
37
|
+
.#{$teamix-pro-field}-switch,
|
38
|
+
.#{$teamix-pro-field}-colorradio,
|
39
|
+
.#{$teamix-pro-field}-range,
|
40
40
|
.#{$css-prefix}btn-text {
|
41
41
|
line-height: var(--form-element-medium-height, 32px);
|
42
42
|
}
|
@@ -160,11 +160,11 @@
|
|
160
160
|
margin-right: 4px;
|
161
161
|
}
|
162
162
|
}
|
163
|
-
|
164
|
-
|
163
|
+
.#{$teamix-pro-field}-money button,
|
164
|
+
.#{$teamix-pro-field}-icon button {
|
165
165
|
border: 0 !important;
|
166
166
|
}
|
167
|
-
|
167
|
+
.#{$teamix-pro-field}-color-swatch {
|
168
168
|
box-shadow: none !important;
|
169
169
|
}
|
170
170
|
.#{$css-prefix}date-picker2-input,
|
@@ -230,14 +230,12 @@
|
|
230
230
|
}
|
231
231
|
}
|
232
232
|
|
233
|
-
//
|
234
|
-
.#{$teamix-pro-form}-filter-advanced,
|
233
|
+
// 抽屉按钮
|
235
234
|
.#{$css-prefix}drawer-footer {
|
236
235
|
.#{$css-prefix}formily-button-group {
|
237
236
|
margin-top: 0;
|
238
237
|
}
|
239
238
|
}
|
240
|
-
|
241
239
|
.#{$teamix-pro-form}-button-affix-auto.#{$css-prefix}affix,
|
242
240
|
.#{$teamix-pro-form}-button-affix-always.#{$css-prefix}affix {
|
243
241
|
left: 0;
|
@@ -259,22 +257,6 @@
|
|
259
257
|
}
|
260
258
|
}
|
261
259
|
|
262
|
-
// 高级筛选
|
263
|
-
.#{$teamix-pro-form}-filter-advanced,
|
264
|
-
.#{$teamix-pro-form}-filter-simple {
|
265
|
-
.#{$form-item-cls}-feedback-layout-popover {
|
266
|
-
margin-bottom: 0;
|
267
|
-
}
|
268
|
-
.#{$css-prefix}date-picker2-input {
|
269
|
-
.#{$css-prefix}input {
|
270
|
-
width: inherit;
|
271
|
-
input {
|
272
|
-
width: inherit;
|
273
|
-
}
|
274
|
-
}
|
275
|
-
}
|
276
|
-
}
|
277
|
-
|
278
260
|
// ArrayItems
|
279
261
|
.#{$css-prefix}formily-array-items {
|
280
262
|
.#{$css-prefix}formily-grid-layout {
|
@@ -291,7 +273,7 @@
|
|
291
273
|
|
292
274
|
/* hack todo remove */
|
293
275
|
.#{$form-item-cls}-control-content-component {
|
294
|
-
|
276
|
+
.#{$teamix-pro-field}-tooltip.#{$teamix-pro-field}-checkbox {
|
295
277
|
.teamix-pro-lable-icon-tip-icon {
|
296
278
|
transform: translate(0px, 4px);
|
297
279
|
}
|