Comp

Component item

Demo

基础用法

最简单的用法

hello vuese
<template>
  <div class="top">
    <comp title="hello vuese" />
  </div>
</template>

<style lang="stylus" scoped>
.top {
  width: 100%;
  height: 50px;
  background: #eeeeee;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
显示代码

Props

Name Description Type Required Default
title The component title String false -

Methods

Method Description Parameters
OnDoSomething Do something val - the value

Computed

Computed Type Description From Store
reversedMessage Array Reverses string No
storeValue Array Returns a value from store Yes

Data

Name Type Description Default
vueStringData String A string value that does something data
localFunction Function A function that does nothing -

Watch

Name Description Parameters
question Watches question val - the value