portlet-part.tsx 837 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
import { PortletPartController } from '@ibiz-template/controller';
import { PortletPartModel } from '@ibiz-template/model';
import { useNamespace } from '@ibiz-template/vue-util';
import { defineComponent } from 'vue';

export const PortletPart = defineComponent({
  name: 'PortletPart',
  props: {
    modelData: {
      type: PortletPartModel,
      required: true,
    },
    controller: {
      type: PortletPartController,
      required: true,
    },
  },
  setup() {
    const ns = useNamespace('portlet-part');
    return { ns };
  },
  render() {
    const classArr: string[] = [
      this.ns.b(),
      this.ns.m(this.modelData.modelClass),
    ];
    return (
28 29 30
      <portlet-layout controller={this.controller} class={classArr}>
        {this.modelData.source.portletType}暂未支持
      </portlet-layout>
31 32 33
    );
  },
});