@jswork/antd-components 1.0.213 → 1.0.214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jswork/antd-components",
3
- "version": "1.0.213",
3
+ "version": "1.0.214",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.esm.js",
6
6
  "types": "dist/main.d.ts",
@@ -1,4 +1,4 @@
1
- import { Space, Typography } from 'antd';
1
+ import { Typography } from 'antd';
2
2
  import { ValueType } from 'rc-input/lib/interface';
3
3
  import React from 'react';
4
4
  import { AcInput, AcInputProps } from './input';
@@ -41,12 +41,7 @@ export class AcInputCopyable extends React.Component<AcInputProps, AcInputCopyab
41
41
 
42
42
  render() {
43
43
  const { onChange, ...rest } = this.props;
44
- return (
45
- <Space.Compact direction="horizontal">
46
- <AcInput onChange={this.handleInputChange} {...rest} />
47
- {this.copyView}
48
- </Space.Compact>
49
- );
44
+ return <AcInput onChange={this.handleInputChange} {...rest} addonAfter={this.copyView} />;
50
45
  }
51
46
  }
52
47