@antmjs/vantui
Version:
一套适用于Taro3及React的vantui组件库
23 lines • 735 B
JavaScript
import { View } from '@tarojs/components';
import { Button, Toast } 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() {
Toast.show('我是提示文案');
};
var showLong = function showLong() {
Toast.show('我是提示文案, 超过了十五就会换行额~~~');
};
return /*#__PURE__*/_jsxs(View, {
children: [/*#__PURE__*/_jsx(Button, {
type: "primary",
onClick: show,
children: "\u6587\u5B57\u63D0\u793A"
}), /*#__PURE__*/_jsx(Button, {
type: "primary",
onClick: showLong,
children: "\u957F\u6587\u5B57\u63D0\u793A"
})]
});
}