Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rule plugin handle show style #26

Merged
merged 1 commit into from
Nov 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions src/routes/Plugin/Common/Rule.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import { Modal, Form, Select, Input, Switch, Button, message } from "antd";
import { Modal, Form, Select, Input, Switch, Button, message, Tooltip } from "antd";
import { connect } from "dva";
import classnames from "classnames";
import styles from "../index.less";
Expand Down Expand Up @@ -364,24 +364,26 @@ class AddModal extends Component {
)
} else if (item.dataType === "3" && item.dictOptions) {
return (
<li key={item.field}>{item.label}:
<Select
placeholder={item.label}
onChange={value => {
<li key={item.field}>
<Tooltip title={item.label}>
<Select
placeholder={item.label}
onChange={value => {
item.value = value;
this.setState({pluginHandleList})
}}
value={item.value || undefined}
style={{ width: 250 }}
>
{item.dictOptions.map(option => {
value={item.value || undefined}
style={{ width: 250 }}
>
{item.dictOptions.map(option => {
return (
<Option key={option.dictValue} value={option.dictValue}>
{option.dictName}
{option.dictName} ({item.label})
</Option>
);
})}
</Select>
</Select>
</Tooltip>
</li>
)
} else {
Expand Down