@zscreate/form-component 1.1.151 → 1.1.152
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
|
},
|
|
@@ -119588,7 +119605,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
119588
119605
|
/***/ (function(module) {
|
|
119589
119606
|
|
|
119590
119607
|
"use strict";
|
|
119591
|
-
module.exports = {"i8":"1.1.
|
|
119608
|
+
module.exports = {"i8":"1.1.152"};
|
|
119592
119609
|
|
|
119593
119610
|
/***/ })
|
|
119594
119611
|
|
|
@@ -119721,8 +119738,8 @@ if (typeof window !== 'undefined') {
|
|
|
119721
119738
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
119722
119739
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
119723
119740
|
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')?[(
|
|
119741
|
+
;// 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&
|
|
119742
|
+
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
119743
|
widget.options.layoutModel === 'auto' ||
|
|
119727
119744
|
widget.options.layoutModel === undefined
|
|
119728
119745
|
)?_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 +119774,15 @@ var staticRenderFns = []
|
|
|
119757
119774
|
var layoutForPapervue_type_script_lang_js_ = __webpack_require__(1936);
|
|
119758
119775
|
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js&
|
|
119759
119776
|
/* 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=
|
|
119777
|
+
;// 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
119778
|
// extracted by mini-css-extract-plugin
|
|
119762
119779
|
|
|
119763
|
-
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=
|
|
119780
|
+
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=e591d05c&prod&lang=less&scoped=true&
|
|
119764
119781
|
|
|
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=
|
|
119782
|
+
;// 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
119783
|
// extracted by mini-css-extract-plugin
|
|
119767
119784
|
|
|
119768
|
-
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=
|
|
119785
|
+
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=e591d05c&prod&lang=css&
|
|
119769
119786
|
|
|
119770
119787
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.2@vue-loader/lib/runtime/componentNormalizer.js
|
|
119771
119788
|
var componentNormalizer = __webpack_require__(7506);
|
|
@@ -119785,7 +119802,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
119785
119802
|
staticRenderFns,
|
|
119786
119803
|
false,
|
|
119787
119804
|
null,
|
|
119788
|
-
"
|
|
119805
|
+
"e591d05c",
|
|
119789
119806
|
null
|
|
119790
119807
|
|
|
119791
119808
|
)
|