gyyg-components 0.3.2 → 0.3.3
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.
|
@@ -515,7 +515,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
515
515
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
516
516
|
|
|
517
517
|
"use strict";
|
|
518
|
-
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(\"el-form\", {\n ref: \"formData\",\n attrs: {\n model: _vm.formData,\n \"label-width\": _vm.labelWidth,\n \"label-position\": _vm.labelPosition\n }\n }, [_vm._l(_vm.formData, function (item, index) {\n return [typeof item.displayWith !== \"function\" || item.displayWith(_vm.formData, item) ? _c(\"el-col\", {\n key: index,\n style: item.style,\n attrs: {\n span: item.col\n }\n }, [_c(\"el-form-item\", _vm._b({\n class: item.class,\n attrs: {\n prop: _vm.getProp(item, index),\n rules: item.rules,\n \"label-width\": item.labelWidth\n }\n }, \"el-form-item\", item, false), [_c(\"template\", {\n slot: \"label\"\n }, [item.label ? _c(\"span\", [
|
|
518
|
+
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(\"el-form\", {\n ref: \"formData\",\n attrs: {\n model: _vm.formData,\n \"label-width\": _vm.labelWidth,\n \"label-position\": _vm.labelPosition\n }\n }, [_vm._l(_vm.formData, function (item, index) {\n return [typeof item.displayWith !== \"function\" || item.displayWith(_vm.formData, item) ? _c(\"el-col\", {\n key: index,\n style: item.style,\n attrs: {\n span: item.col\n }\n }, [_c(\"el-form-item\", _vm._b({\n class: item.class,\n attrs: {\n prop: _vm.getProp(item, index),\n rules: item.rules,\n \"label-width\": item.labelWidth\n }\n }, \"el-form-item\", item, false), [_c(\"template\", {\n slot: \"label\"\n }, [item.label ? _c(\"span\", [_c(\"span\", {\n style: \"color:\" + item.labelColor\n }, [_vm._v(_vm._s(item.label))]), item.tooltip ? _c(\"el-tooltip\", {\n staticClass: \"item\",\n attrs: {\n effect: \"dark\",\n content: item.tooltip,\n placement: \"top\"\n }\n }, [_c(\"i\", {\n staticClass: \"el-icon-question\"\n })]) : _vm._e()], 1) : _vm._e()]), _c(item[\"componentName\"], _vm._g(_vm._b({\n tag: \"component\",\n attrs: {\n value: item.value,\n otherValue: item.otherValue\n },\n on: {\n \"update:value\": function ($event) {\n return _vm.$set(item, \"value\", $event);\n },\n \"update:otherValue\": function ($event) {\n return _vm.$set(item, \"otherValue\", $event);\n },\n \"update:other-value\": function ($event) {\n return _vm.$set(item, \"otherValue\", $event);\n }\n },\n model: {\n value: item.value,\n callback: function ($$v) {\n _vm.$set(item, \"value\", $$v);\n },\n expression: \"item.value\"\n }\n }, \"component\", item, false), item.componentListeners))], 2)], 1) : _vm._e()];\n })], 2);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MecForm/MecForm.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2279107ecc-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");
|
|
519
519
|
|
|
520
520
|
/***/ }),
|
|
521
521
|
|
|
@@ -524,7 +524,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
524
524
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
525
525
|
|
|
526
526
|
"use strict";
|
|
527
|
-
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(\"el-form\", {\n ref: \"formData\",\n attrs: {\n model: _vm.formData,\n \"label-width\": _vm.labelWidth,\n \"label-position\": _vm.labelPosition\n }\n }, [_vm._l(_vm.formData, function (item, index) {\n return [typeof item.displayWith !== \"function\" || item.displayWith(_vm.formData, item) ? _c(\"el-col\", {\n key: index,\n style: item.style,\n attrs: {\n span: item.col\n }\n }, [_c(\"el-form-item\", _vm._b({\n class: item.class,\n attrs: {\n prop: _vm.getProp(item, index),\n rules: item.rules,\n \"label-width\": item.labelWidth\n }\n }, \"el-form-item\", item, false), [_c(\"template\", {\n slot: \"label\"\n }, [item.label ? _c(\"span\", [
|
|
527
|
+
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(\"el-form\", {\n ref: \"formData\",\n attrs: {\n model: _vm.formData,\n \"label-width\": _vm.labelWidth,\n \"label-position\": _vm.labelPosition\n }\n }, [_vm._l(_vm.formData, function (item, index) {\n return [typeof item.displayWith !== \"function\" || item.displayWith(_vm.formData, item) ? _c(\"el-col\", {\n key: index,\n style: item.style,\n attrs: {\n span: item.col\n }\n }, [_c(\"el-form-item\", _vm._b({\n class: item.class,\n attrs: {\n prop: _vm.getProp(item, index),\n rules: item.rules,\n \"label-width\": item.labelWidth\n }\n }, \"el-form-item\", item, false), [_c(\"template\", {\n slot: \"label\"\n }, [item.label ? _c(\"span\", [_c(\"span\", {\n style: \"color:\" + item.labelColor\n }, [_vm._v(_vm._s(item.label))]), item.tooltip ? _c(\"el-tooltip\", {\n staticClass: \"item\",\n attrs: {\n effect: \"dark\",\n content: item.tooltip,\n placement: \"top\"\n }\n }, [_c(\"i\", {\n staticClass: \"el-icon-question\"\n })]) : _vm._e()], 1) : _vm._e()]), _c(item[\"componentName\"], _vm._g(_vm._b({\n tag: \"component\",\n attrs: {\n value: item.value,\n otherValue: item.otherValue\n },\n on: {\n \"update:value\": function ($event) {\n return _vm.$set(item, \"value\", $event);\n },\n \"update:otherValue\": function ($event) {\n return _vm.$set(item, \"otherValue\", $event);\n },\n \"update:other-value\": function ($event) {\n return _vm.$set(item, \"otherValue\", $event);\n }\n },\n model: {\n value: item.value,\n callback: function ($$v) {\n _vm.$set(item, \"value\", $$v);\n },\n expression: \"item.value\"\n }\n }, \"component\", item, false), item.componentListeners))], 2)], 1) : _vm._e()];\n })], 2);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MecForm/MecForm.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2279107ecc-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");
|
|
528
528
|
|
|
529
529
|
/***/ }),
|
|
530
530
|
|
|
@@ -524,7 +524,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
524
524
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
525
525
|
|
|
526
526
|
"use strict";
|
|
527
|
-
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(\"el-form\", {\n ref: \"formData\",\n attrs: {\n model: _vm.formData,\n \"label-width\": _vm.labelWidth,\n \"label-position\": _vm.labelPosition\n }\n }, [_vm._l(_vm.formData, function (item, index) {\n return [typeof item.displayWith !== \"function\" || item.displayWith(_vm.formData, item) ? _c(\"el-col\", {\n key: index,\n style: item.style,\n attrs: {\n span: item.col\n }\n }, [_c(\"el-form-item\", _vm._b({\n class: item.class,\n attrs: {\n prop: _vm.getProp(item, index),\n rules: item.rules,\n \"label-width\": item.labelWidth\n }\n }, \"el-form-item\", item, false), [_c(\"template\", {\n slot: \"label\"\n }, [item.label ? _c(\"span\", [
|
|
527
|
+
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(\"el-form\", {\n ref: \"formData\",\n attrs: {\n model: _vm.formData,\n \"label-width\": _vm.labelWidth,\n \"label-position\": _vm.labelPosition\n }\n }, [_vm._l(_vm.formData, function (item, index) {\n return [typeof item.displayWith !== \"function\" || item.displayWith(_vm.formData, item) ? _c(\"el-col\", {\n key: index,\n style: item.style,\n attrs: {\n span: item.col\n }\n }, [_c(\"el-form-item\", _vm._b({\n class: item.class,\n attrs: {\n prop: _vm.getProp(item, index),\n rules: item.rules,\n \"label-width\": item.labelWidth\n }\n }, \"el-form-item\", item, false), [_c(\"template\", {\n slot: \"label\"\n }, [item.label ? _c(\"span\", [_c(\"span\", {\n style: \"color:\" + item.labelColor\n }, [_vm._v(_vm._s(item.label))]), item.tooltip ? _c(\"el-tooltip\", {\n staticClass: \"item\",\n attrs: {\n effect: \"dark\",\n content: item.tooltip,\n placement: \"top\"\n }\n }, [_c(\"i\", {\n staticClass: \"el-icon-question\"\n })]) : _vm._e()], 1) : _vm._e()]), _c(item[\"componentName\"], _vm._g(_vm._b({\n tag: \"component\",\n attrs: {\n value: item.value,\n otherValue: item.otherValue\n },\n on: {\n \"update:value\": function ($event) {\n return _vm.$set(item, \"value\", $event);\n },\n \"update:otherValue\": function ($event) {\n return _vm.$set(item, \"otherValue\", $event);\n },\n \"update:other-value\": function ($event) {\n return _vm.$set(item, \"otherValue\", $event);\n }\n },\n model: {\n value: item.value,\n callback: function ($$v) {\n _vm.$set(item, \"value\", $$v);\n },\n expression: \"item.value\"\n }\n }, \"component\", item, false), item.componentListeners))], 2)], 1) : _vm._e()];\n })], 2);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://gyyg-components/./src/components/MecForm/MecForm.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2279107ecc-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");
|
|
528
528
|
|
|
529
529
|
/***/ }),
|
|
530
530
|
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:label-width="item.labelWidth">
|
|
19
19
|
<template slot="label">
|
|
20
20
|
<span v-if="item.label">
|
|
21
|
-
{{ item.label }}
|
|
21
|
+
<span :style="'color:' + item.labelColor">{{ item.label }}</span>
|
|
22
22
|
<el-tooltip v-if="item.tooltip" class="item" effect="dark" :content="item.tooltip" placement="top">
|
|
23
23
|
<i class="el-icon-question"></i>
|
|
24
24
|
</el-tooltip>
|