@zscreate/form-component 1.1.218 → 1.1.219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/form-component.css +2 -2
- package/dist/form-component.umd.js +67 -11
- package/package.json +1 -1
package/dist/form-component.css
CHANGED
|
@@ -4048,10 +4048,10 @@ span.CodeMirror-selectedtext { background: none; }
|
|
|
4048
4048
|
/***label对齐方式 */
|
|
4049
4049
|
|
|
4050
4050
|
|
|
4051
|
-
[data-v-
|
|
4051
|
+
[data-v-9b34a7ee] .m-colorPicker {
|
|
4052
4052
|
z-index: 2;
|
|
4053
4053
|
}
|
|
4054
|
-
[data-v-
|
|
4054
|
+
[data-v-9b34a7ee] .m-colorPicker .colorBtn {
|
|
4055
4055
|
border: 1px solid #e3e3e3;
|
|
4056
4056
|
}
|
|
4057
4057
|
|
|
@@ -128971,7 +128971,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
128971
128971
|
/***/ ((module) => {
|
|
128972
128972
|
|
|
128973
128973
|
"use strict";
|
|
128974
|
-
module.exports = {"i8":"1.1.
|
|
128974
|
+
module.exports = {"i8":"1.1.219"};
|
|
128975
128975
|
|
|
128976
128976
|
/***/ })
|
|
128977
128977
|
|
|
@@ -131433,8 +131433,8 @@ var widgetConfigvue_type_template_id_7718daa8_scoped_true_render = function () {
|
|
|
131433
131433
|
var widgetConfigvue_type_template_id_7718daa8_scoped_true_staticRenderFns = []
|
|
131434
131434
|
|
|
131435
131435
|
|
|
131436
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetPublicConfig.vue?vue&type=template&id=
|
|
131437
|
-
var
|
|
131436
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetPublicConfig.vue?vue&type=template&id=9b34a7ee&scoped=true&
|
|
131437
|
+
var widgetPublicConfigvue_type_template_id_9b34a7ee_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form"},[_c('a-form-model',[_c('a-form-model-item',{ref:"title",attrs:{"label":"标题"}},[_c('a-input',{model:{value:(_vm.widget.name),callback:function ($$v) {_vm.$set(_vm.widget, "name", $$v)},expression:"widget.name"}})],1),_c('a-form-model-item',{attrs:{"label":"标签宽度","prop":"title"}},[_c('a-input-number',{attrs:{"placeholder":"auto"},model:{value:(_vm.widget.options.labelWidth),callback:function ($$v) {_vm.$set(_vm.widget.options, "labelWidth", $$v)},expression:"widget.options.labelWidth"}})],1),_c('a-form-model-item',{attrs:{"label":"高度","prop":"title"}},[_c('a-input-number',{attrs:{"placeholder":"auto"},model:{value:(_vm.widget.options.height),callback:function ($$v) {_vm.$set(_vm.widget.options, "height", $$v)},expression:"widget.options.height"}})],1),(_vm.widget.type === 'select')?_c('a-form-model-item',{ref:"bg_bgc",attrs:{"label":"背景颜色","prop":"bgcolor"}},[_c('colorPicker',{attrs:{"defaultColor":"#FFFFFF"},model:{value:(_vm.widget.options.bgColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "bgColor", $$v)},expression:"widget.options.bgColor"}})],1):_vm._e(),(!['placeholder', 'responsibility'].includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"组件无边框","prop":"title"}},[_c('a-switch',{model:{value:(_vm.widget.options.noBorder),callback:function ($$v) {_vm.$set(_vm.widget.options, "noBorder", $$v)},expression:"widget.options.noBorder"}})],1):_vm._e(),(['input', 'textarea'].includes(_vm.widget.type))?_c('div',[_c('a-form-model-item',{ref:"bgc",attrs:{"label":"字体颜色","prop":"labelwordcolor"}},[_c('colorPicker',{staticStyle:{"z-index":"3"},attrs:{"defaultColor":"#000000"},model:{value:(_vm.widget.options.fontColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "fontColor", $$v)},expression:"widget.options.fontColor"}})],1),_c('a-form-model-item',{ref:"bg_bgc",attrs:{"label":"背景颜色","prop":"bgcolor"}},[_c('colorPicker',{attrs:{"defaultColor":"#FFFFFF"},model:{value:(_vm.widget.options.bgColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "bgColor", $$v)},expression:"widget.options.bgColor"}})],1),_c('a-form-model-item',{attrs:{"label":"字体类型","prop":"title"}},[_c('a-select',{attrs:{"placeholder":"请选择字体"},model:{value:(_vm.widget.options.fontFamily),callback:function ($$v) {_vm.$set(_vm.widget.options, "fontFamily", $$v)},expression:"widget.options.fontFamily"}},_vm._l((_vm.fontNames),function(item,idx){return _c('a-select-option',{key:idx,attrs:{"value":item}},[_vm._v(" "+_vm._s(item)+" ")])}),1)],1)],1):_vm._e(),(_vm.widget.type == 'codeControl')?_c('a-form-model-item',{attrs:{"label":"默认值"}},[_c('a-input',{attrs:{"disabled":""},model:{value:(_vm.widget.key),callback:function ($$v) {_vm.$set(_vm.widget, "key", $$v)},expression:"widget.key"}})],1):_vm._e(),(!_vm.seatList.includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"占位内容"}},[_c('a-input',{model:{value:(_vm.widget.options.placeholder),callback:function ($$v) {_vm.$set(_vm.widget.options, "placeholder", $$v)},expression:"widget.options.placeholder"}})],1):_vm._e(),(_vm.widget.type == 'superLink')?_c('a-form-model-item',{attrs:{"label":"超链接名称"}},[_c('a-input',{model:{value:(_vm.widget.options.title),callback:function ($$v) {_vm.$set(_vm.widget.options, "title", $$v)},expression:"widget.options.title"}})],1):_vm._e(),_vm._t("default"),_c('a-form-model-item',{attrs:{"label":"数据操作类型"}},[_c('a-select',{attrs:{"placeholder":"默认覆盖"},model:{value:(_vm.widget.options.zhuijiaType),callback:function ($$v) {_vm.$set(_vm.widget.options, "zhuijiaType", $$v)},expression:"widget.options.zhuijiaType"}},[_c('a-select-option',{attrs:{"value":"1"}},[_vm._v("覆盖")]),_c('a-select-option',{attrs:{"value":"2"}},[_vm._v("追加")])],1)],1),(_vm.$route.query.jghsj === '1')?_c('a-form-model-item',{attrs:{"label":"选择入库唯一key"}},[_c('a-switch',{model:{value:(_vm.widget.isJghsjKey),callback:function ($$v) {_vm.$set(_vm.widget, "isJghsjKey", $$v)},expression:"widget.isJghsjKey"}})],1):_vm._e(),(_vm.$route.query.jghsj === '1' && _vm.widget.isJghsjKey)?_c('a-form-model-item',{attrs:{"label":"唯一key"}},[_c('a-select',{model:{value:(_vm.widget.model),callback:function ($$v) {_vm.$set(_vm.widget, "model", $$v)},expression:"widget.model"}},_vm._l((_vm.filedNameList),function(item){return _c('a-select-option',{key:item.field_name,attrs:{"value":item.field_name,"title":item.field_name_value}},[_vm._v(" "+_vm._s(item.field_name_value)+" ")])}),1)],1):_c('a-form-model-item',{attrs:{"label":"唯一key"}},[_c('a-input',{model:{value:(_vm.widget.model),callback:function ($$v) {_vm.$set(_vm.widget, "model", $$v)},expression:"widget.model"}})],1),(
|
|
131438
131438
|
_vm.widget.options && Object.keys(_vm.widget.options).indexOf('multiple') >= 0 && !_vm.excludeMultipleList.includes(_vm.widget.type)
|
|
131439
131439
|
)?_c('a-form-model-item',{attrs:{"label":"是否多选"}},[_c('a-switch',{model:{value:(_vm.widget.options.multiple),callback:function ($$v) {_vm.$set(_vm.widget.options, "multiple", $$v)},expression:"widget.options.multiple"}})],1):_vm._e(),(
|
|
131440
131440
|
_vm.widget.type != 'verify' &&
|
|
@@ -131477,11 +131477,67 @@ var widgetPublicConfigvue_type_template_id_11469c85_scoped_true_render = functio
|
|
|
131477
131477
|
_vm.widget.options &&
|
|
131478
131478
|
Object.keys(_vm.widget.options).indexOf('pattern') >= 0
|
|
131479
131479
|
)?_c('div',[_c('a-input',{staticStyle:{"width":"100%"},attrs:{"disabled":String(_vm.widget.options.dataType).startsWith('regular__'),"placeholder":"填写正则表达式"},model:{value:(_vm.widget.options.pattern),callback:function ($$v) {_vm.$set(_vm.widget.options, "pattern", $$v)},expression:"widget.options.pattern"}}),_c('a-input',{directives:[{name:"show",rawName:"v-show",value:(_vm.widget.options.pattern),expression:"widget.options.pattern"}],staticStyle:{"width":"100%"},attrs:{"placeholder":"请填写错误提示"},on:{"blur":_vm.valideError},model:{value:(_vm.widget.options.patternError),callback:function ($$v) {_vm.$set(_vm.widget.options, "patternError", $$v)},expression:"widget.options.patternError"}})],1):_vm._e()],1):_vm._e()],2)],1)}
|
|
131480
|
-
var
|
|
131480
|
+
var widgetPublicConfigvue_type_template_id_9b34a7ee_scoped_true_staticRenderFns = []
|
|
131481
131481
|
|
|
131482
131482
|
|
|
131483
131483
|
// EXTERNAL MODULE: ./src/form/util/Bus.js
|
|
131484
131484
|
var Bus = __webpack_require__(767);
|
|
131485
|
+
;// CONCATENATED MODULE: ./src/form/util/index.js
|
|
131486
|
+
|
|
131487
|
+
const loadJs = url => {
|
|
131488
|
+
return new Promise((resolve, reject) => {
|
|
131489
|
+
const script = document.createElement('script');
|
|
131490
|
+
script.src = url;
|
|
131491
|
+
script.type = 'text/javascript';
|
|
131492
|
+
document.body.appendChild(script);
|
|
131493
|
+
script.onload = () => {
|
|
131494
|
+
resolve();
|
|
131495
|
+
};
|
|
131496
|
+
});
|
|
131497
|
+
};
|
|
131498
|
+
const loadCss = url => {
|
|
131499
|
+
return new Promise((resolve, reject) => {
|
|
131500
|
+
const link = document.createElement('link');
|
|
131501
|
+
link.rel = 'stylesheet';
|
|
131502
|
+
link.href = url;
|
|
131503
|
+
document.head.appendChild(link);
|
|
131504
|
+
link.onload = () => {
|
|
131505
|
+
resolve();
|
|
131506
|
+
};
|
|
131507
|
+
});
|
|
131508
|
+
};
|
|
131509
|
+
function getRecursionWidget(widgetList) {
|
|
131510
|
+
const res_list = [];
|
|
131511
|
+
let func = (res_list, val) => {
|
|
131512
|
+
if (val instanceof Array && val.length > 0) {
|
|
131513
|
+
val.forEach(item => {
|
|
131514
|
+
if (["grid", "grid-lay-out", "all-lay-out"].includes(item.type)) {
|
|
131515
|
+
// columns.list
|
|
131516
|
+
item.columns.forEach(columnsItem => {
|
|
131517
|
+
func(res_list, columnsItem.list);
|
|
131518
|
+
});
|
|
131519
|
+
} else if (["table"].includes(item.type)) {
|
|
131520
|
+
// columns
|
|
131521
|
+
func(res_list, item.columns);
|
|
131522
|
+
} else {
|
|
131523
|
+
res_list.push(item);
|
|
131524
|
+
}
|
|
131525
|
+
});
|
|
131526
|
+
}
|
|
131527
|
+
};
|
|
131528
|
+
func(res_list, widgetList);
|
|
131529
|
+
func = null;
|
|
131530
|
+
return res_list;
|
|
131531
|
+
}
|
|
131532
|
+
const generateUUID = () => {
|
|
131533
|
+
var d = new Date().getTime();
|
|
131534
|
+
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
131535
|
+
var r = (d + Math.random() * 16) % 16 | 0;
|
|
131536
|
+
d = Math.floor(d / 16);
|
|
131537
|
+
return (c == 'x' ? r : r & 0x7 | 0x8).toString(16);
|
|
131538
|
+
});
|
|
131539
|
+
return uuid;
|
|
131540
|
+
};
|
|
131485
131541
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetPublicConfig.vue?vue&type=script&lang=js&
|
|
131486
131542
|
|
|
131487
131543
|
//
|
|
@@ -131805,6 +131861,7 @@ var Bus = __webpack_require__(767);
|
|
|
131805
131861
|
const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "华文楷体", "宋体", "微软雅黑", "Arial", "Tahoma", "Verdana", "Times New Roman", "Courier New"];
|
|
131806
131862
|
|
|
131807
131863
|
|
|
131864
|
+
|
|
131808
131865
|
/* harmony default export */ const widgetPublicConfigvue_type_script_lang_js_ = ({
|
|
131809
131866
|
name: "widgetPublicConfig",
|
|
131810
131867
|
inject: {
|
|
@@ -131867,9 +131924,8 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
131867
131924
|
return false;
|
|
131868
131925
|
},
|
|
131869
131926
|
widgetListNeed() {
|
|
131870
|
-
debugger;
|
|
131871
131927
|
const widgetList = this.getAllWidgetList() || [[]];
|
|
131872
|
-
return widgetList[0];
|
|
131928
|
+
return getRecursionWidget(widgetList[0]);
|
|
131873
131929
|
}
|
|
131874
131930
|
// regularCheckDicts() {
|
|
131875
131931
|
// const regularCheckDicts = Vue.prototype.RegularCheckDicts
|
|
@@ -132086,10 +132142,10 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
132086
132142
|
});
|
|
132087
132143
|
;// CONCATENATED MODULE: ./src/form/modules/widgetPublicConfig.vue?vue&type=script&lang=js&
|
|
132088
132144
|
/* harmony default export */ const modules_widgetPublicConfigvue_type_script_lang_js_ = (widgetPublicConfigvue_type_script_lang_js_);
|
|
132089
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.6@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.8.1@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.10.2@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=
|
|
132145
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.6@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.8.1@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.10.2@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=9b34a7ee&prod&lang=less&scoped=true&
|
|
132090
132146
|
// extracted by mini-css-extract-plugin
|
|
132091
132147
|
|
|
132092
|
-
;// CONCATENATED MODULE: ./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=
|
|
132148
|
+
;// CONCATENATED MODULE: ./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=9b34a7ee&prod&lang=less&scoped=true&
|
|
132093
132149
|
|
|
132094
132150
|
;// CONCATENATED MODULE: ./src/form/modules/widgetPublicConfig.vue
|
|
132095
132151
|
|
|
@@ -132102,11 +132158,11 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
132102
132158
|
|
|
132103
132159
|
var widgetPublicConfig_component = (0,componentNormalizer/* default */.Z)(
|
|
132104
132160
|
modules_widgetPublicConfigvue_type_script_lang_js_,
|
|
132105
|
-
|
|
132106
|
-
|
|
132161
|
+
widgetPublicConfigvue_type_template_id_9b34a7ee_scoped_true_render,
|
|
132162
|
+
widgetPublicConfigvue_type_template_id_9b34a7ee_scoped_true_staticRenderFns,
|
|
132107
132163
|
false,
|
|
132108
132164
|
null,
|
|
132109
|
-
"
|
|
132165
|
+
"9b34a7ee",
|
|
132110
132166
|
null
|
|
132111
132167
|
|
|
132112
132168
|
)
|