Comments (11)
好的,已经测试ok了
from form-create.
稍等我看一下,可以把问题代码发出来吗
from form-create.
mounted() {
this.aaa();
// this.bbb();
},
methods: {
aaa() {
var self = this;
let $f = this.$formCreate(this.rules, {
el: "#fff",
onSubmit: function(formData) {
console.log(formData);
// $f.submitStatus({ loading: true });
// if (self.current == 3) {
// self.current = 0;
// } else {
// self.current += 1;
// }
self.current = 1;
// console.log($f)
// $f.destroy();
self.bbb();
},
submitBtn: {
//按钮类型,可选值为primary、ghost、dashed、text、info、success、warning、error或者不设置
type: "primary",
//按钮大小,可选值为large、small、default或者不设置
size: "large",
//按钮形状,可选值为circle或者不设置
shape: undefined,
//开启后,按钮的长度为 100%
long: true,
//设置button原生的type,可选值为button、submit、reset
htmlType: "button",
//设置按钮为禁用状态
disabled: false,
//设置按钮的图标类型
icon: "ios-upload",
//按钮文字提示
innerText: "1111",
//设置按钮为加载中状态
loading: false
}
});
},
bbb() {
var self = this;
let $f = this.$formCreate(self.rules1, {
el: "#qqq",
onSubmit: function(formData) {
console.log(formData);
console.log(123);
// $f.submitStatus({ loading: true });
// if (self.current == 3) {
// self.current = 0;
// } else {
// self.current += 1;
// }
self.current = 0;
// $f.destroy();
self.aaa();
},
submitBtn: {
//按钮类型,可选值为primary、ghost、dashed、text、info、success、warning、error或者不设置
type: "primary",
//按钮大小,可选值为large、small、default或者不设置
size: "large",
//按钮形状,可选值为circle或者不设置
shape: undefined,
//开启后,按钮的长度为 100%
long: true,
//设置button原生的type,可选值为button、submit、reset
htmlType: "button",
//设置按钮为禁用状态
disabled: false,
//设置按钮的图标类型
icon: "ios-upload",
//按钮文字提示
innerText: "22222",
//设置按钮为加载中状态
loading: false
}
});
}
}
from form-create.
你可以给我一个在一个vue文件中创建多个表单的示例,这样我方便理解,不胜感激
from form-create.
稍等,正在处理bug
from form-create.
同一页面生成多个会有冲突,第二个的ref会丢失.正在处理,虽然还没有头绪
from form-create.
好的,谢谢🙏
from form-create.
终于找到解决方案了,等着.一会下载一下最新的
from form-create.
好的,谢谢
from form-create.
修复了,明天重新clone一下.注意iview升级到2.13.0了
from form-create.
好,感谢你提出的问题
from form-create.
Related Issues (20)
- 表单提交问题 HOT 2
- 兼容问题 HOT 2
- info 需要更加灵活的配置 HOT 1
- 多组件联合联动,组件一的值+组合二的值 控制显示不同组件 如何弄 HOT 2
- 数组组件如何修改字段 HOT 9
- Select组件使用Effect获取数据后,在Update中无法获取Options HOT 2
- fApi.getRule is not a function HOT 1
- 有没有配置在提交数据时不获取field对应的值 HOT 1
- 如果一个对象是一个MAP, 键值都不知道, 这个时候他的RULE要怎么定义 HOT 2
- 文档官网打不开了 HOT 2
- adv@4 版本,type为textarea 时,fApi.resetFields()无效 HOT 2
- FormCreate放到 a-modal 弹框中时,resetFields 无效 HOT 1
- 使用iframe嵌入拖拽失效
- 上传组件成功方法里无法使用异步操作
- field 能否支持object形式?
- 监听change事件会触发其他组件的click事件 HOT 1
- 手动提交的问题,验证的问题 HOT 7
- 用cdn的方式.富文本没办法显示???文档也没找到这个使用方式
- 重写内置组件 HOT 1
- control规则控制后使用resetFields() 无法清空上一次数据 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from form-create.