@yuntijs/ui 1.0.0-beta.107 → 1.0.0-beta.108
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/es/ChatItem/index.js +6 -2
- package/es/ChatItem/type.d.ts +1 -0
- package/package.json +1 -1
- package/umd/index.min.js +1 -1
- package/umd/index.min.js.map +1 -1
package/es/ChatItem/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["avatarAddon", "onAvatarClick", "avatarProps", "actions", "className", "primary", "loading", "message", "placement", "type", "avatar", "error", "showTitle", "time", "editing", "onChange", "onEditingChange", "messageExtra", "renderMessage", "text", "errorMessage", "onDoubleClick", "fontSize", "markdownProps", "markdownClassname", "isLatest"];
|
|
5
|
+
var _excluded = ["avatarAddon", "onAvatarClick", "avatarProps", "actions", "className", "primary", "loading", "message", "placement", "type", "avatar", "error", "showTitle", "time", "editing", "onChange", "onEditingChange", "messageExtra", "affixation", "renderMessage", "text", "errorMessage", "onDoubleClick", "fontSize", "markdownProps", "markdownClassname", "isLatest"];
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
8
|
import Avatar from '@lobehub/ui/es/chat/ChatItem/components/Avatar';
|
|
@@ -39,6 +39,7 @@ export var ChatItem = /*#__PURE__*/memo(function (_ref) {
|
|
|
39
39
|
onChange = _ref.onChange,
|
|
40
40
|
onEditingChange = _ref.onEditingChange,
|
|
41
41
|
messageExtra = _ref.messageExtra,
|
|
42
|
+
affixation = _ref.affixation,
|
|
42
43
|
renderMessage = _ref.renderMessage,
|
|
43
44
|
text = _ref.text,
|
|
44
45
|
errorMessage = _ref.errorMessage,
|
|
@@ -106,7 +107,10 @@ export var ChatItem = /*#__PURE__*/memo(function (_ref) {
|
|
|
106
107
|
renderMessage: renderMessage,
|
|
107
108
|
text: text,
|
|
108
109
|
type: type
|
|
109
|
-
}), /*#__PURE__*/_jsx(
|
|
110
|
+
}), affixation ? /*#__PURE__*/_jsx("div", {
|
|
111
|
+
className: "affixation",
|
|
112
|
+
children: affixation
|
|
113
|
+
}) : null, /*#__PURE__*/_jsx(Actions, {
|
|
110
114
|
actions: actions,
|
|
111
115
|
editing: editing,
|
|
112
116
|
placement: placement,
|
package/es/ChatItem/type.d.ts
CHANGED