bm-admin-ui 1.0.20-alpha → 1.0.22-alpha

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 (49) hide show
  1. package/es/components/feedback/index.js +25 -1306
  2. package/es/components/float-table/index.js +36 -27
  3. package/es/components/form-create/index.js +2769 -0
  4. package/es/components/form-designer/index.js +4178 -9
  5. package/es/components/index.js +1 -0
  6. package/es/components/input-tags-display/index.js +27 -1187
  7. package/es/components/multi-cascader-compose/index.js +31 -1199
  8. package/es/components/over-tooltips/index.js +27 -20
  9. package/es/components/search-filter/index.js +52 -1253
  10. package/es/components/shops-filter/index.js +24 -1182
  11. package/es/components/staffs-selector/index.js +131 -1241
  12. package/es/components/timeline/index.js +6 -6
  13. package/es/components/upload/index.js +101 -1334
  14. package/es/utils/uniqueId.js +5 -0
  15. package/es/utils/vxe-table.js +4 -3
  16. package/lib/components/feedback/index.js +23 -1304
  17. package/lib/components/float-table/index.js +36 -27
  18. package/lib/components/form-create/index.js +2781 -0
  19. package/lib/components/form-designer/index.js +4183 -8
  20. package/lib/components/index.js +7 -0
  21. package/lib/components/input-tags-display/index.js +26 -1186
  22. package/lib/components/multi-cascader-compose/index.js +30 -1198
  23. package/lib/components/over-tooltips/index.js +27 -20
  24. package/lib/components/search-filter/index.js +51 -1252
  25. package/lib/components/shops-filter/index.js +23 -1181
  26. package/lib/components/staffs-selector/index.js +130 -1240
  27. package/lib/components/timeline/index.js +6 -6
  28. package/lib/components/upload/index.js +100 -1333
  29. package/lib/utils/uniqueId.js +8 -0
  30. package/lib/utils/vxe-table.js +3 -2
  31. package/package.json +9 -4
  32. package/theme-chalk/button.css +1 -1
  33. package/theme-chalk/feedback.css +1 -1
  34. package/theme-chalk/float-table.css +1 -1
  35. package/theme-chalk/floating-vue.css +1 -1
  36. package/theme-chalk/flow-designer.css +1 -1
  37. package/theme-chalk/form-create.css +1 -0
  38. package/theme-chalk/form-designer.css +1 -0
  39. package/theme-chalk/index.css +1 -1
  40. package/theme-chalk/input-tags-display.css +1 -1
  41. package/theme-chalk/modal.css +1 -1
  42. package/theme-chalk/multi-cascader-compose.css +1 -1
  43. package/theme-chalk/over-tooltips.css +1 -1
  44. package/theme-chalk/search-filter.css +1 -1
  45. package/theme-chalk/staffs-selector.css +1 -1
  46. package/theme-chalk/timeline.css +1 -1
  47. package/theme-chalk/upload.css +1 -1
  48. package/index.esm.js +0 -46662
  49. package/index.js +0 -46692
@@ -39,16 +39,19 @@ const _sfc_main = {
39
39
  isShow: false,
40
40
  openShow: false
41
41
  });
42
- const observer = new IntersectionObserver((entries) => {
43
- entries.forEach((item) => {
44
- if (item.intersectionRatio > 0.3) {
45
- observerDom();
46
- observer.disconnect();
47
- }
48
- });
49
- }, {
50
- threshold: 0.3
51
- });
42
+ const observer = new IntersectionObserver(
43
+ (entries) => {
44
+ entries.forEach((item) => {
45
+ if (item.intersectionRatio > 0.3) {
46
+ observerDom();
47
+ observer.disconnect();
48
+ }
49
+ });
50
+ },
51
+ {
52
+ threshold: 0.3
53
+ }
54
+ );
52
55
  function observerDom() {
53
56
  if (props.line === 1) {
54
57
  if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
@@ -64,16 +67,20 @@ const _sfc_main = {
64
67
  observer.disconnect();
65
68
  });
66
69
  let mySelf = ref();
67
- watch(() => props.showAlways, function(showAlways) {
68
- if (showAlways)
69
- state.openShow = showAlways;
70
- mySelf.value && observer.unobserve(mySelf.value);
71
- nextTick(function() {
72
- mySelf.value && observer.observe(mySelf.value);
73
- });
74
- }, {
75
- immediate: true
76
- });
70
+ watch(
71
+ () => props.showAlways,
72
+ function(showAlways) {
73
+ if (showAlways)
74
+ state.openShow = showAlways;
75
+ mySelf.value && observer.unobserve(mySelf.value);
76
+ nextTick(function() {
77
+ mySelf.value && observer.observe(mySelf.value);
78
+ });
79
+ },
80
+ {
81
+ immediate: true
82
+ }
83
+ );
77
84
  const handleVisibleChange = (val) => {
78
85
  state.isShow = !state.openShow ? false : val;
79
86
  };