@alicloud/console-components
Version:
Alibaba Cloud React Components
20 lines (19 loc) • 770 B
JavaScript
/**
* title: "文字选项卡"
* description: ""
*/
import React from 'react';
import { Tab } from '@alicloud/console-components';
var tabs = [
{ tab: '可选选项', key: 'home' },
{ tab: '可选选项', key: 'doc' },
{ tab: '当前选项', key: 'api' },
{ tab: '悬浮选项', key: 'api1' },
{ tab: '禁用选项', key: 'repo', disabled: true },
];
export default (function () {
return (React.createElement(React.Fragment, null,
React.createElement("div", null,
React.createElement("h4", null, "\u6587\u5B57\u9009\u9879\u5361"),
React.createElement(Tab, { shape: "text" }, tabs.map(function (tab) { return (React.createElement(Tab.Item, { title: tab.tab, key: tab.key, disabled: tab.disabled })); })))));
});