import{ax as i,z as a,A as n,b5 as t}from"./chunks/framework.V2ssSR2R.js";const g=JSON.parse('{"title":"componentListService方法","description":"","frontmatter":{},"headers":[],"relativePath":"api/editor/componentListServiceMethods.md","filePath":"api/editor/componentListServiceMethods.md"}'),l={name:"api/editor/componentListServiceMethods.md"};function p(h,s,e,k,r,d){return n(),a("div",null,[...s[0]||(s[0]=[t(`

componentListService方法

setList

js
import { componentListService } from '@tmagic/editor';

componentListService.setList([
  {
    title: '基础组件',
    items: [
      {
        icon: 'text-icon',
        text: '文本',
        type: 'text',
      },
      {
        icon: 'button-icon',
        text: '按钮',
        type: 'button',
      },
    ],
  },
]);

getList

js
import { componentListService } from '@tmagic/editor';

const list = componentListService.getList();
console.log(list);

resetState

js
import { componentListService } from '@tmagic/editor';

componentListService.resetState();

destroy

js
import { componentListService } from '@tmagic/editor';

componentListService.destroy();
`,13)])])}const o=i(l,[["render",p]]);export{g as __pageData,o as default};