@tmagic/form 1.1.2 → 1.1.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.
@@ -3087,7 +3087,7 @@ const _sfc_main$6 = defineComponent({
3087
3087
  if (!props.model)
3088
3088
  return;
3089
3089
  const v = props.model[props.name];
3090
- if (Array.isArray(v) ? v.length : v) {
3090
+ if (Array.isArray(v) ? v.length : typeof v !== "undefined") {
3091
3091
  getInitOption().then((data) => {
3092
3092
  options.value = data;
3093
3093
  });
@@ -3726,7 +3726,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3726
3726
  createVNode(_component_el_dialog, {
3727
3727
  modelValue: _ctx.dialogVisible,
3728
3728
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.dialogVisible = $event),
3729
- "custom-class": "m-form-dialog",
3729
+ class: "m-form-dialog",
3730
3730
  top: "20px",
3731
3731
  title: _ctx.title,
3732
3732
  appendToBody: true,