Skip to content

Commit

Permalink
chore(settings): improve ValidatorSetter ui
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Jul 28, 2021
1 parent 8946417 commit be9776f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions designable/antd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"start": "webpack-dev-server --config playground/webpack.dev.ts"
},
"devDependencies": {
"@designable/react-settings-form": "^0.4.16",
"@designable/react-settings-form": "^0.4.17",
"autoprefixer": "^9.0",
"file-loader": "^5.0.2",
"fs-extra": "^8.1.0",
Expand All @@ -56,9 +56,9 @@
"react-is": ">=16.8.0 || >=17.0.0"
},
"dependencies": {
"@designable/core": "^0.4.16",
"@designable/formily": "^0.4.16",
"@designable/react": "^0.4.16",
"@designable/core": "^0.4.17",
"@designable/formily": "^0.4.17",
"@designable/react": "^0.4.17",
"@formily/antd": "2.0.0-beta.83",
"@formily/core": "2.0.0-beta.83",
"@formily/designable-setters": "2.0.0-beta.83",
Expand Down
8 changes: 4 additions & 4 deletions designable/setters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"react-is": ">=16.8.0 || >=17.0.0"
},
"dependencies": {
"@designable/core": "^0.4.16",
"@designable/formily": "^0.4.16",
"@designable/react": "^0.4.16",
"@designable/react-settings-form": "^0.4.16",
"@designable/core": "^0.4.17",
"@designable/formily": "^0.4.17",
"@designable/react": "^0.4.17",
"@designable/react-settings-form": "^0.4.17",
"@formily/antd": "2.0.0-beta.83",
"@formily/core": "2.0.0-beta.83",
"@formily/react": "2.0.0-beta.83",
Expand Down
4 changes: 4 additions & 0 deletions designable/setters/src/components/ValidatorSetter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ const ValidatorSchema: ISchema = {
type: 'string',
'x-decorator': 'FormItem',
'x-component': 'Select',
'x-component-props': {
allowClear: true,
},
},
pattern: {
type: 'string',
Expand Down Expand Up @@ -149,6 +152,7 @@ export const ValidatorSetter: React.FC<IValidatorSetterProps> = observer(
<Select
value={Array.isArray(props.value) ? undefined : props.value}
onChange={props.onChange}
allowClear
placeholder={GlobalRegistry.getDesignerMessage(
'SettingComponents.ValidatorSetter.pleaseSelect'
)}
Expand Down

0 comments on commit be9776f

Please sign in to comment.