Git Product home page Git Product logo

Comments (11)

tw93 avatar tw93 commented on May 17, 2024

I'd like to see how you use it

and @erha19 Have a hard look

from incubator-weex-ui.

alex1226 avatar alex1226 commented on May 17, 2024

能给个最简单的weex-ui组件应用例子吗,除了example那个上下文的.
look what?

from incubator-weex-ui.

hanlike avatar hanlike commented on May 17, 2024

同样的问题

from incubator-weex-ui.

erha19 avatar erha19 commented on May 17, 2024

OK, I will follow up on this question.

from incubator-weex-ui.

erha19 avatar erha19 commented on May 17, 2024

Edit platform/android/app/build.gradle

- compile 'com.taobao.android:weex_sdk:0.10.0'
+ compile 'com.taobao.android:weex_sdk:0.16.0'

Then run weex run android again.

from incubator-weex-ui.

alex1226 avatar alex1226 commented on May 17, 2024

按照上面修改build.gradle也没用,看了下应该是添加引用wxc-button后编译vue时候出现问题。
在工程目录下执行npm run build 会提示:
ERROR in .//babel-loader/lib!.//vue-loader/lib/selector.js?type=script&index=0!./~/weex-ui/pac
kages/wxc-rich-text/wxc-rich-text-text.vue
Module build failed: SyntaxError: D:/weex/test/node_modules/weex-ui/packages/wxc-rich-text/wxc-r
ich-text-text.vue: Unexpected token (65:10)

  63 |       if (textStyle && textStyle.fontSize) {
  64 |         style = {
> 65 |           ...style,
     |           ^
  66 |           fontSize: `${textStyle.fontSize}px`,
  67 |           height: `${textStyle.fontSize * 1.2}px`
  68 |         }

 @ ./~/weex-ui/packages/wxc-rich-text/wxc-rich-text-text.vue 7:2-105
 @ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/weex-ui/packages/

wxc-rich-text/index.vue
@ .//weex-ui/packages/wxc-rich-text/index.vue
@ ./
/weex-ui/packages/wxc-rich-text/index.js
@ .//weex-ui/index.js
@ ./
/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/index.vue
@ ./src/index.vue
@ ./temp?entry=true

from incubator-weex-ui.

tw93 avatar tw93 commented on May 17, 2024

update weex-toolkit to latest
@alex1226 https://github.com/alibaba/weex-ui#weex-toolkit

from incubator-weex-ui.

alex1226 avatar alex1226 commented on May 17, 2024

D:\weex\test>weex -v
v1.1.0-beta.1

  • weexpack : v0.4.7-beta2
  • weex-builder : v0.2.13-beta.1
  • weex-devtool : v0.2.83
  • weex-previewer : v1.3.13-beta.2
  • toolkit-repair : v0.0.5

已经是最新了吧

from incubator-weex-ui.

tw93 avatar tw93 commented on May 17, 2024

Weex-toolkit

If you use weex-toolkit to develop a Weex project, Please add 'state-0' and 'babel-plugin-component' to .babelrc.

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

from incubator-weex-ui.

erha19 avatar erha19 commented on May 17, 2024

@alex1226 I suggest you upgrade weexpack of weex-toolkit by weex update weexpack.
Re-create your project.
Edit your index.vue, npm install, npm install install babel-preset-stage-0 babel-plugin-component weex-ui -D...
Remember to modify your .babelrc according to @tw93 's latest comment.
Finally, you can run weex run android to start your app (If you do install the android environment correctly).

from incubator-weex-ui.

alex1226 avatar alex1226 commented on May 17, 2024

ok

from incubator-weex-ui.

Related Issues (20)

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.