options.uvue 664 字节
Newer Older
crlfe's avatar
crlfe 已提交
1 2 3 4
<template>
  <view class="page">
    <view class="row">
      <text>name: </text>
crlfe's avatar
crlfe 已提交
5
      <text class="value">{{name}}</text>
crlfe's avatar
crlfe 已提交
6 7 8 9
    </view>
  </view>
</template>

H
hdx 已提交
10
<script>
crlfe's avatar
crlfe 已提交
11 12 13 14 15 16 17 18 19 20 21 22
// import mixins from "./mixins";
export default {
  // mixins: [mixins],
  name: "$options",
  customKey: "customValue",
  data () {
    return {
      name: "",
      customKey: ""
    }
  },
  mounted () {
23
    this.name = this.$options.name
crlfe's avatar
crlfe 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
  },
  methods: {
    // getCustomKey (): string {
      // return this.$options.customKey
    // }
  }
}
</script>

<style>
  .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 10px;
  }
</style>