kuaifan / eeui Goto Github PK
View Code? Open in Web Editor NEW📱 使用 Vue.js 跨平台开发高质量原生(Android/iOS)应用。
Home Page: https://eeui.app/
License: MIT License
📱 使用 Vue.js 跨平台开发高质量原生(Android/iOS)应用。
Home Page: https://eeui.app/
License: MIT License
大佬,希望能够添加个多语言支持方案。
我只测了安卓的,还有就是能否保存到指定的目录,就是传一个路径的参数,APP外层的路径(或者默认保存到相册)
weiui.saveImage(url, callback(result))
https://weiui.app/module/saveImage.html#weiui-saveimage
支持h5么
强烈建议加上第三方登陆和分享的插件,比如说微信、QQ、微博之类的第三方登陆和分享。这两个功能实在是太常用了!
在同一个页面上banner组件不能显示两个,否则前一个会出现几率性空白,几率很大;
也不能banner 和 slider 共存
只使用weex slider 就可以共存
建议开发一个微信、QQ、微博等第三方分享插件,,这种功能太常用了
下载模板 好久没有反应?
Downloading template release: 0.0.17...
EEUI原生代码很多地方是直接使用NSLog的输出还是比较消耗系统资源的,一般在release下是不用的,建议采用weex的WXLogInfo或自己定义一个宏比较好,比如:
#ifdef DEBUG
#define ZJLog(...) NSLog(VA_ARGS)
#else
#define ZJLog(...)
#endif
ios openPage 设置statusBarStyle: false 无效,字体还是白色,测试机型ip7 plus和ip 11;安卓正常
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)}
操作系统是安卓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可以下载多个zip,每一个zip都是单独的weex应用,那样就可以进行业务定制化和隔离了。实现微信小程序引擎那样子。
如题..另外,还想问句,插件的源码在哪?
这个框架还不错,什么时候出ios的版本,不然ios 还要单独开发,失去用weex意义了
配置相关:https://eeui.app/guide/config.html#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6
配置项参数homePage,希望可以设置本地js文件,且任意名称
系统: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)
混合开发情况下原生调用 eeui 会一闪而过中间跳转的等待页,我是哪里做错了吗
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
Uri uri = Uri.parse("demo://demo/");
intent.setData(uri);
startActivity(intent);
WelcomeActivity 代码没变
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>
在IOS下,eeui.config.js设置softInputMode设置为nothing无效,设为resize和pan也是一样的效果,statusBarType模式是normal,如图:
配置文件及相关文件如下:
code.zip
minSdkVersion = 18 这个能不能支持下 16
targetSdkVersion = 27
supportLibVersion = 27.1.0
https://eeui.app/component/scroll-view.html
能否添加类似
weex的list
header
当 header 到达屏幕顶部时,吸附在屏幕顶部。这个经常用到咦 😃
如题,这个功能也是经常用到的
目前reloadPage这个方法只能刷新页面,但是别的属性改变不了,比如要改变背景颜色,当然也可以通过weex页面来设置,但在iPhoneX下的底部会出现空白,当然上面只是打个比方,所以建议根据openPage的属性来拓展,这样reloadPage的通用性就比较大了
implementation 'vip.kuaifan:weiui:0.0.13'
提示找不到,没发布么
目前我的解决方案用的setTimeout,即等待第一个渲染完之后再渲染第二个,这样做就不会显示同样的图表,加了setTimeout在线示例,如果去掉setTimeout就会显示同样的数据图表
如果同一个页面有很多个的时候就不好处理了
比如,一个toast插件。
能给个集成的示例demo嘛 ?
建议在closePage和closePageTo方法可以加返回参数,然后通过生命周期就可以获取到返回值之类的
为什么要加上这个功能呢:
比方说我退出登陆从首页跳到登陆后,就把app关了,按照一般思维来说,再打开app的时候,应该要打开登陆的页面,但是按照eeui这个框架来讲,会先打开index首页,我知道可以通过v-if来判断之类的,但是这样的话,会导致页面会一闪然后再跳到登陆页面,这样给用户的体验不好,要是eeui能加个动态设置默认首页功能,那时用户退出到登陆页面的时候,我就调用setHomePage动态设置默认首页,然后用户再打开APP的时候,就会直接跳到登陆页面,无需跳来跳去的
$ 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)
请问是否支持编译TypeScript呢
求支持引入pug模板引擎,写原生html痛不欲生
在weex中无需任何配置可以直接使用pug,按理做了上层封装的eeui应该可以使用才对
抓光了头发的情况下已找到解决方法:
进入c:/user/xxx/AppData/Roaming/npm/node_modules/eeui-cli,在eeui脚手架中自行安装pug:
`npm i pug`
还是希望官方后续可以优化一下
eeui组件有一个eeui.openOtherApp方法,是否可以增加一个参数scheme:true/false ,默认false,就是现在的功能,当是true时,可以自己写type的值[可以是其他APP的scheme]
建议开发一个微信、QQ、微博第三方登陆插件,这种功能太常用了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.