shunjieavue 1.0.5 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +3 -3
- package/lib/avue.min.js +2 -2
- package/package.json +1 -1
package/lib/avue.js
CHANGED
@@ -658,7 +658,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
658
658
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
659
659
|
|
660
660
|
"use strict";
|
661
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config.js */ \"./packages/element-ui/crud/config.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud\",\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n inject: [\"crud\"],\n data: function data() {\n return {\n data: [],\n columnBox: false\n };\n },\n computed: {\n defaultColumn: function defaultColumn() {\n return [{\n label: this.t(\"crud.column.hide\"),\n prop: \"hide\"\n }, {\n label: this.t(\"crud.column.fixed\"),\n prop: \"fixed\"\n }, {\n label: this.t(\"crud.column.filters\"),\n prop: \"filters\"\n }, {\n label: this.t(\"crud.column.sortable\"),\n prop: \"sortable\"\n }, {\n label: this.t(\"crud.column.width\"),\n prop: \"width\",\n hide: true\n }];\n }\n },\n methods: {\n refreshFun: function refreshFun() {\n this.crud.objectOption = {};\n this.$emit(\"refreshClick\");\n },\n confirmFun: function confirmFun() {\n this.columnBox = false;\n this.$emit(\"confirmClick\");\n },\n handleShow: function handleShow() {\n var _this = this;\n this.data = [];\n this.crud.propOption.forEach(function (column) {\n if (column.showColumn != false) _this.data.push(column);\n });\n this.columnBox = true;\n this.$nextTick(function () {\n return _this.rowDrop();\n });\n },\n handleChange: function handleChange(prop) {\n if (prop === \"hide\") {\n this.crud.doLayout();\n } else if (prop === \"filters\") {\n this.crud.refreshTable();\n }\n },\n rowDrop: function rowDrop() {\n var _this2 = this;\n var el = this.$refs.table.$el.querySelectorAll(_config_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].dropRowClass)[0];\n this.crud.tableDrop(\"column\", el, function (evt) {\n var oldIndex = evt.oldIndex;\n var newIndex = evt.newIndex;\n _this2.crud.headerSort(oldIndex, newIndex);\n });\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog/dialog-column.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
661
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config.js */ \"./packages/element-ui/crud/config.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud\",\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n inject: [\"crud\"],\n data: function data() {\n return {\n data: [],\n columnBox: false\n };\n },\n computed: {\n defaultColumn: function defaultColumn() {\n return [{\n label: this.t(\"crud.column.hide\"),\n prop: \"hide\"\n }, {\n label: this.t(\"crud.column.fixed\"),\n prop: \"fixed\"\n }, {\n label: this.t(\"crud.column.filters\"),\n prop: \"filters\"\n }, {\n label: this.t(\"crud.column.sortable\"),\n prop: \"sortable\"\n }, {\n label: this.t(\"crud.column.width\"),\n prop: \"width\",\n hide: true\n }];\n }\n },\n methods: {\n refreshFun: function refreshFun() {\n this.crud.objectOption = {};\n this.$emit(\"refreshClick\");\n },\n confirmFun: function confirmFun() {\n this.columnBox = false;\n this.$emit(\"confirmClick\");\n },\n handleShow: function handleShow() {\n var _this = this;\n this.data = [];\n this.crud.propOption.forEach(function (column) {\n if (column.showColumn != false) _this.data.push(column);\n });\n this.columnBox = true;\n this.$nextTick(function () {\n return _this.rowDrop();\n });\n },\n handleChange: function handleChange(prop, row) {\n console.log(prop, row);\n if (prop === \"hide\") {\n this.crud.doLayout();\n } else if (prop === \"filters\") {\n this.crud.refreshTable();\n }\n },\n rowDrop: function rowDrop() {\n var _this2 = this;\n var el = this.$refs.table.$el.querySelectorAll(_config_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].dropRowClass)[0];\n this.crud.tableDrop(\"column\", el, function (evt) {\n var oldIndex = evt.oldIndex;\n var newIndex = evt.newIndex;\n _this2.crud.headerSort(oldIndex, newIndex);\n });\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog/dialog-column.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
662
662
|
|
663
663
|
/***/ }),
|
664
664
|
|
@@ -1556,7 +1556,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1556
1556
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1557
1557
|
|
1558
1558
|
"use strict";
|
1559
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\
|
1559
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_table_column = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-table-column\")\n const _component_el_checkbox = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-checkbox\")\n const _component_el_table = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-table\")\n const _component_el_drawer = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-drawer\")\n\n return (_ctx.columnBox)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_drawer, {\n key: 0,\n \"append-to-body\": _ctx.$AVUE.appendToBody,\n \"lock-scroll\": \"\",\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(['avue-dialog', _ctx.b('column')].join(' ')),\n title: _ctx.t('crud.showTitle'),\n size: _ctx.crud.isMobile ? '100%' : '40%',\n modelValue: _ctx.columnBox,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => ((_ctx.columnBox) = $event))\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\" <template #header>\\r\\n <div style=\\\"flex: auto\\\">\\r\\n <el-button @click=\\\"refreshFun\\\" type=\\\"warning\\\">重置</el-button>\\r\\n <el-button type=\\\"primary\\\" @click=\\\"confirmFun\\\">保存</el-button>\\r\\n </div>\\r\\n </template> \"),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_table, {\n data: _ctx.data,\n ref: \"table\",\n height: \"100%\",\n size: _ctx.crud.size,\n border: \"\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_table_column, {\n align: \"center\",\n width: \"100\",\n \"header-align\": \"center\",\n prop: \"label\",\n key: \"label\",\n label: _ctx.t('crud.column.name')\n }, null, 8 /* PROPS */, [\"label\"]),\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(_ctx.defaultColumn, (item) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], {\n key: item.prop\n }, [\n (item.hide !== true)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_table_column, {\n key: 0,\n label: item.label,\n prop: item.prop,\n align: \"center\",\n \"header-align\": \"center\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(({ row }) => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_checkbox, {\n onChange: $event => (_ctx.handleChange(item.prop, row)),\n modelValue: _ctx.crud.objectOption[row.prop][item.prop],\n \"onUpdate:modelValue\": $event => ((_ctx.crud.objectOption[row.prop][item.prop]) = $event)\n }, null, 8 /* PROPS */, [\"onChange\", \"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"label\", \"prop\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 64 /* STABLE_FRAGMENT */))\n }), 128 /* KEYED_FRAGMENT */))\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"data\", \"size\"])\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"append-to-body\", \"class\", \"title\", \"size\", \"modelValue\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n}\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog/dialog-column.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1560
1560
|
|
1561
1561
|
/***/ }),
|
1562
1562
|
|
@@ -5132,7 +5132,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
5132
5132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5133
5133
|
|
5134
5134
|
"use strict";
|
5135
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '1.0.
|
5135
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '1.0.7';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
|
5136
5136
|
|
5137
5137
|
/***/ }),
|
5138
5138
|
|