@netang/quasar 0.2.59 → 0.2.61
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.
|
@@ -331,6 +331,11 @@ export default {
|
|
|
331
331
|
request: Function,
|
|
332
332
|
// 每次对话框显示都请求
|
|
333
333
|
requestEveryDialogShow: Boolean,
|
|
334
|
+
// 自动获取焦点
|
|
335
|
+
autofocus: {
|
|
336
|
+
type: Boolean,
|
|
337
|
+
default: true,
|
|
338
|
+
}
|
|
334
339
|
},
|
|
335
340
|
|
|
336
341
|
/**
|
|
@@ -1351,6 +1356,8 @@ export default {
|
|
|
1351
1356
|
props.filter
|
|
1352
1357
|
// 如果有输入框节点
|
|
1353
1358
|
&& inputRef.value
|
|
1359
|
+
// 如果自动获取焦点
|
|
1360
|
+
&& props.autofocus
|
|
1354
1361
|
) {
|
|
1355
1362
|
inputRef.value.focus()
|
|
1356
1363
|
}
|