diff --git a/src/blocks.ts b/src/blocks.ts index 62f5f7c..70b599a 100644 --- a/src/blocks.ts +++ b/src/blocks.ts @@ -51,8 +51,8 @@ export default (editor: Editor, opt: PluginOptions = {}) => { editor.on('selector:add', selector => privateCls.indexOf(selector.getFullName()) >= 0 && selector.set('private', 1)) - const label = 'Flexbox'; - const category = 'Basic'; + const label = opt.label || 'Flexbox'; + const category = opt.category || 'Basic'; const attrsRow = attrsToString(rowAttr); const attrsCell = attrsToString(colAttr); const styleRow = `