diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap index de0fb1fc6f50..ed15b7075b9e 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap index 5e22f848206d..6831875ce1e6 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap index 4669680bf418..75765f799386 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { @@ -4473,6 +4475,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { @@ -7376,6 +7380,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap index 1b9e38206459..24938d4e3e79 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { @@ -4315,6 +4317,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap index edc017f0a08d..12fbe3bfc5dd 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/nerv.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/nerv.spec.ts.snap index ac292416c6f9..95ea106c2d19 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/nerv.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/nerv.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap index 2d5f92a0c5d9..f1b41fd439d5 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap index 1ce5706d6128..cdad3f420b54 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap @@ -1597,6 +1597,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__[\\"d\\"])(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { @@ -5966,6 +5968,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { @@ -10301,6 +10305,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap index 169d1c4f59e5..cf2ee341895b 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { @@ -4917,6 +4919,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap index 7aa91e7c98bb..46af47cd7e6d 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap index 2335f5891507..b034c031c678 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { @@ -4298,6 +4300,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { @@ -7202,6 +7206,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { @@ -10106,6 +10112,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap index a68884d9cefb..11881e05b414 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap index 540ea9bd0d96..61f8e2ba9626 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap @@ -3830,6 +3830,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap index 5229ab08543a..ced475ee0b78 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap @@ -1394,6 +1394,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap index ea2f3fa751af..b51a51d4c10a 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap @@ -1406,6 +1406,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap index 4a51a1fe0d2c..1ac80aaa0c52 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap @@ -1411,6 +1411,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap index 63dd85b1d646..7074f1013e50 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap @@ -1173,6 +1173,8 @@ require(\\"./taro\\"); \\"adjust-position\\": \\"true\\", \\"hold-keyboard\\": \\"false\\", \\"disable-default-padding\\": \\"false\\", + \\"confirm-type\\": singleQuote(\\"return\\"), + \\"confirm-hold\\": \\"false\\", bindKeyboardHeightChange: \\"\\" }, ScrollView: { diff --git a/packages/taro-weapp/src/components.ts b/packages/taro-weapp/src/components.ts index 3be3907e16da..7564d6d64ac7 100644 --- a/packages/taro-weapp/src/components.ts +++ b/packages/taro-weapp/src/components.ts @@ -74,6 +74,8 @@ export const components = { 'adjust-position': 'true', 'hold-keyboard': 'false', 'disable-default-padding': 'false', + 'confirm-type': singleQuote('return'), + 'confirm-hold': 'false', bindKeyboardHeightChange: '' }, ScrollView: { diff --git a/packages/taro-weapp/types/components.d.ts b/packages/taro-weapp/types/components.d.ts index 62af75ae25e5..399c52f6c495 100644 --- a/packages/taro-weapp/types/components.d.ts +++ b/packages/taro-weapp/types/components.d.ts @@ -71,6 +71,8 @@ export declare const components: { 'adjust-position': string; 'hold-keyboard': string; 'disable-default-padding': string; + 'confirm-type': string; + 'confirm-hold': string; bindKeyboardHeightChange: string; }; ScrollView: {