inl-ui 0.0.72 → 0.0.73

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.js CHANGED
@@ -15829,6 +15829,7 @@ const TabItem = defineComponent({
15829
15829
  },
15830
15830
  setup(props) {
15831
15831
  const urlMap = inject("urlMap");
15832
+ const readonly = inject("readonly");
15832
15833
  /* ===== 表单ref ===== */
15833
15834
  // 菜单级别form ref
15834
15835
  const groupFormRef = ref([]);
@@ -15902,7 +15903,7 @@ const TabItem = defineComponent({
15902
15903
  };
15903
15904
  return () => createVNode("div", {
15904
15905
  "class": "tab-item"
15905
- }, [createVNode("div", {
15906
+ }, [!readonly.value && createVNode("div", {
15906
15907
  "class": "operation"
15907
15908
  }, [createVNode(resolveComponent("a-space"), null, {
15908
15909
  default: () => [isEdit.value ? createVNode(Fragment, null, [createVNode(resolveComponent("a-button"), {
@@ -15977,6 +15978,10 @@ const ParamManager = defineComponent({
15977
15978
  },
15978
15979
  menu: {
15979
15980
  type: Object
15981
+ },
15982
+ readonly: {
15983
+ type: Boolean,
15984
+ default: false
15980
15985
  }
15981
15986
  },
15982
15987
  setup(props, {
@@ -15990,6 +15995,7 @@ const ParamManager = defineComponent({
15990
15995
  ...props.url
15991
15996
  };
15992
15997
  provide("urlMap", urlMap);
15998
+ provide("readonly", computed(() => props.readonly));
15993
15999
  const menus = ref([]);
15994
16000
  const currentMenu = ref(props.menu);
15995
16001
  const tabs = ref([]);