@vtx/components 2.5.15 → 2.5.17
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 +19 -19
- package/lib/_util/filterSpecialCharacters.js +61 -50
- package/lib/_util/filterSpecialCharacters.js.map +1 -1
- package/lib/_util/getComponentProps.js +1 -4
- package/lib/_util/getComponentProps.js.map +1 -1
- package/lib/_util/getUrlParam.js +1 -8
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/isFunction.js +0 -1
- package/lib/_util/isFunction.js.map +1 -1
- package/lib/_util/isObject.js +0 -1
- package/lib/_util/isObject.js.map +1 -1
- package/lib/_util/useInterval.js +0 -3
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +23 -39
- package/lib/_util/useSet.js.map +1 -1
- package/lib/config.js +1 -2
- package/lib/config.js.map +1 -1
- package/lib/index.js +0 -22
- package/lib/index.js.map +1 -1
- package/lib/vtx-color-picker/index.js +10 -27
- package/lib/vtx-color-picker/index.js.map +1 -1
- package/lib/vtx-color-picker/style/css.js +0 -2
- package/lib/vtx-color-picker/style/css.js.map +1 -1
- package/lib/vtx-color-picker/style/index.js +0 -2
- package/lib/vtx-color-picker/style/index.js.map +1 -1
- package/lib/vtx-color-picker/style/index.less +12 -12
- package/lib/vtx-combogrid/Combogrid.js +45 -84
- package/lib/vtx-combogrid/Combogrid.js.map +1 -1
- package/lib/vtx-combogrid/index.js +27 -53
- package/lib/vtx-combogrid/index.js.map +1 -1
- package/lib/vtx-combogrid/style/css.js +0 -7
- package/lib/vtx-combogrid/style/css.js.map +1 -1
- package/lib/vtx-combogrid/style/index.js +0 -7
- package/lib/vtx-combogrid/style/index.js.map +1 -1
- package/lib/vtx-datagrid/Alert.js +4 -13
- package/lib/vtx-datagrid/Alert.js.map +1 -1
- package/lib/vtx-datagrid/ColumnSetting.js +24 -49
- package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
- package/lib/vtx-datagrid/ResizeableTitle.js +4 -16
- package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
- package/lib/vtx-datagrid/index.js +90 -148
- package/lib/vtx-datagrid/index.js.map +1 -1
- package/lib/vtx-datagrid/renderColumnButtons.js +8 -39
- package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
- package/lib/vtx-datagrid/style/css.js +0 -10
- package/lib/vtx-datagrid/style/css.js.map +1 -1
- package/lib/vtx-datagrid/style/index.js +0 -10
- package/lib/vtx-datagrid/style/index.js.map +1 -1
- package/lib/vtx-date-picker/QdatePicker.js +22 -52
- package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
- package/lib/vtx-date-picker/YearPicker.js +13 -36
- package/lib/vtx-date-picker/YearPicker.js.map +1 -1
- package/lib/vtx-date-picker/generatePicker.js +27 -69
- package/lib/vtx-date-picker/generatePicker.js.map +1 -1
- package/lib/vtx-date-picker/index.js +3 -10
- package/lib/vtx-date-picker/index.js.map +1 -1
- package/lib/vtx-date-picker/style/css.js +0 -1
- package/lib/vtx-date-picker/style/css.js.map +1 -1
- package/lib/vtx-date-picker/style/index.js +0 -1
- package/lib/vtx-date-picker/style/index.js.map +1 -1
- package/lib/vtx-editor/index.js +10 -29
- package/lib/vtx-editor/index.js.map +1 -1
- package/lib/vtx-editor/style/css.js +0 -2
- package/lib/vtx-editor/style/css.js.map +1 -1
- package/lib/vtx-editor/style/index.js +0 -2
- package/lib/vtx-editor/style/index.js.map +1 -1
- package/lib/vtx-export/index.js +31 -64
- package/lib/vtx-export/index.js.map +1 -1
- package/lib/vtx-export/style/css.js +0 -6
- package/lib/vtx-export/style/css.js.map +1 -1
- package/lib/vtx-export/style/index.js +0 -6
- package/lib/vtx-export/style/index.js.map +1 -1
- package/lib/vtx-export/style/index.less +6 -6
- package/lib/vtx-form-layout/Card.js +11 -33
- package/lib/vtx-form-layout/Card.js.map +1 -1
- package/lib/vtx-form-layout/Divider.js +1 -7
- package/lib/vtx-form-layout/Divider.js.map +1 -1
- package/lib/vtx-form-layout/FormItem.js +13 -38
- package/lib/vtx-form-layout/FormItem.js.map +1 -1
- package/lib/vtx-form-layout/Pane.js +3 -9
- package/lib/vtx-form-layout/Pane.js.map +1 -1
- package/lib/vtx-form-layout/Row.js +1 -8
- package/lib/vtx-form-layout/Row.js.map +1 -1
- package/lib/vtx-form-layout/context.js +1 -4
- package/lib/vtx-form-layout/context.js.map +1 -1
- package/lib/vtx-form-layout/index.js +9 -24
- package/lib/vtx-form-layout/index.js.map +1 -1
- package/lib/vtx-form-layout/style/css.js +0 -8
- package/lib/vtx-form-layout/style/css.js.map +1 -1
- package/lib/vtx-form-layout/style/index.js +0 -8
- package/lib/vtx-form-layout/style/index.js.map +1 -1
- package/lib/vtx-image/Image.js +65 -100
- package/lib/vtx-image/Image.js.map +1 -1
- package/lib/vtx-image/Preview.js +30 -59
- package/lib/vtx-image/Preview.js.map +1 -1
- package/lib/vtx-image/PreviewGroup.js +17 -47
- package/lib/vtx-image/PreviewGroup.js.map +1 -1
- package/lib/vtx-image/index.js +4 -11
- package/lib/vtx-image/index.js.map +1 -1
- package/lib/vtx-image/style/css.js +0 -1
- package/lib/vtx-image/style/css.js.map +1 -1
- package/lib/vtx-image/style/index.js +0 -1
- package/lib/vtx-image/style/index.js.map +1 -1
- package/lib/vtx-import/index.js +46 -79
- package/lib/vtx-import/index.js.map +1 -1
- package/lib/vtx-import/result.js +10 -28
- package/lib/vtx-import/result.js.map +1 -1
- package/lib/vtx-import/style/css.js +0 -2
- package/lib/vtx-import/style/css.js.map +1 -1
- package/lib/vtx-import/style/index.js +0 -2
- package/lib/vtx-import/style/index.js.map +1 -1
- package/lib/vtx-input/TextArea.js +11 -28
- package/lib/vtx-input/TextArea.js.map +1 -1
- package/lib/vtx-input/index.js +21 -46
- package/lib/vtx-input/index.js.map +1 -1
- package/lib/vtx-input/style/css.js +0 -1
- package/lib/vtx-input/style/css.js.map +1 -1
- package/lib/vtx-input/style/index.js +0 -1
- package/lib/vtx-input/style/index.js.map +1 -1
- package/lib/vtx-input/useLength.js +7 -20
- package/lib/vtx-input/useLength.js.map +1 -1
- package/lib/vtx-modal/Title.js +2 -8
- package/lib/vtx-modal/Title.js.map +1 -1
- package/lib/vtx-modal/index.js +51 -81
- package/lib/vtx-modal/index.js.map +1 -1
- package/lib/vtx-modal/style/css.js +0 -2
- package/lib/vtx-modal/style/css.js.map +1 -1
- package/lib/vtx-modal/style/index.js +0 -2
- package/lib/vtx-modal/style/index.js.map +1 -1
- package/lib/vtx-page-layout/Basic.js +5 -10
- package/lib/vtx-page-layout/Basic.js.map +1 -1
- package/lib/vtx-page-layout/Content.js +15 -26
- package/lib/vtx-page-layout/Content.js.map +1 -1
- package/lib/vtx-page-layout/Pane.js +3 -12
- package/lib/vtx-page-layout/Pane.js.map +1 -1
- package/lib/vtx-page-layout/TableLayout.js +24 -54
- package/lib/vtx-page-layout/TableLayout.js.map +1 -1
- package/lib/vtx-page-layout/TableWrap.js +11 -22
- package/lib/vtx-page-layout/TableWrap.js.map +1 -1
- package/lib/vtx-page-layout/container.js +25 -54
- package/lib/vtx-page-layout/container.js.map +1 -1
- package/lib/vtx-page-layout/index.js +1 -10
- package/lib/vtx-page-layout/index.js.map +1 -1
- package/lib/vtx-page-layout/style/css.js.map +1 -1
- package/lib/vtx-page-layout/style/index.js.map +1 -1
- package/lib/vtx-rps-frame/index.js +37 -52
- package/lib/vtx-rps-frame/index.js.map +1 -1
- package/lib/vtx-rps-frame/style/css.js.map +1 -1
- package/lib/vtx-rps-frame/style/index.js.map +1 -1
- package/lib/vtx-rps-frame/style/index.less +8 -8
- package/lib/vtx-scrollable-row/index.js +30 -66
- package/lib/vtx-scrollable-row/index.js.map +1 -1
- package/lib/vtx-scrollable-row/style/css.js +0 -1
- package/lib/vtx-scrollable-row/style/css.js.map +1 -1
- package/lib/vtx-scrollable-row/style/index.js +0 -1
- package/lib/vtx-scrollable-row/style/index.js.map +1 -1
- package/lib/vtx-search/VtxCol.js +7 -26
- package/lib/vtx-search/VtxCol.js.map +1 -1
- package/lib/vtx-search/VtxRow.js +7 -14
- package/lib/vtx-search/VtxRow.js.map +1 -1
- package/lib/vtx-search/index.js +55 -98
- package/lib/vtx-search/index.js.map +1 -1
- package/lib/vtx-search/style/css.js +0 -5
- package/lib/vtx-search/style/css.js.map +1 -1
- package/lib/vtx-search/style/index.js +0 -5
- package/lib/vtx-search/style/index.js.map +1 -1
- package/lib/vtx-search-map-input/index.js +46 -76
- package/lib/vtx-search-map-input/index.js.map +1 -1
- package/lib/vtx-search-map-input/style/css.js +0 -3
- package/lib/vtx-search-map-input/style/css.js.map +1 -1
- package/lib/vtx-search-map-input/style/index.js +0 -3
- package/lib/vtx-search-map-input/style/index.js.map +1 -1
- package/lib/vtx-select/index.js +31 -74
- package/lib/vtx-select/index.js.map +1 -1
- package/lib/vtx-select/style/css.js +0 -8
- package/lib/vtx-select/style/css.js.map +1 -1
- package/lib/vtx-select/style/index.js +0 -8
- package/lib/vtx-select/style/index.js.map +1 -1
- package/lib/vtx-signature/index.js +18 -33
- package/lib/vtx-signature/index.js.map +1 -1
- package/lib/vtx-signature/style/css.js +0 -2
- package/lib/vtx-signature/style/css.js.map +1 -1
- package/lib/vtx-signature/style/index.js +0 -2
- package/lib/vtx-signature/style/index.js.map +1 -1
- package/lib/vtx-split-pane/Pane.js +11 -22
- package/lib/vtx-split-pane/Pane.js.map +1 -1
- package/lib/vtx-split-pane/Resizer.js +20 -40
- package/lib/vtx-split-pane/Resizer.js.map +1 -1
- package/lib/vtx-split-pane/SplitPane.js +54 -107
- package/lib/vtx-split-pane/SplitPane.js.map +1 -1
- package/lib/vtx-split-pane/index.js +1 -6
- package/lib/vtx-split-pane/index.js.map +1 -1
- package/lib/vtx-split-pane/style/css.js +0 -3
- package/lib/vtx-split-pane/style/css.js.map +1 -1
- package/lib/vtx-split-pane/style/index.js +0 -3
- package/lib/vtx-split-pane/style/index.js.map +1 -1
- package/lib/vtx-statistics-column/Back.js +2 -9
- package/lib/vtx-statistics-column/Back.js.map +1 -1
- package/lib/vtx-statistics-column/Item.js +14 -30
- package/lib/vtx-statistics-column/Item.js.map +1 -1
- package/lib/vtx-statistics-column/Total.js +14 -30
- package/lib/vtx-statistics-column/Total.js.map +1 -1
- package/lib/vtx-statistics-column/context.js +1 -4
- package/lib/vtx-statistics-column/context.js.map +1 -1
- package/lib/vtx-statistics-column/index.js +1 -18
- package/lib/vtx-statistics-column/index.js.map +1 -1
- package/lib/vtx-statistics-column/style/css.js.map +1 -1
- package/lib/vtx-statistics-column/style/index.js.map +1 -1
- package/lib/vtx-time-picker/index.js +5 -19
- package/lib/vtx-time-picker/index.js.map +1 -1
- package/lib/vtx-time-picker/style/css.js.map +1 -1
- package/lib/vtx-time-picker/style/index.js.map +1 -1
- package/lib/vtx-upload/FilePreview.js +15 -33
- package/lib/vtx-upload/FilePreview.js.map +1 -1
- package/lib/vtx-upload/index.js +78 -147
- package/lib/vtx-upload/index.js.map +1 -1
- package/lib/vtx-upload/style/css.js +0 -6
- package/lib/vtx-upload/style/css.js.map +1 -1
- package/lib/vtx-upload/style/index.js +0 -6
- package/lib/vtx-upload/style/index.js.map +1 -1
- package/lib/vtx-ztree/index.js +71 -122
- package/lib/vtx-ztree/index.js.map +1 -1
- package/lib/vtx-ztree/style/css.js +0 -1
- package/lib/vtx-ztree/style/css.js.map +1 -1
- package/lib/vtx-ztree/style/index.js +0 -1
- package/lib/vtx-ztree/style/index.js.map +1 -1
- package/lib/vtx-ztree-select/index.js +60 -121
- package/lib/vtx-ztree-select/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/css.js +0 -4
- package/lib/vtx-ztree-select/style/css.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.js +0 -4
- package/lib/vtx-ztree-select/style/index.js.map +1 -1
- package/package.json +120 -121
- package/CHANGELOG.md +0 -842
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# @vtx/components
|
|
2
|
-
|
|
3
|
-
> 公司 PC 端基础组件库
|
|
4
|
-
|
|
5
|
-
## 安装
|
|
6
|
-
|
|
7
|
-
```shell
|
|
8
|
-
$ yarn add @vtx/components -S
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 使用
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import { VtxDatePicker } from '@vtx/components';
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Doc
|
|
18
|
-
|
|
19
|
-
[在线示例文档](http://front-end.pages.cloudhw.cn:8000/react-components/)
|
|
1
|
+
# @vtx/components
|
|
2
|
+
|
|
3
|
+
> 公司 PC 端基础组件库
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
$ yarn add @vtx/components -S
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 使用
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { VtxDatePicker } from '@vtx/components';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Doc
|
|
18
|
+
|
|
19
|
+
[在线示例文档](http://front-end.pages.cloudhw.cn:8000/react-components/)
|
|
@@ -4,76 +4,87 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = filterSpecialCharacters;
|
|
7
|
-
|
|
8
7
|
var _lodash = _interopRequireDefault(require("lodash.difference"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
9
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
13
|
-
|
|
14
10
|
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."); }
|
|
15
|
-
|
|
16
11
|
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); }
|
|
17
|
-
|
|
18
12
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
19
|
-
|
|
20
13
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
14
|
+
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; }
|
|
24
15
|
function isNotEmpty(value) {
|
|
25
16
|
return Array.isArray(value) && value.length > 0;
|
|
26
17
|
}
|
|
27
|
-
/**
|
|
28
|
-
* 过滤特殊字符
|
|
29
|
-
* @param {String} value 值
|
|
30
|
-
* @param {Object} option
|
|
31
|
-
* @param {Array} [option.include] 新增
|
|
32
|
-
* @param {Array} [option.exclude] 排除
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
18
|
|
|
19
|
+
/**
|
|
20
|
+
* 过滤特殊字符
|
|
21
|
+
* @param {String} value 值
|
|
22
|
+
* @param {Object} option
|
|
23
|
+
* @param {Array} [option.include] 新增
|
|
24
|
+
* @param {Array} [option.exclude] 排除
|
|
25
|
+
*/
|
|
36
26
|
function filterSpecialCharacters(value) {
|
|
37
27
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
_ref$include = _ref.include,
|
|
29
|
+
include = _ref$include === void 0 ? [] : _ref$include,
|
|
30
|
+
_ref$exclude = _ref.exclude,
|
|
31
|
+
exclude = _ref$exclude === void 0 ? [] : _ref$exclude;
|
|
43
32
|
// 特殊符号,- _ 排除
|
|
44
|
-
var specialCharacter = [
|
|
45
|
-
|
|
46
|
-
'
|
|
47
|
-
|
|
48
|
-
'
|
|
49
|
-
|
|
50
|
-
'
|
|
51
|
-
|
|
52
|
-
'
|
|
53
|
-
|
|
54
|
-
'
|
|
55
|
-
|
|
56
|
-
'
|
|
57
|
-
|
|
58
|
-
'
|
|
59
|
-
|
|
60
|
-
'
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'
|
|
65
|
-
|
|
66
|
-
'
|
|
67
|
-
|
|
33
|
+
var specialCharacter = [
|
|
34
|
+
// 小括号
|
|
35
|
+
'(', ')', '(', ')',
|
|
36
|
+
// 中括号
|
|
37
|
+
'\\[', '\\]', '[', ']',
|
|
38
|
+
// 大括号
|
|
39
|
+
'{', '}', '{', '}',
|
|
40
|
+
// 方头括号
|
|
41
|
+
'【', '】',
|
|
42
|
+
// 尖括号
|
|
43
|
+
'<', '>',
|
|
44
|
+
// 书名号
|
|
45
|
+
'《', '》',
|
|
46
|
+
// 斜杠
|
|
47
|
+
'/',
|
|
48
|
+
// 反斜杠
|
|
49
|
+
'\\\\',
|
|
50
|
+
// 逗号
|
|
51
|
+
',', ',',
|
|
52
|
+
// 句号
|
|
53
|
+
'.', '。',
|
|
54
|
+
// 冒号
|
|
55
|
+
':', ':',
|
|
56
|
+
// 分号
|
|
57
|
+
';', ';',
|
|
58
|
+
// 顿号
|
|
59
|
+
'、',
|
|
60
|
+
// 破折号
|
|
61
|
+
'——',
|
|
62
|
+
// 感叹号
|
|
63
|
+
'!', '!',
|
|
64
|
+
// 问号
|
|
65
|
+
'?', '?',
|
|
66
|
+
// 加减等于
|
|
67
|
+
'+', '=',
|
|
68
|
+
// 单引号
|
|
69
|
+
"'", '‘', '’',
|
|
70
|
+
// 双引号
|
|
71
|
+
'"', '“', '”',
|
|
72
|
+
// 金钱
|
|
73
|
+
'$', '¥',
|
|
74
|
+
// 百分号
|
|
75
|
+
'%', '%',
|
|
76
|
+
// 其它
|
|
77
|
+
'@', '#', '`', '~', '*', '^', '……', '|', '&'];
|
|
78
|
+
|
|
79
|
+
// 新增
|
|
68
80
|
if (isNotEmpty(include)) {
|
|
69
81
|
specialCharacter = Array.from(new Set([].concat(_toConsumableArray(specialCharacter), _toConsumableArray(include))));
|
|
70
|
-
}
|
|
71
|
-
|
|
82
|
+
}
|
|
72
83
|
|
|
84
|
+
// 移除
|
|
73
85
|
if (isNotEmpty(exclude)) {
|
|
74
86
|
specialCharacter = (0, _lodash["default"])(specialCharacter, exclude);
|
|
75
87
|
}
|
|
76
|
-
|
|
77
88
|
return value.replace(new RegExp("[".concat(specialCharacter.join(''), "]"), 'g'), '');
|
|
78
89
|
}
|
|
79
90
|
//# sourceMappingURL=filterSpecialCharacters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterSpecialCharacters.js","names":["
|
|
1
|
+
{"version":3,"file":"filterSpecialCharacters.js","names":["_lodash","_interopRequireDefault","require","obj","__esModule","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","o","minLen","_arrayLikeToArray","n","Object","prototype","toString","call","slice","constructor","name","Array","from","test","iter","Symbol","iterator","isArray","len","length","i","arr2","isNotEmpty","value","filterSpecialCharacters","_ref","arguments","undefined","_ref$include","include","_ref$exclude","exclude","specialCharacter","Set","concat","difference","replace","RegExp","join"],"sources":["_util/filterSpecialCharacters.js"],"sourcesContent":["import difference from 'lodash.difference';\r\n\r\nfunction isNotEmpty(value) {\r\n return Array.isArray(value) && value.length > 0;\r\n}\r\n\r\n/**\r\n * 过滤特殊字符\r\n * @param {String} value 值\r\n * @param {Object} option\r\n * @param {Array} [option.include] 新增\r\n * @param {Array} [option.exclude] 排除\r\n */\r\nexport default function filterSpecialCharacters(value, { include = [], exclude = [] } = {}) {\r\n // 特殊符号,- _ 排除\r\n let specialCharacter = [\r\n // 小括号\r\n '(',\r\n ')',\r\n '(',\r\n ')',\r\n // 中括号\r\n '\\\\[',\r\n '\\\\]',\r\n '[',\r\n ']',\r\n // 大括号\r\n '{',\r\n '}',\r\n '{',\r\n '}',\r\n // 方头括号\r\n '【',\r\n '】',\r\n // 尖括号\r\n '<',\r\n '>',\r\n // 书名号\r\n '《',\r\n '》',\r\n // 斜杠\r\n '/',\r\n // 反斜杠\r\n '\\\\\\\\',\r\n // 逗号\r\n ',',\r\n ',',\r\n // 句号\r\n '.',\r\n '。',\r\n // 冒号\r\n ':',\r\n ':',\r\n // 分号\r\n ';',\r\n ';',\r\n // 顿号\r\n '、',\r\n // 破折号\r\n '——',\r\n // 感叹号\r\n '!',\r\n '!',\r\n // 问号\r\n '?',\r\n '?',\r\n // 加减等于\r\n '+',\r\n '=',\r\n // 单引号\r\n \"'\",\r\n '‘',\r\n '’',\r\n // 双引号\r\n '\"',\r\n '“',\r\n '”',\r\n // 金钱\r\n '$',\r\n '¥',\r\n // 百分号\r\n '%',\r\n '%',\r\n // 其它\r\n '@',\r\n '#',\r\n '`',\r\n '~',\r\n '*',\r\n '^',\r\n '……',\r\n '|',\r\n '&',\r\n ];\r\n\r\n // 新增\r\n if (isNotEmpty(include)) {\r\n specialCharacter = Array.from(new Set([...specialCharacter, ...include]));\r\n }\r\n\r\n // 移除\r\n if (isNotEmpty(exclude)) {\r\n specialCharacter = difference(specialCharacter, exclude);\r\n }\r\n\r\n return value.replace(new RegExp(`[${specialCharacter.join('')}]`, 'g'), '');\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA2C,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,mBAAAC,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IAAIqB,GAAG,IAAAC,MAAA,CAAAzC,kBAAA,CAAKuC,gBAAgB,GAAAvC,kBAAA,CAAKoC,OAAO,EAAC,CAAC,CAAC;EAC7E;;EAEA;EACA,IAAIP,UAAU,CAACS,OAAO,CAAC,EAAE;IACrBC,gBAAgB,GAAG,IAAAG,kBAAU,EAACH,gBAAgB,EAAED,OAAO,CAAC;EAC5D;EAEA,OAAOR,KAAK,CAACa,OAAO,CAAC,IAAIC,MAAM,KAAAH,MAAA,CAAKF,gBAAgB,CAACM,IAAI,CAAC,EAAE,CAAC,QAAK,GAAG,CAAC,EAAE,EAAE,CAAC;AAC/E","ignoreList":[]}
|
|
@@ -4,14 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = getComponentProps;
|
|
7
|
-
|
|
8
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
9
|
-
|
|
7
|
+
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); }
|
|
10
8
|
function getComponentProps(prop) {
|
|
11
9
|
if (prop && _typeof(prop) === 'object') {
|
|
12
10
|
return prop;
|
|
13
11
|
}
|
|
14
|
-
|
|
15
12
|
return {};
|
|
16
13
|
}
|
|
17
14
|
//# sourceMappingURL=getComponentProps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getComponentProps.js","names":["getComponentProps","prop"],"sources":["_util/getComponentProps.js"],"sourcesContent":["export default function getComponentProps(prop) {\n if (prop && typeof prop === 'object') {\n return prop;\n }\n return {};\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getComponentProps.js","names":["getComponentProps","prop","_typeof"],"sources":["_util/getComponentProps.js"],"sourcesContent":["export default function getComponentProps(prop) {\r\n if (prop && typeof prop === 'object') {\r\n return prop;\r\n }\r\n return {};\r\n}\r\n"],"mappings":";;;;;;;AAAe,SAASA,iBAAiBA,CAACC,IAAI,EAAE;EAC5C,IAAIA,IAAI,IAAIC,OAAA,CAAOD,IAAI,MAAK,QAAQ,EAAE;IAClC,OAAOA,IAAI;EACf;EACA,OAAO,CAAC,CAAC;AACb","ignoreList":[]}
|
package/lib/_util/getUrlParam.js
CHANGED
|
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _querystring = _interopRequireDefault(require("querystring"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
9
|
var getUrlParam = function getUrlParam(key) {
|
|
13
10
|
var href = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.href;
|
|
14
|
-
|
|
15
11
|
var params = _querystring["default"].parse(href.split('?')[1]);
|
|
16
|
-
|
|
17
12
|
return key ? params[key] : params;
|
|
18
13
|
};
|
|
19
|
-
|
|
20
|
-
var _default = getUrlParam;
|
|
21
|
-
exports["default"] = _default;
|
|
14
|
+
var _default = exports["default"] = getUrlParam;
|
|
22
15
|
//# sourceMappingURL=getUrlParam.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUrlParam.js","names":["getUrlParam","key","href","window","location","params","qs","parse","split"],"sources":["_util/getUrlParam.js"],"sourcesContent":["import qs from 'querystring';\n\nconst getUrlParam = (key, href = window.location.href) => {\n const params = qs.parse(href.split('?')[1]);\n return key ? params[key] : params;\n};\n\nexport default getUrlParam;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getUrlParam.js","names":["_querystring","_interopRequireDefault","require","obj","__esModule","getUrlParam","key","href","arguments","length","undefined","window","location","params","qs","parse","split","_default","exports"],"sources":["_util/getUrlParam.js"],"sourcesContent":["import qs from 'querystring';\r\n\r\nconst getUrlParam = (key, href = window.location.href) => {\r\n const params = qs.parse(href.split('?')[1]);\r\n return key ? params[key] : params;\r\n};\r\n\r\nexport default getUrlParam;\r\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6B,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAE7B,IAAME,WAAW,GAAG,SAAdA,WAAWA,CAAIC,GAAG,EAAkC;EAAA,IAAhCC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,MAAM,CAACC,QAAQ,CAACL,IAAI;EACjD,IAAMM,MAAM,GAAGC,uBAAE,CAACC,KAAK,CAACR,IAAI,CAACS,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;EAC3C,OAAOV,GAAG,GAAGO,MAAM,CAACP,GAAG,CAAC,GAAGO,MAAM;AACrC,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEab,WAAW","ignoreList":[]}
|
package/lib/_util/isFunction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isFunction.js","names":["isFunction","fn","Object","prototype","toString","call"],"sources":["_util/isFunction.js"],"sourcesContent":["export default function isFunction(fn) {\n return Object.prototype.toString.call(fn) === '[object Function]';\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isFunction.js","names":["isFunction","fn","Object","prototype","toString","call"],"sources":["_util/isFunction.js"],"sourcesContent":["export default function isFunction(fn) {\r\n return Object.prototype.toString.call(fn) === '[object Function]';\r\n}\r\n"],"mappings":";;;;;;AAAe,SAASA,UAAUA,CAACC,EAAE,EAAE;EACnC,OAAOC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ,EAAE,CAAC,KAAK,mBAAmB;AACrE","ignoreList":[]}
|
package/lib/_util/isObject.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isObject.js","names":["isObject","x","Object","prototype","toString","call"],"sources":["_util/isObject.js"],"sourcesContent":["export default function isObject(x) {\n return Object.prototype.toString.call(x) === '[object Object]';\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isObject.js","names":["isObject","x","Object","prototype","toString","call"],"sources":["_util/isObject.js"],"sourcesContent":["export default function isObject(x) {\r\n return Object.prototype.toString.call(x) === '[object Object]';\r\n}\r\n"],"mappings":";;;;;;AAAe,SAASA,QAAQA,CAACC,CAAC,EAAE;EAChC,OAAOC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ,CAAC,CAAC,KAAK,iBAAiB;AAClE","ignoreList":[]}
|
package/lib/_util/useInterval.js
CHANGED
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = useInterval;
|
|
7
|
-
|
|
8
7
|
var _react = require("react");
|
|
9
|
-
|
|
10
8
|
function useInterval(callback, delay) {
|
|
11
9
|
(0, _react.useEffect)(function () {
|
|
12
10
|
if (delay !== null) {
|
|
@@ -15,7 +13,6 @@ function useInterval(callback, delay) {
|
|
|
15
13
|
return clearInterval(id);
|
|
16
14
|
};
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
return undefined;
|
|
20
17
|
}, [callback, delay]);
|
|
21
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInterval.js","names":["useInterval","callback","delay","useEffect","id","setInterval","clearInterval","undefined"],"sources":["_util/useInterval.js"],"sourcesContent":["import { useEffect } from 'react';\n\nexport default function useInterval(callback, delay) {\n useEffect(() => {\n if (delay !== null) {\n let id = setInterval(callback, delay);\n return () => clearInterval(id);\n }\n return undefined;\n }, [callback, delay]);\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInterval.js","names":["_react","require","useInterval","callback","delay","useEffect","id","setInterval","clearInterval","undefined"],"sources":["_util/useInterval.js"],"sourcesContent":["import { useEffect } from 'react';\r\n\r\nexport default function useInterval(callback, delay) {\r\n useEffect(() => {\r\n if (delay !== null) {\r\n let id = setInterval(callback, delay);\r\n return () => clearInterval(id);\r\n }\r\n return undefined;\r\n }, [callback, delay]);\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEe,SAASC,WAAWA,CAACC,QAAQ,EAAEC,KAAK,EAAE;EACjD,IAAAC,gBAAS,EAAC,YAAM;IACZ,IAAID,KAAK,KAAK,IAAI,EAAE;MAChB,IAAIE,EAAE,GAAGC,WAAW,CAACJ,QAAQ,EAAEC,KAAK,CAAC;MACrC,OAAO;QAAA,OAAMI,aAAa,CAACF,EAAE,CAAC;MAAA;IAClC;IACA,OAAOG,SAAS;EACpB,CAAC,EAAE,CAACN,QAAQ,EAAEC,KAAK,CAAC,CAAC;AACzB","ignoreList":[]}
|
package/lib/_util/useSet.js
CHANGED
|
@@ -1,60 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
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; }
|
|
15
|
-
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
|
+
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; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
|
+
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); }
|
|
16
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
-
|
|
18
15
|
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."); }
|
|
19
|
-
|
|
20
16
|
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); }
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
17
|
+
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; }
|
|
18
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
26
19
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
|
-
|
|
28
20
|
// 类似于class component的setState
|
|
29
21
|
var useSet = function useSet(initState) {
|
|
30
22
|
var _useReducer = (0, _react.useReducer)(function (state, newState) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if (typeof newState === 'function') {
|
|
34
|
-
action = action(state);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (newState.action && newState.payload) {
|
|
38
|
-
action = newState.payload;
|
|
39
|
-
|
|
40
|
-
if (typeof action === 'function') {
|
|
23
|
+
var action = newState;
|
|
24
|
+
if (typeof newState === 'function') {
|
|
41
25
|
action = action(state);
|
|
42
26
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
27
|
+
if (newState.action && newState.payload) {
|
|
28
|
+
action = newState.payload;
|
|
29
|
+
if (typeof action === 'function') {
|
|
30
|
+
action = action(state);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
var result = _objectSpread(_objectSpread({}, state), action);
|
|
34
|
+
return result;
|
|
35
|
+
}, initState),
|
|
36
|
+
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
37
|
+
state = _useReducer2[0],
|
|
38
|
+
setState = _useReducer2[1];
|
|
53
39
|
return [state, function (state) {
|
|
54
40
|
setState(state);
|
|
55
41
|
}];
|
|
56
42
|
};
|
|
57
|
-
|
|
58
|
-
var _default = useSet;
|
|
59
|
-
exports["default"] = _default;
|
|
43
|
+
var _default = exports["default"] = useSet;
|
|
60
44
|
//# sourceMappingURL=useSet.js.map
|
package/lib/_util/useSet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSet.js","names":["useSet","initState","useReducer","state","newState","action","payload","result","setState"],"sources":["_util/useSet.js"],"sourcesContent":["import { useReducer } from 'react';\n\n// 类似于class component的setState\nconst useSet = initState => {\n const [state, setState] = useReducer((state, newState) => {\n let action = newState;\n if (typeof newState === 'function') {\n action = action(state);\n }\n if (newState.action && newState.payload) {\n action = newState.payload;\n if (typeof action === 'function') {\n action = action(state);\n }\n }\n const result = { ...state, ...action };\n return result;\n }, initState);\n return [\n state,\n state => {\n setState(state);\n },\n ];\n};\n\nexport default useSet;\n"],"mappings":";;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"useSet.js","names":["_react","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","key","value","_toPropertyKey","configurable","writable","i","_toPrimitive","_typeof","Symbol","toPrimitive","call","TypeError","String","Number","_slicedToArray","arr","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","minLen","_arrayLikeToArray","n","prototype","toString","slice","constructor","name","Array","from","test","len","arr2","l","iterator","u","a","f","next","done","isArray","useSet","initState","_useReducer","useReducer","state","newState","action","payload","result","_useReducer2","setState","_default","exports"],"sources":["_util/useSet.js"],"sourcesContent":["import { useReducer } from 'react';\r\n\r\n// 类似于class component的setState\r\nconst useSet = initState => {\r\n const [state, setState] = useReducer((state, newState) => {\r\n let action = newState;\r\n if (typeof newState === 'function') {\r\n action = action(state);\r\n }\r\n if (newState.action && newState.payload) {\r\n action = newState.payload;\r\n if (typeof action === 'function') {\r\n action = action(state);\r\n }\r\n }\r\n const result = { ...state, ...action };\r\n return result;\r\n }, initState);\r\n return [\r\n state,\r\n state => {\r\n setState(state);\r\n },\r\n ];\r\n};\r\n\r\nexport default useSet;\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAmC,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAA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AAM,GAAGA,MAAM,CAACF,KAAK,CAAC;QAC1B;MACJ;MACA,IAAMI,MAAM,GAAA1D,aAAA,CAAAA,aAAA,KAAQsD,KAAK,GAAKE,MAAM,CAAE;MACtC,OAAOE,MAAM;IACjB,CAAC,EAAEP,SAAS,CAAC;IAAAQ,YAAA,GAAApC,cAAA,CAAA6B,WAAA;IAbNE,KAAK,GAAAK,YAAA;IAAEC,QAAQ,GAAAD,YAAA;EActB,OAAO,CACHL,KAAK,EACL,UAAAA,KAAK,EAAI;IACLM,QAAQ,CAACN,KAAK,CAAC;EACnB,CAAC,CACJ;AACL,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,cAEaZ,MAAM","ignoreList":[]}
|
package/lib/config.js
CHANGED
|
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var globalCfg = window.VtxPublicServiceAddress || {};
|
|
8
|
-
var _default = {
|
|
8
|
+
var _default = exports["default"] = {
|
|
9
9
|
// ztree文件地址
|
|
10
10
|
ztreeServer: globalCfg.ztreeServer ? globalCfg.ztreeServer : '//vortexplugin.cloudhw.cn/ztree'
|
|
11
11
|
};
|
|
12
|
-
exports["default"] = _default;
|
|
13
12
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","names":["globalCfg","window","VtxPublicServiceAddress","ztreeServer"],"sources":["config.js"],"sourcesContent":["const globalCfg = window.VtxPublicServiceAddress || {};\n\nexport default {\n // ztree文件地址\n ztreeServer: globalCfg.ztreeServer ? globalCfg.ztreeServer : '//vortexplugin.cloudhw.cn/ztree',\n};\n"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAGC,MAAM,CAACC,
|
|
1
|
+
{"version":3,"file":"config.js","names":["globalCfg","window","VtxPublicServiceAddress","_default","exports","ztreeServer"],"sources":["config.js"],"sourcesContent":["const globalCfg = window.VtxPublicServiceAddress || {};\r\n\r\nexport default {\r\n // ztree文件地址\r\n ztreeServer: globalCfg.ztreeServer ? globalCfg.ztreeServer : '//vortexplugin.cloudhw.cn/ztree',\r\n};\r\n"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAGC,MAAM,CAACC,uBAAuB,IAAI,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAExC;EACX;EACAC,WAAW,EAAEL,SAAS,CAACK,WAAW,GAAGL,SAAS,CAACK,WAAW,GAAG;AACjE,CAAC","ignoreList":[]}
|
package/lib/index.js
CHANGED
|
@@ -129,48 +129,26 @@ Object.defineProperty(exports, "VtxZtreeSelect", {
|
|
|
129
129
|
return _vtxZtreeSelect["default"];
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
-
|
|
133
132
|
var _vtxFormLayout = _interopRequireDefault(require("./vtx-form-layout"));
|
|
134
|
-
|
|
135
133
|
var _vtxPageLayout = _interopRequireDefault(require("./vtx-page-layout"));
|
|
136
|
-
|
|
137
134
|
var _vtxSearch = _interopRequireDefault(require("./vtx-search"));
|
|
138
|
-
|
|
139
135
|
var _vtxColorPicker = _interopRequireDefault(require("./vtx-color-picker"));
|
|
140
|
-
|
|
141
136
|
var _vtxCombogrid = _interopRequireDefault(require("./vtx-combogrid"));
|
|
142
|
-
|
|
143
137
|
var _vtxDatePicker = _interopRequireDefault(require("./vtx-date-picker"));
|
|
144
|
-
|
|
145
138
|
var _vtxEditor = _interopRequireDefault(require("./vtx-editor"));
|
|
146
|
-
|
|
147
139
|
var _vtxExport = _interopRequireDefault(require("./vtx-export"));
|
|
148
|
-
|
|
149
140
|
var _vtxImport = _interopRequireDefault(require("./vtx-import"));
|
|
150
|
-
|
|
151
141
|
var _vtxSearchMapInput = _interopRequireDefault(require("./vtx-search-map-input"));
|
|
152
|
-
|
|
153
142
|
var _vtxSelect = _interopRequireDefault(require("./vtx-select"));
|
|
154
|
-
|
|
155
143
|
var _vtxInput = _interopRequireDefault(require("./vtx-input"));
|
|
156
|
-
|
|
157
144
|
var _vtxTimePicker = _interopRequireDefault(require("./vtx-time-picker"));
|
|
158
|
-
|
|
159
145
|
var _vtxUpload = _interopRequireDefault(require("./vtx-upload"));
|
|
160
|
-
|
|
161
146
|
var _vtxZtreeSelect = _interopRequireDefault(require("./vtx-ztree-select"));
|
|
162
|
-
|
|
163
147
|
var _vtxDatagrid = _interopRequireDefault(require("./vtx-datagrid"));
|
|
164
|
-
|
|
165
148
|
var _vtxImage = _interopRequireDefault(require("./vtx-image"));
|
|
166
|
-
|
|
167
149
|
var _vtxRpsFrame = _interopRequireDefault(require("./vtx-rps-frame"));
|
|
168
|
-
|
|
169
150
|
var _vtxZtree = _interopRequireDefault(require("./vtx-ztree"));
|
|
170
|
-
|
|
171
151
|
var _vtxSplitPane = _interopRequireDefault(require("./vtx-split-pane"));
|
|
172
|
-
|
|
173
152
|
var _vtxModal = _interopRequireDefault(require("./vtx-modal"));
|
|
174
|
-
|
|
175
153
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
176
154
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["index.js"],"sourcesContent":["// layout\r\nexport { default as VtxFormLayout } from './vtx-form-layout';\r\nexport { default as VtxPageLayout } from './vtx-page-layout';\r\nexport { default as VtxSearch } from './vtx-search';\r\n\r\n// data entry\r\nexport { default as VtxColorPicker } from './vtx-color-picker';\r\nexport { default as VtxCombogrid } from './vtx-combogrid';\r\nexport { default as VtxDatePicker } from './vtx-date-picker';\r\nexport { default as VtxEditor } from './vtx-editor';\r\nexport { default as VtxExport } from './vtx-export';\r\nexport { default as VtxImport } from './vtx-import';\r\nexport { default as VtxSearchMapInput } from './vtx-search-map-input';\r\nexport { default as VtxSelect } from './vtx-select';\r\nexport { default as VtxInput } from './vtx-input';\r\nexport { default as VtxTimePicker } from './vtx-time-picker';\r\nexport { default as VtxUpload } from './vtx-upload';\r\nexport { default as VtxZtreeSelect } from './vtx-ztree-select';\r\n\r\n// data display\r\nexport { default as VtxDatagrid } from './vtx-datagrid';\r\nexport { default as VtxImage } from './vtx-image';\r\nexport { default as VtxRpsFrame } from './vtx-rps-frame';\r\nexport { default as VtxZtree } from './vtx-ztree';\r\nexport { default as VtxSplitPane } from './vtx-split-pane';\r\n\r\n// feedback\r\nexport { default as VtxModal } from './vtx-modal';\r\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["_vtxFormLayout","_interopRequireDefault","require","_vtxPageLayout","_vtxSearch","_vtxColorPicker","_vtxCombogrid","_vtxDatePicker","_vtxEditor","_vtxExport","_vtxImport","_vtxSearchMapInput","_vtxSelect","_vtxInput","_vtxTimePicker","_vtxUpload","_vtxZtreeSelect","_vtxDatagrid","_vtxImage","_vtxRpsFrame","_vtxZtree","_vtxSplitPane","_vtxModal","obj","__esModule"],"sources":["index.js"],"sourcesContent":["// layout\r\nexport { default as VtxFormLayout } from './vtx-form-layout';\r\nexport { default as VtxPageLayout } from './vtx-page-layout';\r\nexport { default as VtxSearch } from './vtx-search';\r\n\r\n// data entry\r\nexport { default as VtxColorPicker } from './vtx-color-picker';\r\nexport { default as VtxCombogrid } from './vtx-combogrid';\r\nexport { default as VtxDatePicker } from './vtx-date-picker';\r\nexport { default as VtxEditor } from './vtx-editor';\r\nexport { default as VtxExport } from './vtx-export';\r\nexport { default as VtxImport } from './vtx-import';\r\nexport { default as VtxSearchMapInput } from './vtx-search-map-input';\r\nexport { default as VtxSelect } from './vtx-select';\r\nexport { default as VtxInput } from './vtx-input';\r\nexport { default as VtxTimePicker } from './vtx-time-picker';\r\nexport { default as VtxUpload } from './vtx-upload';\r\nexport { default as VtxZtreeSelect } from './vtx-ztree-select';\r\n\r\n// data display\r\nexport { default as VtxDatagrid } from './vtx-datagrid';\r\nexport { default as VtxImage } from './vtx-image';\r\nexport { default as VtxRpsFrame } from './vtx-rps-frame';\r\nexport { default as VtxZtree } from './vtx-ztree';\r\nexport { default as VtxSplitPane } from './vtx-split-pane';\r\n\r\n// feedback\r\nexport { default as VtxModal } from './vtx-modal';\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AAGA,IAAAG,eAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,cAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,UAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,UAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,UAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,kBAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,UAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,SAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,cAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,UAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,eAAA,GAAAf,sBAAA,CAAAC,OAAA;AAGA,IAAAe,YAAA,GAAAhB,sBAAA,CAAAC,OAAA;AACA,IAAAgB,SAAA,GAAAjB,sBAAA,CAAAC,OAAA;AACA,IAAAiB,YAAA,GAAAlB,sBAAA,CAAAC,OAAA;AACA,IAAAkB,SAAA,GAAAnB,sBAAA,CAAAC,OAAA;AACA,IAAAmB,aAAA,GAAApB,sBAAA,CAAAC,OAAA;AAGA,IAAAoB,SAAA,GAAArB,sBAAA,CAAAC,OAAA;AAAkD,SAAAD,uBAAAsB,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA","ignoreList":[]}
|
|
@@ -1,48 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
4
|
-
|
|
3
|
+
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); }
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
10
|
var _rcColorPicker = _interopRequireDefault(require("rc-color-picker"));
|
|
15
|
-
|
|
16
11
|
var _input = _interopRequireDefault(require("antd/es/input"));
|
|
17
|
-
|
|
18
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
|
-
|
|
20
13
|
var _excluded = ["value", "onChange", "className", "style", "disabled"];
|
|
21
|
-
|
|
22
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
-
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
28
17
|
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); }
|
|
29
|
-
|
|
30
18
|
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; }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
19
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
34
20
|
var VtxColorPicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
35
21
|
var value = props.value,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
22
|
+
onChange = props.onChange,
|
|
23
|
+
className = props.className,
|
|
24
|
+
style = props.style,
|
|
25
|
+
disabled = props.disabled,
|
|
26
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
42
27
|
var onPickerChange = function onPickerChange(e) {
|
|
43
28
|
onChange && onChange(e.color);
|
|
44
29
|
};
|
|
45
|
-
|
|
46
30
|
return /*#__PURE__*/_react["default"].createElement(_input["default"], {
|
|
47
31
|
ref: ref,
|
|
48
32
|
value: value,
|
|
@@ -67,6 +51,5 @@ VtxColorPicker.propTypes = {
|
|
|
67
51
|
className: _propTypes["default"].string,
|
|
68
52
|
style: _propTypes["default"].object
|
|
69
53
|
};
|
|
70
|
-
var _default = VtxColorPicker;
|
|
71
|
-
exports["default"] = _default;
|
|
54
|
+
var _default = exports["default"] = VtxColorPicker;
|
|
72
55
|
//# sourceMappingURL=index.js.map
|