Skip to content

属性disablePrerender 没定义 #19029

@lupingW

Description

@lupingW

请先确认

  • 我已搜索并确定这个提交不是重复的

Taro 版本

v4

相关领域

TypeScript 类型

使用框架

React

相关平台

  • 所有平台
  • Web 端(H5)
  • 移动端(React-Native)
  • 鸿蒙(Harmony)
  • 鸿蒙容器(Harmony Hybrid)
  • ASCF 元服务
  • 快应用(QuickApp)
  • 所有小程序
  • 微信小程序
  • 企业微信小程序
  • 京东小程序
  • 百度小程序
  • 支付宝小程序
  • 支付宝 IOT 小程序
  • 头条小程序
  • QQ 小程序
  • 钉钉小程序
  • 飞书小程序
  • 快手小程序

小程序基础库版本

No response

问题描述

不能将类型“{ children: Element; disablePrerender: true; className: any; }”分配给类型“IntrinsicAttributes & ViewProps”。
类型“IntrinsicAttributes & ViewProps”上不存在属性“disablePrerender”。

希望在StandardProps种增加disablePrerender 禁用预渲染的 ts 类型定义

复现链接

https://www.baidu.com

复现步骤

在 View 标签的属性中写disablePrerender

环境信息

👽 Taro v4.1.9


  Taro CLI 4.1.9 environment info:
    System:
      OS: macOS 26.3.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 22.19.0 - ~/.nvm/versions/node/v22.19.0/bin/node
      npm: 10.9.3 - ~/.nvm/versions/node/v22.19.0/bin/npm
    npmPackages:
      @tarojs/cli: 4.1.9 => 4.1.9 
      @tarojs/components: 4.1.9 => 4.1.9 
      @tarojs/plugin-framework-react: 4.1.9 => 4.1.9 
      @tarojs/plugin-inject: 4.1.9 => 4.1.9 
      @tarojs/plugin-platform-alipay: ^4.1.9 => 4.1.9 
      @tarojs/plugin-platform-weapp: ^4.1.9 => 4.1.9 
      @tarojs/react: 4.1.9 => 4.1.9 
      @tarojs/runtime: 4.1.9 => 4.1.9 
      @tarojs/taro: 4.1.9 => 4.1.9 
      @tarojs/webpack5-runner: 4.1.9 => 4.1.9 
      babel-preset-taro: 4.1.9 => 4.1.9 
      eslint-config-taro: 4.1.9 => 4.1.9 
      react: ^18.3.1 => 18.3.1

开源贡献

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-typingsArea - TypeScript Typings 相关F-reactFramework - ReactT-alipayTarget - 编译到支付宝小程序T-ddT-feishuT-h5Target - 编译到 H5T-harmonyTarget - 编译到 HarmonyT-harmony_hybridTarget - 编译到 Harmony (Hybird 模式)T-jdTarget - 编译到京东小程序T-kwaiT-qqTarget - 编译到 QQ 小程序T-quickappTarget - 编译到快应用T-qyT-rnTarget - 编译到 React NativeT-swanTarget - 编译到百度小程序T-ttTarget - 编译到字节跳动小程序T-weappTarget - 编译到微信小程序V-4Version - 4.xbugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Status

    Padding

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions