tanxin-ui 1.2.3 → 1.2.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.
@@ -7406,7 +7406,8 @@ const radioProps = {
7406
7406
  showBorder: PropTypes.bool.def(false),
7407
7407
  button: PropTypes.bool.def(false),
7408
7408
  filling: PropTypes.bool.def(false),
7409
- itemValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool])
7409
+ itemValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]),
7410
+ itemLabel: PropTypes.string
7410
7411
  };
7411
7412
  var Radio = defineComponent({
7412
7413
  name: "TRadio",
@@ -7517,6 +7518,11 @@ var Radio = defineComponent({
7517
7518
  onChange: handleChange,
7518
7519
  onClick: handleClick
7519
7520
  };
7521
+ const labelElement = props.itemLabel ? createVNode("span", {
7522
+ "class": `${prefixCls.value}-content`
7523
+ }, [props.itemLabel]) : slots.default ? createVNode("span", {
7524
+ "class": `${prefixCls.value}-content`
7525
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]) : null;
7520
7526
  return createVNode("label", {
7521
7527
  "class": classes.value
7522
7528
  }, [createVNode("span", {
@@ -7526,9 +7532,7 @@ var Radio = defineComponent({
7526
7532
  "inputmode": "none"
7527
7533
  }), null), createVNode("span", {
7528
7534
  "class": `${prefixCls.value}-inner`
7529
- }, null)]), slots.default ? createVNode("span", {
7530
- "class": `${prefixCls.value}-content`
7531
- }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]) : null]);
7535
+ }, null)]), labelElement]);
7532
7536
  };
7533
7537
  return {
7534
7538
  refRadio,
@@ -9292,6 +9296,8 @@ var SelectContent = defineComponent({
9292
9296
  children,
9293
9297
  props: props2
9294
9298
  } = item;
9299
+ if (!name)
9300
+ return;
9295
9301
  if (name.includes("Group"))
9296
9302
  arr.push(...mapToGroup(key, props2, children));
9297
9303
  else
@@ -16156,7 +16162,7 @@ var Upload = defineComponent({
16156
16162
  file.status = "success";
16157
16163
  if (props.onSuccess)
16158
16164
  props.onSuccess(res, rawFile);
16159
- emit("update:fileList", rawFile, fileList.value);
16165
+ emit("update:fileList", fileList.value);
16160
16166
  emit("update:value", isArray$2(props.value) ? fileList.value.map((item) => item.url) : fileList.value[0].url);
16161
16167
  };
16162
16168
  const handleOnError = (err, rawFile) => {
@@ -16232,6 +16238,7 @@ var Upload = defineComponent({
16232
16238
  console.log("handleRemove", fileList.value);
16233
16239
  const index2 = fileList.value.findIndex((file) => file.uid === uid);
16234
16240
  if (index2 >= 0) {
16241
+ console.log("index=", index2);
16235
16242
  const removeFile = cloneDeep(fileList.value[index2]);
16236
16243
  const url2 = fileList.value[index2].url;
16237
16244
  URL.revokeObjectURL(url2);
@@ -16243,8 +16250,9 @@ var Upload = defineComponent({
16243
16250
  if (valueIndex >= 0)
16244
16251
  modelValue.value.splice(valueIndex, 1);
16245
16252
  }
16253
+ console.log("modelValue", modelValue.value);
16246
16254
  emit("update:fileList", fileList.value);
16247
- emit("update:value", props.limit > 1 ? fileList.value.map((item) => item.url) : fileList.value[0].url);
16255
+ emit("update:value", props.limit > 1 ? fileList.value.map((item) => item.url) : modelValue.value);
16248
16256
  if (props.onRemove) {
16249
16257
  props.onRemove(removeFile, fileList.value);
16250
16258
  }