eoss-ui 0.7.16 → 0.7.18

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.
Files changed (35) hide show
  1. package/lib/eoss-ui.common.js +1076 -782
  2. package/lib/flow.js +102 -44
  3. package/lib/form.js +631 -425
  4. package/lib/handler.js +58 -50
  5. package/lib/icon.js +7 -4
  6. package/lib/index.js +1 -1
  7. package/lib/main.js +74 -56
  8. package/lib/table-form.js +9 -8
  9. package/lib/theme-chalk/form.css +1 -1
  10. package/lib/theme-chalk/handler.css +1 -1
  11. package/lib/theme-chalk/index.css +1 -1
  12. package/lib/theme-chalk/main.css +1 -1
  13. package/lib/theme-chalk/simplicity.css +1 -1
  14. package/package.json +1 -1
  15. package/packages/flow/src/component/Circulate.vue +12 -9
  16. package/packages/flow/src/component/FreeCirculation.vue +10 -5
  17. package/packages/flow/src/component/taskUnionExamine.vue +35 -29
  18. package/packages/flow/src/freeStartFlow.vue +5 -3
  19. package/packages/flow/src/main.vue +35 -17
  20. package/packages/form/src/main.vue +52 -1
  21. package/packages/form/src/table.vue +7 -3
  22. package/packages/handler/src/main.vue +31 -27
  23. package/packages/icon/src/main.vue +5 -2
  24. package/packages/main/src/default/index.vue +2 -6
  25. package/packages/main/src/main.vue +2 -1
  26. package/packages/main/src/simplicity/handler.vue +25 -21
  27. package/packages/theme-chalk/lib/form.css +1 -1
  28. package/packages/theme-chalk/lib/handler.css +1 -1
  29. package/packages/theme-chalk/lib/index.css +1 -1
  30. package/packages/theme-chalk/lib/main.css +1 -1
  31. package/packages/theme-chalk/lib/simplicity.css +1 -1
  32. package/packages/theme-chalk/src/form.scss +2 -0
  33. package/packages/theme-chalk/src/handler.scss +5 -0
  34. package/packages/theme-chalk/src/simplicity.scss +5 -0
  35. package/src/index.js +1 -1
package/lib/handler.js CHANGED
@@ -4151,7 +4151,7 @@ module.exports = require("qs");
4151
4151
  // ESM COMPAT FLAG
4152
4152
  __webpack_require__.r(__webpack_exports__);
4153
4153
 
4154
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=bb219fb0&
4154
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=66f7fc3a&
4155
4155
  var render = function () {
4156
4156
  var _vm = this
4157
4157
  var _h = _vm.$createElement
@@ -4302,26 +4302,17 @@ var render = function () {
4302
4302
  },
4303
4303
  },
4304
4304
  [
4305
- _c("i", {
4306
- class: [
4307
- _vm.unicode(ele.icons)
4308
- ? ele.icons
4309
- : "es-icon",
4305
+ _c("es-icon", {
4306
+ staticClass:
4310
4307
  "es-sub-system-icon",
4311
- {
4312
- "es-icon-yingyong":
4313
- !ele.icons,
4314
- },
4315
- ],
4316
- domProps: {
4317
- innerHTML: _vm._s(
4318
- _vm.unicode(ele.icons)
4319
- ? ""
4320
- : ele.icons
4321
- ),
4308
+ attrs: {
4309
+ contents:
4310
+ ele.icons ||
4311
+ "es-icon-yingyong",
4322
4312
  },
4323
4313
  }),
4324
- ]
4314
+ ],
4315
+ 1
4325
4316
  ),
4326
4317
  _c(
4327
4318
  "div",
@@ -4349,42 +4340,55 @@ var render = function () {
4349
4340
  ],
4350
4341
  1
4351
4342
  )
4352
- : item.type === "notice"
4353
- ? _c(
4354
- "el-badge",
4343
+ : _c(
4344
+ "el-tooltip",
4355
4345
  {
4356
- staticClass: "es-badge",
4346
+ key: item.type,
4357
4347
  attrs: {
4358
- value: _vm.noticeNum,
4359
- max: 99,
4360
- hidden: _vm.noticeNum < 1,
4348
+ effect: "dark",
4349
+ content: item.title,
4350
+ placement: "bottom",
4361
4351
  },
4362
4352
  },
4363
4353
  [
4364
- _c("div", {
4365
- staticClass: "es-handler-icon",
4366
- class: item.icon,
4367
- attrs: { title: item.title },
4368
- on: {
4369
- click: function ($event) {
4370
- $event.stopPropagation()
4371
- _vm.handleClick(item)
4372
- },
4373
- },
4374
- }),
4375
- ]
4376
- )
4377
- : _c("div", {
4378
- staticClass: "es-handler-icon",
4379
- class: item.icon,
4380
- attrs: { title: item.title },
4381
- on: {
4382
- click: function ($event) {
4383
- $event.stopPropagation()
4384
- _vm.handleClick(item)
4385
- },
4386
- },
4387
- }),
4354
+ item.type === "notice"
4355
+ ? _c(
4356
+ "el-badge",
4357
+ {
4358
+ staticClass: "es-badge",
4359
+ attrs: {
4360
+ value: _vm.noticeNum,
4361
+ max: 99,
4362
+ hidden: _vm.noticeNum < 1,
4363
+ },
4364
+ },
4365
+ [
4366
+ _c("es-icon", {
4367
+ staticClass: "es-handler-icon",
4368
+ attrs: { contents: item.icon },
4369
+ on: {
4370
+ click: function ($event) {
4371
+ $event.stopPropagation()
4372
+ _vm.handleClick(item)
4373
+ },
4374
+ },
4375
+ }),
4376
+ ],
4377
+ 1
4378
+ )
4379
+ : _c("es-icon", {
4380
+ staticClass: "es-handler-icon",
4381
+ attrs: { contents: item.icon },
4382
+ on: {
4383
+ click: function ($event) {
4384
+ $event.stopPropagation()
4385
+ _vm.handleClick(item)
4386
+ },
4387
+ },
4388
+ }),
4389
+ ],
4390
+ 1
4391
+ ),
4388
4392
  ],
4389
4393
  1
4390
4394
  )
@@ -4399,7 +4403,7 @@ var staticRenderFns = []
4399
4403
  render._withStripped = true
4400
4404
 
4401
4405
 
4402
- // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=bb219fb0&
4406
+ // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=66f7fc3a&
4403
4407
 
4404
4408
  // EXTERNAL MODULE: ./src/config/api.js
4405
4409
  var api = __webpack_require__(1);
@@ -4527,6 +4531,9 @@ var _props;
4527
4531
  //
4528
4532
  //
4529
4533
  //
4534
+ //
4535
+ //
4536
+ //
4530
4537
 
4531
4538
 
4532
4539
 
@@ -4747,6 +4754,7 @@ var _props;
4747
4754
  return len;
4748
4755
  },
4749
4756
  handleClick: function handleClick(res) {
4757
+ console.log(res);
4750
4758
  var type = res.type,
4751
4759
  event = res.event;
4752
4760
 
package/lib/icon.js CHANGED
@@ -4151,7 +4151,7 @@ module.exports = require("qs");
4151
4151
  // ESM COMPAT FLAG
4152
4152
  __webpack_require__.r(__webpack_exports__);
4153
4153
 
4154
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/main.vue?vue&type=template&id=20e44f4a&
4154
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/main.vue?vue&type=template&id=57a2cea2&
4155
4155
  var render = function () {
4156
4156
  var _vm = this
4157
4157
  var _h = _vm.$createElement
@@ -4179,7 +4179,7 @@ var staticRenderFns = []
4179
4179
  render._withStripped = true
4180
4180
 
4181
4181
 
4182
- // CONCATENATED MODULE: ./packages/icon/src/main.vue?vue&type=template&id=20e44f4a&
4182
+ // CONCATENATED MODULE: ./packages/icon/src/main.vue?vue&type=template&id=57a2cea2&
4183
4183
 
4184
4184
  // EXTERNAL MODULE: ./src/utils/util.js
4185
4185
  var util = __webpack_require__(0);
@@ -4245,7 +4245,7 @@ var api = __webpack_require__(1);
4245
4245
  } else {
4246
4246
  this.code = val.code;
4247
4247
  this.className = val.class || val.className;
4248
- this.event = val.events;
4248
+ val.events && (this.event = val.events);
4249
4249
  }
4250
4250
  }
4251
4251
  }
@@ -4257,12 +4257,15 @@ var api = __webpack_require__(1);
4257
4257
  url: '',
4258
4258
  code: '',
4259
4259
  className: '',
4260
- event: {}
4260
+ event: { click: this.clickd }
4261
4261
  };
4262
4262
  },
4263
4263
  created: function created() {},
4264
4264
 
4265
4265
  methods: {
4266
+ clickd: function clickd(e) {
4267
+ this.$emit('click', e);
4268
+ },
4266
4269
  unicode: function unicode(res) {
4267
4270
  if (!res) {
4268
4271
  return false;