芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/blocksy-companion/static/js/editor/blocks/search/index.js
import { createElement } from '@wordpress/element' import { __ } from 'ct-i18n' import { registerBlockType } from '@wordpress/blocks' import { getAttributesFromOptions, getOptionsForBlock } from '../../utils' export const options = getOptionsForBlock('search') export const defaultAttributes = getAttributesFromOptions(options) import { colorsDefaults } from './colors' import Edit from './Edit' registerBlockType('blocksy/search', { apiVersion: 3, title: __('Advanced Search', 'blocksy-companion'), description: __('Quickly find specific content on your site.', 'blocksy-companion'), icon: { src: (
), }, category: 'blocksy-blocks', attributes: { ...defaultAttributes, ...colorsDefaults, }, supports: { spacing: { margin: true, __experimentalDefaultControls: { margin: true, }, }, __experimentalBorder: { color: false, radius: true, width: false, __experimentalSkipSerialization: true, __experimentalDefaultControls: { color: false, radius: true, width: false, }, }, }, edit: (props) =>
, save: function () { return
Blocksy: Search Block
}, })