@mpxjs/webpack-plugin 2.9.58 → 2.9.62

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 (109) hide show
  1. package/lib/config.js +1 -3
  2. package/lib/platform/style/wx/index.js +374 -239
  3. package/lib/platform/template/wx/component-config/checkbox-group.js +8 -0
  4. package/lib/platform/template/wx/component-config/checkbox.js +8 -0
  5. package/lib/platform/template/wx/component-config/cover-image.js +15 -0
  6. package/lib/platform/template/wx/component-config/cover-view.js +9 -0
  7. package/lib/platform/template/wx/component-config/form.js +13 -1
  8. package/lib/platform/template/wx/component-config/icon.js +8 -0
  9. package/lib/platform/template/wx/component-config/index.js +5 -1
  10. package/lib/platform/template/wx/component-config/label.js +15 -0
  11. package/lib/platform/template/wx/component-config/movable-area.js +18 -1
  12. package/lib/platform/template/wx/component-config/movable-view.js +18 -1
  13. package/lib/platform/template/wx/component-config/navigator.js +8 -0
  14. package/lib/platform/template/wx/component-config/picker-view-column.js +8 -0
  15. package/lib/platform/template/wx/component-config/picker-view.js +18 -2
  16. package/lib/platform/template/wx/component-config/picker.js +14 -1
  17. package/lib/platform/template/wx/component-config/radio-group.js +8 -0
  18. package/lib/platform/template/wx/component-config/radio.js +8 -0
  19. package/lib/platform/template/wx/component-config/root-portal.js +15 -0
  20. package/lib/platform/template/wx/component-config/switch.js +8 -0
  21. package/lib/platform/template/wx/component-config/unsupported.js +1 -3
  22. package/lib/react/processScript.js +7 -1
  23. package/lib/react/style-helper.js +10 -1
  24. package/lib/runtime/components/react/context.ts +38 -0
  25. package/lib/runtime/components/react/dist/context.js +7 -0
  26. package/lib/runtime/components/react/dist/getInnerListeners.js +24 -13
  27. package/lib/runtime/components/react/dist/mpx-button.jsx +67 -45
  28. package/lib/runtime/components/react/dist/mpx-checkbox-group.jsx +81 -0
  29. package/lib/runtime/components/react/dist/mpx-checkbox.jsx +152 -0
  30. package/lib/runtime/components/react/dist/mpx-form.jsx +59 -0
  31. package/lib/runtime/components/react/dist/mpx-icon.jsx +51 -0
  32. package/lib/runtime/components/react/dist/mpx-image/index.jsx +17 -22
  33. package/lib/runtime/components/react/dist/mpx-image/svg.jsx +0 -1
  34. package/lib/runtime/components/react/dist/mpx-input.jsx +38 -16
  35. package/lib/runtime/components/react/dist/mpx-label.jsx +63 -0
  36. package/lib/runtime/components/react/dist/mpx-movable-area.jsx +46 -0
  37. package/lib/runtime/components/react/dist/mpx-movable-view.jsx +346 -0
  38. package/lib/runtime/components/react/dist/mpx-navigator.jsx +35 -0
  39. package/lib/runtime/components/react/dist/mpx-picker/date.jsx +69 -0
  40. package/lib/runtime/components/react/dist/mpx-picker/index.jsx +138 -0
  41. package/lib/runtime/components/react/dist/mpx-picker/multiSelector.jsx +139 -0
  42. package/lib/runtime/components/react/dist/mpx-picker/region.jsx +90 -0
  43. package/lib/runtime/components/react/dist/mpx-picker/regionData.js +6099 -0
  44. package/lib/runtime/components/react/dist/mpx-picker/selector.jsx +76 -0
  45. package/lib/runtime/components/react/dist/mpx-picker/time.jsx +244 -0
  46. package/lib/runtime/components/react/dist/mpx-picker/type.js +1 -0
  47. package/lib/runtime/components/react/dist/mpx-picker-view-column.jsx +15 -0
  48. package/lib/runtime/components/react/dist/mpx-picker-view.jsx +68 -0
  49. package/lib/runtime/components/react/dist/mpx-radio-group.jsx +79 -0
  50. package/lib/runtime/components/react/dist/mpx-radio.jsx +169 -0
  51. package/lib/runtime/components/react/dist/mpx-root-portal.jsx +11 -0
  52. package/lib/runtime/components/react/dist/mpx-scroll-view.jsx +66 -50
  53. package/lib/runtime/components/react/dist/mpx-swiper/carouse.jsx +206 -147
  54. package/lib/runtime/components/react/dist/mpx-swiper/index.jsx +9 -7
  55. package/lib/runtime/components/react/dist/mpx-swiper-item.jsx +3 -3
  56. package/lib/runtime/components/react/dist/mpx-switch.jsx +76 -0
  57. package/lib/runtime/components/react/dist/mpx-text.jsx +7 -19
  58. package/lib/runtime/components/react/dist/mpx-textarea.jsx +1 -1
  59. package/lib/runtime/components/react/dist/mpx-view.jsx +326 -96
  60. package/lib/runtime/components/react/dist/mpx-web-view.jsx +9 -15
  61. package/lib/runtime/components/react/dist/types/common.js +1 -0
  62. package/lib/runtime/components/react/dist/useNodesRef.js +3 -8
  63. package/lib/runtime/components/react/dist/utils.js +83 -15
  64. package/lib/runtime/components/react/getInnerListeners.ts +27 -15
  65. package/lib/runtime/components/react/mpx-button.tsx +87 -67
  66. package/lib/runtime/components/react/mpx-checkbox-group.tsx +147 -0
  67. package/lib/runtime/components/react/mpx-checkbox.tsx +245 -0
  68. package/lib/runtime/components/react/mpx-form.tsx +89 -0
  69. package/lib/runtime/components/react/mpx-icon.tsx +103 -0
  70. package/lib/runtime/components/react/mpx-image/index.tsx +20 -32
  71. package/lib/runtime/components/react/mpx-image/svg.tsx +2 -2
  72. package/lib/runtime/components/react/mpx-input.tsx +54 -26
  73. package/lib/runtime/components/react/mpx-label.tsx +115 -0
  74. package/lib/runtime/components/react/mpx-movable-area.tsx +67 -0
  75. package/lib/runtime/components/react/mpx-movable-view.tsx +425 -0
  76. package/lib/runtime/components/react/mpx-navigator.tsx +67 -0
  77. package/lib/runtime/components/react/mpx-picker/date.tsx +83 -0
  78. package/lib/runtime/components/react/mpx-picker/index.tsx +155 -0
  79. package/lib/runtime/components/react/mpx-picker/multiSelector.tsx +153 -0
  80. package/lib/runtime/components/react/mpx-picker/region.tsx +104 -0
  81. package/lib/runtime/components/react/mpx-picker/regionData.ts +6101 -0
  82. package/lib/runtime/components/react/mpx-picker/selector.tsx +92 -0
  83. package/lib/runtime/components/react/mpx-picker/time.tsx +274 -0
  84. package/lib/runtime/components/react/mpx-picker/type.ts +107 -0
  85. package/lib/runtime/components/react/mpx-picker-view-column.tsx +28 -0
  86. package/lib/runtime/components/react/mpx-picker-view.tsx +104 -0
  87. package/lib/runtime/components/react/mpx-radio-group.tsx +147 -0
  88. package/lib/runtime/components/react/mpx-radio.tsx +246 -0
  89. package/lib/runtime/components/react/mpx-root-portal.tsx +25 -0
  90. package/lib/runtime/components/react/mpx-scroll-view.tsx +82 -58
  91. package/lib/runtime/components/react/mpx-swiper/carouse.tsx +203 -156
  92. package/lib/runtime/components/react/mpx-swiper/index.tsx +12 -13
  93. package/lib/runtime/components/react/mpx-swiper/type.ts +11 -4
  94. package/lib/runtime/components/react/mpx-swiper-item.tsx +5 -3
  95. package/lib/runtime/components/react/mpx-switch.tsx +127 -0
  96. package/lib/runtime/components/react/mpx-text.tsx +52 -68
  97. package/lib/runtime/components/react/mpx-textarea.tsx +2 -2
  98. package/lib/runtime/components/react/mpx-view.tsx +374 -141
  99. package/lib/runtime/components/react/mpx-web-view.tsx +24 -28
  100. package/lib/runtime/components/react/types/common.ts +12 -0
  101. package/lib/runtime/components/react/types/getInnerListeners.ts +2 -1
  102. package/lib/runtime/components/react/types/global.d.ts +4 -0
  103. package/lib/runtime/components/react/useNodesRef.ts +3 -8
  104. package/lib/runtime/components/react/utils.ts +94 -16
  105. package/lib/runtime/optionProcessor.js +19 -17
  106. package/lib/template-compiler/compiler.js +73 -44
  107. package/lib/template-compiler/gen-node-react.js +7 -7
  108. package/lib/utils/shallow-stringify.js +1 -1
  109. package/package.json +6 -3
package/lib/config.js CHANGED
@@ -5,9 +5,7 @@ const reactConfig = {
5
5
  if (match) {
6
6
  return {
7
7
  prefix: match[1],
8
- eventName: match[2].replace(/^./, function (match) {
9
- return match.toLowerCase()
10
- }),
8
+ eventName: match[2],
11
9
  modifier: match[3]
12
10
  }
13
11
  }