Git Product home page Git Product logo

eeui's Introduction

开始使用

使用 Vue.js 跨平台开发高质量原生(Android/iOS)应用。

文档

演示

案例

支持

  • 在你的公司或个人项目中使用 eeui
  • 如果你觉得 eeui 还不错,可以通过 Star 来表示你的喜欢

捐赠

如果您认可eeui,感觉eeui能给您带来帮助,希望您能进行捐赠,这将是eeui未来持续改进的保障。捐助的资金将用于:

  • 站点服务器、域名费用
  • 站点日常维护
  • 新功能开发和 bug 修复

在捐赠时您可以给我们留言,附上最想添加的新功能(可以用短链接形式附上详情需求),我们会根据需求度尽快开发上线。

微信支付捐赠
微信支付捐赠

社群

协议

  • 遵循 MIT 协议
  • 请自由地享受和参与开源

eeui's People

Contributors

342210020 avatar kang558 avatar kuaifan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eeui's Issues

混合开发情况下原生调用 eeui 会出现中间跳转的空白页,就是等待页面

混合开发情况下原生调用 eeui 会一闪而过中间跳转的等待页,我是哪里做错了吗

  1. 原生代码 MainActivity
        Intent intent = new Intent();
	intent.setAction(Intent.ACTION_VIEW);
	Uri uri = Uri.parse("demo://demo/");
	intent.setData(uri);
	startActivity(intent);
  1. WelcomeActivity 代码没变

  2. AndroidManifest.xml

    <activity
        android:name="app.eeui.playground.WelcomeActivity"
        android:configChanges="orientation|keyboardHidden|screenSize"
        android:screenOrientation="portrait"
        android:theme="@style/WelcomeStyle">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="xxdemo"
                android:host="xxdemo" />
        </intent-filter>
    </activity>
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    

建议拓展eeui.reloadPage的功能

目前reloadPage这个方法只能刷新页面,但是别的属性改变不了,比如要改变背景颜色,当然也可以通过weex页面来设置,但在iPhoneX下的底部会出现空白,当然上面只是打个比方,所以建议根据openPage的属性来拓展,这样reloadPage的通用性就比较大了

EEUI的IOS版的NSLog问题

EEUI原生代码很多地方是直接使用NSLog的输出还是比较消耗系统资源的,一般在release下是不用的,建议采用weex的WXLogInfo或自己定义一个宏比较好,比如:
#ifdef DEBUG
#define ZJLog(...) NSLog(VA_ARGS)
#else
#define ZJLog(...)
#endif

建议eeui加上动态设置默认首页功能

建议eeui加上动态设置默认首页功能,

为什么要加上这个功能呢:
比方说我退出登陆从首页跳到登陆后,就把app关了,按照一般思维来说,再打开app的时候,应该要打开登陆的页面,但是按照eeui这个框架来讲,会先打开index首页,我知道可以通过v-if来判断之类的,但是这样的话,会导致页面会一闪然后再跳到登陆页面,这样给用户的体验不好,要是eeui能加个动态设置默认首页功能,那时用户退出到登陆页面的时候,我就调用setHomePage动态设置默认首页,然后用户再打开APP的时候,就会直接跳到登陆页面,无需跳来跳去的

error: attribute 'com.nio.pm.portal.mobile:srcCompat' not found 编译引入报错

error: attribute 'com.nio.pm.portal.mobile:srcCompat' not found.
Message{kind=ERROR, text=error: attribute 'com.nio.pm.portal.mobile:srcCompat' not found., sources=[/Users/quanchao.guo/.gradle/caches/transforms-1/files-1.1/weiui-0.0.22.aar/4ca13e37ae3bce7727540b39e75b0d40/res/layout/dialog_ad.xml], original message=, tool name=Optional.of(AAPT)}

BUG反馈:在wifi同步下,openPage到另一个页面,当内容有变动时会导致顶部导航栏消失

操作系统是安卓6.0,在wifi同步下,openPage到另一个页面,openPage代码如下:
eeui.openPage({
url: 'test.js',
pageName: 'test',
pageType: 'app',
animatedType: 'push',
pageTitle:'测试',
softInputMode: 'pan'
});
test.vue没有使用navbar设置顶部导航栏,openPage到test.vue时,有默认的顶部导航栏出现,但改动内容后,在wifi同步下会导致顶部导航栏消失!

eeui.setCustomConfig的一些建议

setCustomConfig可以自定义eeui.config.js配置参数,建议除了homePage可以配置外,也可以一并配置homePageParams参数,即两个参数可以单独配置也可以一起配置。
image

【BUG】banner组件

在同一个页面上banner组件不能显示两个,否则前一个会出现几率性空白,几率很大;

也不能banner 和 slider 共存

只使用weex slider 就可以共存

weex-ui无法按需引入

按照这个步骤来配置,执行npm run dev 报错 ,weex-ui

image

不按需引入weex-ui打出来的js包实在太大了,每个文件1.4M左右

怎么创建一个页面并做跳转

怎么创建一个页面并做跳转,文档里面也没说
并且这个新页面怎么支持热更新?
如图:我创建的新页面,怎么跳转过去打开,需不需要配置路由之类的?
image

eeui create eeui-demo就报错了..

$ eeui create eeui-demo
C:\Users\Administrator\AppData\Roaming\npm\node_modules\eeui-cli\lib\utils\index.js:260
let matchs = content.match(/(.*?)</dict>/gs);
^

SyntaxError: Invalid regular expression flags
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\eeui-cli\cli.js:13:15)

建议添加支持pug

求支持引入pug模板引擎,写原生html痛不欲生

在weex中无需任何配置可以直接使用pug,按理做了上层封装的eeui应该可以使用才对


抓光了头发的情况下已找到解决方法:

进入c:/user/xxx/AppData/Roaming/npm/node_modules/eeui-cli,在eeui脚手架中自行安装pug:

`npm i pug`

还是希望官方后续可以优化一下

ReferenceError: primordials is not defined

系统:macOS 10.14.5

执行命令:weiui xxx

报错:

fs.js:27
const { Math, Object } = primordials;
                         ^

ReferenceError: primordials is not defined
    at fs.js:27:26
    at req_ (/usr/local/lib/node_modules/weiui-cli/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/usr/local/lib/node_modules/weiui-cli/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/weiui-cli/node_modules/fstream/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Module.require (internal/modules/cjs/loader.js:666:19)
    at require (internal/modules/cjs/helpers.js:16:16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.