R后悔药 Rue.js
  • 首页
    • 深度指南
    • 实战例子
    • 快速上手
    • 路由指南
    • 术语表
    • 错误代码参考
  • API
    • 合作伙伴
    • 插件
    • 组件库
    • 工具链
    • Text.js
    • 新闻简报
    • 常见问题
    • 团队
    • 版本发布
    • 社区指南
    • 行为规范
    • 隐私政策
  • 赞助
  • 合作伙伴
设置
目录统计
总条目
  • 你好,世界
  • 处理输入
  • Attribute 绑定
  • 条件与循环
  • 表单绑定
  • 简单组件
  • useApp().component 注册
  • Reactive Props Destructure
  • Props 与 useSetup
  • Slots 插槽
  • 原生 Web Components
  • Web Components 分项测试
  • 基础元素与自闭合标签
  • 表达式与插值
  • 属性、className、style 与 Props
  • 对象展开属性(spread props)
  • 条件渲染(?:、&&、null)
  • v-if / r-if 指令
  • v-show / r-show 指令
  • v-pre / r-pre 指令
  • v-once / r-once 指令
  • v-memo / r-memo 指令
  • v-text / r-text 指令
  • v-html / r-html 指令
  • v-on / r-on 指令
  • v-model / r-model 指令
  • 列表渲染与 key
  • v-for / r-for 指令
  • Template 无包装容器
  • Scoped Style 组件作用域样式
  • Fragments(<> … </>)
  • children 插槽与嵌套
  • 组件与 Props 传递
  • 动态组件(Component)
  • Suspense 异步边界
  • 异步组件懒水合
  • 事件处理
  • 受控输入
  • Refs 基础
  • Markdown 编辑器
  • 获取数据
  • 服务端预取
  • 资源
  • 资源(纯 JSX)
  • Rue Islands 总览
  • Island:client:load
  • Island:client:idle
  • Island:client:visible
  • Island:client:media
  • Island:client:interaction
  • Island:client:none
  • Island:client:only
  • Island:安全 Props
  • Island:Manifest Props
  • Island:client:* 编译
  • Context
  • 语言切换(_ 模型)
  • 路由 Demo:总览(嵌套路由)
  • 路由 Demo:守卫(beforeEnter)
  • 路由 Demo:实验页(受守卫保护)
  • 基础计数器
  • shallowRef 浅层 ref
  • triggerRef 手动触发
  • customRef 自定义 ref
  • onActivated 缓存生命周期
  • toRef 响应式句柄
  • toRefs 响应式解构
  • isRef 判定示例
  • isProxy 代理判断
  • isReadonly 判断
  • nextTick 真实业务场景
  • watchPostEffect DOM 读取
  • watchSyncEffect 同步防线
  • onWatcherCleanup 请求清理
  • effectScope 批量停止
  • onScopeDispose 作用域清理
  • getCurrentScope 作用域探针
  • 渲染函数计数器
  • onRenderTracked 调试
  • onRenderTriggered 调试
  • onDeactivated
  • onErrorCaptured 错误捕获
  • useState 计数器
  • 条件渲染
  • map 列表渲染
  • Todo 应用
  • 基础待办事项
  • 本地待办事项
  • 用户资料编辑
  • useState 数组
  • useState 对象
  • 本地 ref 计数器
  • 排序、筛选与网格
  • Store Query Sync 与 URL 状态
  • 树状视图
  • SVG 图表
  • SVG 共享标签命名空间
  • 带过渡动效的模态框
  • Transition mode
  • 子调父方法
  • 父控子计数
  • 组件级 v-model
  • 命名 v-model
  • 组件 emit
  • Hello children
  • 基础 children Box
  • 嵌套 children Box
  • Layout children
  • 过渡动效

Rue SSR Islands

Compiler client:* 指令

这个页面包含真实 client:* TSX fixture,并展示 virtual:rue-island-manifest 输出。

OverviewLoadIdleVisibleMediaInteractionNoneOnlyPropsManifestCompiler

virtual:rue-island-manifest

{
  "rue-c6giem": {
    "id": "rue-c6giem",
    "component": "./islands/CompilerCounter",
    "entry": "./islands/CompilerCounter",
    "exportName": "default",
    "hydrate": "load"
  },
  "rue-11wft7s": {
    "id": "rue-11wft7s",
    "component": "./islands/CompilerCounter",
    "entry": "./islands/CompilerCounter",
    "exportName": "default",
    "hydrate": "visible"
  },
  "rue-12w94is": {
    "id": "rue-12w94is",
    "component": "./islands/CompilerCounter",
    "entry": "./islands/CompilerCounter",
    "exportName": "default",
    "hydrate": "interaction",
    "interaction": "click"
  },
  "rue-13k1905": {
    "id": "rue-13k1905",
    "component": "./rue-islands/islands/LoadCounter",
    "entry": "./rue-islands/islands/LoadCounter",
    "exportName": "default",
    "hydrate": "load"
  },
  "rue-exeng2": {
    "id": "rue-exeng2",
    "component": "./rue-islands/islands/IdlePanel",
    "entry": "./rue-islands/islands/IdlePanel",
    "exportName": "default",
    "hydrate": "idle",
    "timeout": 500
  },
  "rue-mepqzv": {
    "id": "rue-mepqzv",
    "component": "./rue-islands/islands/VisiblePanel",
    "entry": "./rue-islands/islands/VisiblePanel",
    "exportName": "default",
    "hydrate": "visible",
    "rootMargin": "200px"
  },
  "rue-al3lu5": {
    "id": "rue-al3lu5",
    "component": "./rue-islands/islands/MediaPanel",
    "entry": "./rue-islands/islands/MediaPanel",
    "exportName": "default",
    "hydrate": "media",
    "media": "(min-width: 900px)"
  },
  "rue-oenlx7": {
    "id": "rue-oenlx7",
    "component": "./rue-islands/islands/InteractionButton",
    "entry": "./rue-islands/islands/InteractionButton",
    "exportName": "default",
    "hydrate": "interaction",
    "interaction": "click"
  },
  "rue-fejdzo": {
    "id": "rue-fejdzo",
    "component": "./rue-islands/islands/OnlyWidget",
    "entry": "./rue-islands/islands/OnlyWidget",
    "exportName": "default",
    "hydrate": "only"
  },
  "rue-104yqjs": {
    "id": "rue-104yqjs",
    "component": "./rue-islands/islands/PropsPanel",
    "entry": "./rue-islands/islands/PropsPanel",
    "exportName": "default",
    "hydrate": "load"
  },
  "rue-19mxfxp": {
    "id": "rue-19mxfxp",
    "component": "./rue-islands/islands/ManifestPanel",
    "entry": "./rue-islands/islands/ManifestPanel",
    "exportName": "default",
    "hydrate": "load"
  },
  "rue-1jso1mu": {
    "id": "rue-1jso1mu",
    "component": "./components/Counter",
    "entry": "./components/Counter",
    "exportName": "default",
    "hydrate": "load"
  },
  "rue-1xqpszm": {
    "id": "rue-1xqpszm",
    "component": "./components/OnlyPanel",
    "entry": "./components/OnlyPanel",
    "exportName": "default",
    "hydrate": "only"
  },
  "rue-jfh600": {
    "id": "rue-jfh600",
    "component": "./components/Counter",
    "entry": "./components/Counter",
    "exportName": "default",
    "hydrate": "idle"
  }
}

Fixture

<CompilerCounter client:load label="client:load directive" />
<CompilerCounter client:visible label="client:visible directive" />
<CompilerCounter client:interaction="click" label="client:interaction directive" />
页内导航
文档
  • 深度指南
  • 实战例子
  • 快速上手
  • 术语表
  • 错误码参照表
关于
  • 常见问题
  • 团队
  • 版本发布
  • 社区指南
生态
  • 插件
  • 组件库
  • 路由指南
  • Text.js
© 2024-2026 Xiangmin Liu
Rue.JS