芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/ycreate.jp/wp-content/plugins/snow-monkey-blocks/src/blocks/tabs/save.js
import classnames from 'classnames'; import { RichText, useBlockProps, useInnerBlocksProps, } from '@wordpress/block-editor'; export default function ( { attributes, className } ) { const { tabs: _tabs, matchHeight, tabsJustification, tabsId, orientation, } = attributes; const tabs = JSON.parse( _tabs ); const dataMatchHeightBoolean = 'vertical' === orientation || ( 'horizontal' === orientation && 'true' === matchHeight ); const classes = classnames( 'smb-tabs', className ); return (
{ 0 < tabs.length && (
{ tabs.map( ( tab, index ) => { return (
); } ) }
) }
{ dataMatchHeightBoolean && ( ) }
); }