@antmjs/vantui
Version:
一套适用于Taro3及React的vantui组件库
32 lines • 952 B
JavaScript
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
/* eslint-disable */
import react from 'react';
import { View } from '@tarojs/components';
import { Checkbox } from '@antmjs/vantui';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export default function Demo() {
var _react$useState = react.useState(true),
_react$useState2 = _slicedToArray(_react$useState, 2),
value = _react$useState2[0],
setValue = _react$useState2[1];
return /*#__PURE__*/_jsxs(View, {
style: {
display: 'flex'
},
children: [/*#__PURE__*/_jsx(Checkbox, {
disabled: true,
style: {
marginRight: '20px'
},
children: "\u7981\u75281"
}), /*#__PURE__*/_jsx(Checkbox, {
labelDisabled: true,
value: value,
onChange: function onChange(e) {
return setValue(e.detail);
},
children: "\u7981\u75282"
})]
});
}