Giter VIP home page Giter VIP logo

Comments (10)

xuchangjunjx avatar xuchangjunjx commented on May 14, 2024 4

同问,如何提交表单。
如果覆盖样式的话那为什么还要用这套组件。

from iview-weapp.

seightday avatar seightday commented on May 14, 2024 1

同样遇到在form中使用i-button提交表单的问题,以下是我使用的临时解决方案
style中import相关样式

<style>
  @import "../components/iview/button/index.wxss";
</style>

template中使用i-button的相关class,具体可用的class参考i-button的源码

<template>
  <form bindsubmit="formSubmit">
    <button class="i-class i-btn i-btn- i-btn-primary i-btn-square" type="primary" plain="true" formType="submit">确认提交</button>
  </form>
</template>

from iview-weapp.

ymstars avatar ymstars commented on May 14, 2024 1

image

from iview-weapp.

karma617 avatar karma617 commented on May 14, 2024

同问

from iview-weapp.

sjava avatar sjava commented on May 14, 2024

我也想知道

from iview-weapp.

westdrug avatar westdrug commented on May 14, 2024

把 button 定位到 i-button上,并opacity=0

from iview-weapp.

chobits4 avatar chobits4 commented on May 14, 2024

这个问题, 官方就没人解决下么, 我就想知道一个没有form-type功能的i-button有什么用, 信息都不能提交啊

from iview-weapp.

wenlinguo avatar wenlinguo commented on May 14, 2024

同问
没有form-type 不能拿到小程序form的bindsubmit事件

from iview-weapp.

muwu0505 avatar muwu0505 commented on May 14, 2024

请问这个问题有解决方案了吗?

from iview-weapp.

Ychangqing avatar Ychangqing commented on May 14, 2024

直接修改 static/iView/button/index.wxml,在 button外面放一个form
image
然后在 static/iView/button/index.js methods 中添加 formSubmit事件,可以获取到 formId
image

from iview-weapp.

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.