1/* 2 * Copyright (c) 2024 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 { PressKeysBean } from './PressKeysItem'; 17 18export class PressKeysBeanViewModel { 19 /** 20 * Key array data. 21 */ 22 getPressKeys(): Array<Array<PressKeysBean>> { 23 return [ 24 [ 25 new PressKeysBean(0, '32vp', '32vp', 'clean', $r('app.media.ic_clean')), 26 new PressKeysBean(1, '19vp', '43vp', '7'), 27 new PressKeysBean(1, '19vp', '43vp', '4'), 28 new PressKeysBean(1, '19vp', '43vp', '1'), 29 new PressKeysBean(1, '25vp', '43vp', '%') 30 ], 31 [ 32 new PressKeysBean(0, '32vp', '32vp', 'div', $r('app.media.ic_div')), 33 new PressKeysBean(1, '19vp', '43vp', '8'), 34 new PressKeysBean(1, '19vp', '43vp', '5'), 35 new PressKeysBean(1, '19vp', '43vp', '2'), 36 new PressKeysBean(1, '19vp', '43vp', '0') 37 ], 38 [ 39 new PressKeysBean(0, '32vp', '32vp', 'mul', $r('app.media.ic_mul')), 40 new PressKeysBean(1, '19vp', '43vp', '9'), 41 new PressKeysBean(1, '19vp', '43vp', '6'), 42 new PressKeysBean(1, '19vp', '43vp', '3'), 43 new PressKeysBean(1, '19vp', '43vp', '.') 44 ], 45 [ 46 new PressKeysBean(0, '30.48vp', '20vp', 'del', $r('app.media.ic_del')), 47 new PressKeysBean(0, '24vp', '24vp', 'min', $r('app.media.ic_min')), 48 new PressKeysBean(0, '32vp', '32vp', 'add', $r('app.media.ic_add')), 49 new PressKeysBean(0, '32vp', '32vp', 'equ', $r('app.media.ic_equ')) 50 ] 51 ]; 52 } 53} 54 55let keysModel = new PressKeysBeanViewModel(); 56 57export default keysModel as PressKeysBeanViewModel;