@gct-paas/word 0.2.8 → 0.2.9

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
@@ -1,4 +1,4 @@
1
- /*! @gct-paas/word v0.2.8 */
1
+ /*! @gct-paas/word v0.2.9 */
2
2
  import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, render, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
3
  import Zt, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -141927,7 +141927,11 @@ var init_useTableDropdown = __esmMin((() => {
141927
141927
  FIELD_TYPE.STERILIZATION_CONTAINER
141928
141928
  ]);
141929
141929
  BASIC_SEARCH_FIELDS = {
141930
- [FIELD_TYPE.DEVICE]: ["name_", "asset_number_"],
141930
+ [FIELD_TYPE.DEVICE]: [
141931
+ "name_",
141932
+ "code_",
141933
+ "asset_number_"
141934
+ ],
141931
141935
  [FIELD_TYPE.ROUTING_OPERATION]: ["name_"],
141932
141936
  [FIELD_TYPE.OPERATION]: ["name_"]
141933
141937
  };
@@ -150269,9 +150273,10 @@ var init_useModelData = __esmMin((() => {
150269
150273
  function useModelLoader() {
150270
150274
  const designCtx = useDesignSuiteContext();
150271
150275
  const loadFieldList = async (modelKey) => {
150276
+ var _fieldRes$data;
150272
150277
  const key = unref(modelKey);
150273
150278
  if (!key) return;
150274
- return (await designCtx.runtime.loadFieldList(key)).data;
150279
+ return (_fieldRes$data = (await designCtx.runtime.loadFieldList(key)).data) === null || _fieldRes$data === void 0 ? void 0 : _fieldRes$data.filter((f) => f.type !== FIELD_TYPE.OBJECT_TYPE);
150275
150280
  };
150276
150281
  const loadModelInfo = async (modelKey) => {
150277
150282
  const key = unref(modelKey);
@@ -150285,6 +150290,7 @@ function useModelLoader() {
150285
150290
  }
150286
150291
  var init_useModelLoader = __esmMin((() => {
150287
150292
  init_DesignSuiteContext();
150293
+ init_field_type();
150288
150294
  }));
150289
150295
  //#endregion
150290
150296
  //#region src/runtime/_register_/composables/index.ts
@@ -163285,6 +163291,7 @@ var qrcode_parse_modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
163285
163291
  "onUpdate:modelValue": ($event) => item.formFields = $event,
163286
163292
  options: formFieldOptions.value,
163287
163293
  placeholder: "请选择",
163294
+ searchable: "",
163288
163295
  multiple: "",
163289
163296
  onChange: () => validateRow(index)
163290
163297
  }, null, 8, [
@@ -163318,7 +163325,7 @@ var qrcode_parse_modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
163318
163325
  //#endregion
163319
163326
  //#region src/suites/shared/panel/config/editor/qrcode-parse-editor/qrcode-parse-modal.vue
163320
163327
  init__plugin_vue_export_helper();
163321
- var qrcode_parse_modal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(qrcode_parse_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7a8c7960"]]);
163328
+ var qrcode_parse_modal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(qrcode_parse_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f16084b1"]]);
163322
163329
  //#endregion
163323
163330
  //#region src/suites/shared/panel/utils/open-design-modal.ts
163324
163331
  init_base$2();
package/dist/word.css CHANGED
@@ -11662,84 +11662,84 @@ svg.portrait-icon[data-v-8bdb451e] {
11662
11662
  .panel-paper .container[data-v-771b18b7] {
11663
11663
  padding: 16px;
11664
11664
  }
11665
- .qrcode-parse-modal[data-v-7a8c7960] {
11666
- padding: 8px 12px 0;
11665
+ .qrcode-parse-modal[data-v-f16084b1] {
11667
11666
  min-height: 280px;
11668
11667
  max-height: 560px;
11668
+ padding: 8px 12px 0;
11669
11669
  overflow: auto;
11670
11670
  }
11671
- .qrcode-parse-modal__rule[data-v-7a8c7960] {
11671
+ .qrcode-parse-modal__rule[data-v-f16084b1] {
11672
11672
  width: 425px;
11673
11673
  margin-bottom: 18px;
11674
11674
  }
11675
- .qrcode-parse-modal__tip[data-v-7a8c7960] {
11675
+ .qrcode-parse-modal__tip[data-v-f16084b1] {
11676
+ display: flex;
11677
+ position: relative;
11678
+ box-sizing: border-box;
11676
11679
  align-items: center;
11677
- gap: 8px;
11680
+ margin-bottom: 16px;
11681
+ padding: 8px 15px;
11682
+ border: 1px solid #91d5ff;
11678
11683
  border-radius: 2px;
11679
- box-sizing: border-box;
11684
+ background-color: #e6f7ff;
11680
11685
  color: rgba(0, 0, 0, 0.85);
11681
- display: flex;
11682
11686
  font-size: 14px;
11683
11687
  line-height: 1.5715;
11684
- padding: 8px 15px;
11685
- position: relative;
11686
- margin-bottom: 16px;
11687
- background-color: #e6f7ff;
11688
- border: 1px solid #91d5ff;
11688
+ gap: 8px;
11689
11689
  }
11690
- .qrcode-parse-modal__subtitle[data-v-7a8c7960] {
11690
+ .qrcode-parse-modal__subtitle[data-v-f16084b1] {
11691
+ margin-bottom: 12px;
11691
11692
  color: #252525;
11692
11693
  font-size: 12px;
11693
- margin-bottom: 12px;
11694
11694
  }
11695
- .qrcode-parse-modal__map[data-v-7a8c7960] {
11696
- background: #f9fafb;
11697
- border-radius: 4px;
11698
- border: 1px dashed #e0e3eb;
11695
+ .qrcode-parse-modal__map[data-v-f16084b1] {
11699
11696
  padding: 12px;
11697
+ border: 1px dashed #e0e3eb;
11698
+ border-radius: 4px;
11699
+ background: #f9fafb;
11700
11700
  font-size: 12px;
11701
11701
  }
11702
- .qrcode-parse-modal__row[data-v-7a8c7960] {
11702
+ .qrcode-parse-modal__row[data-v-f16084b1] {
11703
11703
  display: flex;
11704
11704
  align-items: flex-start;
11705
11705
  margin-bottom: 8px;
11706
11706
  }
11707
- .qrcode-parse-modal__barcode-field[data-v-7a8c7960],
11708
- .qrcode-parse-modal__form-fields[data-v-7a8c7960] {
11707
+ .qrcode-parse-modal__barcode-field[data-v-f16084b1],
11708
+ .qrcode-parse-modal__form-fields[data-v-f16084b1] {
11709
11709
  flex: 1;
11710
11710
  min-width: 0;
11711
11711
  }
11712
- .qrcode-parse-modal__divider[data-v-7a8c7960] {
11712
+ .qrcode-parse-modal__divider[data-v-f16084b1] {
11713
11713
  width: 32px;
11714
- text-align: center;
11715
11714
  padding-top: 36px;
11715
+ text-align: center;
11716
11716
  }
11717
- .qrcode-parse-modal__actions[data-v-7a8c7960] {
11717
+ .qrcode-parse-modal__actions[data-v-f16084b1] {
11718
11718
  width: 32px;
11719
11719
  padding-top: 36px;
11720
11720
  }
11721
- .qrcode-parse-modal__remove-btn[data-v-7a8c7960] {
11722
- cursor: pointer;
11721
+ .qrcode-parse-modal__remove-btn[data-v-f16084b1] {
11723
11722
  margin-left: 8px;
11723
+ cursor: pointer;
11724
11724
  }
11725
- .qrcode-parse-modal__add-btn[data-v-7a8c7960] {
11725
+ .qrcode-parse-modal__add-btn[data-v-f16084b1] {
11726
11726
  display: inline-flex;
11727
11727
  align-items: center;
11728
- gap: 4px;
11729
- font-size: 12px;
11730
- color: #026ac8;
11731
- cursor: pointer;
11732
11728
  height: 30px;
11729
+ color: #026ac8;
11730
+ font-size: 12px;
11733
11731
  line-height: 24px;
11732
+ cursor: pointer;
11733
+ gap: 4px;
11734
11734
  }
11735
- .qrcode-parse-modal .map-error[data-v-7a8c7960] {
11735
+ .qrcode-parse-modal .map-error[data-v-f16084b1] {
11736
11736
  margin-bottom: 8px;
11737
11737
  }
11738
- .qrcode-parse-modal .error-text[data-v-7a8c7960] {
11738
+ .qrcode-parse-modal .error-text[data-v-f16084b1] {
11739
+ margin-top: 4px;
11739
11740
  color: #ff4d4f;
11740
11741
  font-size: 12px;
11741
11742
  line-height: 20px;
11742
- margin-top: 4px;
11743
11743
  }
11744
11744
  .qrcode-parse-button[data-v-93a5fa88] {
11745
11745
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",