@nokecy/qc-ui 0.8.4 → 0.8.6
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 +23 -23
- package/dist/cjs/ag-grid-plus/_utils/boolSelect.js +5 -5
- package/dist/cjs/ag-grid-plus/ag-grid-theme-builder.css +350 -350
- package/dist/cjs/ag-grid-plus/index.less +6 -6
- package/dist/cjs/ag-grid-plus/queryForm/index.less +48 -48
- package/dist/cjs/ag-grid-plus/toolBar/index.js +4 -4
- package/dist/cjs/ag-grid-plus/utils.js +1 -1
- package/dist/cjs/dashboard/dashboard/components/toolbar/style/index.less +49 -49
- package/dist/cjs/dashboard/dashboard/index.less +173 -173
- package/dist/cjs/dashboard/dashboard/utils.js +4 -4
- package/dist/cjs/dashboard/utils.js +8 -8
- package/dist/cjs/dashboard/widget/index.less +7 -7
- package/dist/cjs/dashboard/widget/selector/index.less +172 -172
- package/dist/cjs/dialogSelect/index.js +5 -25
- package/dist/cjs/draggableModal/index.d.ts +10 -0
- package/dist/cjs/draggableModal/index.js +113 -0
- package/dist/cjs/draggableModal/style.less +16 -0
- package/dist/cjs/formDesigner/arrayTable/styles.less +2 -2
- package/dist/cjs/formDesigner/index.less +2 -2
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.js +8 -1
- package/dist/cjs/toolBar/index.less +25 -25
- package/dist/esm/ag-grid-plus/_utils/boolSelect.js +20 -31
- package/dist/esm/ag-grid-plus/ag-grid-theme-builder.css +350 -350
- package/dist/esm/ag-grid-plus/index.less +6 -6
- package/dist/esm/ag-grid-plus/queryForm/index.less +48 -48
- package/dist/esm/ag-grid-plus/setting/index.js +119 -136
- package/dist/esm/ag-grid-plus/toolBar/index.js +4 -4
- package/dist/esm/ag-grid-plus/utils.js +1 -1
- package/dist/esm/dashboard/dashboard/components/toolbar/style/index.less +49 -49
- package/dist/esm/dashboard/dashboard/index.less +173 -173
- package/dist/esm/dashboard/dashboard/utils.js +4 -4
- package/dist/esm/dashboard/utils.js +8 -8
- package/dist/esm/dashboard/widget/index.less +7 -7
- package/dist/esm/dashboard/widget/selector/index.less +172 -172
- package/dist/esm/dialogSelect/index.js +5 -24
- package/dist/esm/draggableModal/index.d.ts +10 -0
- package/dist/esm/draggableModal/index.js +104 -0
- package/dist/esm/draggableModal/style.less +16 -0
- package/dist/esm/formDesigner/arrayTable/styles.less +2 -2
- package/dist/esm/formDesigner/index.less +2 -2
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/toolBar/index.less +25 -25
- package/dist/umd/qc-ui.min.css +1 -1
- package/dist/umd/qc-ui.min.js +1 -1
- package/package.json +65 -64
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
.antd-tool-bar {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
width: 100%;
|
|
6
|
-
color: rgba(0, 0, 0, 0.88);
|
|
7
|
-
line-height: 40px;
|
|
8
|
-
background-color: rgba(255, 255, 255);
|
|
9
|
-
-webkit-backdrop-filter: blur(8px);
|
|
10
|
-
backdrop-filter: blur(8px);
|
|
11
|
-
transition: all 0.2s ease 0s;
|
|
12
|
-
inset-inline-end: 0;
|
|
13
|
-
padding-inline: 16px;
|
|
14
|
-
padding-block: 0;
|
|
15
|
-
border-block-start: 1px solid rgba(5, 5, 5, 0.06);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.antd-tool-bar-left {
|
|
19
|
-
flex: 1;
|
|
20
|
-
color: rgba(0, 0, 0, 0.88);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.antd-tool-bar-right {
|
|
24
|
-
color: rgba(0, 0, 0, 0.88);
|
|
25
|
-
}
|
|
1
|
+
.antd-tool-bar {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
width: 100%;
|
|
6
|
+
color: rgba(0, 0, 0, 0.88);
|
|
7
|
+
line-height: 40px;
|
|
8
|
+
background-color: rgba(255, 255, 255);
|
|
9
|
+
-webkit-backdrop-filter: blur(8px);
|
|
10
|
+
backdrop-filter: blur(8px);
|
|
11
|
+
transition: all 0.2s ease 0s;
|
|
12
|
+
inset-inline-end: 0;
|
|
13
|
+
padding-inline: 16px;
|
|
14
|
+
padding-block: 0;
|
|
15
|
+
border-block-start: 1px solid rgba(5, 5, 5, 0.06);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.antd-tool-bar-left {
|
|
19
|
+
flex: 1;
|
|
20
|
+
color: rgba(0, 0, 0, 0.88);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.antd-tool-bar-right {
|
|
24
|
+
color: rgba(0, 0, 0, 0.88);
|
|
25
|
+
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
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); }
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
7
2
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
3
|
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
4
|
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); }
|
|
@@ -14,36 +9,30 @@ import { useControllableValue } from 'ahooks';
|
|
|
14
9
|
import { Select } from "antd";
|
|
15
10
|
import React from "react";
|
|
16
11
|
|
|
17
|
-
/**
|
|
18
|
-
* bool类型的下拉框
|
|
19
|
-
* @param props
|
|
20
|
-
* @param ref
|
|
21
|
-
* @returns
|
|
12
|
+
/**
|
|
13
|
+
* bool类型的下拉框
|
|
14
|
+
* @param props
|
|
15
|
+
* @param ref
|
|
16
|
+
* @returns
|
|
22
17
|
*/
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
18
|
var BoolSelect = function BoolSelect(props, ref) {
|
|
26
19
|
var _useControllableValue = useControllableValue(props),
|
|
27
20
|
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
28
21
|
state = _useControllableValue2[0],
|
|
29
22
|
setState = _useControllableValue2[1];
|
|
30
|
-
return /*#__PURE__*/
|
|
31
|
-
ref: ref
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
children: "\u5426"
|
|
45
|
-
})]
|
|
46
|
-
}))
|
|
47
|
-
});
|
|
23
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
24
|
+
ref: ref
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Select, _extends({}, props, {
|
|
26
|
+
value: state,
|
|
27
|
+
onChange: function onChange(value, option) {
|
|
28
|
+
var _props$onChange;
|
|
29
|
+
setState(value);
|
|
30
|
+
props === null || props === void 0 || (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, value, option);
|
|
31
|
+
}
|
|
32
|
+
}), /*#__PURE__*/React.createElement(Select.Option, {
|
|
33
|
+
value: true
|
|
34
|
+
}, "\u662F"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
35
|
+
value: false
|
|
36
|
+
}, "\u5426")));
|
|
48
37
|
};
|
|
49
38
|
export default /*#__PURE__*/React.forwardRef(BoolSelect);
|