@zgfe/business-lib 1.1.41-attribution.15 → 1.1.41-attribution.16

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.
@@ -5,6 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5
5
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useEffect, useState } from 'react';
8
+ import { message } from 'antd';
8
9
  import { classPrefix } from '..';
9
10
  import { PropType } from '../../attributeSelector/types';
10
11
  import BizSelect from '../../select';
@@ -50,12 +51,16 @@ var BizOperateList = function BizOperateList(props) {
50
51
  if (props.onChange) props.onChange(data.value);
51
52
  };
52
53
  if (!props.attr || !current || !options.length) {
53
- return /*#__PURE__*/React.createElement(BizSelect, {
54
+ return /*#__PURE__*/React.createElement("div", {
55
+ onClick: function onClick() {
56
+ return message.error('请先选择属性');
57
+ }
58
+ }, /*#__PURE__*/React.createElement(BizSelect, {
54
59
  className: "".concat(classPrefix, "-single-select"),
55
60
  theme: props.theme,
56
61
  disable: true,
57
62
  options: []
58
- });
63
+ }));
59
64
  }
60
65
  return /*#__PURE__*/React.createElement(BizSelect, {
61
66
  disable: !props.attr,
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
4
  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; }
5
5
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import { DatePicker, Input } from 'antd';
7
+ import { DatePicker, Input, message } from 'antd';
8
8
  import locale from 'antd/es/date-picker/locale/zh_CN';
9
9
  import moment from 'moment';
10
10
  import React, { useEffect, useState } from 'react';
@@ -94,14 +94,18 @@ var ValuesList = function ValuesList(props) {
94
94
  return current && current > moment().endOf('day');
95
95
  };
96
96
  if (!attr || !operate || isFirst) {
97
- return /*#__PURE__*/React.createElement(BizSelect, {
97
+ return /*#__PURE__*/React.createElement("div", {
98
+ onClick: function onClick() {
99
+ return message.error('请先选择属性');
100
+ }
101
+ }, /*#__PURE__*/React.createElement(BizSelect, {
98
102
  disable: true,
99
103
  className: "".concat(classPrefix, "-multi-select"),
100
104
  theme: theme,
101
105
  size: "middle",
102
106
  options: [],
103
107
  placeholder: "\u8BF7\u9009\u62E9\u5C5E\u6027\u503C"
104
- });
108
+ }));
105
109
  }
106
110
  if (attr.type === PropType.STRING) {
107
111
  return /*#__PURE__*/React.createElement(StringList, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.41-attribution.15",
3
+ "version": "1.1.41-attribution.16",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.12.0 || ^17.0.0",
61
61
  "yorkie": "^2.0.0"
62
62
  },
63
- "gitHead": "4be88a17235800d1faa624f24022763ab23b7902"
63
+ "gitHead": "f3c1ad8ece869422845327fba1fa0b397a91eb51"
64
64
  }