yylib-quick-mobile
Version:
yylib-quick-mobile
243 lines (222 loc) • 12.3 kB
JavaScript
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _icon = require('antd-mobile/lib/icon');
var _icon2 = _interopRequireDefault(_icon);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
require('antd-mobile/lib/icon/style/css');
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _index = require('../../../index');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var YYLocateStepsDemo2 = function (_React$Component) {
_inherits(YYLocateStepsDemo2, _React$Component);
function YYLocateStepsDemo2() {
var _ref;
var _temp, _this, _ret;
_classCallCheck(this, YYLocateStepsDemo2);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = YYLocateStepsDemo2.__proto__ || Object.getPrototypeOf(YYLocateStepsDemo2)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
data: [{ id: 'test1', title: '表头', icon: _react2.default.createElement(_icon2.default, { type: 'check' }) }, { id: 'test2', title: '表ti', icon: _react2.default.createElement(_icon2.default, { type: 'check' }) }, { id: 'test3', title: 'shenpi', icon: _react2.default.createElement(_icon2.default, { type: 'check' }) }]
}, _temp), _possibleConstructorReturn(_this, _ret);
}
_createClass(YYLocateStepsDemo2, [{
key: 'render',
value: function render() {
return _react2.default.createElement(
'div',
{ style: { height: "100vh", width: "100%", display: "flex", flexDirection: "column" } },
_react2.default.createElement(
_index.YYLocateSteps,
{ data: this.state.data, defaultHeight: 44, scrollId: 'testsc' },
_react2.default.createElement(
'div',
{ style: { padding: "6px", border: "1px solid #ece0e0e3", borderRadius: "4px", position: "fixed", bottom: "60px", right: "60px", zIndex: 100, backgroundColor: "#fff", boxShadow: "#c3aeae 0 0 10px" }, className: 'YY-locateBtn-approveZk' },
_react2.default.createElement(_icon2.default, { type: 'check', size: 'xxs', color: '#108ee9' })
)
),
_react2.default.createElement(
'div',
{ style: { height: "44px", backgroundColor: "#eee", flexShrink: "0" } },
'title'
),
_react2.default.createElement(
'div',
{ id: 'testsc', style: {
width: "100%",
overflowY: 'scroll',
flexGrow: "1",
backgroundColor: '#ccc'
} },
_react2.default.createElement(
'ul',
{ className: 'test-body-items', id: 'oneTem' },
_react2.default.createElement(
'li',
{ id: 'test1', style: { color: 'blue' } },
'\u7B2C\u4E00\u4E2A\u8282\u70B9'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ id: 'test2', style: { color: 'blue' } },
'\u7B2C\u4E8C\u4E2A\u8282\u70B9'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ id: 'test3', style: { color: 'blue' } },
'\u7B2C\u4E09\u4E2A\u8282\u70B9'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#ccc", height: "80px" } },
'asdadasdaa'
),
_react2.default.createElement(
'li',
{ style: { backgroundColor: "#C389FA", height: "80px" } },
'1312312312312'
)
)
),
_react2.default.createElement(
'div',
{ style: { height: "50px", backgroundColor: "#eee", flexShrink: "0" } },
'foot'
)
);
}
}]);
return YYLocateStepsDemo2;
}(_react2.default.Component);
exports.default = YYLocateStepsDemo2;