@miniu/plugin-ui
TypeScript icon, indicating that this package has built-in type declarations

1.21.3-aliyun.0 • Public • Published

@miniu/plugin-ui

ui插件

export namespace ISlotUI {
  export interface List extends ISlot {
    name: 'ui.list';
    val: {
      name: string;
      url: string;
      order?: number;
    };
  }

  export interface Emitter extends ISlot {
    name: 'ui.emitte';
    val: EventEmitter;
  }
}

示例:

export default ({ add }) => {
  add('ui.list', {
    name: 'hello',
    url: 'http://localhost:8080',
  })
}
$ miniu dev

界面会多一个 hello 的 tab

Readme

Keywords

none

Package Sidebar

Install

npm i @miniu/plugin-ui

Weekly Downloads

15

Version

1.21.3-aliyun.0

License

none

Unpacked Size

2.29 MB

Total Files

10

Last publish

Collaborators

  • minicode-group
  • zinkey
  • candy.zheng