Skip to content

kyjo2014/taro-plugin-platform-tt-feishu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@tarojs/plugin-platform-tt-feishu

Taro 插件。用于支持编译为字节跳动 飞书 端小程序。

使用

1. 配置插件

// Taro 项目配置
module.exports = {
  // ...
  plugins: [
    '@tarojs/plugin-platform-tt-feishu'
  ]
}

2. 编译为字节跳动 feishu 端小程序

taro build --type feishu
taro build --type feishu --watch

其它

平台判断
if (process.TARO_ENV === 'feishu') {
  // ...
}
组件

字节跳动 飞书 端小程序拓展了一些独有组件,可像普通 Taro 内置组件一样使用,例:

import { Editor, CustomizedInput } from '@tarojs/components'

function Index () {
  return (
    <>
      <Editor></Editor>
      <CustomizedInput></CustomizedInput>
    </>
  )
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published