A demo for using own defined extensions for weex-html5.
APACHE-2.0 License
This is a simple demo for weex to extend a self-defined component on web platform using weex-html5. In this demo we use the created component named 'mine' and installed it to run.
The other repo weex-hello contains the code of component's defining and specifying its attribute, style and events. You can set up your attribute setters, style setters and event configuration in your component's implementation, and also override the methods like 'create' of the base class 'Component'.
npm install
npm run transform
npm run build
npm run serve
http://localhost:12580/index.html
, then you'll see the demo page.weex-html5
to do all the rendering work.weex-hello
in our project. You can go to the repo of weex-hello-web to see the component's defining code..we
page. It's all in the src/main.js
file.