@antmjs/vantui
Version:
一套适用于Taro3及React的vantui组件库
86 lines (85 loc) • 3.96 kB
JavaScript
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
import _inherits from "@babel/runtime/helpers/inherits";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
/* eslint-disable */
import { Component } from 'react';
import DemoPage from '../../../../vantui-demo/src/components/demo-page/index';
import DemoBlock from '../../../../vantui-demo/src/components/demo-block/index';
import Demo1 from './demo1';
import Demo2 from './demo2';
import Demo3 from './demo3';
import Demo4 from './demo4';
import Demo5 from './demo5';
import Demo6 from './demo6';
import Demo7 from './demo7';
import Demo8 from './demo8';
import Demo9 from './demo9';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
var Index = /*#__PURE__*/function (_Component) {
_inherits(Index, _Component);
var _super = _createSuper(Index);
function Index(props) {
var _this;
_classCallCheck(this, Index);
_this = _super.call(this, props);
_defineProperty(_assertThisInitialized(_this), "state", {
active: 0
});
return _this;
}
_createClass(Index, [{
key: "render",
value: function render() {
return /*#__PURE__*/_jsxs(DemoPage, {
title: "Cell \u5355\u5143\u683C",
className: "pages-cell-index",
children: [/*#__PURE__*/_jsx(DemoBlock, {
title: "\u57FA\u7840\u7528\u6CD5",
padding: true,
children: /*#__PURE__*/_jsx(Demo1, {})
}), /*#__PURE__*/_jsx(DemoBlock, {
title: "\u5361\u7247\u98CE\u683C",
padding: true,
children: /*#__PURE__*/_jsx(Demo2, {})
}), /*#__PURE__*/_jsx(DemoBlock, {
title: "\u5355\u5143\u683C\u5927\u5C0F",
padding: true,
children: /*#__PURE__*/_jsx(Demo3, {})
}), /*#__PURE__*/_jsx(DemoBlock, {
title: "\u5C55\u793A\u56FE\u6807",
padding: true,
children: /*#__PURE__*/_jsx(Demo4, {})
}), /*#__PURE__*/_jsx(DemoBlock, {
title: "\u5C55\u793A\u7BAD\u5934",
padding: true,
children: /*#__PURE__*/_jsx(Demo5, {})
}), /*#__PURE__*/_jsx(DemoBlock, {
title: "\u9875\u9762\u8DF3\u8F6C",
padding: true,
children: /*#__PURE__*/_jsx(Demo6, {})
}), /*#__PURE__*/_jsx(DemoBlock, {
title: "\u5206\u7EC4\u6807\u9898",
padding: true,
children: /*#__PURE__*/_jsx(Demo7, {})
}), /*#__PURE__*/_jsx(DemoBlock, {
title: "\u81EA\u5B9A\u4E49\u6E32\u67D3\u5185\u5BB9",
padding: true,
children: /*#__PURE__*/_jsx(Demo8, {})
}), /*#__PURE__*/_jsx(DemoBlock, {
title: "\u5782\u76F4\u5C45\u4E2D",
padding: true,
children: /*#__PURE__*/_jsx(Demo9, {})
})]
});
}
}]);
return Index;
}(Component);
export { Index as default };