@gct-paas/word 0.1.73-patch.5 → 0.1.73-patch.6

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.1.73-patch.5 */
1
+ /*! @gct-paas/word v0.1.73-patch.6 */
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, toRaw, toRef, toValue, unref, useCssVars, useModel, useSlots, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
3
  import FloatingVue, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -146633,11 +146633,14 @@ var signature_config_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
146633
146633
  var _docConfig$value$chec;
146634
146634
  return !!((_docConfig$value$chec = docConfig.value.checkSignatureConfig) === null || _docConfig$value$chec === void 0 ? void 0 : _docConfig$value$chec.length);
146635
146635
  });
146636
+ /** refer 下仅已配置(编辑)可点开查看;未添加不可点 */
146637
+ const canOpenSignatureConfig = computed(() => !isRefer.value || isAdded.value);
146636
146638
  const handleMutexChange = (mutex) => {
146637
146639
  if (isRefer.value) return;
146638
146640
  updateDocConfig("signatureMutex", mutex);
146639
146641
  };
146640
146642
  const handleSignatureConfig = () => {
146643
+ if (!canOpenSignatureConfig.value) return;
146641
146644
  const { modelKey: key, modelName: name } = modelMeta.value;
146642
146645
  triggerUtil.handle("OPEN_DOC_SIGNATURE_RULE_CONFIG_MODAL", {
146643
146646
  value: cloneDeep(docConfig.value.checkSignatureConfig || []),
@@ -146673,22 +146676,28 @@ var signature_config_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
146673
146676
  }, null, 8, ["modelValue"])])]),
146674
146677
  _: 1
146675
146678
  }), createElementVNode("div", _hoisted_3$33, [createVNode(unref(button_default), {
146676
- class: "allow-readonly-view",
146679
+ class: normalizeClass({ "allow-readonly-view": canOpenSignatureConfig.value }),
146677
146680
  full: "",
146678
- type: "primary",
146681
+ type: unref(isRefer) ? "default" : "primary",
146679
146682
  plain: !unref(isAdded) && !unref(isRefer),
146683
+ disabled: unref(isRefer) && !unref(isAdded),
146680
146684
  onClick: handleSignatureConfig
146681
146685
  }, {
146682
146686
  default: withCtx(() => [createTextVNode(toDisplayString(unref(isAdded) ? "编辑" : "添加") + "互斥规则 ", 1)]),
146683
146687
  _: 1
146684
- }, 8, ["plain"])])], 64);
146688
+ }, 8, [
146689
+ "class",
146690
+ "type",
146691
+ "plain",
146692
+ "disabled"
146693
+ ])])], 64);
146685
146694
  };
146686
146695
  }
146687
146696
  });
146688
146697
  //#endregion
146689
146698
  //#region src/suites/edhr/panel-schema/paper/modules/signature-config.vue
146690
146699
  init__plugin_vue_export_helper();
146691
- var signature_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(signature_config_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-494bbd16"]]);
146700
+ var signature_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(signature_config_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-baf2f040"]]);
146692
146701
  //#endregion
146693
146702
  //#region src/suites/edhr/panel-schema/paper/PaperPanel.vue?vue&type=script&setup=true&lang.ts
146694
146703
  init_base$2();
package/dist/word.css CHANGED
@@ -10880,7 +10880,7 @@ svg.portrait-icon[data-v-8bdb451e] {
10880
10880
  align-items: center;
10881
10881
  gap: 6px;
10882
10882
  }
10883
- .form-item-end[data-v-494bbd16] {
10883
+ .form-item-end[data-v-baf2f040] {
10884
10884
  width: 100%;
10885
10885
  display: flex;
10886
10886
  line-height: 22px;
@@ -10888,7 +10888,7 @@ svg.portrait-icon[data-v-8bdb451e] {
10888
10888
  align-items: center;
10889
10889
  justify-content: flex-end;
10890
10890
  }
10891
- .tooltip-text[data-v-494bbd16] {
10891
+ .tooltip-text[data-v-baf2f040] {
10892
10892
  padding: 6px;
10893
10893
  width: 240px;
10894
10894
  color: #666;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.1.73-patch.5",
3
+ "version": "0.1.73-patch.6",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",