@teamias/rex-design 0.0.41 → 0.0.42
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.
|
@@ -4,12 +4,12 @@ var _excluded = ["ellipsis", "tooltip", "copyable", "action", "urlTarget", "url"
|
|
|
4
4
|
_excluded4 = ["iconsType"];
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
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); }
|
|
7
8
|
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; }
|
|
8
9
|
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; }
|
|
9
10
|
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; }
|
|
10
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
11
12
|
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); }
|
|
12
|
-
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); }
|
|
13
13
|
import { EyeOutlined } from '@ant-design/icons';
|
|
14
14
|
import { downloadResourceFile, Icons, MediaViewer, showFileViewer } from "../../..";
|
|
15
15
|
import { Tag, Tooltip, Typography } from 'antd';
|
|
@@ -88,7 +88,9 @@ var actionRender = function actionRender(item, action, node, click) {
|
|
|
88
88
|
var createFileNode = function createFileNode() {
|
|
89
89
|
return tooltipBox( /*#__PURE__*/_jsxs("a", {
|
|
90
90
|
href: "void",
|
|
91
|
-
style:
|
|
91
|
+
style: _objectSpread({
|
|
92
|
+
wordBreak: 'break-all'
|
|
93
|
+
}, item.style),
|
|
92
94
|
onClick: function onClick(e) {
|
|
93
95
|
e.preventDefault();
|
|
94
96
|
e.stopPropagation();
|
|
@@ -352,8 +354,7 @@ export var cellItemMap = {
|
|
|
352
354
|
return /*#__PURE__*/_jsxs("a", {
|
|
353
355
|
href: "void",
|
|
354
356
|
style: _objectSpread({
|
|
355
|
-
|
|
356
|
-
gap: 4
|
|
357
|
+
wordBreak: 'break-all'
|
|
357
358
|
}, style),
|
|
358
359
|
onClick: function onClick(e) {
|
|
359
360
|
e.preventDefault();
|
|
@@ -361,6 +362,9 @@ export var cellItemMap = {
|
|
|
361
362
|
downloadResourceFile(url || '');
|
|
362
363
|
},
|
|
363
364
|
children: [/*#__PURE__*/_jsx(EyeOutlined, {
|
|
365
|
+
style: {
|
|
366
|
+
marginRight: 4
|
|
367
|
+
},
|
|
364
368
|
onClick: function onClick(e) {
|
|
365
369
|
e.preventDefault();
|
|
366
370
|
e.stopPropagation();
|