@newview/file-ui 1.1.59 → 1.1.60

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/file-ui.js CHANGED
@@ -19864,6 +19864,11 @@ const propDefine$1 = {
19864
19864
  /** 开启分页后每页的条数 每页的条数 */
19865
19865
  pageSize: 10
19866
19866
  }
19867
+ },
19868
+ isDownload: {
19869
+ // 是否允许下载
19870
+ type: Boolean,
19871
+ default: true
19867
19872
  }
19868
19873
  };
19869
19874
  const _sfc_main$1 = defineComponent({
@@ -19901,6 +19906,8 @@ class UploadFileInstance2 extends BaseInstance {
19901
19906
  __publicField(this, "isShowtrash", ref(true));
19902
19907
  /** 是否显示上传按钮 */
19903
19908
  __publicField(this, "isShowUpBtn", ref(true));
19909
+ /** 是否显示下载按钮 */
19910
+ __publicField(this, "isShowDownload", ref(true));
19904
19911
  __publicField(this, "mainGridApi", "");
19905
19912
  __publicField(this, "uploadListGridRef", ref([]));
19906
19913
  __publicField(this, "uploadListGridOption", reactive({
@@ -20003,7 +20010,7 @@ class UploadFileInstance2 extends BaseInstance {
20003
20010
  this.doDwonload(row);
20004
20011
  },
20005
20012
  isShow: (row) => {
20006
- return true;
20013
+ return this.isShowDownload.value;
20007
20014
  }
20008
20015
  },
20009
20016
  {
@@ -20348,6 +20355,7 @@ class UploadFileInstance2 extends BaseInstance {
20348
20355
  });
20349
20356
  watchEffect(() => {
20350
20357
  this.isShowtrash.value = this.props.readonly;
20358
+ this.isShowDownload.value = this.props.isDownload != false;
20351
20359
  });
20352
20360
  watchEffect(() => {
20353
20361
  this.isOpenPagination.value = this.props.paginationSet.isPagination;
@@ -20727,8 +20735,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
20727
20735
  readonly: _ctx.getPropValue(item.uploadFileListProp, "readonly") || _ctx.onlyView,
20728
20736
  token: _ctx.formModel[item.model],
20729
20737
  paginationSet: _ctx.getPaginationSet(item),
20738
+ isDownload: _ctx.getPropValue(item.uploadFileProp, "isDownload"),
20730
20739
  onReturnFileList: ($event) => _ctx.tokenList($event, item)
20731
- }, null, 8, ["style", "readonly", "token", "paginationSet", "onReturnFileList"])) : createCommentVNode("", true),
20740
+ }, null, 8, ["style", "readonly", "token", "paginationSet", "isDownload", "onReturnFileList"])) : createCommentVNode("", true),
20732
20741
  item.type === "CASign" ? (openBlock(), createBlock(_component_CASign, {
20733
20742
  key: 7,
20734
20743
  signContent: _ctx.getPropValue(item.signProp, "signContent"),