UNPKG

@antmjs/vantui

Version:

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

43 lines (42 loc) 1.43 kB
"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() { return /*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.NoticeBar, { leftIcon: "volume-o", scrollable: false, children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_vantui.Swiper, { direction: "vertical", autoPlay: 3000, touchable: false, height: 30, children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.SwiperItem, { children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.View, { style: { height: 30 }, children: "\u660E\u6708\u76F4\u5165\uFF0C\u65E0\u5FC3\u53EF\u731C1\u3002" }) }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.SwiperItem, { children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.View, { style: { height: 30 }, children: "\u660E\u6708\u76F4\u5165\uFF0C\u65E0\u5FC3\u53EF\u731C2\u3002" }) }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.SwiperItem, { children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.View, { style: { height: 30 }, children: "\u660E\u6708\u76F4\u5165\uFF0C\u65E0\u5FC3\u53EF\u731C3\u3002" }) })] }) }); }