@uni/apis v1.1.13
๐ Multi-container support Currently supports Web, WeChat Mini Programs, Toutiao Mini Programs, Ali Mini Programs, Baidu Smart Programs and Kuaishou Mini Programs ๐ Rich API Cover 90+ API implementations ๐ฏ Complete documentation Provide bilingual documents and rich samples 0๏ธโฃ No framework dependency No framework dependency, pure native implementation, compatible with any framework ๐ Extreme volume Support on-demand loading, eliminate useless code according to the environment ๐๐ป Easy to use, fast access Provide a complete Typescripts statement, so you can get rid of the documentation and immerse yourself in programming
Quick start
Take @uni/toast as an example
$ npm install @uni/toast
import { showToast } from '@uni/toast';
// string
showToast('Hi');
// object
showToast({
content: 'hello',
type: 'success',
duration: 1000,
success: () => {
console.log('toast')
}
});
// promise
showToast({
content: 'hello',
type: 'success',
duration: 1000,
}).then(() => {});
Docs
Official site: https://universal-api.js.org/
Example
Contribute code
Please read Rax Contribution Code Guide, Understand the basic specifications.
Get started
$ git clone git@github.com:raxjs/universal-api.git
$ npm install
$ npm run build
Debug API
Take @uni/toast as an example:
$ npm run build toast
$ npm run build:demo
$ cd demos
$ npm i
$ npm run start # ๅฏๅจ้กน็ฎ๏ผๆๅผๅฐ็จๅบ IDE ่ฟ่ก่ฐ่ฏ
Protocol
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago