1 |
- {"version":3,"file":"components/pc-global-form.js","sources":["webpack:///./components/PcGlobalForm.vue?adaa","webpack:///./components/PcGlobalForm.vue?ad87","webpack:///./components/PcGlobalForm.vue","webpack:///./components/PcGlobalForm.vue?b95a","webpack:///./components/PcGlobalForm.vue?eeb0"],"sourcesContent":["// Exports\nmodule.exports = {\n\n};\n","export * from \"-!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-0!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-2!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./PcGlobalForm.vue?vue&type=style&index=0&id=4b4d0fec&prod&lang=scss&scope=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"form global-form\"},[_c('el-form',{ref:\"ruleForm\",staticClass:\"form-list\",attrs:{\"model\":_vm.formData,\"rules\":_vm.rules}},_vm._l((_vm.formConfig),function(item){return _c('el-form-item',{key:item.label,attrs:{\"prop\":item.prop}},[(item.type === 'input')?_c('el-input',{style:({ width: item.width }),attrs:{\"disabled\":item.disabled,\"placeholder\":item.placeholder,\"clearable\":\"\"},on:{\"change\":function($event){item.change && item.change(_vm.formData[item.prop])}},model:{value:(_vm.formData[item.prop]),callback:function ($$v) {_vm.$set(_vm.formData, item.prop, $$v)},expression:\"formData[item.prop]\"}}):_vm._e(),_vm._v(\" \"),(item.type === 'password')?_c('el-input',{style:({ width: item.width }),attrs:{\"type\":_vm.flag ? 'text' : 'password',\"autocomplete\":\"off\",\"placeholder\":item.placeholder,\"clearable\":\"\"},on:{\"change\":function($event){item.change && item.change(_vm.formData[item.prop])}},model:{value:(_vm.formData[item.prop]),callback:function ($$v) {_vm.$set(_vm.formData, item.prop, $$v)},expression:\"formData[item.prop]\"}},[(!_vm.flag)?_c('i',{staticClass:\"el-input__icon iconfont\",staticStyle:{\"font-size\":\"22px\"},attrs:{\"slot\":\"suffix\"},on:{\"click\":_vm.showPassword},slot:\"suffix\"},[_vm._v(\"\")]):_c('i',{staticClass:\"el-input__icon iconfont\",staticStyle:{\"font-size\":\"22px\"},attrs:{\"slot\":\"suffix\"},on:{\"click\":_vm.showPassword},slot:\"suffix\"},[_vm._v(\"\")])]):_vm._e(),_vm._v(\" \"),(item.type === 'textarea')?_c('el-input',{style:({ width: item.width }),attrs:{\"type\":\"textarea\",\"disabled\":item.disabled,\"maxlength\":item.maxlength,\"rows\":item.rows,\"show-word-limit\":item.showWordLimit},on:{\"change\":function($event){item.change && item.change(_vm.formData[item.prop])}},model:{value:(_vm.formData[item.prop]),callback:function ($$v) {_vm.$set(_vm.formData, item.prop, $$v)},expression:\"formData[item.prop]\"}}):_vm._e(),_vm._v(\" \"),(item.type === 'select')?_c('el-select',{style:({ width: item.width }),attrs:{\"disabled\":item.disabled,\"clearable\":\"\",\"multiple\":_vm.multiple,\"placeholder\":item.placeholder},on:{\"change\":function($event){item.change && item.change(_vm.formData[item.prop])}},model:{value:(_vm.formData[item.prop]),callback:function ($$v) {_vm.$set(_vm.formData, item.prop, $$v)},expression:\"formData[item.prop]\"}},_vm._l((item.selectList),function(option){return _c('el-option',{key:option.id,attrs:{\"label\":option.name,\"value\":option.id}})}),1):_vm._e(),_vm._v(\" \"),(item.type === 'selectObj')?_c('el-select',{style:({ width: item.width }),attrs:{\"disabled\":item.disabled,\"filterable\":\"\",\"clearable\":\"\",\"placeholder\":item.placeholder},on:{\"change\":function($event){item.change && item.change(_vm.formData[item.prop])}},model:{value:(_vm.formData[item.prop]),callback:function ($$v) {_vm.$set(_vm.formData, item.prop, $$v)},expression:\"formData[item.prop]\"}},_vm._l((item.selectList),function(item,key){return _c('el-option',{key:parseInt(key),attrs:{\"label\":item,\"value\":parseInt(key)}})}),1):_vm._e(),_vm._v(\" \"),(item.type === 'radio')?_c('el-radio-group',{attrs:{\"disabled\":item.disabled},on:{\"change\":function($event){item.change && item.change(_vm.formData[item.prop])}},model:{value:(_vm.formData[item.prop]),callback:function ($$v) {_vm.$set(_vm.formData, item.prop, $$v)},expression:\"formData[item.prop]\"}},_vm._l((item.radios),function(radio){return _c('el-radio',{key:radio.label,attrs:{\"label\":radio.label}})}),1):_vm._e(),_vm._v(\" \"),(item.type === 'checkbox')?_c('el-checkbox-group',{attrs:{\"disabled\":item.disabled},on:{\"change\":function($event){item.change && item.change(_vm.formData[item.prop])}},model:{value:(_vm.formData[item.prop]),callback:function ($$v) {_vm.$set(_vm.formData, item.prop, $$v)},expression:\"formData[item.prop]\"}},_vm._l((item.checkboxs),function(item){return _c('el-checkbox',{key:item.label,attrs:{\"label\":item.label}},[_vm._v(_vm._s(item.label))])}),1):_vm._e(),_vm._v(\" \"),(item.type === 'switch')?_c('el-switch',{attrs:{\"disabled\":item.disabled},on:{\"change\":function($event){item.change && item.change(_vm.formData[item.prop])}},model:{value:(_vm.formData[item.prop]),callback:function ($$v) {_vm.$set(_vm.formData, item.prop, $$v)},expression:\"formData[item.prop]\"}}):_vm._e(),_vm._v(\" \"),(item.type === 'slot')?[_vm._t(item.slotName)]:_vm._e()],2)}),1),_vm._ssrNode(\" \"),_vm._ssrNode(\"<div class=\\\"submit-btn\\\">\",\"</div>\",[(_vm.showLoginBtn)?_c('el-button',{attrs:{\"loading\":_vm.submitLoading},nativeOn:{\"click\":function($event){return _vm.submit.apply(null, arguments)}}},[_vm._v(\"\\n LOGIN\\n \")]):_vm._e(),_vm._ssrNode(\" \"),(_vm.showRegisterBtn)?_c('el-button',{attrs:{\"loading\":_vm.submitLoading},nativeOn:{\"click\":function($event){return _vm.submit.apply(null, arguments)}}},[_vm._v(\"\\n REGISTER\\n \")]):_vm._e(),_vm._ssrNode(\" \"),(_vm.showDeleteBtn)?_c('el-button',{nativeOn:{\"click\":function($event){return _vm.close.apply(null, arguments)}}},[_vm._v(\"取 消\")]):_vm._e()],2)],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./PcGlobalForm.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./PcGlobalForm.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PcGlobalForm.vue?vue&type=template&id=4b4d0fec\"\nimport script from \"./PcGlobalForm.vue?vue&type=script&lang=js\"\nexport * from \"./PcGlobalForm.vue?vue&type=script&lang=js\"\nfunction injectStyles (context) {\n \n var style0 = require(\"./PcGlobalForm.vue?vue&type=style&index=0&id=4b4d0fec&prod&lang=scss&scope=true\")\nif (style0.__inject__) style0.__inject__(context)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n injectStyles,\n null,\n \"905cdef0\"\n \n)\n\nexport default component.exports"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;;;;;;;;;ACHA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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