kchengz / k-form-design Goto Github PK
View Code? Open in Web Editor NEW基于vue Ant-Design 的表单设计器,快速开发
License: MIT License
基于vue Ant-Design 的表单设计器,快速开发
License: MIT License
目前引入的 在vue 3.0 中会有严重的 兼容性的问题
,下一步是什么时候兼容啊
如题,有没有办法在必传的情况下,表单加载出来 不弹出表单验证
你好,麻烦问一下,lib文件是干啥的
楼主,请教个问题:
有没有办法把模板语法写成的控件vue文件存入数据库中,然后根据拖拽回来 在前端完成渲染和 展示
谢谢
使用不了
谢谢提供,未来版本有什么迭代计划?会不会像vue-form-making那样继续开发新功能?
大神, 能加一个自定义上传的函数配置吗
当 hidden = true 时未起效。其他组件都正常, disable属性也都正常
我们用react比较多
switch类型的默认值不应该设置defaultValue而应该设置defaultChecked:详见defaultChecked
我通过设定this.$refs.KFD.displayData 但是页面保留的还是原来的样子 没有从新刷新
不知是否可以加上tab的布局组件
有tag的布局组件,对于复杂的表单就非常用
树形选择器怎么赋值?从后台得到一个数组 arr,这个值怎么赋给树形选择器?
把arr赋值给动态数据变量名看不到数据。
在这时删除其中一个组件,实际效果却是删除了最后一个组件,没法删除到对应的那一个组件
https://codesandbox.io/s/stoic-murdock-flqbs?file=/src/App.vue
当options设置为true时,表单的项依然占位置(输入框5),望大佬修复一下。
关于k-form-design 4.x开发讨论及建议
如果您有其他建议,请留言
使用k-form-design
的同时,我在项目中以Monaco-editor
作为SQL语句的编辑器,在收集k-form-build
的数据之后触发SQL增强
来达到我使用表单编辑器的目的。
但是在昨天,我准备将完成的功能整合时,发现Monaco-editor
的mouseEnter
、mouseMove
、mouseLeave
均在抛出异常,排查一段时间后发现系由引入的k-form-design.umd.js
中的有对这三个事件做了一定的处理后导致的异常。
!function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var o={};t.m=e,t.c=o,t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,o){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=o(1),u={passive:!0,capture:!1},i=["scroll","wheel","touchstart","touchmove","touchenter","touchend","touchleave","mouseout","mouseleave","mouseup","mousedown","mousemove","mouseenter","mousewheel","mouseover"],s=function(e,t){return void 0!==e?e:-1!==i.indexOf(t)&&u.passive},c=function(e){var t=Object.getOwnPropertyDescriptor(e,"passive");return t&&!0!==t.writable&&void 0===t.set?Object.assign({},e):e};if((0,r.eventListenerOptionsSupported)()){var p=EventTarget.prototype.addEventListener;!function(e){EventTarget.prototype.addEventListener=function(t,o,r){var i="object"===(void 0===r?"undefined":n(r))&&null!==r,p=i?r.capture:r;r=i?c(r):{},r.passive=s(r.passive,t),r.capture=void 0===p?u.capture:p,e.call(this,t,o,r)},EventTarget.prototype.addEventListener._original=e}(p)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.eventListenerOptionsSupported=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}}]);
由于k-form-design.umd.js存在一定程度的压缩代码的关系,这种问题出现了是真的不好找,我几度想放弃。不过由于是周末,房间也正在喊人收拾,就闲着蛋疼搜事件注册的地方一个个看了。
该行代码位于文件的第9614行,应该是作者借鉴的vue-form-making的代码
表单设计了A字段,默认值为1
表单运行提交后的JSON里并没有包含a字段。
表单打印时,表单填写内容不显示
select开启“可搜索”后,希望根据input框中输入的关键字实时去后端查询
ant-design-vue官网样例是监听search事件,请问应该如何操作?
有很多东西功能改掉了,适配了一下自己的业务
样式表 导入哪个文件啊?谢谢
如题
name 发到后台的文件参数名
headers 设置上传的请求头部
怎么增加自定义组件 或者修改原组件
如题
在文档中,我并未看到如何获取kFormDesign的json数据,查看源码后发现并没有提供相关API。
handleSave: function handleSave() {
// 保存函数
this.$emit("save", JSON.stringify(this.data));
}
也就是说需要使用refs
的方式去获取实例的data
来达到我的目的,建议提供getValue
方法。
getValue() {
return this.data
}
在调用handleReset
时,我发现会出现一个弹窗,而这个恰好是我不需要的。
handleReset: function handleReset() {
var _this3 = this;
// 清空
this.$confirm({
title: "警告",
content: "是否确认清空内容?",
okText: "是",
okType: "danger",
cancelText: "否",
onOk: function onOk() {
_this3.data.list = [];
_this3.handleSetSelectItem({
key: ""
});
_this3.$message.success("已清空");
}
});
},
建议单独对外提供一个不含弹窗的reset
方法
resetKformDesign() {
this.data.list = [];
this.handleSetSelectItem({
key: ""
});
}
情况:使用k-form-build生成动态表单,在配置的时候下拉框是有2个可选项的,但是在使用的时候它经常不渲染选项,不知道是什么原因。。。
k-form-design版本3.6.1
tabs默认是懒渲染的,dom还没加载
单行文本框不支持密码框
版本号:3.7.75
问题:配置json中select配置成可清除,在k-form-build中使用后,点击页面上select框右侧的清除按钮报错
错误代码如下
vue.esm.js?a026:628 [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'target' of undefined"
found in
---> <ASelect>
<ACol>
<ARow>
<AFormItem>
<KFormItem>
<BuildBlocks>
<AForm>
<ALocaleProvider>
<LocaleReceiver>
<AConfigProvider>
<KFormBuild>
<PermissionForm>
<Anonymous>
<Anonymous>
<Portal>
<PortalWrapper>
<Anonymous>
<AModal>
TypeError: Cannot read property 'target' of undefined
at VueComponent.handleChange (k-form-design.umd.min.js?568e:308)
at Object.change (k-form-design.umd.min.js?568e:308)
at Object.keys.forEach.u.<computed> (k-form-design.umd.min.js?568e:308)
at invokeWithErrorHandling (vue.esm.js?a026:1863)
at VueComponent.invoker (vue.esm.js?a026:2188)
at invokeWithErrorHandling (vue.esm.js?a026:1863)
at VueComponent.Vue.$emit (vue.esm.js?a026:3897)
at VueComponent.fireChange (k-form-design.umd.min.js?568e:308)
at VueComponent.onClearSelection (k-form-design.umd.min.js?568e:308)
at eval (k-form-design.umd.min.js?568e:185)
看了下源码,不太明白handleColAdd 为什么需要 深拷贝 一份listString
This dependency was not found:
能够提供一个 能够植入自己自定义接口的 prop 按照规定的接口内容 例如提供空间名称 render attr value,这样能够增加可用性
可以自己添加自定义的布局吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.