0.1.9 • Published 6 years ago

npmcomponentdemo v0.1.9

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

欢迎使用 todolist

Install

npm install npmcomponentdemo -S

Quick Start

import Vue from 'vue'
import npmcomponentdemo from 'npmcomponentdemo'
Vue.use(npmcomponentdemo);

Api

Properties

NameTypeDefaultDescription
todosArray添加数据
liClassclassclass添加默认样式
styleObjectstyle添加行内样式
============================================================

Simple usage

<template>
	<div>
		<npmcomponentdemo  :styleObject="styleObject" :todos="todos"></npmcomponentdemo>
	</div>
</template>

<script>
	import npmcomponentdemo from 'npmcomponentdemo'
	export default {
		components: {
			npmcomponentdemo
		},
		data() {
			return {
				styleObject:{
					color: 'blue',
    				fontSize: '28px',
    				width:'100%',
    				
				},
				todos: [{
						id: 1,
						title: '1 Do the dishes000',
					},
					{
						id: 2,
						title: '2 Take out the trash',
					},
					{
						id: 3,
						title: '3 Mow the lawn'
					}
				],
			}
		}
	}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
	.liClass{
		background: purple;
	}
</style>
0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

1.0.7

6 years ago

0.1.6

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