@qikdev/vue-ui 0.1.40 → 0.1.41

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/lib.es.js CHANGED
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
32
32
  };
33
33
  import { openBlock, createElementBlock, renderSlot, resolveComponent, createBlock, withCtx, createVNode, Fragment, renderList, normalizeClass, toDisplayString, withDirectives, resolveDynamicComponent, vShow, pushScopeId, popScopeId, createElementVNode, normalizeStyle, createCommentVNode, Teleport, createTextVNode, vModelSelect, withKeys, withModifiers, vModelText, TransitionGroup, defineComponent, h, nextTick, vModelDynamic, vModelCheckbox, mergeProps, toHandlers, reactive, watch } from "vue";
34
34
  import { EventDispatcher } from "@qikdev/sdk";
35
- const version$1 = "0.1.40";
35
+ const version$1 = "0.1.41";
36
36
  var flexColumn_vue_vue_type_style_index_0_scoped_true_lang = "";
37
37
  var _export_sfc = (sfc, props2) => {
38
38
  const target = sfc.__vccOpts || sfc;
@@ -10023,14 +10023,29 @@ function getDefaultValue(fieldData, currentValue) {
10023
10023
  }
10024
10024
  break;
10025
10025
  case "reference":
10026
- if (multiValue) {
10027
- if (defaultValues.length) {
10028
- output = defaultValues.slice(0, maximum);
10026
+ if (fieldData.widget === "form") {
10027
+ var number = ask;
10028
+ if (multiValue) {
10029
+ if (number > 0) {
10030
+ output = Array(number).fill().map(function() {
10031
+ return {};
10032
+ });
10033
+ } else {
10034
+ output = [];
10035
+ }
10029
10036
  } else {
10030
- output = [];
10037
+ output = isUndefined2(firstDefaultValue) ? {} : firstDefaultValue;
10031
10038
  }
10032
10039
  } else {
10033
- output = isUndefined2(firstDefaultValue) ? void 0 : firstDefaultValue;
10040
+ if (multiValue) {
10041
+ if (defaultValues.length) {
10042
+ output = defaultValues.slice(0, maximum);
10043
+ } else {
10044
+ output = [];
10045
+ }
10046
+ } else {
10047
+ output = isUndefined2(firstDefaultValue) ? void 0 : firstDefaultValue;
10048
+ }
10034
10049
  }
10035
10050
  break;
10036
10051
  case "string":