plain-design 1.0.0-beta.79 → 1.0.0-beta.80

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": "plain-design",
3
- "version": "1.0.0-beta.79",
3
+ "version": "1.0.0-beta.80",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -109,7 +109,7 @@ export const Input = designComponent({
109
109
 
110
110
  onMounted(async () => {
111
111
  await delay(78);
112
- if (attrs.autoFocus) {
112
+ if (props.autoFocus) {
113
113
  refs.input?.focus();
114
114
  }
115
115
  });
@@ -27,6 +27,7 @@ export const InputPropsOption = {
27
27
  fixedWidth: { type: Boolean }, // InputGroup下是否固定宽度
28
28
  bare: { type: Boolean }, // 去掉包裹节点
29
29
  loadingType: { type: String }, // loading类型
30
+ autoFocus: { type: Boolean }, // 初始化时自动获取焦点
30
31
 
31
32
  /*clear*/
32
33
  noClear: { type: Boolean }, // 去掉清空按钮