eoss-ui 0.4.38 → 0.4.39

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.
@@ -2664,7 +2664,7 @@ module.exports = require("qs");
2664
2664
  // ESM COMPAT FLAG
2665
2665
  __webpack_require__.r(__webpack_exports__);
2666
2666
 
2667
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/main.vue?vue&type=template&id=7968c9c6&
2667
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/main.vue?vue&type=template&id=4801ad47&
2668
2668
  var render = function () {
2669
2669
  var _vm = this
2670
2670
  var _h = _vm.$createElement
@@ -2905,7 +2905,7 @@ var staticRenderFns = []
2905
2905
  render._withStripped = true
2906
2906
 
2907
2907
 
2908
- // CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=7968c9c6&
2908
+ // CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=4801ad47&
2909
2909
 
2910
2910
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/tree.vue?vue&type=template&id=24ad732a&
2911
2911
  var treevue_type_template_id_24ad732a_render = function () {
@@ -3203,8 +3203,8 @@ var component = Object(componentNormalizer["a" /* default */])(
3203
3203
  )
3204
3204
 
3205
3205
  /* harmony default export */ var tree = (component.exports);
3206
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/selection.vue?vue&type=template&id=763cb60b&
3207
- var selectionvue_type_template_id_763cb60b_render = function () {
3206
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/selection.vue?vue&type=template&id=66e09547&
3207
+ var selectionvue_type_template_id_66e09547_render = function () {
3208
3208
  var _vm = this
3209
3209
  var _h = _vm.$createElement
3210
3210
  var _c = _vm._self._c || _h
@@ -3245,16 +3245,12 @@ var selectionvue_type_template_id_763cb60b_render = function () {
3245
3245
  key: index,
3246
3246
  class: { "es-radio-delete": _vm.genre === "delete" },
3247
3247
  attrs: {
3248
- ssss:
3249
- typeof item == "string" ? item : item[_vm.valueKey],
3250
3248
  label:
3251
3249
  _vm.isObject || typeof item == "string"
3252
3250
  ? item
3253
- : item[_vm.valueKey],
3251
+ : item[_vm.valKey],
3254
3252
  disabled:
3255
- _vm.isObject || typeof item == "string"
3256
- ? false
3257
- : item.disabled,
3253
+ typeof item == "string" ? false : item.disabled,
3258
3254
  "value-key": _vm.valueKey,
3259
3255
  },
3260
3256
  },
@@ -3306,7 +3302,7 @@ var selectionvue_type_template_id_763cb60b_render = function () {
3306
3302
  label:
3307
3303
  _vm.isObject || typeof item == "string"
3308
3304
  ? item
3309
- : item[_vm.valueKey],
3305
+ : item[_vm.valKey],
3310
3306
  disabled:
3311
3307
  typeof item == "string" ? false : item.disabled,
3312
3308
  "value-key": _vm.valueKey,
@@ -3347,11 +3343,11 @@ var selectionvue_type_template_id_763cb60b_render = function () {
3347
3343
  1
3348
3344
  )
3349
3345
  }
3350
- var selectionvue_type_template_id_763cb60b_staticRenderFns = []
3351
- selectionvue_type_template_id_763cb60b_render._withStripped = true
3346
+ var selectionvue_type_template_id_66e09547_staticRenderFns = []
3347
+ selectionvue_type_template_id_66e09547_render._withStripped = true
3352
3348
 
3353
3349
 
3354
- // CONCATENATED MODULE: ./packages/selector-panel/src/selection.vue?vue&type=template&id=763cb60b&
3350
+ // CONCATENATED MODULE: ./packages/selector-panel/src/selection.vue?vue&type=template&id=66e09547&
3355
3351
 
3356
3352
  // EXTERNAL MODULE: external "sortablejs"
3357
3353
  var external_sortablejs_ = __webpack_require__(24);
@@ -3410,9 +3406,6 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3410
3406
  //
3411
3407
  //
3412
3408
  //
3413
- //
3414
- //
3415
- //
3416
3409
 
3417
3410
 
3418
3411
 
@@ -3468,13 +3461,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3468
3461
 
3469
3462
  selectes: {
3470
3463
  get: function get() {
3471
- if (this.multiple) {
3472
- if (!Array.isArray(this.value)) {
3473
- return [this.value];
3474
- }
3475
- return this.value;
3476
- }
3477
- if (Array.isArray(this.value)) {
3464
+ if (!this.multiple && this.value && this.value.length) {
3478
3465
  return this.value[0];
3479
3466
  }
3480
3467
  return this.value;
@@ -3524,8 +3511,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3524
3511
 
3525
3512
  var selection_component = Object(componentNormalizer["a" /* default */])(
3526
3513
  src_selectionvue_type_script_lang_js_,
3527
- selectionvue_type_template_id_763cb60b_render,
3528
- selectionvue_type_template_id_763cb60b_staticRenderFns,
3514
+ selectionvue_type_template_id_66e09547_render,
3515
+ selectionvue_type_template_id_66e09547_staticRenderFns,
3529
3516
  false,
3530
3517
  null,
3531
3518
  null,
@@ -4104,7 +4091,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4104
4091
  });
4105
4092
  this.checkAll = flag;
4106
4093
  },
4107
- checkeds: function checkeds(val, old) {
4094
+ checkeds: function checkeds(res, old) {
4095
+ var val = res;
4096
+ if (!Array.isArray(val)) {
4097
+ this.checkeds = [res];
4098
+ return;
4099
+ }
4108
4100
  if (old.length > 0) {
4109
4101
  if (val.length < old.length) {
4110
4102
  this.checkAll = false;
package/lib/selector.js CHANGED
@@ -2678,7 +2678,7 @@ module.exports = require("eoss-element");
2678
2678
  // ESM COMPAT FLAG
2679
2679
  __webpack_require__.r(__webpack_exports__);
2680
2680
 
2681
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=d2169714&
2681
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=7bec503c&
2682
2682
  var render = function () {
2683
2683
  var _vm = this
2684
2684
  var _h = _vm.$createElement
@@ -3152,7 +3152,7 @@ var staticRenderFns = []
3152
3152
  render._withStripped = true
3153
3153
 
3154
3154
 
3155
- // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=d2169714&
3155
+ // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=7bec503c&
3156
3156
 
3157
3157
  // EXTERNAL MODULE: ./src/utils/util.js
3158
3158
  var util = __webpack_require__(0);
@@ -3560,9 +3560,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
3560
3560
  selected: {
3561
3561
  deep: true,
3562
3562
  handler: function handler(val) {
3563
- if (Array.isArray(val)) {
3564
- this.$emit('change', val);
3565
- }
3563
+ this.$emit('change', val);
3566
3564
  if (this.multiple) {
3567
3565
  this.resetInputHeight();
3568
3566
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.38",
3
+ "version": "0.4.39",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -3,7 +3,7 @@ export default {
3
3
  contents() {
4
4
  return [
5
5
  [
6
- { tips: '正文', trigger: 'click', dropdown: this._tags },
6
+ { tips: '正文', value: this.tag, trigger: 'click', dropdown: this._tags },
7
7
  {
8
8
  tips: '引用',
9
9
  path: ['M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z']
@@ -55,6 +55,46 @@ export default {
55
55
  path: ['M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0']
56
56
  }
57
57
  ]
58
+ },
59
+ {
60
+ colors: true,
61
+ tips: '文字颜色'
62
+ },
63
+ {
64
+ colors: true,
65
+ tips: '背景颜色',
66
+ title: '清除背景色',
67
+ path: ['M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z']
68
+ }
69
+ ],
70
+ [
71
+ { tips: '字号', value: this.fontSize, trigger: 'click', dropdown: this._fontSizes },
72
+ { tips: '字体', value: this.fontFamily, trigger: 'click', dropdown: this._fontFamilys },
73
+ { tips: '字体', value: this.lineHeight, trigger: 'click', dropdown: this._lineHeights }
74
+ ],
75
+ [
76
+ {
77
+ tips: '无序列表',
78
+ path: ['M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z']
79
+ },
80
+ {
81
+ tips: '有序列表',
82
+ path: ['M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z']
83
+ },
84
+ {
85
+ tips: '',
86
+ title: '',
87
+ path: ['']
88
+ },
89
+ {
90
+ tips: '',
91
+ title: '',
92
+ path: ['']
93
+ },
94
+ {
95
+ tips: '',
96
+ title: '',
97
+ path: ['']
58
98
  }
59
99
  ]
60
100
  ];
@@ -281,7 +281,6 @@
281
281
  content="无序列表"
282
282
  placement="bottom"
283
283
  >
284
- <div class="es-text-center" slot="content">无序列表</div>
285
284
  <el-button size="small">
286
285
  <svg class="es-icon-svg" viewBox="0 0 1024 1024">
287
286
  <path
@@ -298,7 +297,6 @@
298
297
  content="有序列表"
299
298
  placement="bottom"
300
299
  >
301
- <div class="es-text-center" slot="content">有序列表</div>
302
300
  <el-button size="small">
303
301
  <svg class="es-icon-svg" viewBox="0 0 1024 1024">
304
302
  <path
@@ -391,9 +391,7 @@ export default {
391
391
  selected: {
392
392
  deep: true,
393
393
  handler(val) {
394
- if (Array.isArray(val)) {
395
- this.$emit('change', val);
396
- }
394
+ this.$emit('change', val);
397
395
  if (this.multiple) {
398
396
  this.resetInputHeight();
399
397
  }
@@ -570,7 +570,12 @@ export default {
570
570
  });
571
571
  this.checkAll = flag;
572
572
  },
573
- checkeds(val, old) {
573
+ checkeds(res, old) {
574
+ let val = res;
575
+ if (!Array.isArray(val)) {
576
+ this.checkeds = [res];
577
+ return;
578
+ }
574
579
  if (old.length > 0) {
575
580
  if (val.length < old.length) {
576
581
  this.checkAll = false;
@@ -12,11 +12,8 @@
12
12
  v-for="(item, index) in data"
13
13
  :key="index"
14
14
  v-bind="getprops($attrs, item)"
15
- :ssss="typeof item == 'string' ? item : item[valueKey]"
16
- :label="isObject || typeof item == 'string' ? item : item[valueKey]"
17
- :disabled="
18
- isObject || typeof item == 'string' ? false : item.disabled
19
- "
15
+ :label="isObject || typeof item == 'string' ? item : item[valKey]"
16
+ :disabled="typeof item == 'string' ? false : item.disabled"
20
17
  :class="{ 'es-radio-delete': genre === 'delete' }"
21
18
  :value-key="valueKey"
22
19
  >
@@ -36,7 +33,7 @@
36
33
  v-for="(item, index) in data"
37
34
  :key="index"
38
35
  v-bind="getprops($attrs, item)"
39
- :label="isObject || typeof item == 'string' ? item : item[valueKey]"
36
+ :label="isObject || typeof item == 'string' ? item : item[valKey]"
40
37
  :disabled="typeof item == 'string' ? false : item.disabled"
41
38
  :class="{ 'es-checkbox-delete': genre === 'delete' }"
42
39
  :value-key="valueKey"
@@ -106,13 +103,7 @@ export default {
106
103
  },
107
104
  selectes: {
108
105
  get() {
109
- if (this.multiple) {
110
- if (!Array.isArray(this.value)) {
111
- return [this.value];
112
- }
113
- return this.value;
114
- }
115
- if (Array.isArray(this.value)) {
106
+ if (!this.multiple && this.value && this.value.length) {
116
107
  return this.value[0];
117
108
  }
118
109
  return this.value;
package/src/index.js CHANGED
@@ -117,7 +117,7 @@ if (typeof window !== 'undefined' && window.Vue) {
117
117
  }
118
118
 
119
119
  export default {
120
- version: '0.4.38',
120
+ version: '0.4.39',
121
121
  install,
122
122
  Button,
123
123
  ButtonGroup,