eoss 0.1.0-alpha.44 → 0.1.0-alpha.45
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-group.js +11 -9
- package/lib/button.js +5 -3
- package/lib/cascader.js +3 -3
- package/lib/color-picker.js +6 -3
- package/lib/date-picker.js +5 -3
- package/lib/eoss.common.js +516 -188
- package/lib/index.js +1 -1
- package/lib/input-number.js +6 -2
- package/lib/input.js +148 -87
- package/lib/select.js +212 -11
- package/lib/switch.js +6 -3
- package/lib/table-column.js +10 -1
- package/lib/table.js +64 -22
- package/lib/tag.js +2 -0
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/icons.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/tag.css +1 -1
- package/lib/time-picker.js +5 -3
- package/lib/time-select.js +5 -3
- package/package.json +1 -1
- package/packages/button/src/button-group.vue +9 -7
- package/packages/button/src/button.vue +7 -5
- package/packages/cascader/src/cascader.vue +1 -1
- package/packages/color-picker/src/color-picker.vue +4 -1
- package/packages/date-picker/src/picker.vue +3 -1
- package/packages/input/src/input.vue +94 -60
- package/packages/input-number/src/input-number.vue +5 -1
- package/packages/select/src/select.vue +182 -12
- package/packages/switch/src/switch.vue +4 -1
- package/packages/table/src/table-column.js +7 -1
- package/packages/table/src/table-header.js +52 -7
- package/packages/table/src/util.js +3 -0
- package/packages/tag/src/tag.vue +2 -0
- package/packages/theme-chalk/src/base.scss +7 -0
- package/packages/theme-chalk/src/icons.scss +13 -1
- package/packages/theme-chalk/src/table.scss +12 -2
- package/packages/theme-chalk/src/tag.scss +303 -242
- package/src/index.js +1 -1
package/lib/button-group.js
CHANGED
|
@@ -101,7 +101,7 @@ module.exports = require("eoss/lib/button");
|
|
|
101
101
|
// ESM COMPAT FLAG
|
|
102
102
|
__webpack_require__.r(__webpack_exports__);
|
|
103
103
|
|
|
104
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=template&id=
|
|
104
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=template&id=68a3f6ee&
|
|
105
105
|
var render = function () {
|
|
106
106
|
var _vm = this
|
|
107
107
|
var _h = _vm.$createElement
|
|
@@ -125,7 +125,7 @@ var render = function () {
|
|
|
125
125
|
{
|
|
126
126
|
key: _vm.getItemKey(item, index),
|
|
127
127
|
on: {
|
|
128
|
-
click: function (
|
|
128
|
+
click: function (evt) {
|
|
129
129
|
return _vm.handleClick(item, evt, index)
|
|
130
130
|
},
|
|
131
131
|
},
|
|
@@ -159,7 +159,7 @@ var staticRenderFns = []
|
|
|
159
159
|
render._withStripped = true
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
// CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=template&id=
|
|
162
|
+
// CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=template&id=68a3f6ee&
|
|
163
163
|
|
|
164
164
|
// EXTERNAL MODULE: external "eoss/lib/button"
|
|
165
165
|
var button_ = __webpack_require__(13);
|
|
@@ -309,7 +309,9 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
309
309
|
stop: {
|
|
310
310
|
type: Boolean,
|
|
311
311
|
default: false
|
|
312
|
-
}
|
|
312
|
+
},
|
|
313
|
+
// table行数据
|
|
314
|
+
rowData: Object
|
|
313
315
|
},
|
|
314
316
|
computed: {
|
|
315
317
|
/**
|
|
@@ -369,7 +371,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
369
371
|
var visibleButtons = this.contents.filter(function (item) {
|
|
370
372
|
var rules = item.rules;
|
|
371
373
|
if (rules && typeof rules === 'function') {
|
|
372
|
-
return rules(_this.data);
|
|
374
|
+
return rules(_this.data, _this.rowData);
|
|
373
375
|
}
|
|
374
376
|
return item.hide !== true;
|
|
375
377
|
});
|
|
@@ -426,14 +428,14 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
426
428
|
*/
|
|
427
429
|
handleClick: function handleClick(item, evt, index) {
|
|
428
430
|
if (item.event && typeof item.event === 'function') {
|
|
429
|
-
if (this.data) {
|
|
430
|
-
item.event(this.data, item, evt, index);
|
|
431
|
+
if (this.data && this.rowData) {
|
|
432
|
+
item.event(this.data, this.rowData, item, evt, index);
|
|
431
433
|
return;
|
|
432
434
|
}
|
|
433
435
|
item.event(item, evt, index);
|
|
434
436
|
} else {
|
|
435
|
-
if (this.data) {
|
|
436
|
-
this.$emit('click', this.data, item, evt, index);
|
|
437
|
+
if (this.data && this.rowData) {
|
|
438
|
+
this.$emit('click', this.data, this.rowData, item, evt, index);
|
|
437
439
|
return;
|
|
438
440
|
}
|
|
439
441
|
this.$emit('click', item, evt, index);
|
package/lib/button.js
CHANGED
|
@@ -248,7 +248,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
248
248
|
// 点击事件回调函数
|
|
249
249
|
event: [Function, String],
|
|
250
250
|
// 传递给点击事件的参数
|
|
251
|
-
param: [Object, String, Number, Array]
|
|
251
|
+
param: [Object, String, Number, Array],
|
|
252
|
+
// table行数据
|
|
253
|
+
rowData: Object
|
|
252
254
|
},
|
|
253
255
|
|
|
254
256
|
computed: {
|
|
@@ -314,12 +316,12 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
314
316
|
|
|
315
317
|
// 调用自定义事件处理函数(如果提供)
|
|
316
318
|
if (this.event && typeof this.event === 'function') {
|
|
317
|
-
this.event(this.param, this, evt);
|
|
319
|
+
this.event(this.param, this.rowData, this, evt);
|
|
318
320
|
return;
|
|
319
321
|
}
|
|
320
322
|
|
|
321
323
|
// 触发组件的click事件
|
|
322
|
-
this.$emit('click', evt, this.param, this);
|
|
324
|
+
this.$emit('click', evt, this, this.param, this.rowData);
|
|
323
325
|
}
|
|
324
326
|
},
|
|
325
327
|
|
package/lib/cascader.js
CHANGED
|
@@ -4013,7 +4013,7 @@ function scrollMove(wrap) {
|
|
|
4013
4013
|
// ESM COMPAT FLAG
|
|
4014
4014
|
__webpack_require__.r(__webpack_exports__);
|
|
4015
4015
|
|
|
4016
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader/src/cascader.vue?vue&type=template&id=
|
|
4016
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader/src/cascader.vue?vue&type=template&id=2e83a4a2&
|
|
4017
4017
|
var render = function () {
|
|
4018
4018
|
var _vm = this
|
|
4019
4019
|
var _h = _vm.$createElement
|
|
@@ -4058,7 +4058,7 @@ var render = function () {
|
|
|
4058
4058
|
attrs: {
|
|
4059
4059
|
size: _vm.realSize,
|
|
4060
4060
|
placeholder: _vm.placeholder,
|
|
4061
|
-
readonly: _vm.inputReadonly,
|
|
4061
|
+
"native-readonly": _vm.inputReadonly,
|
|
4062
4062
|
disabled: _vm.isDisabled,
|
|
4063
4063
|
"validate-event": false,
|
|
4064
4064
|
},
|
|
@@ -4329,7 +4329,7 @@ var staticRenderFns = []
|
|
|
4329
4329
|
render._withStripped = true
|
|
4330
4330
|
|
|
4331
4331
|
|
|
4332
|
-
// CONCATENATED MODULE: ./packages/cascader/src/cascader.vue?vue&type=template&id=
|
|
4332
|
+
// CONCATENATED MODULE: ./packages/cascader/src/cascader.vue?vue&type=template&id=2e83a4a2&
|
|
4333
4333
|
|
|
4334
4334
|
// EXTERNAL MODULE: ./src/utils/vue-popper.js
|
|
4335
4335
|
var vue_popper = __webpack_require__(34);
|
package/lib/color-picker.js
CHANGED
|
@@ -368,7 +368,7 @@ function _broadcast(componentName, eventName, params) {
|
|
|
368
368
|
// ESM COMPAT FLAG
|
|
369
369
|
__webpack_require__.r(__webpack_exports__);
|
|
370
370
|
|
|
371
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/color-picker.vue?vue&type=template&id=
|
|
371
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/color-picker.vue?vue&type=template&id=41259020&
|
|
372
372
|
var render = function () {
|
|
373
373
|
var _vm = this
|
|
374
374
|
var _h = _vm.$createElement
|
|
@@ -468,7 +468,7 @@ var staticRenderFns = []
|
|
|
468
468
|
render._withStripped = true
|
|
469
469
|
|
|
470
470
|
|
|
471
|
-
// CONCATENATED MODULE: ./packages/color-picker/src/color-picker.vue?vue&type=template&id=
|
|
471
|
+
// CONCATENATED MODULE: ./packages/color-picker/src/color-picker.vue?vue&type=template&id=41259020&
|
|
472
472
|
|
|
473
473
|
// CONCATENATED MODULE: ./packages/color-picker/src/color.js
|
|
474
474
|
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; };
|
|
@@ -2106,7 +2106,10 @@ var emitter = __webpack_require__(15);
|
|
|
2106
2106
|
if (value) {
|
|
2107
2107
|
this.color.fromString(value);
|
|
2108
2108
|
}
|
|
2109
|
-
|
|
2109
|
+
// 只读态下 dropdown 被 v-if 移除,需防护
|
|
2110
|
+
if (this.$refs.dropdown) {
|
|
2111
|
+
this.popperElm = this.$refs.dropdown.$el;
|
|
2112
|
+
}
|
|
2110
2113
|
},
|
|
2111
2114
|
data: function data() {
|
|
2112
2115
|
var color = new src_color({
|
package/lib/date-picker.js
CHANGED
|
@@ -3697,7 +3697,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
3697
3697
|
|
|
3698
3698
|
"use strict";
|
|
3699
3699
|
|
|
3700
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=template&id=
|
|
3700
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=template&id=3bc027b2&
|
|
3701
3701
|
var render = function () {
|
|
3702
3702
|
var _vm = this
|
|
3703
3703
|
var _h = _vm.$createElement
|
|
@@ -3723,7 +3723,7 @@ var render = function () {
|
|
|
3723
3723
|
staticClass: "es-date-editor",
|
|
3724
3724
|
class: "es-date-editor--" + _vm.type,
|
|
3725
3725
|
attrs: {
|
|
3726
|
-
readonly:
|
|
3726
|
+
"native-readonly":
|
|
3727
3727
|
!_vm.editable ||
|
|
3728
3728
|
_vm.readonly ||
|
|
3729
3729
|
_vm.type === "dates" ||
|
|
@@ -3881,7 +3881,7 @@ var staticRenderFns = []
|
|
|
3881
3881
|
render._withStripped = true
|
|
3882
3882
|
|
|
3883
3883
|
|
|
3884
|
-
// CONCATENATED MODULE: ./packages/date-picker/src/picker.vue?vue&type=template&id=
|
|
3884
|
+
// CONCATENATED MODULE: ./packages/date-picker/src/picker.vue?vue&type=template&id=3bc027b2&
|
|
3885
3885
|
|
|
3886
3886
|
// EXTERNAL MODULE: external "vue"
|
|
3887
3887
|
var external_vue_ = __webpack_require__(2);
|
|
@@ -4006,6 +4006,8 @@ var merge = __webpack_require__(23);
|
|
|
4006
4006
|
//
|
|
4007
4007
|
//
|
|
4008
4008
|
//
|
|
4009
|
+
//
|
|
4010
|
+
//
|
|
4009
4011
|
|
|
4010
4012
|
/**
|
|
4011
4013
|
* 日期时间选择器基础组件
|