返回顶部
i

ionic-expertIonic专家

A comprehensive starting point for AI agents to work with the Ionic Framework. Covers core concepts, components, CLI, theming, layout, lifecycle, navigation, and framework-specific patterns for Angular, React, and Vue. Pair with the other Ionic skills in this collection for deeper topic-specific guidance like app creation, framework integration, and upgrades.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
115
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

ionic-expert

Ionic 专家

Ionic 框架开发的全面参考——核心概念、组件、主题、生命周期、导航、框架特定模式(Angular、React、Vue)、升级以及 Capawesome Cloud 集成。

核心概念

Ionic 框架是一个使用 Web 技术构建跨平台应用的 UI 工具包。它提供了 80 多个预构建的 UI 组件,这些组件是前缀为 ion- 的 Web 组件(例如,)。

  • - 平台模式:组件会根据平台调整样式。iOS 设备使用 ios 模式;Android 和所有其他平台使用 md(Material Design)模式。 元素会接收一个类(ios 或 md)。
  • Capacitor 集成:Ionic 处理 UI;Capacitor 处理原生设备 API。有关 Capacitor 的指导,请参阅 capacitor-app-development 技能。
  • 框架支持:Ionic 与 Angular(@ionic/angular)、React(@ionic/react)和 Vue(@ionic/vue)集成。

创建新应用

bash
npm install -g @ionic/cli
ionic start <名称> <模板> --type=<框架> --capacitor --package-id=

--type 值框架
angularAngular (NgModules)
angular-standalone
Angular (独立组件) | | react | React | | vue | Vue |
模板描述
blank空项目,单页面
tabs
基于标签页的布局 | | sidemenu | 侧边菜单布局 |

详情请参阅 ionic-app-creation

Ionic CLI

运行 ionic --help 获取完整且始终最新的命令列表。

命令描述
ionic start搭建一个新的 Ionic 项目。
ionic serve
启动带有热重载的本地开发服务器(端口 8100)。 |
| ionic build | 构建用于生产的 Web 应用。 |
| ionic generate | 生成页面、组件、服务(依赖于框架)。 |
| ionic info | 打印系统/环境信息。 |
| ionic repair | 移除并重新创建依赖项和平台文件。 |

有用的 ionic serve 标志:--external(所有网络接口)、--port=<端口>、--prod、--no-open。

组件概述

Ionic 提供了 80 多个按类别组织的 UI 组件。有关完整的 API 参考(属性、事件、方法、插槽、CSS 自定义属性),请参阅链接的参考文件。

布局

ion-app(根容器)、ion-content(可滚动区域)、ion-header、ion-footer、ion-toolbar、ion-title、ion-buttons、ion-back-button、ion-grid/ion-row/ion-col、ion-split-pane。

关键用法:

html





页面标题




详情请参阅 components-layout.md

导航

ion-tabs、ion-tab-bar、ion-tab-button、ion-menu、ion-menu-button、ion-menu-toggle、ion-router-outlet、ion-nav、ion-breadcrumbs。

详情请参阅 components-navigation.md

表单

ion-input、ion-textarea、ion-select/ion-select-option、ion-checkbox、ion-toggle、ion-radio/ion-radio-group、ion-range、ion-datetime/ion-datetime-button、ion-searchbar、ion-segment/ion-segment-button、ion-input-otp。

大多数表单组件共享的关键属性:label、labelPlacement(floating、stacked、fixed、start)、fill(outline、solid)、errorText、helperText、disabled、value、placeholder。

关键事件:

  • - ionInput — 每次按键时触发(用于 ion-input/ion-textarea)。
  • ionChange — 值提交时触发(用于 ion-select、ion-toggle、ion-checkbox、ion-range)。

html
type=email placeholder=you@example.com
errorText=无效邮箱 helperText=请输入您的邮箱>


美国
德国

详情请参阅 components-form.md

覆盖层

ion-modal、ion-alert、ion-toast、ion-action-sheet、ion-loading、ion-popover。

所有覆盖层共享:用于声明式控制的 isOpen 属性、用于从按钮 ID 打开的 trigger 属性、backdropDismiss、animated 以及生命周期事件(didPresent、didDismiss、willPresent、willDismiss)。

表单模态框(底部表单):

html

表单内容

详情请参阅 components-overlay.md

数据展示

ion-list、ion-item、ion-item-sliding/ion-item-options/ion-item-option、ion-card/ion-card-header/ion-card-content、ion-accordion/ion-accordion-group、ion-chip、ion-badge、ion-label、ion-note。

详情请参阅 components-data-display.md

滚动

ion-refresher/ion-refresher-content(下拉刷新)、ion-infinite-scroll/ion-infinite-scroll-content、ion-reorder-group/ion-reorder。

详情请参阅 components-scroll.md

操作与媒体

ion-button、ion-fab/ion-fab-button、ion-icon、ion-avatar、ion-thumbnail、ion-spinner、ion-skeleton-text、ion-progress-bar。

详情请参阅 components-action.mdcomponents-media.md

主题

颜色

九种默认颜色:primary、secondary、tertiary、success、warning、danger、light、medium、dark。通过 color 属性应用:

html
保存
删除

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ionic-expert-1776031666 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ionic-expert-1776031666 技能

通过命令行安装

skillhub install ionic-expert-1776031666

下载

⬇ 下载 ionic-expert v1.0.0(免费)

文件大小: 7.5 KB | 发布时间: 2026-4-13 10:42

v1.0.0 最新 2026-4-13 10:42
- Initial release of the ionic-expert skill: a comprehensive reference for building apps with the Ionic Framework.
- Covers core concepts, project scaffolding, CLI commands, theming, layout, navigation, forms, overlays, data display, scroll features, and action/media components.
- Includes framework-specific notes for Angular, React, and Vue.
- Provides quick-reference usage examples, key events and properties, and links out to in-depth resources for each component category.
- Designed as a starting point and overview for Ionic development, with suggestions for pairing with companion skills for more advanced topics.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部