Skip to content

ts项目用showModal缺少editable和content类型一直都没修复吗 #16325

@QzhouZ

Description

@QzhouZ

相关平台

微信小程序

小程序基础库: 无
使用框架: React

复现步骤

Taro.showModal({
  editable: true,
  success ({content}) {
    console.log(content)
  }
})

期望结果

ts 类型支持

实际结果

类型“SuccessCallbackResult”上不存在属性“content”。

环境信息

👽 Taro v3.6.25

Taro CLI 3.6.25 environment info:
  System:
    OS: macOS 14.4.1
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm
  npmPackages:
    @tarojs/cli: 3.6.25 => 3.6.25 
    @tarojs/components: 3.6.25 => 3.6.25 
    @tarojs/helper: 3.6.25 => 3.6.25 
    @tarojs/plugin-framework-react: 3.6.25 => 3.6.25 
    @tarojs/plugin-platform-alipay: 3.6.25 => 3.6.25 
    @tarojs/plugin-platform-h5: 3.6.25 => 3.6.25 
    @tarojs/plugin-platform-jd: 3.6.25 => 3.6.25 
    @tarojs/plugin-platform-qq: 3.6.25 => 3.6.25 
    @tarojs/plugin-platform-swan: 3.6.25 => 3.6.25 
    @tarojs/plugin-platform-tt: 3.6.25 => 3.6.25 
    @tarojs/plugin-platform-weapp: 3.6.25 => 3.6.25 
    @tarojs/react: 3.6.25 => 3.6.25 
    @tarojs/runtime: 3.6.25 => 3.6.25 
    @tarojs/shared: 3.6.25 => 3.6.25 
    @tarojs/taro: 3.6.25 => 3.6.25 
    @tarojs/taro-loader: 3.6.25 => 3.6.25 
    @tarojs/webpack5-runner: 3.6.25 => 3.6.25 
    babel-preset-taro: 3.6.25 => 3.6.25 
    eslint-config-taro: 3.6.25 => 3.6.25 
    react: ^18.0.0 => 18.3.1 
    taro-ui: ^3.2.1 => 3.3.0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-reactFramework - ReactT-weappTarget - 编译到微信小程序V-3Version - 3.x

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions