placeholder move to textareaProps in MDEditor
@@ -261,7 +261,7 @@ const UserDictListWidget = ({
}),
dataIndex: "word",
key: "word",
- tip: "单词过长会自动收缩",
+ tooltip: "单词过长会自动收缩",
ellipsis: true,
},
{
@@ -302,7 +302,7 @@ const UserDictListWidget = ({
dataIndex: "meaning",
key: "meaning",
- tip: "意思过长会自动收缩",
+ tooltip: "意思过长会自动收缩",
search: false,
@@ -313,7 +313,7 @@ const UserDictListWidget = ({
dataIndex: "note",
key: "note",
- tip: "注释过长会自动收缩",
+ tooltip: "注释过长会自动收缩",
@@ -128,7 +128,7 @@ const UserDictTableWidget = ({
@@ -169,7 +169,7 @@ const UserDictTableWidget = ({
@@ -180,7 +180,7 @@ const UserDictTableWidget = ({
@@ -228,13 +228,15 @@ const DiscussionCreateWidget = ({
}
>
<MDEditor
- placeholder={
- "问题的详细描述" +
- (typeof currParent !== "undefined" &&
- typeof topic?.tplId !== "undefined"
- ? ""
- : "(选填)")
- }
+ textareaProps={{
+ placeholder:
+ "问题的详细描述" +
+ (typeof currParent !== "undefined" &&
+ typeof topic?.tplId !== "undefined"
+ ? ""
+ : "(选填)"),
+ maxLength: 10000,
+ }}
/>
</Form.Item>
) : (
@@ -106,7 +106,7 @@ const TermListWidget = ({ studioName, channelId }: IWidget) => {
@@ -140,7 +140,7 @@ const TermListWidget = ({ studioName, channelId }: IWidget) => {
dataIndex: "meaning2",
key: "meaning2",
@@ -150,7 +150,7 @@ const TermListWidget = ({ studioName, channelId }: IWidget) => {