UNPKG

@antmjs/vantui

Version:

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

28 lines (27 loc) 778 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: '自定义颜色', color: '#ad0000', background: '#ffe1e1', duration: 10000 }); }; return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.View, { children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.Button, { onClick: show, type: "primary", children: "\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u65F6\u957F" }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.Notify, { id: "vanNotify" })] }); }