@gingkoo/pandora-metabase 1.0.84 → 1.0.85

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.
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports["default"] = void 0;
8
8
  var _jsxRuntime = require("react/jsx-runtime");
9
+ var _pandora = require("@gingkoo/pandora");
9
10
  require("./index.less");
10
11
  var _classnames = _interopRequireDefault(require("classnames"));
11
12
  var SelectList = function SelectList(_ref) {
@@ -19,9 +20,14 @@ var SelectList = function SelectList(_ref) {
19
20
  className = _ref$className === void 0 ? '' : _ref$className;
20
21
  return (0, _jsxRuntime.jsx)("div", {
21
22
  className: (0, _classnames["default"])("Sqb-SelectColumns--box ", className),
22
- children: (0, _jsxRuntime.jsx)("div", {
23
+ children: (0, _jsxRuntime.jsxs)("div", {
23
24
  className: 'p-2',
24
- children: list.map(function (v, i) {
25
+ children: [list.length === 0 && (0, _jsxRuntime.jsx)("div", {
26
+ className: 'Sqb-SelectColumns--empty',
27
+ children: (0, _jsxRuntime.jsx)(_pandora.Empty, {
28
+ content: '暂无数据'
29
+ })
30
+ }), list.map(function (v, i) {
25
31
  return (0, _jsxRuntime.jsxs)("div", {
26
32
  className: (0, _classnames["default"])("Sqb-List-item p-2", {
27
33
  active: value === v.value,
@@ -32,7 +38,7 @@ var SelectList = function SelectList(_ref) {
32
38
  },
33
39
  children: [v.icon, v.label]
34
40
  }, v.value);
35
- })
41
+ })]
36
42
  })
37
43
  });
38
44
  };
@@ -1,4 +1,5 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Empty } from '@gingkoo/pandora';
2
3
  import './index.less';
3
4
  import cx from 'classnames';
4
5
  var SelectList = function SelectList(_ref) {
@@ -12,9 +13,14 @@ var SelectList = function SelectList(_ref) {
12
13
  className = _ref$className === void 0 ? '' : _ref$className;
13
14
  return _jsx("div", {
14
15
  className: cx("Sqb-SelectColumns--box ", className),
15
- children: _jsx("div", {
16
+ children: _jsxs("div", {
16
17
  className: 'p-2',
17
- children: list.map(function (v, i) {
18
+ children: [list.length === 0 && _jsx("div", {
19
+ className: 'Sqb-SelectColumns--empty',
20
+ children: _jsx(Empty, {
21
+ content: '暂无数据'
22
+ })
23
+ }), list.map(function (v, i) {
18
24
  return _jsxs("div", {
19
25
  className: cx("Sqb-List-item p-2", {
20
26
  active: value === v.value,
@@ -25,7 +31,7 @@ var SelectList = function SelectList(_ref) {
25
31
  },
26
32
  children: [v.icon, v.label]
27
33
  }, v.value);
28
- })
34
+ })]
29
35
  })
30
36
  });
31
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gingkoo/pandora-metabase",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "",
5
5
  "main": "lib/es/index.js",
6
6
  "module": "lib/es/index.js",