LoginSignup
0
0

More than 5 years have passed since last update.

Vue Filter

Posted at
  selectedTagName(tags) {
    let selectedTagName = "";
    store.state.tagListData.filter(item => {
      if (tags.tagId === item.tagId) {
        selectedTagName = item.label;
      }
    });
    return selectedTagName;
  },
  selectedTagStyle(tags) {
    let selectedTagStyle = "";
    store.state.tagListData.filter(item => {
      if (tags.tagId === item.tagId) {
        selectedTagStyle = item.color;
      }
    });
    return selectedTagStyle;
  },
  min2hour(value) {
    let hour = Math.floor(value / 60);
    let min = value % 60;
    return hour + "時間" + min + "分";
  }
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0