Git Product home page Git Product logo

Comments (11)

Phieo avatar Phieo commented on August 22, 2024

https://docs.alipay.com/mini/component-ext/grid 看下文档先,或者你贴一下你的代码

from mini-antui.

Akimotorakiyu avatar Akimotorakiyu commented on August 22, 2024

@Phieo 代码贴在上面了,就是示例里面的代码,一点都不敢改。没有任何报错。

from mini-antui.

Phieo avatar Phieo commented on August 22, 2024

我试了是没问题的,你看下你的版本号,以及你的JS部分代码有没有问题。

from mini-antui.

Akimotorakiyu avatar Akimotorakiyu commented on August 22, 2024

平台

windows 10 1903
小程序开发工具版本 0.28.5
node 10.15.3

复现操作

1.打开小程序开发工具,新建项目
2.在项目打开powershell, 执行yarn init -y
3.安装mini-antui,执行yarn add mini-antui
4.使用在pages/index/index.json里面添加

{
  "usingComponents":{
    "grid":"mini-antui/es/grid/index"
  }
}

5.复制https://github.com/ant-mini-program/mini-antui/blob/master/examples/pages/grid/4/index.axml里面的和https://github.com/ant-mini-program/mini-antui/blob/master/examples/pages/grid/4/index.js里面的代码进去

from mini-antui.

Phieo avatar Phieo commented on August 22, 2024

提供下项目的目录结构

from mini-antui.

Akimotorakiyu avatar Akimotorakiyu commented on August 22, 2024

图片

from mini-antui.

Phieo avatar Phieo commented on August 22, 2024

真机预览可以吗?

from mini-antui.

Akimotorakiyu avatar Akimotorakiyu commented on August 22, 2024

真机预览也挂了
图片

from mini-antui.

Akimotorakiyu avatar Akimotorakiyu commented on August 22, 2024

真的非常感谢啦,我简直要疯啦
enyci1bt

from mini-antui.

Phieo avatar Phieo commented on August 22, 2024

用小程序开发者工具新建项目,点击API示例,然后看下创建出来的小程序能够打开扩展组件-grid页面

image

from mini-antui.

Akimotorakiyu avatar Akimotorakiyu commented on August 22, 2024

非常感谢,这下可以了。
我把前面会出问题的页面放进去,也能运行了。
这简直太神奇了

图片

from mini-antui.

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.