@lemon30_npm/csit-vue3 1.0.66 → 1.0.68
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/csit-vue3.js +797 -744
- package/dist/index.css +1 -1
- package/dist/lib/ci-common-list/ci-common-list-layout/index.css +1 -1
- package/dist/lib/ci-common-list/ci-common-list-layout/index.vue.js +2 -2
- package/dist/lib/ci-common-list/ci-common-list-layout/index.vue2.js +25 -31
- package/dist/lib/ci-common-list/ci-common-list-query/index.css +1 -1
- package/dist/lib/ci-common-list/ci-common-list-query/index.vue.js +2 -2
- package/dist/lib/ci-common-list/ci-common-list-query/index.vue2.js +32 -32
- package/dist/lib/ci-upload/hooks/rules/createUploadRules.js +14 -0
- package/dist/lib/ci-upload/hooks/rules/fileNameLengthRule.js +15 -0
- package/dist/lib/ci-upload/hooks/rules/maxSizeRule.js +8 -0
- package/dist/lib/ci-upload/hooks/rules/minSizeRule.js +8 -0
- package/dist/lib/ci-upload/hooks/rules/typeRule.js +10 -0
- package/dist/lib/ci-upload/hooks/useAbortUploadFlow.js +7 -0
- package/dist/lib/ci-upload/hooks/useConfirmBeforeUpload.js +11 -0
- package/dist/lib/ci-upload/hooks/useUploadValidateFail.js +12 -0
- package/dist/lib/ci-upload/index.css +1 -1
- package/dist/lib/ci-upload/index.vue.js +2 -2
- package/dist/lib/ci-upload/index.vue2.js +206 -200
- package/dist/lib/ci-upload/props/index.js +11 -1
- package/dist/types/src/components/components-project/ci-upload/hooks/rules/createUploadRules.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-upload/hooks/rules/fileNameLengthRule.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-upload/hooks/rules/maxSizeRule.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-upload/hooks/rules/minSizeRule.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-upload/hooks/rules/typeRule.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-upload/hooks/rules/types.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-upload/hooks/useAbortUploadFlow.d.ts +12 -0
- package/dist/types/src/components/components-project/ci-upload/hooks/useConfirmBeforeUpload.d.ts +1 -0
- package/dist/types/src/components/components-project/ci-upload/hooks/useUploadValidateFail.d.ts +19 -0
- package/dist/types/src/components/components-project/ci-upload/index.vue.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-upload/props/index.d.ts +10 -0
- package/dist/types/src/components/components-project/ci-upload/type.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const n = (s) => {
|
|
2
|
+
const o = s.split(",").map((e) => e.trim().toLowerCase());
|
|
3
|
+
return (e) => {
|
|
4
|
+
const c = e.type.toLowerCase(), r = e.name.toLowerCase();
|
|
5
|
+
return o.some((t) => c === t || r.endsWith(t)) ? !0 : "不支持上传该类型文件";
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
n as createTypeRule
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElMessageBox as o } from "element-plus";
|
|
2
|
+
const t = (e) => o.confirm(e, "温馨提示", {
|
|
3
|
+
type: "primary",
|
|
4
|
+
confirmButtonText: "确定",
|
|
5
|
+
cancelButtonText: "取消",
|
|
6
|
+
closeOnClickModal: !1,
|
|
7
|
+
closeOnPressEscape: !1
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
t as confirmBeforeUpload
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { nextTick as s } from "vue";
|
|
2
|
+
import { ElMessage as f } from "element-plus";
|
|
3
|
+
function m(i, t) {
|
|
4
|
+
const { rawFile: l, fileList: a, emit: r, internalRemoveFlag: e } = t;
|
|
5
|
+
return f.error(i), e.value = !0, s(() => {
|
|
6
|
+
const o = a.filter((n) => n.uid !== l.uid);
|
|
7
|
+
r("update:fileList", o), e.value = !1;
|
|
8
|
+
}), !1;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
m as handleUploadValidateFail
|
|
12
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.CiUpload[data-v-
|
|
1
|
+
.CiUpload[data-v-5f67aa6b]{width:680px;line-height:normal}.CiUpload .el-link.is-underline[data-v-5f67aa6b]:hover:after{border-bottom:none}.CiUpload .el-link.is-hover-underline[data-v-5f67aa6b]:hover:after{border-bottom:none}.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger{height:142px;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:center}.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger .upload-btn-icon,.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger .upload-btn-icon-hover,.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger .upload-btn-icon-disabled{width:20px;height:20px}.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger .upload-btn-icon-hover,.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger .upload-btn-icon-disabled{display:none}.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger:hover{background-color:#fafbfd}.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger:hover .upload-btn-icon{display:none}.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger:hover .upload-btn-icon-hover{display:block}.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger:hover .upload-btn-icon-disabled{display:none}.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger .drag-text-info{margin-top:20px}.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger .drag-text-info .drag-text-info-click{color:#3573f3}.CiUpload .ci-el-upload-component[data-v-5f67aa6b] .el-upload-dragger .drag-text-info .drag-text-info-black{color:#191919}.CiUpload .ci-el-upload-component .upload-btn[data-v-5f67aa6b]{color:#4a4a4a!important;border-color:#dbdbdb!important}.CiUpload .ci-el-upload-component .upload-btn .upload-btn-icon[data-v-5f67aa6b],.CiUpload .ci-el-upload-component .upload-btn .upload-btn-icon-hover[data-v-5f67aa6b],.CiUpload .ci-el-upload-component .upload-btn .upload-btn-icon-disabled[data-v-5f67aa6b]{width:20px;height:20px;margin-right:10px}.CiUpload .ci-el-upload-component .upload-btn .upload-btn-icon-hover[data-v-5f67aa6b],.CiUpload .ci-el-upload-component .upload-btn .upload-btn-icon-disabled[data-v-5f67aa6b]{display:none}.CiUpload .ci-el-upload-component .upload-btn[data-v-5f67aa6b]:hover{color:#3573f3!important;border-color:#3573f3!important}.CiUpload .ci-el-upload-component .upload-btn:hover .upload-btn-icon[data-v-5f67aa6b]{display:none}.CiUpload .ci-el-upload-component .upload-btn:hover .upload-btn-icon-hover[data-v-5f67aa6b]{display:block}.CiUpload .ci-el-upload-component .upload-btn:hover .upload-btn-icon-disabled[data-v-5f67aa6b]{display:none}.CiUpload .ci-el-upload-component .upload-btn.is-disabled[data-v-5f67aa6b]{color:#a4a4a4!important;background-color:#f5f5f5!important;border-color:#dbdbdb!important;opacity:1!important}.CiUpload .ci-el-upload-component .upload-btn.is-disabled .upload-btn-icon[data-v-5f67aa6b],.CiUpload .ci-el-upload-component .upload-btn.is-disabled .upload-btn-icon-hover[data-v-5f67aa6b]{display:none}.CiUpload .ci-el-upload-component .upload-btn.is-disabled .upload-btn-icon-disabled[data-v-5f67aa6b]{display:block}.CiUpload .ci-el-upload-component .default-tip-slot-textInfo[data-v-5f67aa6b],.CiUpload .ci-el-upload-component .tip-slot-textInfo[data-v-5f67aa6b]{color:#a4a4a4;font-size:12px;margin-top:10px}.CiUpload .ci-el-upload-component.is-disabled[data-v-5f67aa6b] .el-upload-dragger{background-color:#f5f5f5}.CiUpload .ci-el-upload-component.is-disabled[data-v-5f67aa6b] .el-upload-dragger .upload-btn-icon,.CiUpload .ci-el-upload-component.is-disabled[data-v-5f67aa6b] .el-upload-dragger .upload-btn-icon-hover{display:none}.CiUpload .ci-el-upload-component.is-disabled[data-v-5f67aa6b] .el-upload-dragger .upload-btn-icon-disabled{display:block}.CiUpload .ci-el-upload-component.is-disabled[data-v-5f67aa6b] .el-upload-dragger:hover{border:1px dashed #dcdfe6}.CiUpload .ci-el-upload-component.is-disabled[data-v-5f67aa6b] .el-upload-dragger .drag-text-info{margin-top:20px}.CiUpload .ci-el-upload-component.is-disabled[data-v-5f67aa6b] .el-upload-dragger .drag-text-info .drag-text-info-click,.CiUpload .ci-el-upload-component.is-disabled[data-v-5f67aa6b] .el-upload-dragger .drag-text-info .drag-text-info-black{color:#a4a4a4}.CiUpload .custom-file-list-default[data-v-5f67aa6b]{margin-top:20px;border:1px solid #dbdbdb;padding:5px;border-radius:4px}.CiUpload .custom-file-list-default.is-readonly[data-v-5f67aa6b]{margin-top:0;border:none;padding:0}.CiUpload .custom-file-list-default .file-item-wrapper[data-v-5f67aa6b]{padding:1.5px 2px}.CiUpload .custom-file-list-default .file-item-wrapper[data-v-5f67aa6b]:hover{background-color:#f0f2f5}.CiUpload .custom-file-list-default .file-item-wrapper:hover .file-progress-bar[data-v-5f67aa6b]{background-color:#e8e5e5}.CiUpload .custom-file-list-default .file-item-wrapper[data-v-5f67aa6b]:not(:last-child){margin-bottom:8px}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top[data-v-5f67aa6b]{display:flex;align-items:center;justify-content:space-between}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .file-name-file-icon[data-v-5f67aa6b]{display:flex;align-items:center}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .file-name-file-icon .file-icon[data-v-5f67aa6b]{width:22px;height:22px;margin-right:5px;align-self:flex-start}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .file-name-file-icon .file-name[data-v-5f67aa6b]{max-width:257px;flex-shrink:0}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .file-name-file-icon .file-name.is-show-file-name-ellipsis-tooltip[data-v-5f67aa6b] .el-link__inner{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right[data-v-5f67aa6b]{display:flex;align-items:center;justify-content:center;height:25px}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-size[data-v-5f67aa6b]{color:#a4a4a4;font-size:14px;margin-right:8px;display:inline-flex;height:100%;position:relative;top:.5px;align-items:center}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-operate-btn[data-v-5f67aa6b]{margin-right:8px;height:100%;display:flex;align-items:center}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-operate-btn .el-divider--vertical[data-v-5f67aa6b]{font-size:14px;border-left-color:#191919;position:relative;top:.5px}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-status-icon-wrapper[data-v-5f67aa6b]{height:100%;display:flex;align-items:center}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-status-icon-wrapper .uploading[data-v-5f67aa6b]{height:100%;display:flex;align-items:center;color:#3573f3;font-size:14px}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-status-icon-wrapper .uploading .uploading-icon[data-v-5f67aa6b]{width:14px;height:14px;margin-right:4px;animation:rotate 1.5s linear infinite}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-status-icon-wrapper .success[data-v-5f67aa6b],.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-status-icon-wrapper .downloading[data-v-5f67aa6b]{display:inline-flex;height:100%;justify-content:center;align-items:center}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-status-icon-wrapper .success .success-icon[data-v-5f67aa6b],.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-status-icon-wrapper .downloading .success-icon[data-v-5f67aa6b]{width:19px;height:19px}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-status-icon-wrapper .fail.fail-icon-wrapper[data-v-5f67aa6b]{display:flex;align-items:center}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-status-icon-wrapper .fail.fail-icon-wrapper .fail-icon[data-v-5f67aa6b]{width:19px;height:19px}.CiUpload .custom-file-list-default .file-item-wrapper .file-item-top .top-right .file-status-icon-wrapper .fail.fail-icon-wrapper .retry-icon[data-v-5f67aa6b]{margin:0 8px;cursor:pointer;width:18px;height:18px}.CiUpload .custom-file-list-default .file-item-wrapper .file-progress-bar[data-v-5f67aa6b]{width:100%;height:5px;background-color:#f0f0f0;border-radius:3px;overflow:hidden;margin-top:5px}.CiUpload .custom-file-list-default .file-item-wrapper .file-progress-bar .file-progress-inner[data-v-5f67aa6b]{height:100%;background-color:#3573f3;transition:width .3s ease}.CiUpload .custom-file-list-default .file-item-wrapper .download-progress-bar .file-progress-inner[data-v-5f67aa6b]{background-color:#2aca96}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const _ = /* @__PURE__ */
|
|
3
|
+
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _ = /* @__PURE__ */ a(o, [["__scopeId", "data-v-5f67aa6b"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ as default
|
|
7
7
|
};
|