Skip to content

Commit

Permalink
bird-grid支持自定义查询按钮文字
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxx-u committed Jun 26, 2018
1 parent fbb648c commit 39b38b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Form/AutoField.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class AutoField extends React.Component {
onChange={(date, dateString) => self.onChange(dateString)} />;
case "datetime":
return <DatePicker value={field.value ? moment(field.value) : null} disabled={field.disabled}
format={"YYYY-MM-DD HH:mm"}
format={"YYYY-MM-DD HH:mm:ss"}
style={{ width: '100%' }}
onChange={(date, dateString) => self.onChange(dateString)} showTime={true} />;
case "richtext":
Expand Down
2 changes: 1 addition & 1 deletion src/components/Grid/BirdGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class BirdGrid extends React.Component {
optionActions = optionActions.concat(defaultActions);
if (queryColumns.length > 0) {
optionActions.unshift({
name: '查询',
name: gridOption.queryText || '查询',
icon: 'search',
onClick: () => {
this.query()
Expand Down

0 comments on commit 39b38b2

Please sign in to comment.