UNPKG

@antmjs/vantui

Version:

一套适用于Taro3及React的vantui组件库

23 lines 659 B
import { View } from '@tarojs/components'; import { Button, Notify } from '@antmjs/vantui'; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; export default function Demo() { var show = function show() { Notify.show({ message: '自定义颜色', color: '#ad0000', background: '#ffe1e1', duration: 10000 }); }; return /*#__PURE__*/_jsxs(View, { children: [/*#__PURE__*/_jsx(Button, { onClick: show, type: "primary", children: "\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u65F6\u957F" }), /*#__PURE__*/_jsx(Notify, { id: "vanNotify" })] }); }