hc-busin-components 1.0.0
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/LICENSE +21 -0
- package/README.md +53 -0
- package/dist/Actions/index.d.ts +20 -0
- package/dist/Actions/index.js +142 -0
- package/dist/Actions/index.less +9 -0
- package/dist/AuthComponents/authDivider.d.ts +15 -0
- package/dist/AuthComponents/authDivider.js +104 -0
- package/dist/AuthComponents/index.d.ts +4 -0
- package/dist/AuthComponents/index.js +14 -0
- package/dist/BasicFilesRead/images/back.png +0 -0
- package/dist/BasicFilesRead/images/excel.png +0 -0
- package/dist/BasicFilesRead/images/folder.png +0 -0
- package/dist/BasicFilesRead/images/image.png +0 -0
- package/dist/BasicFilesRead/images/jpeg.png +0 -0
- package/dist/BasicFilesRead/images/jpg.png +0 -0
- package/dist/BasicFilesRead/images/normal.png +0 -0
- package/dist/BasicFilesRead/images/png.png +0 -0
- package/dist/BasicFilesRead/images/tar.png +0 -0
- package/dist/BasicFilesRead/images/text.png +0 -0
- package/dist/BasicFilesRead/images/zip.png +0 -0
- package/dist/BasicFilesRead/index.d.ts +31 -0
- package/dist/BasicFilesRead/index.js +286 -0
- package/dist/BasicFilesRead/styles/index.d.ts +3 -0
- package/dist/BasicFilesRead/styles/index.js +9 -0
- package/dist/CombinTable/components/RenderContent.d.ts +9 -0
- package/dist/CombinTable/components/RenderContent.js +201 -0
- package/dist/CombinTable/hooks/useTableParams.d.ts +20 -0
- package/dist/CombinTable/hooks/useTableParams.js +75 -0
- package/dist/CombinTable/hooks/useTableState.d.ts +5 -0
- package/dist/CombinTable/hooks/useTableState.js +22 -0
- package/dist/CombinTable/index.d.ts +4 -0
- package/dist/CombinTable/index.js +225 -0
- package/dist/CombinTable/styles/index.d.ts +3 -0
- package/dist/CombinTable/styles/index.js +11 -0
- package/dist/CombinTable/types/index.d.ts +21 -0
- package/dist/CombinTable/types/index.js +1 -0
- package/dist/CombineSearch/components/Content.d.ts +13 -0
- package/dist/CombineSearch/components/Content.js +249 -0
- package/dist/CombineSearch/components/Tags.d.ts +14 -0
- package/dist/CombineSearch/components/Tags.js +115 -0
- package/dist/CombineSearch/hooks/useCombineState.d.ts +5 -0
- package/dist/CombineSearch/hooks/useCombineState.js +17 -0
- package/dist/CombineSearch/index.d.ts +4 -0
- package/dist/CombineSearch/index.js +168 -0
- package/dist/CombineSearch/style/edit.svg +1 -0
- package/dist/CombineSearch/style/index.d.ts +14 -0
- package/dist/CombineSearch/style/index.js +26 -0
- package/dist/CombineSearch/types/index.d.ts +46 -0
- package/dist/CombineSearch/types/index.js +0 -0
- package/dist/ComponentUninstalled/assets/comp-unintall-background.png +0 -0
- package/dist/ComponentUninstalled/assets/comp-unintall-bg.png +0 -0
- package/dist/ComponentUninstalled/index.d.ts +32 -0
- package/dist/ComponentUninstalled/index.js +164 -0
- package/dist/ComponentUninstalled/index.less +108 -0
- package/dist/ComponentUninstalled/locale.d.ts +14 -0
- package/dist/ComponentUninstalled/locale.js +21 -0
- package/dist/DataCountPopover/index.d.ts +23 -0
- package/dist/DataCountPopover/index.js +121 -0
- package/dist/DataCountPopover/index.less +62 -0
- package/dist/DateRangePicker/index.d.ts +38 -0
- package/dist/DateRangePicker/index.js +483 -0
- package/dist/DateRangePicker/index.less +196 -0
- package/dist/DeleteConfirm/index.d.ts +23 -0
- package/dist/DeleteConfirm/index.js +109 -0
- package/dist/DeleteConfirm/index.less +44 -0
- package/dist/DeleteConfirm/locale.d.ts +7 -0
- package/dist/DeleteConfirm/locale.js +7 -0
- package/dist/DisplayButton/index.d.ts +7 -0
- package/dist/DisplayButton/index.js +23 -0
- package/dist/FileRead/images/back.png +0 -0
- package/dist/FileRead/images/excel.png +0 -0
- package/dist/FileRead/images/folder.png +0 -0
- package/dist/FileRead/images/image.png +0 -0
- package/dist/FileRead/images/jpeg.png +0 -0
- package/dist/FileRead/images/jpg.png +0 -0
- package/dist/FileRead/images/normal.png +0 -0
- package/dist/FileRead/images/png.png +0 -0
- package/dist/FileRead/images/tar.png +0 -0
- package/dist/FileRead/images/text.png +0 -0
- package/dist/FileRead/images/zip.png +0 -0
- package/dist/FileRead/index.d.ts +31 -0
- package/dist/FileRead/index.js +417 -0
- package/dist/FileRead/styles/index.d.ts +3 -0
- package/dist/FileRead/styles/index.js +9 -0
- package/dist/Icon/iconfont.d.ts +1 -0
- package/dist/Icon/iconfont.js +1 -0
- package/dist/Icon/index.d.ts +10 -0
- package/dist/Icon/index.js +20 -0
- package/dist/Icon/index.less +11 -0
- package/dist/IconPopTips/index.d.ts +10 -0
- package/dist/IconPopTips/index.js +26 -0
- package/dist/IconPopTips/index.less +33 -0
- package/dist/IconText/index.d.ts +15 -0
- package/dist/IconText/index.js +19 -0
- package/dist/IconText/index.less +38 -0
- package/dist/LogCenter/assets/empty.png +0 -0
- package/dist/LogCenter/context.d.ts +24 -0
- package/dist/LogCenter/context.js +66 -0
- package/dist/LogCenter/history-log.d.ts +35 -0
- package/dist/LogCenter/history-log.js +1214 -0
- package/dist/LogCenter/index.d.ts +8 -0
- package/dist/LogCenter/index.js +130 -0
- package/dist/LogCenter/index.less +577 -0
- package/dist/LogCenter/locale.d.ts +3 -0
- package/dist/LogCenter/locale.js +81 -0
- package/dist/LogCenter/realtime-log.d.ts +35 -0
- package/dist/LogCenter/realtime-log.js +641 -0
- package/dist/LogCenter/select-with-all.d.ts +28 -0
- package/dist/LogCenter/select-with-all.js +337 -0
- package/dist/LogCenter/select-with-all.less +81 -0
- package/dist/LogCenter/services.d.ts +27 -0
- package/dist/LogCenter/services.js +93 -0
- package/dist/LogCenter/tools.d.ts +9 -0
- package/dist/LogCenter/tools.js +137 -0
- package/dist/LogCenter/types.d.ts +133 -0
- package/dist/LogCenter/types.js +1 -0
- package/dist/LogicalResourceFilter/index.d.ts +7 -0
- package/dist/LogicalResourceFilter/index.js +426 -0
- package/dist/LogicalResourceFilter/index.less +139 -0
- package/dist/LogicalResourceFilter/locale.d.ts +2 -0
- package/dist/LogicalResourceFilter/locale.js +10 -0
- package/dist/LogicalResourceFilter/types.d.ts +58 -0
- package/dist/LogicalResourceFilter/types.js +1 -0
- package/dist/MetadataCount/index.d.ts +16 -0
- package/dist/MetadataCount/index.js +97 -0
- package/dist/MetadataCount/index.less +40 -0
- package/dist/MetadataForm/index.d.ts +18 -0
- package/dist/MetadataForm/index.js +85 -0
- package/dist/MetadataForm/index.less +108 -0
- package/dist/MetadataForm/label.d.ts +13 -0
- package/dist/MetadataForm/label.js +447 -0
- package/dist/MetadataPopoverList/fetchArray.d.ts +3 -0
- package/dist/MetadataPopoverList/fetchArray.js +74 -0
- package/dist/MetadataPopoverList/index.d.ts +13 -0
- package/dist/MetadataPopoverList/index.js +98 -0
- package/dist/MetadataPopoverList/index.less +74 -0
- package/dist/MetadataTags/index.d.ts +17 -0
- package/dist/MetadataTags/index.js +109 -0
- package/dist/MetadataTags/index.less +26 -0
- package/dist/OverFlow/index.d.ts +4 -0
- package/dist/OverFlow/index.js +66 -0
- package/dist/OverFlow/types/index.d.ts +11 -0
- package/dist/OverFlow/types/index.js +1 -0
- package/dist/PageHeader/index.d.ts +16 -0
- package/dist/PageHeader/index.js +41 -0
- package/dist/PageHeader/index.less +89 -0
- package/dist/ResourceProgress/index.d.ts +6 -0
- package/dist/ResourceProgress/index.js +102 -0
- package/dist/ResourceProgress/index.less +86 -0
- package/dist/ResourceProgress/types/index.d.ts +15 -0
- package/dist/ResourceProgress/types/index.js +1 -0
- package/dist/Terminal/index.d.ts +44 -0
- package/dist/Terminal/index.js +390 -0
- package/dist/Terminal/index.less +39 -0
- package/dist/TextCopy/index.d.ts +21 -0
- package/dist/TextCopy/index.js +38 -0
- package/dist/TextCopy/index.less +51 -0
- package/dist/TextEllipsis/index.d.ts +18 -0
- package/dist/TextEllipsis/index.js +31 -0
- package/dist/TextEllipsis/index.less +3 -0
- package/dist/ThemeForm/index.d.ts +6 -0
- package/dist/ThemeForm/index.js +15 -0
- package/dist/ThemeForm/index.less +15 -0
- package/dist/ThemeSubmit/index.d.ts +16 -0
- package/dist/ThemeSubmit/index.js +60 -0
- package/dist/ThemeSubmit/index.less +30 -0
- package/dist/TooltipSpan/index.d.ts +6 -0
- package/dist/TooltipSpan/index.js +72 -0
- package/dist/UsageCycle/index.d.ts +12 -0
- package/dist/UsageCycle/index.js +71 -0
- package/dist/UsageCycle/index.less +56 -0
- package/dist/Yaml/CodeMirrorWrapper.d.ts +14 -0
- package/dist/Yaml/CodeMirrorWrapper.js +106 -0
- package/dist/Yaml/index.d.ts +6 -0
- package/dist/Yaml/index.js +470 -0
- package/dist/Yaml/index.less +190 -0
- package/dist/Yaml/types.d.ts +38 -0
- package/dist/Yaml/types.js +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +32 -0
- package/dist/metadata/locale.d.ts +52 -0
- package/dist/metadata/locale.js +69 -0
- package/dist/showMore/index.d.ts +6 -0
- package/dist/showMore/index.js +40 -0
- package/package.json +121 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
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); }
|
|
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); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { ExclamationCircleFilled } from '@ant-design/icons';
|
|
14
|
+
import { Button, ConfigProvider, Popover } from 'antd';
|
|
15
|
+
import React, { useContext, useState } from 'react';
|
|
16
|
+
import Icon from "../Icon";
|
|
17
|
+
import { deleteConfirmLocaleZhCN } from "./locale";
|
|
18
|
+
import "./index.less";
|
|
19
|
+
var DeleteConfirm = function DeleteConfirm(props) {
|
|
20
|
+
var _useContext;
|
|
21
|
+
var title = props.title,
|
|
22
|
+
content = props.content,
|
|
23
|
+
onDelete = props.onDelete,
|
|
24
|
+
_props$type = props.type,
|
|
25
|
+
type = _props$type === void 0 ? 'default' : _props$type,
|
|
26
|
+
_props$danger = props.danger,
|
|
27
|
+
danger = _props$danger === void 0 ? true : _props$danger,
|
|
28
|
+
_props$size = props.size,
|
|
29
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
30
|
+
_props$ghost = props.ghost,
|
|
31
|
+
ghost = _props$ghost === void 0 ? false : _props$ghost,
|
|
32
|
+
_props$disabled = props.disabled,
|
|
33
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
34
|
+
className = props.className,
|
|
35
|
+
_props$placement = props.placement,
|
|
36
|
+
placement = _props$placement === void 0 ? 'topRight' : _props$placement,
|
|
37
|
+
_props$isIcon = props.isIcon,
|
|
38
|
+
isIcon = _props$isIcon === void 0 ? false : _props$isIcon,
|
|
39
|
+
deleteText = props.deleteText,
|
|
40
|
+
_props$isDelete = props.isDelete,
|
|
41
|
+
isDelete = _props$isDelete === void 0 ? true : _props$isDelete;
|
|
42
|
+
var _useState = useState(false),
|
|
43
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
44
|
+
open = _useState2[0],
|
|
45
|
+
setOpen = _useState2[1];
|
|
46
|
+
var antdLocale = (_useContext = useContext(ConfigProvider.ConfigContext)) === null || _useContext === void 0 ? void 0 : _useContext.locale;
|
|
47
|
+
var common = _objectSpread(_objectSpread({}, deleteConfirmLocaleZhCN.common), antdLocale === null || antdLocale === void 0 ? void 0 : antdLocale.common);
|
|
48
|
+
var deleteLabel = deleteText !== null && deleteText !== void 0 ? deleteText : common.delete;
|
|
49
|
+
var cancelLabel = common.cancel;
|
|
50
|
+
if (disabled) {
|
|
51
|
+
return /*#__PURE__*/React.createElement(Popover, {
|
|
52
|
+
placement: placement,
|
|
53
|
+
overlayClassName: "delete-confirm-popover",
|
|
54
|
+
content: content || title,
|
|
55
|
+
arrow: {
|
|
56
|
+
pointAtCenter: true
|
|
57
|
+
}
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
59
|
+
type: type,
|
|
60
|
+
danger: danger,
|
|
61
|
+
className: className,
|
|
62
|
+
disabled: true
|
|
63
|
+
}, deleteLabel));
|
|
64
|
+
}
|
|
65
|
+
return /*#__PURE__*/React.createElement(Popover, {
|
|
66
|
+
trigger: "click",
|
|
67
|
+
placement: placement,
|
|
68
|
+
overlayClassName: "delete-confirm-popover",
|
|
69
|
+
content: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
className: "content"
|
|
71
|
+
}, /*#__PURE__*/React.createElement(ExclamationCircleFilled, null), /*#__PURE__*/React.createElement("dl", null, /*#__PURE__*/React.createElement("dt", null, title), /*#__PURE__*/React.createElement("dd", null, content))), /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: "footer"
|
|
73
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
74
|
+
size: "small",
|
|
75
|
+
onClick: function onClick() {
|
|
76
|
+
return setOpen(false);
|
|
77
|
+
}
|
|
78
|
+
}, cancelLabel), /*#__PURE__*/React.createElement(Button, {
|
|
79
|
+
size: "small",
|
|
80
|
+
danger: isDelete,
|
|
81
|
+
type: isDelete ? 'default' : 'primary',
|
|
82
|
+
onClick: function onClick() {
|
|
83
|
+
onDelete();
|
|
84
|
+
setOpen(false);
|
|
85
|
+
}
|
|
86
|
+
}, deleteLabel))),
|
|
87
|
+
open: open,
|
|
88
|
+
onOpenChange: function onOpenChange() {
|
|
89
|
+
return setOpen(true);
|
|
90
|
+
}
|
|
91
|
+
}, isIcon && isDelete ? /*#__PURE__*/React.createElement(Button, {
|
|
92
|
+
type: type,
|
|
93
|
+
danger: danger,
|
|
94
|
+
size: size,
|
|
95
|
+
ghost: ghost,
|
|
96
|
+
className: ['hc-delete-icon-btn', className].filter(Boolean).join(' '),
|
|
97
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
98
|
+
name: "v35_TrashCan"
|
|
99
|
+
})
|
|
100
|
+
}) : /*#__PURE__*/React.createElement(Button, {
|
|
101
|
+
type: type,
|
|
102
|
+
danger: danger,
|
|
103
|
+
size: size,
|
|
104
|
+
ghost: ghost,
|
|
105
|
+
className: className
|
|
106
|
+
}, deleteLabel));
|
|
107
|
+
};
|
|
108
|
+
export { deleteConfirmLocaleZhCN } from "./locale";
|
|
109
|
+
export default DeleteConfirm;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.delete-confirm-popover {
|
|
2
|
+
&.ant-popover {
|
|
3
|
+
max-width: 480px;
|
|
4
|
+
.content {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
margin-bottom: 16px;
|
|
8
|
+
dl,
|
|
9
|
+
dt,
|
|
10
|
+
dd {
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
dl {
|
|
15
|
+
width: calc(100% - 20px);
|
|
16
|
+
dt {
|
|
17
|
+
margin-bottom: 8px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.anticon {
|
|
22
|
+
margin: 2px 6px 0 0;
|
|
23
|
+
color: #faad14;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.footer {
|
|
28
|
+
text-align: right;
|
|
29
|
+
button {
|
|
30
|
+
min-width: 58px;
|
|
31
|
+
margin-left: 12px;
|
|
32
|
+
&.ant-btn.ant-btn-sm {
|
|
33
|
+
padding: 1.6px 7px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.hc-delete-icon-btn {
|
|
41
|
+
.hc-icon {
|
|
42
|
+
font-size: 16px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
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); }
|
|
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); }
|
|
7
|
+
import { Button, Tooltip } from "antd";
|
|
8
|
+
import React from "react";
|
|
9
|
+
var DisPlayButton = function DisPlayButton(props) {
|
|
10
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
11
|
+
placement: "left",
|
|
12
|
+
title: props.tip
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
14
|
+
disabled: true,
|
|
15
|
+
size: "small",
|
|
16
|
+
type: "link",
|
|
17
|
+
style: _objectSpread({
|
|
18
|
+
padding: '0 7px',
|
|
19
|
+
margin: 0
|
|
20
|
+
}, props.style)
|
|
21
|
+
}, props.text));
|
|
22
|
+
};
|
|
23
|
+
export default DisPlayButton;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
data: any[];
|
|
4
|
+
onClickPath: (path: string, allpath: any[]) => void;
|
|
5
|
+
fieldNames: string[];
|
|
6
|
+
fieldVisible?: {
|
|
7
|
+
dataIndex: string;
|
|
8
|
+
visibleKey: string;
|
|
9
|
+
visibleValue: any;
|
|
10
|
+
}[];
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
tools?: {
|
|
14
|
+
multiple: boolean;
|
|
15
|
+
DOM: React.ReactNode;
|
|
16
|
+
}[];
|
|
17
|
+
operations: {
|
|
18
|
+
key: string;
|
|
19
|
+
title: string;
|
|
20
|
+
displayKey?: string;
|
|
21
|
+
displayValue?: any;
|
|
22
|
+
type?: 'danger' | 'link' | undefined;
|
|
23
|
+
dangerTip?: string;
|
|
24
|
+
showKey?: string;
|
|
25
|
+
render?: (record: any, allPath?: string[], isFileTools?: boolean) => React.ReactNode;
|
|
26
|
+
onClick?: (record: any, allPath?: string[]) => void;
|
|
27
|
+
}[];
|
|
28
|
+
customColumnsRender?: any;
|
|
29
|
+
}
|
|
30
|
+
declare const FileRead: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
|
|
31
|
+
export default FileRead;
|