@zscreate/form-component 1.1.151 → 1.1.153
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.
|
@@ -63890,6 +63890,10 @@ module.exports = /******/function (modules) {
|
|
|
63890
63890
|
//
|
|
63891
63891
|
//
|
|
63892
63892
|
//
|
|
63893
|
+
//
|
|
63894
|
+
//
|
|
63895
|
+
//
|
|
63896
|
+
//
|
|
63893
63897
|
|
|
63894
63898
|
|
|
63895
63899
|
|
|
@@ -63905,6 +63909,10 @@ module.exports = /******/function (modules) {
|
|
|
63905
63909
|
tableItem() {
|
|
63906
63910
|
return _form_modules_common_tableItem_vue__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z;
|
|
63907
63911
|
},
|
|
63912
|
+
_formLoadingTip() {
|
|
63913
|
+
if (this.pageLoading && !this.formLoading) return '正在加载表单';
|
|
63914
|
+
return this.formLoadingTip;
|
|
63915
|
+
},
|
|
63908
63916
|
formNameStyle() {
|
|
63909
63917
|
const {
|
|
63910
63918
|
formNameStyle
|
|
@@ -63953,6 +63961,7 @@ module.exports = /******/function (modules) {
|
|
|
63953
63961
|
tableData: {},
|
|
63954
63962
|
tableLoading: false,
|
|
63955
63963
|
formLoading: false,
|
|
63964
|
+
pageLoading: true,
|
|
63956
63965
|
formLoadingTip: '正在加载表单数据0%...',
|
|
63957
63966
|
tableModel: {},
|
|
63958
63967
|
tableIndex: {},
|
|
@@ -63991,6 +64000,10 @@ module.exports = /******/function (modules) {
|
|
|
63991
64000
|
};
|
|
63992
64001
|
},
|
|
63993
64002
|
props: {
|
|
64003
|
+
showLayoutLoading: {
|
|
64004
|
+
type: Boolean,
|
|
64005
|
+
default: false
|
|
64006
|
+
},
|
|
63994
64007
|
showLine: {
|
|
63995
64008
|
type: Boolean,
|
|
63996
64009
|
default: false
|
|
@@ -64044,12 +64057,13 @@ module.exports = /******/function (modules) {
|
|
|
64044
64057
|
},
|
|
64045
64058
|
watch: {
|
|
64046
64059
|
data(data) {
|
|
64060
|
+
this.pageLoading = true;
|
|
64047
64061
|
this.updateWidgetListByHeight(data.list);
|
|
64048
64062
|
this.generateModle(data.list);
|
|
64049
64063
|
|
|
64050
64064
|
// 将formData 中未绑定表单key 的数据也复制到models
|
|
64051
64065
|
const modelsKeys = Object.keys(this.models);
|
|
64052
|
-
Object.keys(this.value).forEach(key => {
|
|
64066
|
+
Object.keys(this.value || {}).forEach(key => {
|
|
64053
64067
|
if (!modelsKeys.includes(key)) {
|
|
64054
64068
|
this.models[key] = this.value[key];
|
|
64055
64069
|
}
|
|
@@ -64057,8 +64071,11 @@ module.exports = /******/function (modules) {
|
|
|
64057
64071
|
this.contentStyle.padding = this.data.config.paddingNum + "px";
|
|
64058
64072
|
this._provided.config = data.config; //更新data.config
|
|
64059
64073
|
this._provided.formId = data.formId; //更新表单ID
|
|
64060
|
-
},
|
|
64061
64074
|
|
|
64075
|
+
this.$nextTick(() => {
|
|
64076
|
+
this.pageLoading = false;
|
|
64077
|
+
});
|
|
64078
|
+
},
|
|
64062
64079
|
"data.config"() {
|
|
64063
64080
|
this.setwidgetFormStyle();
|
|
64064
64081
|
},
|
|
@@ -67021,20 +67038,26 @@ module.exports = function (text, test, separator) {
|
|
|
67021
67038
|
console.log("Vue", (vue__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
67022
67039
|
|
|
67023
67040
|
//post
|
|
67024
|
-
function postAction(url, parameter
|
|
67041
|
+
function postAction(url, parameter, config = {
|
|
67042
|
+
notSpin: true
|
|
67043
|
+
}) {
|
|
67025
67044
|
return vue__WEBPACK_IMPORTED_MODULE_0___default().prototype._http({
|
|
67026
67045
|
url: url,
|
|
67027
67046
|
method: 'post',
|
|
67028
|
-
data: parameter
|
|
67047
|
+
data: parameter,
|
|
67048
|
+
...config
|
|
67029
67049
|
});
|
|
67030
67050
|
}
|
|
67031
67051
|
|
|
67032
67052
|
//post method= {post | put}
|
|
67033
|
-
function httpAction(url, parameter, method
|
|
67053
|
+
function httpAction(url, parameter, method, config = {
|
|
67054
|
+
notSpin: true
|
|
67055
|
+
}) {
|
|
67034
67056
|
return Vue.prototype._http({
|
|
67035
67057
|
url: url,
|
|
67036
67058
|
method: method,
|
|
67037
|
-
data: parameter
|
|
67059
|
+
data: parameter,
|
|
67060
|
+
...config
|
|
67038
67061
|
});
|
|
67039
67062
|
}
|
|
67040
67063
|
|
|
@@ -67049,11 +67072,14 @@ function putAction(url, parameter) {
|
|
|
67049
67072
|
}
|
|
67050
67073
|
|
|
67051
67074
|
//get
|
|
67052
|
-
function getAction(url, parameter
|
|
67075
|
+
function getAction(url, parameter, config = {
|
|
67076
|
+
notSpin: true
|
|
67077
|
+
}) {
|
|
67053
67078
|
return vue__WEBPACK_IMPORTED_MODULE_0___default().prototype._http({
|
|
67054
67079
|
url: url,
|
|
67055
67080
|
method: 'get',
|
|
67056
|
-
params: parameter
|
|
67081
|
+
params: parameter,
|
|
67082
|
+
...config
|
|
67057
67083
|
});
|
|
67058
67084
|
}
|
|
67059
67085
|
|
|
@@ -119588,7 +119614,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
119588
119614
|
/***/ (function(module) {
|
|
119589
119615
|
|
|
119590
119616
|
"use strict";
|
|
119591
|
-
module.exports = {"i8":"1.1.
|
|
119617
|
+
module.exports = {"i8":"1.1.153"};
|
|
119592
119618
|
|
|
119593
119619
|
/***/ })
|
|
119594
119620
|
|
|
@@ -119721,8 +119747,8 @@ if (typeof window !== 'undefined') {
|
|
|
119721
119747
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
119722
119748
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
119723
119749
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
119724
|
-
;// 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/layout/layoutForPaper.vue?vue&type=template&id=
|
|
119725
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-spin',{staticClass:"layout layout-input-all-setting",class:{ 'no-border': !_vm.data.config.border, 'save-pdf': _vm.showLine, 'ant-form-noBorder': _vm.data.config.componentsNoBorder },style:({ 'overflow-x': _vm.data.config.layout === 'horizontal' ? 'auto' : 'initial' }),attrs:{"spinning":_vm.formLoading,"tip":_vm.formLoadingTip}},[_c('a-form-model',{ref:"Form",attrs:{"hideRequiredMark":true,"model":_vm.models,"rules":_vm.rules,"wrapper-col":{}},on:{"update:rules":function($event){_vm.rules=$event},"validate":_vm.validate}},_vm._l((_vm.widgetList),function(list,listindex){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[0].length > 0),expression:"widgetList[0].length > 0"}],key:listindex,staticClass:"paper",style:(_vm.contentStyle)},[(listindex == 0)?_vm._t("default"):_vm._e(),(listindex == 0)?_c('div',{staticClass:"form-title",style:(Object.assign({}, {height: _vm.formNameHeight}, _vm.formNameStyle))},[_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameLeftContent || '')}}),_vm._v(_vm._s(_vm.data.config.formName)),_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameRightContent || '')}})]):_vm._e(),(_vm.value && _vm.value.formIndex)?_c('div',{staticStyle:{"text-align":"right","font-weight":"bold"}},[_vm._v(_vm._s(_vm.value.formIndex))]):_vm._e(),(_vm.data.config.pageHeader && listindex === 0)?_c('div',{style:(_vm.data.config.headerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageHeader)}}):_vm._e(),_c('div',{staticClass:"page-border",style:({ borderColor: _vm.data.config.borderColor })},[_vm._l((list),function(widget,index){return [(widget.type == 'table')?[(
|
|
119750
|
+
;// 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/layout/layoutForPaper.vue?vue&type=template&id=e591d05c&scoped=true&
|
|
119751
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-spin',{staticClass:"layout layout-input-all-setting",class:{ 'no-border': !_vm.data.config.border, 'save-pdf': _vm.showLine, 'ant-form-noBorder': _vm.data.config.componentsNoBorder },style:({ 'overflow-x': _vm.data.config.layout === 'horizontal' ? 'auto' : 'initial' }),attrs:{"spinning":_vm.formLoading,"tip":_vm.formLoadingTip}},[(_vm.pageLoading && _vm.showLayoutLoading)?_c('div',{class:{ form_skeleton: _vm.pageLoading }},[(_vm.pageLoading)?_c('a-skeleton',{attrs:{"active":"","loading":_vm.pageLoading,"paragraph":{ rows: 12 }}}):_vm._e()],1):_vm._e(),_c('a-form-model',{ref:"Form",attrs:{"hideRequiredMark":true,"model":_vm.models,"rules":_vm.rules,"wrapper-col":{}},on:{"update:rules":function($event){_vm.rules=$event},"validate":_vm.validate}},_vm._l((_vm.widgetList),function(list,listindex){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[0].length > 0),expression:"widgetList[0].length > 0"}],key:listindex,staticClass:"paper",style:(_vm.contentStyle)},[(listindex == 0)?_vm._t("default"):_vm._e(),(listindex == 0)?_c('div',{staticClass:"form-title",style:(Object.assign({}, {height: _vm.formNameHeight}, _vm.formNameStyle))},[_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameLeftContent || '')}}),_vm._v(_vm._s(_vm.data.config.formName)),_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameRightContent || '')}})]):_vm._e(),(_vm.value && _vm.value.formIndex)?_c('div',{staticStyle:{"text-align":"right","font-weight":"bold"}},[_vm._v(_vm._s(_vm.value.formIndex))]):_vm._e(),(_vm.data.config.pageHeader && listindex === 0)?_c('div',{style:(_vm.data.config.headerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageHeader)}}):_vm._e(),_c('div',{staticClass:"page-border",style:({ borderColor: _vm.data.config.borderColor })},[_vm._l((list),function(widget,index){return [(widget.type == 'table')?[(
|
|
119726
119752
|
widget.options.layoutModel === 'auto' ||
|
|
119727
119753
|
widget.options.layoutModel === undefined
|
|
119728
119754
|
)?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",class:[widget.options.inline == true ? 'row-table' : ''],style:({ borderColor: _vm.data.config.borderColor }),attrs:{"spinning":_vm.tableLoading && !_vm.formLoading,"tip":"数据加载中"}},[(widget.options.inline)?_c('div',{staticClass:"table-left",style:({
|
|
@@ -119757,15 +119783,15 @@ var staticRenderFns = []
|
|
|
119757
119783
|
var layoutForPapervue_type_script_lang_js_ = __webpack_require__(1936);
|
|
119758
119784
|
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js&
|
|
119759
119785
|
/* harmony default export */ var layout_layoutForPapervue_type_script_lang_js_ = (layoutForPapervue_type_script_lang_js_/* default */.Z);
|
|
119760
|
-
;// 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/layout/layoutForPaper.vue?vue&type=style&index=1&id=
|
|
119786
|
+
;// 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/layout/layoutForPaper.vue?vue&type=style&index=1&id=e591d05c&prod&lang=less&scoped=true&
|
|
119761
119787
|
// extracted by mini-css-extract-plugin
|
|
119762
119788
|
|
|
119763
|
-
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=
|
|
119789
|
+
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=e591d05c&prod&lang=less&scoped=true&
|
|
119764
119790
|
|
|
119765
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.6@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.8.1@css-loader/dist/cjs.js??clonedRuleSet-12.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-12.use[2]!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=
|
|
119791
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.6@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.8.1@css-loader/dist/cjs.js??clonedRuleSet-12.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-12.use[2]!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=e591d05c&prod&lang=css&
|
|
119766
119792
|
// extracted by mini-css-extract-plugin
|
|
119767
119793
|
|
|
119768
|
-
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=
|
|
119794
|
+
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=e591d05c&prod&lang=css&
|
|
119769
119795
|
|
|
119770
119796
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.2@vue-loader/lib/runtime/componentNormalizer.js
|
|
119771
119797
|
var componentNormalizer = __webpack_require__(7506);
|
|
@@ -119785,7 +119811,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
119785
119811
|
staticRenderFns,
|
|
119786
119812
|
false,
|
|
119787
119813
|
null,
|
|
119788
|
-
"
|
|
119814
|
+
"e591d05c",
|
|
119789
119815
|
null
|
|
119790
119816
|
|
|
119791
119817
|
)
|