npm.io
1.21.3-aliyun.0 • Published 4 years ago

@miniu/plugin-ui

Licence
—
Version
1.21.3-aliyun.0
Deps
7
Size
2.2 MB
Vulns
0
Weekly
0

@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