flatland-module-test
v1.0.25
Published
> TODO: description
Downloads
5
Readme
sample-starter
TODO: description
Usage
npm start
Run component in local
npm publish
Publish this component to npm that flatland web can use this component to build your project.
Before publish, should guarantee package.json has been written like belowing <flatland-api>.
flatland-api is api of this component used to descript this component what inputs and outputs.
if this component export prop1 and prop2 that can assign value and event1 can be listen in outside. you could wirte flatland-api like following.
{
"components": [{
"name": "album",
"description":"展示图片和文字",
"tag":["picture","text"],
"props": {
"src": {
"type":"string",
"description":"组件"
},
"msg": {
"type": "string",
"description":"文字描述"
},
"onChange": {
"type": "function",
"description":"文字更改时描述"
}
}
}]
}