首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏HarmonyOS Next 三部曲

    144. [HarmonyOS NEXT 实战案例十:List系列] 字母索引列表组件实战:打造高效联系人应用 进阶篇

    分组头部粘性效果为了提升用户体验,我们可以为分组头部添加粘性效果,使其在滚动时保持在视图顶部:List({ scroller: this.scroller }) { ForEach(this.contactGroups this.searchText) { this.filteredGroups = this.contactGroups return } const result : AlphabetIndexerType[] = [] this.contactGroups.forEach(group => { const filteredContacts this.selectedContacts.has(contact.name) ) }) // 移除空分组 this.contactGroups = this.contactGroups.filter boolean = false private toastController: CustomToastController = null // 联系人数据 private contactGroups

    31900编辑于 2025-06-30
  • 来自专栏HarmonyOS Next 三部曲

    143.[HarmonyOS NEXT 实战案例十:List系列] 字母索引列表组件实战:打造高效联系人应用 基础篇

    interface AlphabetIndexerType { key: string, contacts: ContactType[]}然后,准备按字母分组的联系人数据:private contactGroups 获取索引字母数组我们需要从联系人分组数据中提取所有的索引字母,用于AlphabetIndexer组件:private get indexLetters(): string[] { return this.contactGroups.map 滚动控制器@State currentIndex: number = 0 // 当前索引// 联系人列表List({ scroller: this.scroller }) { ForEach(this.contactGroups // 数据定义(同上) ] // 获取所有索引字母 private get indexLetters(): string[] { return this.contactGroups.map backgroundColor('#FFFFFF') }}3.1 代码结构分析部分说明数据模型定义ContactType和AlphabetIndexerType接口,描述联系人和分组的数据结构数据准备创建contactGroups

    35100编辑于 2025-06-30
  • 来自专栏大数据入坑指南

    Centreon+Nagios实战第一篇——Centreon+nagios简介

    定义联系人 /usr/local/nagios/etc/contacts.cfg 定义联系人组 /usr/local/nagios/etc/contactgroups.cfg

    1.3K20发布于 2020-08-20
  • 来自专栏Python七号

    运维必备技能-如何使用 db2 的帮助命令

    p, -q, -rreport, -s, -t, -td;, -v, -w, -x, -zoutputfile. db2-command: ACTIVATE DATABASE GET CONTACTGROUPS GLOBAL LEVEL] [FOR SECTION section-name] GET CONNECTION STATE GET CONTACTGROUP contact-group-name GET CONTACTGROUPS

    1.7K20发布于 2020-12-10
  • 来自专栏python3

    nagios3安装配置

    我们重新写一个联系人的配置文件 cfg_file=/usr/local/nagios/etc/contacts.cfg      //指定联系人配置文件路径 cfg_file=/usr/local/nagios/etc/contactgroups.cfg 前提是要支持短信通知,这里没有启用通过手机短信的方式发送警报 pager        13549238972 如果有多个联系人的话,可以通过复制来创建多个联系人; 6、创建联系人组配置文件,contactgroups.cfg ,把多个联系人加到一个组里面; vim  /usr/local/nagios/etc/contactgroups.cfg define contactgroup{         contactgroup_name                  192.168.0.10      //被监控主机的ip地址,这里是监控本机         contact_groups          sagroup     //联系人组,是在前面contactgroups.cfgj

    68520发布于 2020-01-07
  • 来自专栏C博文

    Serverless架构下的OSS应用:函数计算FC自动处理图片/视频转码(演示水印添加+缩略图生成流水线)

    acs_fc \ --MetricName ErrorCount \ --Period 300 \ --Statistics Average \ --Threshold 10 \ --ContactGroups

    41810编辑于 2025-07-15
领券