Giter VIP home page Giter VIP logo

Comments (9)

tw93 avatar tw93 commented on May 22, 2024

you can add this in your webpack.config.js weexteam/pack-create-for-Apache-Weex@ee820f3#diff-79e419d0157b98ec6be582b1b394d819

or you can update the weexpack to latest and again create it

Try it. If there is no problem, you can close this issue

from incubator-weex-ui.

caiyongmin avatar caiyongmin commented on May 22, 2024

i already add those code:

{
        test: /\.vue(\?[^?]+)?$/,
        use: [{
          loader: 'vue-loader',
          options: {
            /**
             * important! should use postTransformNode to add $processStyle for
             * inline style normalization.
             */
            compilerModules: [
              {
                postTransformNode: el => {
                  el.staticStyle = `$processStyle(${el.staticStyle})`
                  el.styleBinding = `$processStyle(${el.styleBinding})`
                }
              }
            ]
          }
        }]
      },

from incubator-weex-ui.

tw93 avatar tw93 commented on May 22, 2024

@caiyongmin Is that all right?

from incubator-weex-ui.

caiyongmin avatar caiyongmin commented on May 22, 2024

@tw93 nope, still have the problem.

from incubator-weex-ui.

caiyongmin avatar caiyongmin commented on May 22, 2024

我觉得问题不是出在这儿,扫仓库首页的二维码查看,也是有这样的问题。
左边弹出来的 popup 的宽度只有设置宽度(500)的一半(250)。

image

from incubator-weex-ui.

tw93 avatar tw93 commented on May 22, 2024

That should be correct , Because it's based on 750,The number you set should be in this ratio

from incubator-weex-ui.

caiyongmin avatar caiyongmin commented on May 22, 2024

image

确实是由于 设备像素比 的问题,transform: translateX(250px) 里面的值是 250px
但是 width: 500px 里面的值是 500px,感觉就有点奇怪,应该是 250px 才对。如果是 500px 的话,左边就有一大片空白需要用 padding-left 填充,不然就看不到设置的内容。

image

from incubator-weex-ui.

tw93 avatar tw93 commented on May 22, 2024

weex update weexpack

Recreate a project and replace it. do not forget

npm i

npm i babel-preset-stage-0 -D

and you can see it here https://github.com/tw93/weex-ui-with-toolkit

image

from incubator-weex-ui.

caiyongmin avatar caiyongmin commented on May 22, 2024

OK, thx! I'll check the webpack configuration to see what went wrong.

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.