Thing.vue 1.13 KB
Newer Older
WuFeiyang's avatar
WuFeiyang committed
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
<template>
  <b-container class="bv-example-row">
    <b-row style="margin-top:10px">
      <b-col>
        <span style="float:left;font-size:20px">path: {{ config.data.url }}</span>
      </b-col>
    </b-row>
  </b-container>
</template>

<script lang="ts">
import Vue from "vue";
import Component from "vue-class-component";
import { Prop, Watch } from "vue-property-decorator";
import { WidgetConfig } from "@/models/WidgetConfig";
import { UpdatePayload } from "@/models/UpdatePayload";
import { Widget } from "@/models/wiget";


export default class Thing extends Widget {
  WidgetComponentName: string = "Thing";
  config: WidgetConfig = {
    WidgetComponentName: "Thing",
    data: {
      url: ""
    }
  };

  getConfig(): WidgetConfig {
    return this.config;
  }

  setConfig(widgetConfig: WidgetConfig): void {
    this.config = widgetConfig;
  }

  replaceStartPath(startPath:string):void
  {
    this.config.data.url.replace('$startPath$', startPath);
  }

  parentUpdate(payload: UpdatePayload): void {
    
  }

  refresh() {
  }

  updateUI(){

  }

}
</script>

<style scoped>
.waveView {
  width: 100%;
  height: auto;
}

</style>