UNPKG

weike-multi-cascader

Version:
38 lines (37 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const react_1 = tslib_1.__importStar(require("react")); const react_2 = require("@storybook/react"); const index_1 = tslib_1.__importDefault(require("../index")); react_2.storiesOf('MultiCascader', index_1.default).add('MaxTagCount', () => { const [options] = react_1.useState([ { value: 'Node1', title: 'Node1', children: [ { value: 'Node1-1', title: 'Node1-1', }, { value: 'Node1-2', title: 'Node1-2', }, { value: 'Node1-3', title: 'Node1-3', }, { value: 'Node1-4', title: 'Node1-4', }, { value: 'Node1-5', title: 'Node1-5', }, ], }, ]); return (react_1.default.createElement(index_1.default, { selectAll: true, data: options, allowClear: true, style: { width: '280px' }, maxTagCount: 2 })); });