ebaoferc 0.1.7 → 0.1.8-beta.1
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/components/QueryProCard/index.d.ts +8 -0
- package/dist/components/QueryProCard/index.js +23 -0
- package/dist/components/QueryProCard/index.less +9 -0
- package/dist/components/StyledQueryFilter/index.js +11 -6
- package/dist/components/StyledQueryFilter/index.less +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProCardProps } from '@ant-design/pro-components';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface Props {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default function QueryProCard(props: Props & ProCardProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["children", "className"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
10
|
+
import { ProCard } from '@ant-design/pro-components';
|
|
11
|
+
import classNames from 'classnames';
|
|
12
|
+
import "./index.less";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
export default function QueryProCard(props) {
|
|
15
|
+
var children = props.children,
|
|
16
|
+
className = props.className,
|
|
17
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
18
|
+
return /*#__PURE__*/_jsx(ProCard, _objectSpread(_objectSpread({
|
|
19
|
+
className: classNames('custom-filter-card-container-wrapper', className)
|
|
20
|
+
}, rest), {}, {
|
|
21
|
+
children: children
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["children", "labelWidth", "form", "
|
|
2
|
+
var _excluded = ["children", "labelWidth", "form", "className", "itemWith", "onReset", "collapsedLineCount"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -26,9 +26,9 @@ export default function StyledQueryFilter(props) {
|
|
|
26
26
|
var children = props.children,
|
|
27
27
|
labelWidth = props.labelWidth,
|
|
28
28
|
form = props.form,
|
|
29
|
-
submitter = props.submitter,
|
|
30
29
|
className = props.className,
|
|
31
30
|
itemWith = props.itemWith,
|
|
31
|
+
onReset = props.onReset,
|
|
32
32
|
_props$collapsedLineC = props.collapsedLineCount,
|
|
33
33
|
collapsedLineCount = _props$collapsedLineC === void 0 ? 2 : _props$collapsedLineC,
|
|
34
34
|
rest = _objectWithoutProperties(props, _excluded);
|
|
@@ -48,17 +48,24 @@ export default function StyledQueryFilter(props) {
|
|
|
48
48
|
flex: "0 0 ".concat(labelWidth, "px")
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
+
function reset(e) {
|
|
52
|
+
_form.resetFields();
|
|
53
|
+
if (onReset) {
|
|
54
|
+
onReset(e);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
51
57
|
return /*#__PURE__*/_jsxs("div", {
|
|
52
58
|
className: "custom-styled-query-filter",
|
|
53
59
|
children: [/*#__PURE__*/_jsx(ProForm, _objectSpread(_objectSpread({
|
|
54
60
|
layout: "horizontal",
|
|
55
61
|
className: classNames('custom-styled-query-filter__form', className),
|
|
56
|
-
submitter: false,
|
|
57
62
|
form: _form,
|
|
58
63
|
colon: false
|
|
59
64
|
}, rest), {}, {
|
|
65
|
+
submitter: false,
|
|
60
66
|
children: /*#__PURE__*/_jsx(FlexRowCol, {
|
|
61
67
|
collapsed: collapsed,
|
|
68
|
+
collapsedLineCount: collapsedLineCount,
|
|
62
69
|
lineCountChange: function lineCountChange(lineCount) {
|
|
63
70
|
setLineCount(lineCount);
|
|
64
71
|
if (lineCount > collapsedLineCount) {
|
|
@@ -75,9 +82,7 @@ export default function StyledQueryFilter(props) {
|
|
|
75
82
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
76
83
|
className: "custom-styled-query-filter__submitter",
|
|
77
84
|
children: [/*#__PURE__*/_jsx(Button, {
|
|
78
|
-
onClick:
|
|
79
|
-
return _form.resetFields();
|
|
80
|
-
},
|
|
85
|
+
onClick: reset,
|
|
81
86
|
children: "\u91CD\u7F6E"
|
|
82
87
|
}), /*#__PURE__*/_jsx(Button, {
|
|
83
88
|
type: "primary",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as FlexRowCol } from './FlexRowCol';
|
|
2
2
|
export * from './ImageViewTrigger';
|
|
3
3
|
export * from './MindGraph';
|
|
4
|
+
export { default as QueryProCard } from './QueryProCard';
|
|
4
5
|
export * from './SectionTitleBar';
|
|
5
6
|
export { default as SliderVerify } from './SliderVerify';
|
|
6
7
|
export { default as StyledQueryFilter } from './StyledQueryFilter';
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as FlexRowCol } from "./FlexRowCol";
|
|
2
2
|
export * from "./ImageViewTrigger";
|
|
3
3
|
export * from "./MindGraph";
|
|
4
|
+
export { default as QueryProCard } from "./QueryProCard";
|
|
4
5
|
export * from "./SectionTitleBar";
|
|
5
6
|
export { default as SliderVerify } from "./SliderVerify";
|
|
6
7
|
export { default as StyledQueryFilter } from "./StyledQueryFilter";
|