lew-ui 1.7.4 → 1.7.5

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.
package/dist/index.es.js CHANGED
@@ -3422,7 +3422,7 @@ const inputProps = {
3422
3422
  description: "\u662F\u5426\u81EA\u52A8\u5BBD\u5EA6"
3423
3423
  },
3424
3424
  maxLength: {
3425
- type: Number,
3425
+ type: [Number, String],
3426
3426
  default: null,
3427
3427
  description: "\u6700\u5927\u8F93\u5165\u957F\u5EA6"
3428
3428
  },
@@ -3858,7 +3858,7 @@ const textareaProps = {
3858
3858
  description: "\u662F\u5426\u53EA\u8BFB"
3859
3859
  },
3860
3860
  maxLength: {
3861
- type: Number,
3861
+ type: [Number, String],
3862
3862
  default: "",
3863
3863
  description: "\u6700\u5927\u957F\u5EA6"
3864
3864
  },
@@ -6047,8 +6047,7 @@ const _sfc_main$u = defineComponent({
6047
6047
  const getForm = () => {
6048
6048
  return toRaw(form.value);
6049
6049
  };
6050
- const setForm = (value) => {
6051
- console.log(value);
6050
+ const setForm = (value = {}) => {
6052
6051
  componentOptions.value.forEach((e) => {
6053
6052
  e.value = getNestedFieldValue(value, e.field);
6054
6053
  });
@@ -12967,6 +12966,7 @@ const _sfc_main$8 = defineComponent({
12967
12966
  duration: [120, 120],
12968
12967
  content: text,
12969
12968
  animation: "shift-away-subtle",
12969
+ hideOnClick: false,
12970
12970
  interactive: true,
12971
12971
  appendTo: () => document.body,
12972
12972
  placement,
@@ -13474,6 +13474,7 @@ const _sfc_main$5 = defineComponent({
13474
13474
  content: bodyRef.value,
13475
13475
  animation: "shift-away-subtle",
13476
13476
  interactive: true,
13477
+ hideOnClick: trigger === "mouseenter" ? false : true,
13477
13478
  placement,
13478
13479
  duration: [120, 120],
13479
13480
  arrow: false,
@@ -14629,6 +14630,7 @@ var LewTooltip = {
14629
14630
  theme: "light",
14630
14631
  trigger: trigger || "mouseenter",
14631
14632
  content: binding.value.content,
14633
+ hideOnClick: trigger === "mouseenter" ? false : true,
14632
14634
  animation: "shift-away-subtle",
14633
14635
  interactive: true,
14634
14636
  appendTo: () => document.body,