@aks-dev/easyui 1.0.116 → 1.0.117

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.
@@ -2,7 +2,7 @@
2
2
  * @Author: OBKoro1
3
3
  * @Date: 2022-04-24 17:38:27
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-11-10 12:15:48
5
+ * @LastEditTime: 2022-11-10 15:22:00
6
6
  * @FilePath: /@aks-dev/easyui/lib/MutiPictureView/MutiPictureView.tsx
7
7
  */
8
8
 
@@ -184,10 +184,10 @@ const MutiPictureView: React.FC<MutiPictureViewProps> = (props) => {
184
184
  }
185
185
  {
186
186
  showEmptyPlaceHolder && maxCount - (viewModel.photos?.length || 0) - 1 > 0 &&
187
- Array.from({ length: maxCount - (viewModel.photos?.length || 0) - 1 }, (_, k) =>
187
+ Array.from({ length: maxCount - (viewModel.photos?.length || 0) - (editable?1:0) }, (_, k) =>
188
188
  <View key={`sg-showEmptyPlaceHolder-${k}`} style={[styles.empty_place_container, emptyPlaceHolderStyle, itemContainerStyle, {
189
- marginTop: k + 1 + (viewModel.photos?.length || 0) > 2 ? spacingInner : 0,
190
- marginLeft: (k + 1 + (viewModel.photos?.length || 0)) % 3 == 0 ? spacingHorizontal : spacingInner,
189
+ marginTop: k + (editable?1:0) + (viewModel.photos?.length || 0) > 2 ? spacingInner : 0,
190
+ marginLeft: (k + (editable?1:0) + (viewModel.photos?.length || 0)) % 3 == 0 ? spacingHorizontal : spacingInner,
191
191
  width: sideLength,
192
192
  height: sideLength,
193
193
  }]} />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.116",
3
+ "version": "1.0.117",
4
4
  "description": "工具箱",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",