1.0.2 • Published 4 years ago

plugin-platform-tt-feishu v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

plugin-platform-tt-feishu

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

使用

1. 配置插件

// Taro 项目配置
module.exports = {
  // ...
  plugins: [
    '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>
    </>
  )
}