cnhis-design-vue 0.1.40 → 0.1.42

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 (44) hide show
  1. package/es/big-table/index.js +74 -67
  2. package/es/big-table/style.css +1 -1
  3. package/es/button/index.js +2 -2
  4. package/es/color-picker/index.js +1 -1
  5. package/es/color-picker/style.css +1 -1
  6. package/es/fabric-chart/index.js +4 -4
  7. package/es/fabric-chart/style.css +1 -1
  8. package/es/index/index.js +42 -42
  9. package/es/index/style.css +2 -2
  10. package/es/modal/index.js +4 -4
  11. package/es/select/index.js +7 -7
  12. package/es/select/style.css +1 -1
  13. package/es/table-filter/index.js +22 -22
  14. package/es/table-filter/style.css +1 -1
  15. package/lib/cui.common.js +4223 -1783
  16. package/lib/cui.umd.js +4223 -1783
  17. package/lib/cui.umd.min.js +52 -52
  18. package/package.json +1 -1
  19. package/packages/big-table/index.js +6 -0
  20. package/packages/big-table/src/BigTable.vue +11 -94
  21. package/packages/big-table/src/Fieldset.vue +4 -4
  22. package/packages/big-table/src/utils/bigTableProps.js +82 -0
  23. package/packages/color-picker/src/color-picker.vue +14 -2
  24. package/packages/color-picker/src/style.less +1 -1
  25. package/packages/fabric-chart/src/FabricChart.vue +0 -1
  26. package/packages/fabric-chart/src/const/defaultVaule.js +20 -1
  27. package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +39 -43
  28. package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +46 -37
  29. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +169 -109
  30. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +111 -51
  31. package/packages/fabric-chart/src/fabric-chart2/FabricCenter.vue +8 -12
  32. package/packages/fabric-chart/src/mixins/{polylineCommon.js → eventCommon.js} +13 -3
  33. package/packages/index.js +6 -7
  34. package/packages/modal/index.js +6 -2
  35. package/packages/modal/src/Modal.js +7 -0
  36. package/packages/select/src/TableSelect/index.vue +138 -75
  37. package/packages/table-filter/src/base-search-com/BaseSearch.vue +30 -22
  38. package/packages/table-filter/src/classification/Classification-com.vue +6 -2
  39. package/packages/table-filter/src/components/multi-select/multi-select.vue +1 -1
  40. package/packages/table-filter/src/components/search-condition/SearchCondition.vue +2 -0
  41. package/packages/table-filter/src/quick-search/QuickSearch.vue +25 -22
  42. package/src/style/style.less +2 -2
  43. package/src/utils/clickoutside.js +14 -13
  44. package/docs_20211021.zip +0 -0
@@ -1,32 +1,33 @@
1
- import Vue from 'vue';
2
-
3
1
  const nodeList = [];
4
2
  const ctx = '@@clickoutsideContext';
5
3
 
6
4
  let startClick;
7
5
  let seed = 0;
8
6
 
9
- document.addEventListener('mousedown', e => (startClick = e), false)
10
- document.addEventListener('mouseup', e => {
11
- nodeList.forEach(node => node[ctx].documentHandler(e, startClick));
12
- }, false)
7
+ document.addEventListener('mousedown', e => (startClick = e), false);
8
+ document.addEventListener(
9
+ 'mouseup',
10
+ e => {
11
+ nodeList.forEach(node => node[ctx].documentHandler(e, startClick));
12
+ },
13
+ false
14
+ );
13
15
 
14
16
  function createDocumentHandler(el, binding, vnode) {
15
17
  return function(mouseup = {}, mousedown = {}) {
16
- if (!vnode ||
18
+ if (
19
+ !vnode ||
17
20
  !vnode.context ||
18
21
  !mouseup.target ||
19
22
  !mousedown.target ||
20
23
  el.contains(mouseup.target) ||
21
24
  el.contains(mousedown.target) ||
22
25
  el === mouseup.target ||
23
- (vnode.context.popperElm &&
24
- (vnode.context.popperElm.contains(mouseup.target) ||
25
- vnode.context.popperElm.contains(mousedown.target)))) return;
26
+ (vnode.context.popperElm && (vnode.context.popperElm.contains(mouseup.target) || vnode.context.popperElm.contains(mousedown.target)))
27
+ )
28
+ return;
26
29
 
27
- if (binding.expression &&
28
- el[ctx].methodName &&
29
- vnode.context[el[ctx].methodName]) {
30
+ if (binding.expression && el[ctx].methodName && vnode.context[el[ctx].methodName]) {
30
31
  vnode.context[el[ctx].methodName]();
31
32
  } else {
32
33
  el[ctx].bindingFn && el[ctx].bindingFn();
package/docs_20211021.zip DELETED
Binary file