shunjieavue 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
package/lib/avue.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Avue.js v1.0.4
2
+ * Avue.js v1.0.5
3
3
  * (c) 2017-2024 Smallwei
4
4
  * Released under the MIT License.
5
5
  *
@@ -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 var _this = this;\n this.$emit(\"refreshClick\");\n this.$refs.table.doLayout();\n this.$nextTick(function () {\n _this.rowDrop();\n });\n },\n confirmFun: function confirmFun() {\n this.columnBox = false;\n this.$emit(\"confirmClick\");\n },\n handleShow: function handleShow() {\n var _this2 = this;\n this.data = [];\n this.crud.propOption.forEach(function (column) {\n if (column.showColumn != false) _this2.data.push(column);\n });\n this.columnBox = true;\n this.$nextTick(function () {\n return _this2.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 _this3 = 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 _this3.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) {\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
 
@@ -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.4';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
5135
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '1.0.5';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
5136
5136
 
5137
5137
  /***/ }),
5138
5138