dtable-ui-component 0.1.95 → 0.1.96-test1
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.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.dtable-ui-editor-button {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
padding: 0 12px;
|
|
4
|
+
height: 28px;
|
|
5
|
+
line-height: 28px;
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
background-color: #f0f0f0;
|
|
8
|
+
color: #8f8f8f;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
user-select: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dtable-ui-editor-button:hover {
|
|
15
|
+
background-color: #dbdbdb;
|
|
16
|
+
color: #666;
|
|
17
|
+
}
|
|
@@ -3,6 +3,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import './index.css';
|
|
6
7
|
|
|
7
8
|
var EditEditorButton = /*#__PURE__*/function (_React$Component) {
|
|
8
9
|
_inherits(EditEditorButton, _React$Component);
|
|
@@ -42,9 +43,10 @@ var EditEditorButton = /*#__PURE__*/function (_React$Component) {
|
|
|
42
43
|
key: "render",
|
|
43
44
|
value: function render() {
|
|
44
45
|
var text = this.props.text;
|
|
45
|
-
var style = this.getStyle();
|
|
46
|
+
var style = this.getStyle(); //<span style={style} onClick={this.props.onClick}>{text}</span>
|
|
47
|
+
|
|
46
48
|
return /*#__PURE__*/React.createElement("span", {
|
|
47
|
-
|
|
49
|
+
className: "dtable-ui-editor-button",
|
|
48
50
|
onClick: this.props.onClick
|
|
49
51
|
}, text);
|
|
50
52
|
}
|
package/lib/LinkEditor/index.css
CHANGED
|
@@ -36,7 +36,7 @@ var MTimeFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
36
36
|
var _this$props = this.props,
|
|
37
37
|
date = _this$props.value,
|
|
38
38
|
containerClassName = _this$props.containerClassName;
|
|
39
|
-
var classname = cn('
|
|
39
|
+
var classname = cn('dtable-ui cell-formatter-container ctime-formatter', containerClassName);
|
|
40
40
|
|
|
41
41
|
if (date !== '') {
|
|
42
42
|
date = this.formatDate(date);
|