0.1.18 • Published 6 years ago

v-comment v0.1.18

Weekly downloads
60
License
-
Repository
-
Last release
6 years ago

v-comment

npm i v-comment -save

usage

<v-comment 
  :list="list<CommentProps>"
  @login="handleLogin"
  @submit="handleSubmit"
  @del="handleDel"
/>

<script>
const handleSubmit = (input, inputCompiler) {
  // ...
}
</script>

<style lang="less">
@border-color: #eee;
@bg-color: #f2f2f2;
@main-color: #4e9afa;
@import '~v-comment/src/style/index.less';
</style>

类型声明

type User = {
  id: string
  name: string
  avatar: string
}

export type CommentListItem = {
  id: string
  user: User
  createdTimeStamp: number
  input: string
  inputCompiler: string
}

export type CommentList = Array<CommentListItem>

export type CommentProps = {
  user?: User
  nums: number
  list: CommentList
}

build component

npm run build
0.1.17

6 years ago

0.1.18

6 years ago

0.1.15

6 years ago

0.1.16

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago