@ray-js/components 0.4.1-beta-1 → 0.4.4

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 (110) hide show
  1. package/lib/Checkbox/index.md +1 -1
  2. package/lib/CheckboxGroup/CheckboxGroup.tuya.js +5 -2
  3. package/lib/CheckboxGroup/CheckboxGroup.wechat.js +5 -2
  4. package/lib/Icon/iconfont/iconfont.android.js +1 -1
  5. package/lib/Icon/iconfont/iconfont.css +196 -193
  6. package/lib/Icon/iconfont/iconfont.ios.js +1 -1
  7. package/lib/Icon/iconfont/iconfont.js +9 -9
  8. package/lib/Icon/iconfont/iconfont.json +1 -1
  9. package/lib/Icon/iconfont/iconfont.tuya.js +9 -9
  10. package/lib/Icon/iconfont/iconfont.web.js +9 -9
  11. package/lib/Icon/iconfont/iconfont.wechat.js +9 -9
  12. package/lib/Icon/iconfont-rn/iconfont.json +1 -1
  13. package/lib/PickerView/PickerView.tuya.js +5 -2
  14. package/lib/PickerView/PickerView.wechat.js +5 -2
  15. package/lib/PickerView/index.md +1 -1
  16. package/lib/PickerViewColumn/PickerViewColumn.tuya.d.ts +3 -3
  17. package/lib/PickerViewColumn/PickerViewColumn.tuya.js +8 -57
  18. package/lib/PickerViewColumn/PickerViewColumn.wechat.d.ts +3 -3
  19. package/lib/PickerViewColumn/PickerViewColumn.wechat.js +8 -58
  20. package/lib/PickerViewColumn/index.md +5 -3
  21. package/lib/PickerViewColumn/props.d.ts +1 -12
  22. package/lib/RadioGroup/RadioGroup.tuya.js +5 -2
  23. package/lib/RadioGroup/RadioGroup.wechat.js +5 -2
  24. package/lib/RadioGroup/index.md +1 -1
  25. package/lib/Swiper/Swiper.js +12 -7
  26. package/lib/Swiper/Swiper.tuya.js +11 -6
  27. package/lib/Swiper/Swiper.web.js +12 -7
  28. package/lib/Swiper/Swiper.wechat.js +11 -6
  29. package/lib/SwiperItem/SwiperItem.android.js +1 -0
  30. package/lib/SwiperItem/SwiperItem.d.ts +4 -0
  31. package/lib/SwiperItem/SwiperItem.ios.js +1 -0
  32. package/lib/SwiperItem/SwiperItem.js +1 -0
  33. package/lib/SwiperItem/SwiperItem.tuya.d.ts +4 -0
  34. package/lib/SwiperItem/SwiperItem.tuya.js +22 -0
  35. package/lib/SwiperItem/SwiperItem.web.js +14 -0
  36. package/lib/SwiperItem/SwiperItem.wechat.d.ts +4 -0
  37. package/lib/SwiperItem/SwiperItem.wechat.js +22 -0
  38. package/lib/SwiperItem/index.android.js +1 -0
  39. package/lib/SwiperItem/index.d.ts +3 -0
  40. package/lib/SwiperItem/index.ios.js +1 -0
  41. package/lib/SwiperItem/index.js +3 -0
  42. package/lib/SwiperItem/index.md +23 -0
  43. package/lib/SwiperItem/index.tuya.js +3 -0
  44. package/lib/SwiperItem/index.web.js +3 -0
  45. package/lib/SwiperItem/index.wechat.js +3 -0
  46. package/lib/SwiperItem/props.android.js +1 -0
  47. package/lib/SwiperItem/props.d.ts +5 -0
  48. package/lib/SwiperItem/props.ios.js +1 -0
  49. package/lib/SwiperItem/props.js +1 -0
  50. package/lib/SwiperItem/props.tuya.js +1 -0
  51. package/lib/SwiperItem/props.web.js +1 -0
  52. package/lib/SwiperItem/props.wechat.js +1 -0
  53. package/lib/Textarea/index.md +1 -1
  54. package/lib/index.android.js +1 -1
  55. package/lib/index.d.ts +1 -2
  56. package/lib/index.ios.js +1 -1
  57. package/lib/index.js +2 -3
  58. package/lib/index.tuya.js +2 -3
  59. package/lib/index.web.js +2 -3
  60. package/lib/index.wechat.js +2 -3
  61. package/lib/types/index.d.ts +6 -0
  62. package/package.json +5 -5
  63. package/lib/CoverView/CoverView.android.js +0 -1
  64. package/lib/CoverView/CoverView.d.ts +0 -4
  65. package/lib/CoverView/CoverView.ios.js +0 -1
  66. package/lib/CoverView/CoverView.js +0 -1
  67. package/lib/CoverView/CoverView.tuya.d.ts +0 -4
  68. package/lib/CoverView/CoverView.tuya.js +0 -8
  69. package/lib/CoverView/CoverView.web.js +0 -7
  70. package/lib/CoverView/CoverView.wechat.d.ts +0 -3
  71. package/lib/CoverView/CoverView.wechat.js +0 -8
  72. package/lib/CoverView/index.android.js +0 -1
  73. package/lib/CoverView/index.d.ts +0 -2
  74. package/lib/CoverView/index.ios.js +0 -1
  75. package/lib/CoverView/index.js +0 -2
  76. package/lib/CoverView/index.md +0 -26
  77. package/lib/CoverView/index.tuya.js +0 -2
  78. package/lib/CoverView/index.web.js +0 -2
  79. package/lib/CoverView/index.wechat.js +0 -2
  80. package/lib/CoverView/props.android.js +0 -1
  81. package/lib/CoverView/props.d.ts +0 -5
  82. package/lib/CoverView/props.ios.js +0 -1
  83. package/lib/CoverView/props.js +0 -1
  84. package/lib/CoverView/props.tuya.js +0 -1
  85. package/lib/CoverView/props.web.js +0 -1
  86. package/lib/CoverView/props.wechat.js +0 -1
  87. package/lib/IpcPlayer/IpcPlayer.android.js +0 -1
  88. package/lib/IpcPlayer/IpcPlayer.d.ts +0 -4
  89. package/lib/IpcPlayer/IpcPlayer.ios.js +0 -1
  90. package/lib/IpcPlayer/IpcPlayer.js +0 -1
  91. package/lib/IpcPlayer/IpcPlayer.tuya.d.ts +0 -4
  92. package/lib/IpcPlayer/IpcPlayer.tuya.js +0 -8
  93. package/lib/IpcPlayer/IpcPlayer.web.js +0 -7
  94. package/lib/IpcPlayer/IpcPlayer.wechat.d.ts +0 -3
  95. package/lib/IpcPlayer/IpcPlayer.wechat.js +0 -8
  96. package/lib/IpcPlayer/index.android.js +0 -1
  97. package/lib/IpcPlayer/index.d.ts +0 -3
  98. package/lib/IpcPlayer/index.ios.js +0 -1
  99. package/lib/IpcPlayer/index.js +0 -3
  100. package/lib/IpcPlayer/index.md +0 -28
  101. package/lib/IpcPlayer/index.tuya.js +0 -3
  102. package/lib/IpcPlayer/index.web.js +0 -3
  103. package/lib/IpcPlayer/index.wechat.js +0 -3
  104. package/lib/IpcPlayer/props.android.js +0 -1
  105. package/lib/IpcPlayer/props.d.ts +0 -46
  106. package/lib/IpcPlayer/props.ios.js +0 -1
  107. package/lib/IpcPlayer/props.js +0 -19
  108. package/lib/IpcPlayer/props.tuya.js +0 -19
  109. package/lib/IpcPlayer/props.web.js +0 -19
  110. package/lib/IpcPlayer/props.wechat.js +0 -19
@@ -20,7 +20,7 @@ import { Checkbox } from '@ray-js/components'
20
20
 
21
21
  <code src="./demos/basic.tsx" title="基本使用" background="#f2f4f6"/>
22
22
  <code src="./demos/checkboxGroup.tsx" title="多项选择器组 - 选项" background="#f2f4f6"/>
23
- <code src="./demos/checkboxGroupChildren.tsx" title="多项选择器组 - 子节点 (仅 Web 端)" background="#f2f4f6"/>
23
+ <code src="./demos/checkboxGroupChildren.tsx" title="多项选择器组 - 子节点" background="#f2f4f6"/>
24
24
  <code src="./demos/checked.tsx" title="默认选中" background="#f2f4f6"/>
25
25
  <code src="./demos/disabled.tsx" title="disabled" background="#f2f4f6"/>
26
26
 
@@ -10,13 +10,16 @@ var CheckboxGroup = function (props) {
10
10
  name = props.name,
11
11
  disabled = props.disabled,
12
12
  _props$onChange = props.onChange,
13
- onChange = _props$onChange === void 0 ? function () {} : _props$onChange;
13
+ onChange = _props$onChange === void 0 ? function () {} : _props$onChange,
14
+ children = props.children;
14
15
  return /*#__PURE__*/React.createElement(RemaxCheckboxGroup, {
15
16
  name: name,
16
17
  onChange: function handleOnChange(e) {
17
18
  !disabled && onChange(e);
18
19
  }
19
- }, function renderOptions() {
20
+ }, function renderChildren() {
21
+ return children;
22
+ }() || function renderOptions() {
20
23
  return options.map(function (item, index) {
21
24
  var _item$checked;
22
25
 
@@ -10,13 +10,16 @@ var CheckboxGroup = function (props) {
10
10
  name = props.name,
11
11
  disabled = props.disabled,
12
12
  _props$onChange = props.onChange,
13
- onChange = _props$onChange === void 0 ? function () {} : _props$onChange;
13
+ onChange = _props$onChange === void 0 ? function () {} : _props$onChange,
14
+ children = props.children;
14
15
  return /*#__PURE__*/React.createElement(_CheckboxGroup, {
15
16
  name: name,
16
17
  onChange: function handleOnChange(e) {
17
18
  !disabled && onChange(e);
18
19
  }
19
- }, function renderOptions() {
20
+ }, function renderChildren() {
21
+ return children;
22
+ }() || function renderOptions() {
20
23
  return options.map(function (item, index) {
21
24
  var _item$checked;
22
25