@antmjs/vantui
Version:
一套适用于Taro3及React的vantui组件库
34 lines (33 loc) • 958 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Demo;
var _vantui = require("@antmjs/vantui");
var _jsxRuntime = require("react/jsx-runtime");
function Demo() {
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_vantui.Tabs, {
active: 'a',
onChange: function onChange(e) {
return _vantui.Toast.show({
message: e.detail.name,
selector: '#tabs-demo2'
});
},
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.Tab, {
title: "\u6807\u7B7E a",
name: "a",
children: "\u5185\u5BB9 a"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.Tab, {
title: "\u6807\u7B7E b",
name: "b",
children: "\u5185\u5BB9 b"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.Tab, {
title: "\u6807\u7B7E c",
name: "c",
children: "\u5185\u5BB9 c"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vantui.Toast, {
id: "tabs-demo2"
})]
});
}
;