已合并
同源代码示例增加import导包 #10809
同源代码示例增加import导包 #10809
已合并
gaoshenxu创建于 8月6日
共 3 个文件变更+3-3
@@ -13,13 +13,13 @@
13* limitations under the License.13* limitations under the License.
14*/14*/
15 15 
16+// [Start register_init_scheme]
16import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit';17import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit';
17import { hilog } from '@kit.PerformanceAnalysisKit';18import { hilog } from '@kit.PerformanceAnalysisKit';
18import { window } from '@kit.ArkUI';19import { window } from '@kit.ArkUI';
19import testNapi from 'libentry.so';20import testNapi from 'libentry.so';
20import { webview } from '@kit.ArkWeb';21import { webview } from '@kit.ArkWeb';
21 22 
22-// [Start register_init_scheme]
23export default class EntryAbility extends UIAbility {23export default class EntryAbility extends UIAbility {
24 onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void {24 onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void {
25 // 注册三方协议的配置。25 // 注册三方协议的配置。
@@ -13,9 +13,9 @@
13 * limitations under the License.13 * limitations under the License.
14 */14 */
15 15 
16+// [Start button_click_trigger_back]
16import { webview } from '@kit.ArkWeb';17import { webview } from '@kit.ArkWeb';
17 18 
18-// [Start button_click_trigger_back]
19@Entry19@Entry
20@Component20@Component
21struct WebComponent {21struct WebComponent {
@@ -13,8 +13,8 @@
13 * limitations under the License.13 * limitations under the License.
14 */14 */
15 15 
16-import { window } from '@kit.ArkUI';
17// [Start set_web_darkmode_auto]16// [Start set_web_darkmode_auto]
17+import { window } from '@kit.ArkUI';
18import { AbilityConstant, ConfigurationConstant, UIAbility, Want, Configuration } from '@kit.AbilityKit';18import { AbilityConstant, ConfigurationConstant, UIAbility, Want, Configuration } from '@kit.AbilityKit';
19import { hilog } from '@kit.PerformanceAnalysisKit';19import { hilog } from '@kit.PerformanceAnalysisKit';
20 20