babel-plugin-transform-decorators-legacy icon indicating copy to clipboard operation
babel-plugin-transform-decorators-legacy copied to clipboard

@observable static has a Error

Open jamieYou opened this issue 7 years ago • 0 comments

import { observable } from './helper/mobx'

class Test {
  @observable static test = [1, 2, 3]

  @observable static currenciesChineseName = {
    CNY: '人民币',
    USD: '美元',
    HKD: '港币',
    EUR: '欧元',
    GBP: '英镑',
    JPY: '日元',
    TWD: '台币',
    AUD: '澳元',
    THB: '泰铢',
    KRW: '韩元',
    CAD: '加币',
    NZD: '纽币',
  }
}

console.warn(Test.test)
console.warn(Test.currenciesChineseName)

result

1. undefined
2. Object {$mobx: ObservableObjectAdministration}

jamieYou avatar Jul 07 '17 05:07 jamieYou