@antmjs/vantui
Version:
一套适用于Taro3及React的vantui组件库
22 lines • 642 B
JavaScript
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: '自定义节点选择器',
duration: 1000,
selector: '#customSelector'
});
};
return /*#__PURE__*/_jsxs(View, {
children: [/*#__PURE__*/_jsx(Button, {
onClick: show,
type: "primary",
children: "\u81EA\u5B9A\u4E49\u9009\u62E9\u5668"
}), /*#__PURE__*/_jsx(Notify, {
id: "customSelector"
})]
});
}