UNPKG

@antmjs/vantui

Version:

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

27 lines (26 loc) 761 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Demo; var _components = require("@tarojs/components"); var _vantui = require("@antmjs/vantui"); var _jsxRuntime = require("react/jsx-runtime"); function Demo() { var show = function show() { _vantui.Notify.show({ message: '自定义节点选择器', duration: 1000, selector: '#customSelector' }); }; return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.View, { children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.Button, { onClick: show, type: "primary", children: "\u81EA\u5B9A\u4E49\u9009\u62E9\u5668" }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.Notify, { id: "customSelector" })] }); }