gyyg-components 0.2.17 → 0.2.18
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.
|
@@ -263,7 +263,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
|
|
|
263
263
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
264
264
|
|
|
265
265
|
"use strict";
|
|
266
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/directive/mec-feeInput/index */ \"./src/directive/mec-feeInput/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'mec-input',\n directives: {\n feeInput: _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n props: {\n value: {\n default: ''\n },\n // 输入框的占位符\n placeholder: {\n type: String,\n default: ''\n },\n // 输入类型限制,可选值为 'number'(数字)、'chinese'(汉字)、'english'(英文字母)\n inputType: {\n type: String,\n default: 'text'\n },\n // 输入框类型(对应原生input类型),如 'text'、'password'等\n type: {\n type: String,\n default: 'text'\n },\n // 是否禁用\n disabled: {\n type: Boolean,\n default: false\n },\n // 是否只读\n readonly: {\n type: Boolean,\n default: false\n },\n // 尺寸大小,可选值'medium'、'small'、'mini'\n size: {\n type: String,\n default: 'medium'\n },\n // 最大长度\n maxlength: {\n type: [Number, String],\n default: -1\n },\n // 是否显示字数限制提示\n showWordLimit: {\n type: Boolean,\n default: false\n },\n // 是否可清空\n clearable: {\n type: Boolean,\n default: false\n },\n // 前缀图标名称\n prefixIcon: {\n type: String,\n default: ''\n },\n // 后缀图标名称\n suffixIcon: {\n type: String,\n default: ''\n },\n // 文本域行数(当type为'textarea'时有效)\n rows: {\n default:
|
|
266
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/directive/mec-feeInput/index */ \"./src/directive/mec-feeInput/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'mec-input',\n directives: {\n feeInput: _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n props: {\n value: {\n default: ''\n },\n // 输入框的占位符\n placeholder: {\n type: String,\n default: ''\n },\n // 输入类型限制,可选值为 'number'(数字)、'chinese'(汉字)、'english'(英文字母)\n inputType: {\n type: String,\n default: 'text'\n },\n // 输入框类型(对应原生input类型),如 'text'、'password'等\n type: {\n type: String,\n default: 'text'\n },\n // 是否禁用\n disabled: {\n type: Boolean,\n default: false\n },\n // 是否只读\n readonly: {\n type: Boolean,\n default: false\n },\n // 尺寸大小,可选值'medium'、'small'、'mini'\n size: {\n type: String,\n default: 'medium'\n },\n // 最大长度\n maxlength: {\n type: [Number, String],\n default: -1\n },\n // 是否显示字数限制提示\n showWordLimit: {\n type: Boolean,\n default: false\n },\n // 是否可清空\n clearable: {\n type: Boolean,\n default: false\n },\n // 前缀图标名称\n prefixIcon: {\n type: String,\n default: ''\n },\n // 后缀图标名称\n suffixIcon: {\n type: String,\n default: ''\n },\n // 文本域行数(当type为'textarea'时有效)\n rows: {\n default: 2\n },\n // 文本域是否自适应大小(当type为'textarea'时有效)\n autosize: {\n type: [Boolean, Object],\n default: () => {\n return {\n minRows: 2\n };\n }\n },\n prependText: {\n type: String,\n default: ''\n },\n appendText: {\n type: String,\n default: ''\n },\n appendIcon: {\n type: String,\n default: ''\n },\n isFeeInput: {\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n inputValue: ''\n };\n },\n computed: {\n inputTypeValue() {\n return this.inputType === 'textarea' ? 'textarea' : this.type;\n }\n },\n methods: {\n handleInput(val) {\n let value = val;\n if (this.inputType === 'number') {\n // 只允许输入数字\n value = value.replace(/[^0-9]/g, '');\n } else if (this.inputType === 'chinese') {\n // 只允许输入汉字\n value = value.replace(/[^\\u4e00-\\u9fa5]/g, '');\n } else if (this.inputType === 'english') {\n // 只允许输入英文\n value = value.replace(/[^a-zA-Z\\s]/g, '');\n } else if (this.inputType === 'amount') {\n // 只允许输入数字和小数点\n value = value.replace(/[^0-9.]/g, '');\n // 确保小数点只出现一次\n if (value.split('.').length > 2) {\n value = value.replace(/\\.+$/, '');\n }\n }\n this.inputValue = value;\n this.$emit('input', value);\n this.$emit('update:value', value);\n },\n clear() {\n this.$emit('clear');\n },\n btnClick() {\n this.$emit('btnClick');\n },\n handleEnter() {\n this.$emit('enter');\n },\n handleBlur() {\n this.$emit('blur', this.inputValue);\n }\n },\n watch: {\n value: {\n handler(newValue) {\n this.inputValue = newValue;\n },\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://gyyg-components/./src/components/MecInput/MecInput.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
267
267
|
|
|
268
268
|
/***/ }),
|
|
269
269
|
|
|
@@ -455,7 +455,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
455
455
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
456
456
|
|
|
457
457
|
"use strict";
|
|
458
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", [_c(\"el-descriptions\", {\n attrs: {\n column: _vm.column,\n title: _vm.title,\n extra: _vm.extra,\n direction: _vm.direction,\n border: _vm.border\n },\n scopedSlots: _vm._u([{\n key: \"title\",\n fn: function () {\n return [_c(\"div\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.title))]), _c(\"div\", {\n staticClass: \"top-content\"\n }, [_vm._t(\"topContent\")], 2)];\n },\n proxy: true\n }], null, true)\n }, _vm._l(_vm.detailsData, function (item, index) {\n return _c(\"el-descriptions-item\", {\n key: index,\n attrs: {\n label: item.label\n }\n }, [item.type === \"img\" ? _c(\"div\", _vm._l(item.value, function (url, index) {\n return _c(\"el-image\", {\n key: index,\n staticStyle: {\n width: \"100px\",\n height: \"100px\",\n \"margin-right\": \"10px\"\n },\n attrs: {\n src: url,\n \"preview-src-list\": item.value\n }\n });\n }), 1) : item.type === \"voice\" ? _c(\"div\", _vm._l(item.value, function (item) {\n return _c(\"audio\", {\n key: item.id,\n staticStyle: {\n width: \"240px\",\n height: \"40px\"\n },\n attrs: {\n controls: \"controls\"\n }\n }, [_c(\"source\", {\n attrs: {\n src: item,\n type: \"audio/mp3\"\n }\n })]);\n }), 0) : _c(\"span\", [_vm._v(_vm._s(item.value))])]);\n }), 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2231733d96-vue-loader-template%22%7D!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
458
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", [_c(\"el-descriptions\", {\n attrs: {\n column: _vm.column,\n title: _vm.title,\n extra: _vm.extra,\n direction: _vm.direction,\n border: _vm.border\n },\n scopedSlots: _vm._u([{\n key: \"title\",\n fn: function () {\n return [_c(\"div\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.title))]), _c(\"div\", {\n staticClass: \"top-content\"\n }, [_vm._t(\"topContent\")], 2)];\n },\n proxy: true\n }], null, true)\n }, _vm._l(_vm.detailsData, function (item, index) {\n return _c(\"el-descriptions-item\", {\n key: index,\n attrs: {\n label: item.label,\n span: item.span || 1\n }\n }, [item.type === \"img\" ? _c(\"div\", _vm._l(item.value, function (url, index) {\n return _c(\"el-image\", {\n key: index,\n staticStyle: {\n width: \"100px\",\n height: \"100px\",\n \"margin-right\": \"10px\"\n },\n attrs: {\n src: url,\n \"preview-src-list\": item.value\n }\n });\n }), 1) : item.type === \"voice\" ? _c(\"div\", _vm._l(item.value, function (item) {\n return _c(\"audio\", {\n key: item.id,\n staticStyle: {\n width: \"240px\",\n height: \"40px\"\n },\n attrs: {\n controls: \"controls\"\n }\n }, [_c(\"source\", {\n attrs: {\n src: item,\n type: \"audio/mp3\"\n }\n })]);\n }), 0) : _c(\"span\", [_vm._v(_vm._s(item.value))])]);\n }), 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2231733d96-vue-loader-template%22%7D!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
459
459
|
|
|
460
460
|
/***/ }),
|
|
461
461
|
|
|
@@ -2224,7 +2224,7 @@ eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../.
|
|
|
2224
2224
|
/*! no static exports found */
|
|
2225
2225
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2226
2226
|
|
|
2227
|
-
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n[data-v-d0fa6bd6] .el-descriptions__header {\\n display: block;\\n}\\n.title[data-v-d0fa6bd6] {\\n padding-left: 10px;\\n height: 30px;\\n line-height: 30px;\\n background: #efefef;\\n margin-bottom: 10px;\\n font-weight: bold;\\n color: #606266;\\n font-size: 14px;\\n}\\n.top-content[data-v-d0fa6bd6] {\\n color: #606266;\\n font-size: 14px;\\n font-weight: normal;\\n}\\n[data-v-d0fa6bd6] .el-descriptions-item__label {\\n white-space: nowrap;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--11-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
2227
|
+
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n[data-v-d0fa6bd6] .el-descriptions__header {\\n display: block;\\n}\\n.title[data-v-d0fa6bd6] {\\n padding-left: 10px;\\n height: 30px;\\n line-height: 30px;\\n background: #efefef;\\n margin-bottom: 10px;\\n font-weight: bold;\\n color: #606266;\\n font-size: 14px;\\n}\\n.top-content[data-v-d0fa6bd6] {\\n color: #606266;\\n font-size: 14px;\\n font-weight: normal;\\n}\\n[data-v-d0fa6bd6] .el-descriptions-item__label {\\n white-space: nowrap;\\n}\\n[data-v-d0fa6bd6] .el-descriptions__body .el-descriptions__table .el-descriptions-item__cell {\\n white-space: pre-wrap;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--11-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
2228
2228
|
|
|
2229
2229
|
/***/ }),
|
|
2230
2230
|
|
|
@@ -272,7 +272,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
|
|
|
272
272
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
273
273
|
|
|
274
274
|
"use strict";
|
|
275
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/directive/mec-feeInput/index */ \"./src/directive/mec-feeInput/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'mec-input',\n directives: {\n feeInput: _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n props: {\n value: {\n default: ''\n },\n // 输入框的占位符\n placeholder: {\n type: String,\n default: ''\n },\n // 输入类型限制,可选值为 'number'(数字)、'chinese'(汉字)、'english'(英文字母)\n inputType: {\n type: String,\n default: 'text'\n },\n // 输入框类型(对应原生input类型),如 'text'、'password'等\n type: {\n type: String,\n default: 'text'\n },\n // 是否禁用\n disabled: {\n type: Boolean,\n default: false\n },\n // 是否只读\n readonly: {\n type: Boolean,\n default: false\n },\n // 尺寸大小,可选值'medium'、'small'、'mini'\n size: {\n type: String,\n default: 'medium'\n },\n // 最大长度\n maxlength: {\n type: [Number, String],\n default: -1\n },\n // 是否显示字数限制提示\n showWordLimit: {\n type: Boolean,\n default: false\n },\n // 是否可清空\n clearable: {\n type: Boolean,\n default: false\n },\n // 前缀图标名称\n prefixIcon: {\n type: String,\n default: ''\n },\n // 后缀图标名称\n suffixIcon: {\n type: String,\n default: ''\n },\n // 文本域行数(当type为'textarea'时有效)\n rows: {\n default:
|
|
275
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/directive/mec-feeInput/index */ \"./src/directive/mec-feeInput/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'mec-input',\n directives: {\n feeInput: _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n props: {\n value: {\n default: ''\n },\n // 输入框的占位符\n placeholder: {\n type: String,\n default: ''\n },\n // 输入类型限制,可选值为 'number'(数字)、'chinese'(汉字)、'english'(英文字母)\n inputType: {\n type: String,\n default: 'text'\n },\n // 输入框类型(对应原生input类型),如 'text'、'password'等\n type: {\n type: String,\n default: 'text'\n },\n // 是否禁用\n disabled: {\n type: Boolean,\n default: false\n },\n // 是否只读\n readonly: {\n type: Boolean,\n default: false\n },\n // 尺寸大小,可选值'medium'、'small'、'mini'\n size: {\n type: String,\n default: 'medium'\n },\n // 最大长度\n maxlength: {\n type: [Number, String],\n default: -1\n },\n // 是否显示字数限制提示\n showWordLimit: {\n type: Boolean,\n default: false\n },\n // 是否可清空\n clearable: {\n type: Boolean,\n default: false\n },\n // 前缀图标名称\n prefixIcon: {\n type: String,\n default: ''\n },\n // 后缀图标名称\n suffixIcon: {\n type: String,\n default: ''\n },\n // 文本域行数(当type为'textarea'时有效)\n rows: {\n default: 2\n },\n // 文本域是否自适应大小(当type为'textarea'时有效)\n autosize: {\n type: [Boolean, Object],\n default: () => {\n return {\n minRows: 2\n };\n }\n },\n prependText: {\n type: String,\n default: ''\n },\n appendText: {\n type: String,\n default: ''\n },\n appendIcon: {\n type: String,\n default: ''\n },\n isFeeInput: {\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n inputValue: ''\n };\n },\n computed: {\n inputTypeValue() {\n return this.inputType === 'textarea' ? 'textarea' : this.type;\n }\n },\n methods: {\n handleInput(val) {\n let value = val;\n if (this.inputType === 'number') {\n // 只允许输入数字\n value = value.replace(/[^0-9]/g, '');\n } else if (this.inputType === 'chinese') {\n // 只允许输入汉字\n value = value.replace(/[^\\u4e00-\\u9fa5]/g, '');\n } else if (this.inputType === 'english') {\n // 只允许输入英文\n value = value.replace(/[^a-zA-Z\\s]/g, '');\n } else if (this.inputType === 'amount') {\n // 只允许输入数字和小数点\n value = value.replace(/[^0-9.]/g, '');\n // 确保小数点只出现一次\n if (value.split('.').length > 2) {\n value = value.replace(/\\.+$/, '');\n }\n }\n this.inputValue = value;\n this.$emit('input', value);\n this.$emit('update:value', value);\n },\n clear() {\n this.$emit('clear');\n },\n btnClick() {\n this.$emit('btnClick');\n },\n handleEnter() {\n this.$emit('enter');\n },\n handleBlur() {\n this.$emit('blur', this.inputValue);\n }\n },\n watch: {\n value: {\n handler(newValue) {\n this.inputValue = newValue;\n },\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://gyyg-components/./src/components/MecInput/MecInput.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
276
276
|
|
|
277
277
|
/***/ }),
|
|
278
278
|
|
|
@@ -464,7 +464,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
464
464
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
465
465
|
|
|
466
466
|
"use strict";
|
|
467
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", [_c(\"el-descriptions\", {\n attrs: {\n column: _vm.column,\n title: _vm.title,\n extra: _vm.extra,\n direction: _vm.direction,\n border: _vm.border\n },\n scopedSlots: _vm._u([{\n key: \"title\",\n fn: function () {\n return [_c(\"div\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.title))]), _c(\"div\", {\n staticClass: \"top-content\"\n }, [_vm._t(\"topContent\")], 2)];\n },\n proxy: true\n }], null, true)\n }, _vm._l(_vm.detailsData, function (item, index) {\n return _c(\"el-descriptions-item\", {\n key: index,\n attrs: {\n label: item.label\n }\n }, [item.type === \"img\" ? _c(\"div\", _vm._l(item.value, function (url, index) {\n return _c(\"el-image\", {\n key: index,\n staticStyle: {\n width: \"100px\",\n height: \"100px\",\n \"margin-right\": \"10px\"\n },\n attrs: {\n src: url,\n \"preview-src-list\": item.value\n }\n });\n }), 1) : item.type === \"voice\" ? _c(\"div\", _vm._l(item.value, function (item) {\n return _c(\"audio\", {\n key: item.id,\n staticStyle: {\n width: \"240px\",\n height: \"40px\"\n },\n attrs: {\n controls: \"controls\"\n }\n }, [_c(\"source\", {\n attrs: {\n src: item,\n type: \"audio/mp3\"\n }\n })]);\n }), 0) : _c(\"span\", [_vm._v(_vm._s(item.value))])]);\n }), 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2231733d96-vue-loader-template%22%7D!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
467
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", [_c(\"el-descriptions\", {\n attrs: {\n column: _vm.column,\n title: _vm.title,\n extra: _vm.extra,\n direction: _vm.direction,\n border: _vm.border\n },\n scopedSlots: _vm._u([{\n key: \"title\",\n fn: function () {\n return [_c(\"div\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.title))]), _c(\"div\", {\n staticClass: \"top-content\"\n }, [_vm._t(\"topContent\")], 2)];\n },\n proxy: true\n }], null, true)\n }, _vm._l(_vm.detailsData, function (item, index) {\n return _c(\"el-descriptions-item\", {\n key: index,\n attrs: {\n label: item.label,\n span: item.span || 1\n }\n }, [item.type === \"img\" ? _c(\"div\", _vm._l(item.value, function (url, index) {\n return _c(\"el-image\", {\n key: index,\n staticStyle: {\n width: \"100px\",\n height: \"100px\",\n \"margin-right\": \"10px\"\n },\n attrs: {\n src: url,\n \"preview-src-list\": item.value\n }\n });\n }), 1) : item.type === \"voice\" ? _c(\"div\", _vm._l(item.value, function (item) {\n return _c(\"audio\", {\n key: item.id,\n staticStyle: {\n width: \"240px\",\n height: \"40px\"\n },\n attrs: {\n controls: \"controls\"\n }\n }, [_c(\"source\", {\n attrs: {\n src: item,\n type: \"audio/mp3\"\n }\n })]);\n }), 0) : _c(\"span\", [_vm._v(_vm._s(item.value))])]);\n }), 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2231733d96-vue-loader-template%22%7D!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
468
468
|
|
|
469
469
|
/***/ }),
|
|
470
470
|
|
|
@@ -2233,7 +2233,7 @@ eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../.
|
|
|
2233
2233
|
/*! no static exports found */
|
|
2234
2234
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2235
2235
|
|
|
2236
|
-
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n[data-v-d0fa6bd6] .el-descriptions__header {\\n display: block;\\n}\\n.title[data-v-d0fa6bd6] {\\n padding-left: 10px;\\n height: 30px;\\n line-height: 30px;\\n background: #efefef;\\n margin-bottom: 10px;\\n font-weight: bold;\\n color: #606266;\\n font-size: 14px;\\n}\\n.top-content[data-v-d0fa6bd6] {\\n color: #606266;\\n font-size: 14px;\\n font-weight: normal;\\n}\\n[data-v-d0fa6bd6] .el-descriptions-item__label {\\n white-space: nowrap;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--11-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
2236
|
+
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n[data-v-d0fa6bd6] .el-descriptions__header {\\n display: block;\\n}\\n.title[data-v-d0fa6bd6] {\\n padding-left: 10px;\\n height: 30px;\\n line-height: 30px;\\n background: #efefef;\\n margin-bottom: 10px;\\n font-weight: bold;\\n color: #606266;\\n font-size: 14px;\\n}\\n.top-content[data-v-d0fa6bd6] {\\n color: #606266;\\n font-size: 14px;\\n font-weight: normal;\\n}\\n[data-v-d0fa6bd6] .el-descriptions-item__label {\\n white-space: nowrap;\\n}\\n[data-v-d0fa6bd6] .el-descriptions__body .el-descriptions__table .el-descriptions-item__cell {\\n white-space: pre-wrap;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--11-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
2237
2237
|
|
|
2238
2238
|
/***/ }),
|
|
2239
2239
|
|
|
@@ -272,7 +272,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
|
|
|
272
272
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
273
273
|
|
|
274
274
|
"use strict";
|
|
275
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/directive/mec-feeInput/index */ \"./src/directive/mec-feeInput/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'mec-input',\n directives: {\n feeInput: _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n props: {\n value: {\n default: ''\n },\n // 输入框的占位符\n placeholder: {\n type: String,\n default: ''\n },\n // 输入类型限制,可选值为 'number'(数字)、'chinese'(汉字)、'english'(英文字母)\n inputType: {\n type: String,\n default: 'text'\n },\n // 输入框类型(对应原生input类型),如 'text'、'password'等\n type: {\n type: String,\n default: 'text'\n },\n // 是否禁用\n disabled: {\n type: Boolean,\n default: false\n },\n // 是否只读\n readonly: {\n type: Boolean,\n default: false\n },\n // 尺寸大小,可选值'medium'、'small'、'mini'\n size: {\n type: String,\n default: 'medium'\n },\n // 最大长度\n maxlength: {\n type: [Number, String],\n default: -1\n },\n // 是否显示字数限制提示\n showWordLimit: {\n type: Boolean,\n default: false\n },\n // 是否可清空\n clearable: {\n type: Boolean,\n default: false\n },\n // 前缀图标名称\n prefixIcon: {\n type: String,\n default: ''\n },\n // 后缀图标名称\n suffixIcon: {\n type: String,\n default: ''\n },\n // 文本域行数(当type为'textarea'时有效)\n rows: {\n default:
|
|
275
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/directive/mec-feeInput/index */ \"./src/directive/mec-feeInput/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'mec-input',\n directives: {\n feeInput: _directive_mec_feeInput_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n props: {\n value: {\n default: ''\n },\n // 输入框的占位符\n placeholder: {\n type: String,\n default: ''\n },\n // 输入类型限制,可选值为 'number'(数字)、'chinese'(汉字)、'english'(英文字母)\n inputType: {\n type: String,\n default: 'text'\n },\n // 输入框类型(对应原生input类型),如 'text'、'password'等\n type: {\n type: String,\n default: 'text'\n },\n // 是否禁用\n disabled: {\n type: Boolean,\n default: false\n },\n // 是否只读\n readonly: {\n type: Boolean,\n default: false\n },\n // 尺寸大小,可选值'medium'、'small'、'mini'\n size: {\n type: String,\n default: 'medium'\n },\n // 最大长度\n maxlength: {\n type: [Number, String],\n default: -1\n },\n // 是否显示字数限制提示\n showWordLimit: {\n type: Boolean,\n default: false\n },\n // 是否可清空\n clearable: {\n type: Boolean,\n default: false\n },\n // 前缀图标名称\n prefixIcon: {\n type: String,\n default: ''\n },\n // 后缀图标名称\n suffixIcon: {\n type: String,\n default: ''\n },\n // 文本域行数(当type为'textarea'时有效)\n rows: {\n default: 2\n },\n // 文本域是否自适应大小(当type为'textarea'时有效)\n autosize: {\n type: [Boolean, Object],\n default: () => {\n return {\n minRows: 2\n };\n }\n },\n prependText: {\n type: String,\n default: ''\n },\n appendText: {\n type: String,\n default: ''\n },\n appendIcon: {\n type: String,\n default: ''\n },\n isFeeInput: {\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n inputValue: ''\n };\n },\n computed: {\n inputTypeValue() {\n return this.inputType === 'textarea' ? 'textarea' : this.type;\n }\n },\n methods: {\n handleInput(val) {\n let value = val;\n if (this.inputType === 'number') {\n // 只允许输入数字\n value = value.replace(/[^0-9]/g, '');\n } else if (this.inputType === 'chinese') {\n // 只允许输入汉字\n value = value.replace(/[^\\u4e00-\\u9fa5]/g, '');\n } else if (this.inputType === 'english') {\n // 只允许输入英文\n value = value.replace(/[^a-zA-Z\\s]/g, '');\n } else if (this.inputType === 'amount') {\n // 只允许输入数字和小数点\n value = value.replace(/[^0-9.]/g, '');\n // 确保小数点只出现一次\n if (value.split('.').length > 2) {\n value = value.replace(/\\.+$/, '');\n }\n }\n this.inputValue = value;\n this.$emit('input', value);\n this.$emit('update:value', value);\n },\n clear() {\n this.$emit('clear');\n },\n btnClick() {\n this.$emit('btnClick');\n },\n handleEnter() {\n this.$emit('enter');\n },\n handleBlur() {\n this.$emit('blur', this.inputValue);\n }\n },\n watch: {\n value: {\n handler(newValue) {\n this.inputValue = newValue;\n },\n immediate: true\n }\n }\n});\n\n//# sourceURL=webpack://gyyg-components/./src/components/MecInput/MecInput.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
276
276
|
|
|
277
277
|
/***/ }),
|
|
278
278
|
|
|
@@ -464,7 +464,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
464
464
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
465
465
|
|
|
466
466
|
"use strict";
|
|
467
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", [_c(\"el-descriptions\", {\n attrs: {\n column: _vm.column,\n title: _vm.title,\n extra: _vm.extra,\n direction: _vm.direction,\n border: _vm.border\n },\n scopedSlots: _vm._u([{\n key: \"title\",\n fn: function () {\n return [_c(\"div\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.title))]), _c(\"div\", {\n staticClass: \"top-content\"\n }, [_vm._t(\"topContent\")], 2)];\n },\n proxy: true\n }], null, true)\n }, _vm._l(_vm.detailsData, function (item, index) {\n return _c(\"el-descriptions-item\", {\n key: index,\n attrs: {\n label: item.label\n }\n }, [item.type === \"img\" ? _c(\"div\", _vm._l(item.value, function (url, index) {\n return _c(\"el-image\", {\n key: index,\n staticStyle: {\n width: \"100px\",\n height: \"100px\",\n \"margin-right\": \"10px\"\n },\n attrs: {\n src: url,\n \"preview-src-list\": item.value\n }\n });\n }), 1) : item.type === \"voice\" ? _c(\"div\", _vm._l(item.value, function (item) {\n return _c(\"audio\", {\n key: item.id,\n staticStyle: {\n width: \"240px\",\n height: \"40px\"\n },\n attrs: {\n controls: \"controls\"\n }\n }, [_c(\"source\", {\n attrs: {\n src: item,\n type: \"audio/mp3\"\n }\n })]);\n }), 0) : _c(\"span\", [_vm._v(_vm._s(item.value))])]);\n }), 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2231733d96-vue-loader-template%22%7D!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
467
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", [_c(\"el-descriptions\", {\n attrs: {\n column: _vm.column,\n title: _vm.title,\n extra: _vm.extra,\n direction: _vm.direction,\n border: _vm.border\n },\n scopedSlots: _vm._u([{\n key: \"title\",\n fn: function () {\n return [_c(\"div\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.title))]), _c(\"div\", {\n staticClass: \"top-content\"\n }, [_vm._t(\"topContent\")], 2)];\n },\n proxy: true\n }], null, true)\n }, _vm._l(_vm.detailsData, function (item, index) {\n return _c(\"el-descriptions-item\", {\n key: index,\n attrs: {\n label: item.label,\n span: item.span || 1\n }\n }, [item.type === \"img\" ? _c(\"div\", _vm._l(item.value, function (url, index) {\n return _c(\"el-image\", {\n key: index,\n staticStyle: {\n width: \"100px\",\n height: \"100px\",\n \"margin-right\": \"10px\"\n },\n attrs: {\n src: url,\n \"preview-src-list\": item.value\n }\n });\n }), 1) : item.type === \"voice\" ? _c(\"div\", _vm._l(item.value, function (item) {\n return _c(\"audio\", {\n key: item.id,\n staticStyle: {\n width: \"240px\",\n height: \"40px\"\n },\n attrs: {\n controls: \"controls\"\n }\n }, [_c(\"source\", {\n attrs: {\n src: item,\n type: \"audio/mp3\"\n }\n })]);\n }), 0) : _c(\"span\", [_vm._v(_vm._s(item.value))])]);\n }), 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2231733d96-vue-loader-template%22%7D!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
468
468
|
|
|
469
469
|
/***/ }),
|
|
470
470
|
|
|
@@ -2233,7 +2233,7 @@ eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../.
|
|
|
2233
2233
|
/*! no static exports found */
|
|
2234
2234
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2235
2235
|
|
|
2236
|
-
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n[data-v-d0fa6bd6] .el-descriptions__header {\\n display: block;\\n}\\n.title[data-v-d0fa6bd6] {\\n padding-left: 10px;\\n height: 30px;\\n line-height: 30px;\\n background: #efefef;\\n margin-bottom: 10px;\\n font-weight: bold;\\n color: #606266;\\n font-size: 14px;\\n}\\n.top-content[data-v-d0fa6bd6] {\\n color: #606266;\\n font-size: 14px;\\n font-weight: normal;\\n}\\n[data-v-d0fa6bd6] .el-descriptions-item__label {\\n white-space: nowrap;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--11-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
2236
|
+
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n[data-v-d0fa6bd6] .el-descriptions__header {\\n display: block;\\n}\\n.title[data-v-d0fa6bd6] {\\n padding-left: 10px;\\n height: 30px;\\n line-height: 30px;\\n background: #efefef;\\n margin-bottom: 10px;\\n font-weight: bold;\\n color: #606266;\\n font-size: 14px;\\n}\\n.top-content[data-v-d0fa6bd6] {\\n color: #606266;\\n font-size: 14px;\\n font-weight: normal;\\n}\\n[data-v-d0fa6bd6] .el-descriptions-item__label {\\n white-space: nowrap;\\n}\\n[data-v-d0fa6bd6] .el-descriptions__body .el-descriptions__table .el-descriptions-item__cell {\\n white-space: pre-wrap;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MECDescriptions/MECDescriptions.vue?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--11-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
|
|
2237
2237
|
|
|
2238
2238
|
/***/ }),
|
|
2239
2239
|
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
|
-
<el-descriptions-item v-for="(item, index) in detailsData" :key="index" :label="item.label">
|
|
12
|
+
<el-descriptions-item v-for="(item, index) in detailsData" :key="index" :label="item.label" :span="item.span || 1">
|
|
13
13
|
<div v-if="item.type === 'img'">
|
|
14
14
|
<el-image
|
|
15
15
|
v-for="(url, index) in item.value"
|
|
@@ -93,4 +93,7 @@ export default {
|
|
|
93
93
|
/deep/ .el-descriptions-item__label {
|
|
94
94
|
white-space: nowrap;
|
|
95
95
|
}
|
|
96
|
+
/deep/ .el-descriptions__body .el-descriptions__table .el-descriptions-item__cell {
|
|
97
|
+
white-space: pre-wrap;
|
|
98
|
+
}
|
|
96
99
|
</style>
|
|
@@ -94,11 +94,14 @@
|
|
|
94
94
|
},
|
|
95
95
|
// 文本域行数(当type为'textarea'时有效)
|
|
96
96
|
rows: {
|
|
97
|
-
default:
|
|
97
|
+
default: 2
|
|
98
98
|
},
|
|
99
99
|
// 文本域是否自适应大小(当type为'textarea'时有效)
|
|
100
100
|
autosize: {
|
|
101
|
-
|
|
101
|
+
type: [Boolean, Object],
|
|
102
|
+
default: () => {
|
|
103
|
+
return { minRows: 2 }
|
|
104
|
+
}
|
|
102
105
|
},
|
|
103
106
|
prependText: {
|
|
104
107
|
type: String,
|