@antmjs/vantui
Version:
一套适用于Taro3及React的vantui组件库
26 lines • 819 B
JavaScript
import { Block } from '@tarojs/components';
import { IndexBar, IndexAnchor, Cell } from '@antmjs/vantui';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
var arr = [];
var charCodeOfA = 'A'.charCodeAt(0);
for (var i = 0; i < 26; i++) {
arr.push(String.fromCharCode(charCodeOfA + i));
}
export default function Demo() {
return /*#__PURE__*/_jsx(IndexBar, {
children: arr.map(function (item) {
return /*#__PURE__*/_jsxs(Block, {
children: [/*#__PURE__*/_jsx(IndexAnchor, {
index: item
}), /*#__PURE__*/_jsx(Cell, {
title: "\u6587\u672C"
}), /*#__PURE__*/_jsx(Cell, {
title: "\u6587\u672C"
}), /*#__PURE__*/_jsx(Cell, {
title: "\u6587\u672C"
})]
}, item);
})
});
}