1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { BaseState } from '../common/base/BaseState'; 17import { PermissionGroupConfig } from '../common/model/typedef'; 18import Constants from '../common/utils/constant'; 19 20@Observed 21export class GrantDialogViewState extends BaseState { 22 // 授权应用名 23 public appName: string | undefined = ''; 24 25 // 授权权限组列表 26 public grantGroups: PermissionGroupConfig[] = []; 27 28 // 当前展示的权限组索引 29 public curIndex: number = 0; 30 31 // 剪贴板内容来源应用名 32 public pasteBoardName: string = ''; 33 34 // 位置权限组状态 35 public locationFlag: number = Constants.LOCATION_NONE; 36 37}