Skip to content

Commit

Permalink
chore: rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
cnt1992 committed Mar 20, 2019
1 parent 50e9e7e commit 2b95a38
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,8 @@ class DataSourceEditor extends Component {
tabProps[UIVersion === '1.x' ? 'shape' : 'type'] = 'text'

const formItemProps = {}
formItemProps[
UIVersion === '1.x' ? 'validateState' : 'validateStatus'
] = error ? 'error' : 'success'
const _key = UIVersion === '1.x' ? 'validateState' : 'validateStatus'
formItemProps[_key] = error ? 'error' : 'success'

return (
<Form.Item labelCol={LABEL_COL} className={this.props.className}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class Editor extends Component {
render() {
const { store, UI } = this.props
const { enums } = store
debugger;

return (
<DefaultValueGenerator
Expand Down
1 change: 0 additions & 1 deletion packages/builder/src/demo/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import ReactDOM from 'react-dom'
import SchemaForm from '@uform/next'
import Index from '../index'
import {
Expand Down
5 changes: 2 additions & 3 deletions packages/builder/src/utils/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,8 @@ export const getOrderProperties = (schema = {}) => {
const index = item['x-index']
if (typeof index === 'number') {
if (!newProperties[index]) {
newProperties[
index > newProperties.length + 1 ? newProperties.length : index
] = {
const _key = index > newProperties.length + 1 ? newProperties.length : index
newProperties[_key] = {
...item,
id: key
}
Expand Down

0 comments on commit 2b95a38

Please sign in to comment.