芝麻web文件管理V1.00
编辑当前文件:/home/felaukpo/public_html/wp-content/themes/Divi/common/stories/controls/select-menu.stories.js
// External dependencies. import React from 'react'; // Internal dependencies. import ETBuilderControlSelectMenu from '@common-ui/controls/select-menu/select-menu'; export default { title: 'Controls/Select Menu', component: ETBuilderControlSelectMenu, argTypes: { onSelect: { action: 'selected', table: { disable: true, }, }, }, args: { target: document.body, }, }; export const Default = { args: { options: { option1: 'Option 1', option2: 'Option 2', option3: 'Option 3', }, button: 'Select an option', }, }; export const WithSearchField = { args: { ...Default.args, menuStyle: { minWidth: '260px', }, showSearchField: true, }, }; export const WithSubmenu = { args: { options: { option1: { name: 'Option 1', items: { subOption1: 'Sub Option 1', subOption2: 'Sub Option 2', }, }, option2: 'Option 2', option3: 'Option 3', }, button: 'Select an option', }, }; export const ScrollableParentMenu = { args: { options: { option1: { name: 'Option 1', items: { subOption1: 'Sub Option 1', subOption2: 'Sub Option 2', }, }, option2: 'Option 2', option3: 'Option 3', }, button: 'Select an option', scrollableParentMenu: true, }, }; const printMenuButton = () => { return (
Select Menu
); }; export const WithOriginalButton = { args: { ...Default.args, useOriginalButton: true, button: printMenuButton(), }, };