Skip to content

应用图标 AppIcon

属性

参数描述类型必填默认值
packageName应用包名stringnull

接口

setPackageName

该方法用于设置应用包名。
完整方法声明:function setPackageName(packageName: string): void

  • 参数:
参数描述类型非空
packageName应用包名string
  • 返回值:
属性描述类型默认值
无返回值void

基础用法

点击查看源码
vue
<template>
	<qt-view
		class="es-sdk-root-css"
		:clipChildren="false"
	>
		<s-title-view
			class="es-sdk-content-title-css"
			:text="this.$options.name"
		/>
		<qt-view class="es-sdk-content-divider-css" />
		<qt-view class="qt-app-icon-view-start-page">
			<qt-app-icon
				style="height: 250px; width: 250px; background-color: red"
				packageName="com.extscreen.runtime"
			/>
		</qt-view>
	</qt-view>
</template>

<script lang="ts">
import {defineComponent} from '@vue/runtime-core';

export default defineComponent({
	name: 'QTAppIcon',
	setup(props, context) {
		return {};
	},
});
</script>

<style>
.qt-app-icon-view-start-page {
	width: 1920px;
	height: 1000px;
	background-color: transparent;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
</style>