eoss-ui 0.5.13 → 0.5.14
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.
- package/lib/button.js +2 -2
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +39 -21
- package/lib/data-table-form.js +3 -2
- package/lib/data-table.js +1204 -1516
- package/lib/date-picker.js +2 -2
- package/lib/dialog.js +9 -9
- package/lib/eoss-ui.common.js +1210 -1751
- package/lib/flow-list.js +2 -2
- package/lib/flow.js +7 -6
- package/lib/form.js +4 -9
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +2 -2
- package/lib/input.js +2 -2
- package/lib/label.js +2 -2
- package/lib/layout.js +166 -152
- package/lib/main.js +6 -5
- package/lib/menu.js +2 -2
- package/lib/nav.js +9 -9
- package/lib/notify.js +2 -2
- package/lib/page.js +2 -2
- package/lib/pagination.js +2 -2
- package/lib/player.js +8 -8
- package/lib/qr-code.js +4 -4
- package/lib/radio-group.js +43 -21
- package/lib/retrial-auth.js +2 -2
- package/lib/select-ganged.js +25 -5
- package/lib/select.js +41 -18
- package/lib/selector-panel.js +6 -5
- package/lib/selector.js +4 -4
- package/lib/sizer.js +2 -2
- package/lib/steps.js +9 -9
- package/lib/switch.js +2 -2
- package/lib/table-form.js +2 -2
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +2 -2
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +2 -2
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +2 -2
- package/lib/tree.js +2 -2
- package/lib/upload.js +3 -3
- package/lib/wujie.js +2 -2
- package/lib/wxlogin.js +2 -2
- package/package.json +1 -1
- package/packages/checkbox-group/src/main.vue +20 -30
- package/packages/data-table/src/children.vue +4 -8
- package/packages/data-table/src/column.vue +522 -575
- package/packages/data-table/src/main.vue +95 -119
- package/packages/form/src/main.vue +2 -7
- package/packages/radio-group/src/main.vue +20 -30
- package/packages/select/src/main.vue +20 -29
- package/packages/select-ganged/src/main.vue +1 -3
- package/packages/theme-chalk/lib/data-table.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/data-table.scss +2 -1
- package/src/index.js +1 -1
- package/packages/data-table/src/column copy.vue +0 -977
- package/packages/data-table/src/main copy.vue +0 -1325
- package/packages/data-table/src/mixins/table.js +0 -12
package/lib/tips.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 63);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -3453,7 +3453,7 @@ module.exports = require("json-bigint");
|
|
|
3453
3453
|
|
|
3454
3454
|
/***/ }),
|
|
3455
3455
|
|
|
3456
|
-
/***/
|
|
3456
|
+
/***/ 63:
|
|
3457
3457
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3458
3458
|
|
|
3459
3459
|
"use strict";
|
package/lib/toolbar.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 79);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 79:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
package/lib/tree-group.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 65);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -3453,7 +3453,7 @@ module.exports = require("json-bigint");
|
|
|
3453
3453
|
|
|
3454
3454
|
/***/ }),
|
|
3455
3455
|
|
|
3456
|
-
/***/
|
|
3456
|
+
/***/ 65:
|
|
3457
3457
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3458
3458
|
|
|
3459
3459
|
"use strict";
|
package/lib/tree.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 64);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -3453,7 +3453,7 @@ module.exports = require("json-bigint");
|
|
|
3453
3453
|
|
|
3454
3454
|
/***/ }),
|
|
3455
3455
|
|
|
3456
|
-
/***/
|
|
3456
|
+
/***/ 64:
|
|
3457
3457
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3458
3458
|
|
|
3459
3459
|
"use strict";
|
package/lib/upload.js
CHANGED
|
@@ -3628,13 +3628,13 @@ window.__store = store;
|
|
|
3628
3628
|
/* 22 */,
|
|
3629
3629
|
/* 23 */,
|
|
3630
3630
|
/* 24 */,
|
|
3631
|
-
/* 25
|
|
3631
|
+
/* 25 */,
|
|
3632
|
+
/* 26 */
|
|
3632
3633
|
/***/ (function(module, exports) {
|
|
3633
3634
|
|
|
3634
3635
|
module.exports = require("js-base64");
|
|
3635
3636
|
|
|
3636
3637
|
/***/ }),
|
|
3637
|
-
/* 26 */,
|
|
3638
3638
|
/* 27 */,
|
|
3639
3639
|
/* 28 */,
|
|
3640
3640
|
/* 29 */,
|
|
@@ -4062,7 +4062,7 @@ var util = __webpack_require__(0);
|
|
|
4062
4062
|
var store = __webpack_require__(11);
|
|
4063
4063
|
|
|
4064
4064
|
// EXTERNAL MODULE: external "js-base64"
|
|
4065
|
-
var external_js_base64_ = __webpack_require__(
|
|
4065
|
+
var external_js_base64_ = __webpack_require__(26);
|
|
4066
4066
|
|
|
4067
4067
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=script&lang=js&
|
|
4068
4068
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
package/lib/wujie.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 67);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -3453,7 +3453,7 @@ module.exports = require("json-bigint");
|
|
|
3453
3453
|
|
|
3454
3454
|
/***/ }),
|
|
3455
3455
|
|
|
3456
|
-
/***/
|
|
3456
|
+
/***/ 67:
|
|
3457
3457
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3458
3458
|
|
|
3459
3459
|
"use strict";
|
package/lib/wxlogin.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 68);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -3453,7 +3453,7 @@ module.exports = require("json-bigint");
|
|
|
3453
3453
|
|
|
3454
3454
|
/***/ }),
|
|
3455
3455
|
|
|
3456
|
-
/***/
|
|
3456
|
+
/***/ 68:
|
|
3457
3457
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3458
3458
|
|
|
3459
3459
|
"use strict";
|
package/package.json
CHANGED
|
@@ -57,15 +57,13 @@
|
|
|
57
57
|
import { findSysCode } from 'eoss-ui/src/config/api.js';
|
|
58
58
|
import store from 'eoss-ui/src/utils/store';
|
|
59
59
|
import util from 'eoss-ui/src/utils/util';
|
|
60
|
+
import bus from 'eoss-ui/src/utils/bus';
|
|
60
61
|
export default {
|
|
61
62
|
name: 'EsCheckboxGroup',
|
|
62
63
|
inheritAttrs: false,
|
|
63
64
|
inject: {
|
|
64
65
|
esForm: {
|
|
65
66
|
default: ''
|
|
66
|
-
},
|
|
67
|
-
sysCodes: {
|
|
68
|
-
default: ''
|
|
69
67
|
}
|
|
70
68
|
},
|
|
71
69
|
props: {
|
|
@@ -226,30 +224,11 @@ export default {
|
|
|
226
224
|
handler() {
|
|
227
225
|
this.url && this.getData(this.url);
|
|
228
226
|
}
|
|
229
|
-
},
|
|
230
|
-
sysCodes: {
|
|
231
|
-
deep: true,
|
|
232
|
-
handler(val) {
|
|
233
|
-
if (
|
|
234
|
-
this.canceled &&
|
|
235
|
-
val &&
|
|
236
|
-
((this.sysCode && val[this.sysCode]) ||
|
|
237
|
-
(this.dataKey && val[this.dataKey]))
|
|
238
|
-
) {
|
|
239
|
-
if (this.parseData) {
|
|
240
|
-
this.options = this.parseData(
|
|
241
|
-
JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]))
|
|
242
|
-
);
|
|
243
|
-
} else {
|
|
244
|
-
this.options = JSON.parse(
|
|
245
|
-
JSON.stringify(val[this.sysCode || this.dataKey])
|
|
246
|
-
);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
227
|
}
|
|
251
228
|
},
|
|
252
|
-
created() {
|
|
229
|
+
created() {
|
|
230
|
+
this.bindEventBus();
|
|
231
|
+
},
|
|
253
232
|
mounted() {},
|
|
254
233
|
methods: {
|
|
255
234
|
getData(url, sysCode) {
|
|
@@ -283,11 +262,10 @@ export default {
|
|
|
283
262
|
if (res.rCode === 0) {
|
|
284
263
|
this.options = JSON.parse(JSON.stringify(res.results));
|
|
285
264
|
if (sysCode || this.dataKey) {
|
|
286
|
-
|
|
287
|
-
this.
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
);
|
|
265
|
+
bus.$emit(
|
|
266
|
+
sysCode || this.dataKey,
|
|
267
|
+
JSON.parse(JSON.stringify(this.options))
|
|
268
|
+
);
|
|
291
269
|
store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
|
|
292
270
|
}
|
|
293
271
|
} else {
|
|
@@ -315,7 +293,19 @@ export default {
|
|
|
315
293
|
);
|
|
316
294
|
}
|
|
317
295
|
return util.isObject(res) ? { ...attrs, ...res } : attrs;
|
|
296
|
+
},
|
|
297
|
+
setOptions(val) {
|
|
298
|
+
this.options = val;
|
|
299
|
+
},
|
|
300
|
+
bindEventBus() {
|
|
301
|
+
bus.$on(this.sysCode || this.dataKey, this.setOptions);
|
|
302
|
+
},
|
|
303
|
+
unbindEventBus() {
|
|
304
|
+
bus.$off(this.sysCode || this.dataKey, this.setOptions);
|
|
318
305
|
}
|
|
306
|
+
},
|
|
307
|
+
beforeDestroy() {
|
|
308
|
+
this.unbindEventBus();
|
|
319
309
|
}
|
|
320
310
|
};
|
|
321
311
|
</script>
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<column v-bind="$attrs" v-on="$listeners">
|
|
3
|
-
<template v-if="childrens
|
|
3
|
+
<template v-if="childrens.length">
|
|
4
4
|
<template v-for="(item, index) in childrens">
|
|
5
5
|
<children
|
|
6
6
|
v-if="item.hide !== true"
|
|
7
7
|
:key="index"
|
|
8
8
|
v-bind="{
|
|
9
9
|
...$attrs,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
width: item.width,
|
|
13
|
-
index: index,
|
|
14
|
-
children: item.children,
|
|
15
|
-
childHead: item.childHead
|
|
10
|
+
...item,
|
|
11
|
+
indexs: index
|
|
16
12
|
}"
|
|
17
13
|
v-on="$listeners"
|
|
18
14
|
></children
|
|
@@ -33,7 +29,7 @@ export default {
|
|
|
33
29
|
},
|
|
34
30
|
computed: {
|
|
35
31
|
childrens() {
|
|
36
|
-
return this.children || this.childHead;
|
|
32
|
+
return this.children || this.childHead || [];
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
35
|
};
|