@fecp/designer 5.5.62 → 5.5.63

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.
@@ -7,21 +7,37 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
7
7
  ;/* empty css */
8
8
  ;/* empty css */
9
9
  const Vue = require("vue");
10
- const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
11
10
  const index = require("../../../../node_modules/vant/es/search/index.js");
12
- const _sfc_main = {};
13
- function _sfc_render(_ctx, _cache) {
14
- const _component_van_search = index.Search;
15
- return Vue.openBlock(), Vue.createBlock(_component_van_search, Vue.normalizeProps(Vue.guardReactiveProps(_ctx.$attrs)), Vue.createSlots({ _: 2 }, [
16
- Vue.renderList(_ctx.$slots, (item, key) => {
17
- return {
18
- name: key,
19
- fn: Vue.withCtx(() => [
20
- Vue.renderSlot(_ctx.$slots, key)
21
- ])
22
- };
23
- })
24
- ]), 1040);
25
- }
26
- const _Search = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render]]);
27
- exports.default = _Search;
11
+ const _sfc_main = {
12
+ __name: "Search",
13
+ props: {
14
+ placeholder: {
15
+ type: String,
16
+ default: ""
17
+ }
18
+ },
19
+ setup(__props) {
20
+ const showAction = Vue.ref(false);
21
+ function onClickFilter() {
22
+ showAction.value = true;
23
+ }
24
+ function onSearch(val) {
25
+ }
26
+ function onCancel() {
27
+ showAction.value = false;
28
+ }
29
+ return (_ctx, _cache) => {
30
+ const _component_van_search = index.Search;
31
+ return Vue.openBlock(), Vue.createBlock(_component_van_search, {
32
+ shape: "round",
33
+ placeholder: __props.placeholder,
34
+ "show-action": Vue.unref(showAction),
35
+ clearable: "",
36
+ onSearch,
37
+ onCancel,
38
+ onClickInput: onClickFilter
39
+ }, null, 8, ["placeholder", "show-action"]);
40
+ };
41
+ }
42
+ };
43
+ exports.default = _sfc_main;
@@ -249,10 +249,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
249
249
  hiddenFields.value.forEach((field) => {
250
250
  if (field.fieldName) {
251
251
  if (typeof field.value == "object") {
252
- const value = parseRouteParams.parseSingleParamValue(field.value, defaultData, [
253
- ...fieldsData.value,
254
- ...hiddenFields.value
255
- ]);
252
+ const value = parseRouteParams.parseSingleParamValue(
253
+ field.value || field.defaultValue,
254
+ defaultData,
255
+ [...fieldsData.value, ...hiddenFields.value]
256
+ );
256
257
  if (value) {
257
258
  defaultData[field.fieldName] = value;
258
259
  }
@@ -1012,7 +1013,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1012
1013
  if (fecFormRef.value.$el.closest(".fec-layout-row")) {
1013
1014
  return "top";
1014
1015
  } else {
1015
- return "right";
1016
+ if (!props.isDialog) {
1017
+ return "right";
1018
+ } else {
1019
+ return "";
1020
+ }
1016
1021
  }
1017
1022
  } else {
1018
1023
  return "";
@@ -1040,8 +1045,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1040
1045
  if (changedFields.length > 0) {
1041
1046
  applyLinkageEffectsForChangedFields(changedFields);
1042
1047
  }
1043
- getFormData();
1044
- debugger;
1045
1048
  prevFormData.value = { ...formData.value };
1046
1049
  emit("update:modelValue", getFormData());
1047
1050
  },
@@ -1212,5 +1215,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1212
1215
  };
1213
1216
  }
1214
1217
  });
1215
- const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-92949886"]]);
1218
+ const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5127d7fd"]]);
1216
1219
  exports.default = _Form;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.5.62",
3
+ "version": "5.5.63",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [