All Projects → FlymeApps → weex-flymeui

FlymeApps / weex-flymeui

Licence: MIT license
🐼 A Flyme Style UI library based on Weex for Creator.

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to weex-flymeui

Eros
📱 一套 Vue 代码,两端原生应用 ,或许可以叫我 weex-native。
Stars: ✭ 2,007 (+2940.91%)
Mutual labels:  weex
Incubator Weex
Apache Weex (Incubating)
Stars: ✭ 13,990 (+21096.97%)
Mutual labels:  weex
incubator-weex-playground
Playground for Apache Weex, demo purpose only
Stars: ✭ 43 (-34.85%)
Mutual labels:  weex
Weex Droplet Ui
水滴UI一个轻量级weex UI组件库,包含表单元素,tabbar,picker城市三级联动选择,actionsheet,switch等一系列常用组件
Stars: ✭ 177 (+168.18%)
Mutual labels:  weex
Weex Vue Examples
Examples of using Weex and Vue.js
Stars: ✭ 211 (+219.7%)
Mutual labels:  weex
chameleon-sdk-ios
iOS系统下Chameleon SDK
Stars: ✭ 27 (-59.09%)
Mutual labels:  weex
Weex Start Kit
A weex + vue template to build web/Android/iOS project
Stars: ✭ 155 (+134.85%)
Mutual labels:  weex
eros-cli
🛠️ A simple CLI for scaffolding weex projects, we provide eros-template to quickly build small and medium sized app.
Stars: ✭ 41 (-37.88%)
Mutual labels:  weex
Reactnativerollingexamples
react-native的一些example,目前支持iOS。另外收集了一份react-native学习列表
Stars: ✭ 214 (+224.24%)
Mutual labels:  weex
weex-template
A weex-template support ios android and web. dev hot-reload & can generate html & px2rem & autoprefixer.
Stars: ✭ 15 (-77.27%)
Mutual labels:  weex
Weex Vue Starter Kit
weex starter kit in vue to use weexpack & weex both.(support hot-reload)
Stars: ✭ 182 (+175.76%)
Mutual labels:  weex
Frontend Series
📚 大前端的工程实践:iOS 篇 | Android 篇 | 混合式开发篇 - ReactNative、Weex、Weapp
Stars: ✭ 197 (+198.48%)
Mutual labels:  weex
weex componets
this library is no longer maintained. For the latest gameplay, please refer to: https://github.com/fengwuxp/wuxp_common_ts_module
Stars: ✭ 16 (-75.76%)
Mutual labels:  weex
Gsygithubapp
超完整的React Native项目,功能丰富,适合学习和日常使用。GSYGithubApp系列的优势:我们目前已经拥有Flutter、Weex、ReactNative、kotlin 四个版本。 功能齐全,项目框架内技术涉及面广,完成度高,配套文章,适合全面学习,对比参考。开源Github客户端App,更好的体验,更丰富的功能,旨在更好的日常管理和维护个人Github,提供更好更方便的驾车体验Σ( ̄。 ̄ノ)ノ。同款Weex版本 : https://github.com/CarGuo/GSYGithubAppWeex 、同款Flutter版本 : https://github.com/CarGuo/GSYGithubAppFlutter 、原生 kotlin 版本 https://git…
Stars: ✭ 2,168 (+3184.85%)
Mutual labels:  weex
eros-widget
eros widget is the two encapsulation for eros module.
Stars: ✭ 13 (-80.3%)
Mutual labels:  weex
Weex Todo List
A demo To-do app built with Weex and Vue2.0
Stars: ✭ 159 (+140.91%)
Mutual labels:  weex
JustDo8-weex-game
🎲 a game developed using weex|使用 Weex 开发的益智类小游戏
Stars: ✭ 25 (-62.12%)
Mutual labels:  weex
weex-vue-starter-kit
weex starter kit in vue to use weexpack & weex both.(support hot-reload)
Stars: ✭ 24 (-63.64%)
Mutual labels:  weex
weexbox-android-library
Weex Android SDK
Stars: ✭ 22 (-66.67%)
Mutual labels:  weex
shop-native
基于weex(vuejs),同时使用了vuex, vue-router, axios,包含异步(async)语法糖在安卓端不兼容的解决方案
Stars: ✭ 15 (-77.27%)
Mutual labels:  weex

Weex FlymeUI

Travis GitHub last commit npm license

Flyme Design

遵循 Flyme 系统设计风格、基于 Weex 的跨平台通用组件库。

安装

npm i weex-flymeui -S

使用

<template>
  <div>
    <fm-button @buttonClick="buttonClicked" theme="blue">安装</fm-button>
  </div>
</template>

<script>
  import { FmButton } from 'weex-flymeui';
  // 或者 import FmButton from 'weex-flymeui/packages/fm-button';
  export default {
    components: { FmButton },
    methods: {
      buttonClicked () {
        // enter your code
      }
    }
  };
</script>

使用前

如果你不想打包所有的组件,需要使用 babel-plugin-component 来只引入需要的组件打包,同时如果没有安装 babel-preset-stage-0,也需要一并安装。

npm i babel-preset-stage-0 babel-plugin-component  -D
// 增加一个plugins的配置到 .babelrc 中
{
    "presets": ["es2015", "stage-0"],
  "plugins": [
    [
      "component",
      {
        "libraryName": "weex-flymeui",
        "libDir": "packages",
        "style": false
      }
    ]
  ]
}

运行 Demo

npm i
npm run start

一旦编译完成后,将会自动打开一个浏览器,你可以在浏览器打开开发者工具,这时候在 console 中你可以看到一个预览二维码,直接使用你的 Weex App 扫码就可以看到 Demo 效果。

Weex-toolkit

如果你使用 weex-toolkit 来开发你的Weex项目,你需要向 .babelrc 文件中加入 'state-0' 和 'babel-plugin-component'

npm i babel-preset-stage-0 babel-plugin-component -D
{
  "presets": ["es2015", "stage-0"],
  "plugins": [
    [
      "component",
      {
        "libraryName": "weex-flymeui",
        "libDir": "packages"
      }
    ]
  ]
}

需要注意的地方

?> 目前部分组件没有进行 iOS 的适配,欢迎 提交 Issue 或 PR

!> Weex-FlymeUI 组件均以 1080px 屏幕宽度作为基准尺寸,请在入口文件或者父组件设置 viewport。

index.js

const meta = weex.requireModule('meta')
// 配置 viewport 的宽度为 1080px
meta.setViewport({  
  width: 1080px
})

index.html

<!-- 添加以下 meta -->
<meta name="weex-viewport" content="1080"/>

贡献代码

我们致力于 Flyme 设计在移动领域的推广,同时在寻找志同道合的朋友。如果你在使用中发现任何问题或有更好的想法,欢迎提交 pull request,并且在提交前记得阅读一下 贡献指南

协议

  • 遵循 MIT 协议
  • 请自由地享受和参与开源
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].