@flozy/editor 10.7.4 → 10.7.6
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.
@@ -164,8 +164,8 @@ export default function Select(props) {
|
|
164
164
|
avatar: /*#__PURE__*/_jsx(AvatarIcon, {
|
165
165
|
option: option,
|
166
166
|
avatar: optionAvatar
|
167
|
-
})
|
168
|
-
deleteIcon
|
167
|
+
})
|
168
|
+
// deleteIcon={<CloseIcon />}
|
169
169
|
})
|
170
170
|
}, key);
|
171
171
|
},
|
@@ -197,6 +197,7 @@ export default function Select(props) {
|
|
197
197
|
minHeight: "40px",
|
198
198
|
padding: "2px",
|
199
199
|
gap: "4px",
|
200
|
+
overflowX: 'auto',
|
200
201
|
"& .MuiChip-root": {
|
201
202
|
margin: "2px"
|
202
203
|
}
|
@@ -209,14 +210,25 @@ export default function Select(props) {
|
|
209
210
|
maxWidth: '150px',
|
210
211
|
border: "none",
|
211
212
|
"& .MuiChip-label": {
|
212
|
-
paddingLeft: "12px !important",
|
213
|
-
paddingRight: disabled ? "12px !important" : ""
|
213
|
+
// paddingLeft: "12px !important",
|
214
|
+
// paddingRight: disabled ? "12px !important" : "",
|
215
|
+
maxWidth: '100px'
|
216
|
+
},
|
217
|
+
"& .MuiChip-deleteIcon": {
|
218
|
+
'& path': {
|
219
|
+
stroke: '#0F172A'
|
220
|
+
}
|
214
221
|
}
|
215
222
|
},
|
216
223
|
avatar: /*#__PURE__*/_jsx(AvatarIcon, {
|
217
224
|
option: option,
|
218
225
|
avatar: optionAvatar
|
219
226
|
}),
|
227
|
+
onDelete: !disabled ? () => {
|
228
|
+
const newValue = [...value];
|
229
|
+
newValue.splice(index, 1);
|
230
|
+
onChange(newValue);
|
231
|
+
} : undefined,
|
220
232
|
deleteIcon: /*#__PURE__*/_jsx(CloseIcon, {
|
221
233
|
style: {
|
222
234
|
cursor: "pointer",
|