agilebuilder-ui 1.1.65-tmp26 → 1.1.65-tmp28
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.full.min.js +1381 -1349
- package/dist/style.css +42 -22
- package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
- package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
- package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
- package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
- package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
- package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
- package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
- package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
- package/es/chat-embed/src/header.vue2.mjs +16 -16
- package/es/chat-embed/src/index.vue2.mjs +161 -161
- package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
- package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
- package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
- package/es/date-picker-range/index.vue2.mjs +39 -39
- package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
- package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
- package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/empty-state/index.vue.mjs +2 -2
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
- package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
- package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
- package/es/json-view/json-view-dialog.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
- package/es/row-form/index.vue2.mjs +31 -31
- package/es/row-form/operation.vue.mjs +13 -13
- package/es/secret-info/index.vue.mjs +1 -1
- package/es/src/components/Affix/index.vue2.mjs +26 -26
- package/es/src/components/Scrollbar/index.vue.mjs +22 -22
- package/es/src/views/error-page/401.vue.mjs +8 -8
- package/es/src/views/error-page/404.vue.mjs +8 -8
- package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue2.mjs +2 -2
- package/es/src/views/super-icon/index.mjs +7 -0
- package/es/src/views/super-icon/src/index.vue.mjs +7 -0
- package/es/src/views/super-icon/src/index.vue2.mjs +13 -0
- package/es/src/views/super-icon/src/index.vue3.mjs +4 -0
- package/es/src/views/svg-icon/src/svg-icon.vue2.mjs +14 -0
- package/es/style.css +907 -887
- package/es/super-grid/src/columns-config.vue.mjs +1 -1
- package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
- package/es/super-grid/src/components/select-input.vue.mjs +55 -55
- package/es/super-grid/src/row-detail.vue.mjs +1 -1
- package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
- package/es/super-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-grid/src/super-grid.vue.mjs +1 -1
- package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
- package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
- package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
- package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
- package/lib/chat-embed/src/header.vue2.cjs +17 -17
- package/lib/chat-embed/src/index.vue2.cjs +123 -123
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
- package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
- package/lib/date-picker-range/index.vue2.cjs +11 -11
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/empty-state/index.vue.cjs +2 -2
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
- package/lib/json-view/json-view-dialog.vue.cjs +6 -6
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
- package/lib/row-form/index.vue2.cjs +31 -31
- package/lib/row-form/operation.vue.cjs +13 -13
- package/lib/secret-info/index.vue.cjs +1 -1
- package/lib/src/components/Affix/index.vue2.cjs +28 -28
- package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
- package/lib/src/views/error-page/401.vue.cjs +7 -7
- package/lib/src/views/error-page/404.vue.cjs +4 -4
- package/lib/src/views/layout/components/Menubar/Item.vue.cjs +1 -1
- package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +2 -2
- package/lib/src/views/super-icon/index.cjs +5 -0
- package/lib/src/views/super-icon/src/index.vue.cjs +5 -0
- package/lib/src/views/super-icon/src/index.vue2.cjs +10 -0
- package/lib/src/views/super-icon/src/index.vue3.cjs +2 -0
- package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +12 -0
- package/lib/style.css +920 -900
- package/lib/super-grid/src/columns-config.vue.cjs +1 -1
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
- package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
- package/lib/super-grid/src/row-detail.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-grid/src/super-grid.vue.cjs +1 -1
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
- package/package.json +2 -2
- package/src/views/layout/components/Menubar/Item.vue +1 -1
- package/src/views/super-icon/index.js +6 -0
- package/src/views/super-icon/src/index.vue +52 -0
- package/src/views/svg-icon/src/svg-icon.vue +5 -8
|
@@ -10,32 +10,32 @@ const e = require("vue"), o = require("./fs-drag-upload.vue.cjs"), l = require("
|
|
|
10
10
|
return "file-upload";
|
|
11
11
|
} }, listCode: { type: String, default: null }, openCameraOrChoosePhoto: { type: String, default: "openCameraAndChoosePhoto" }, disabledNoPreview: { type: Boolean, default: false }, disabledNoDownload: { type: Boolean, default: false }, watermark: { type: Object, default: () => ({}) } }, setup(s2, { expose: p }) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13
|
-
const
|
|
14
|
-
c.value, m.value,
|
|
13
|
+
const { t: f } = d.useI18n(), u = s2, c = e.ref(n.isMobileBrowser()), m = e.ref(u.pageContext.pageType);
|
|
14
|
+
c.value, m.value, u.systemCode, u.configure, u.pageContext, u.watermark.content || (u.watermark.isShowWatermark = void 0 === ((_c = (_b = (_a = u.configure) == null ? void 0 : _a.props) == null ? void 0 : _b.watermark) == null ? void 0 : _c.isShowWatermark) ? "true" : ((_e = (_d = u.configure) == null ? void 0 : _d.props) == null ? void 0 : _e.watermark.isShowWatermark) + "", u.watermark.content = (_h = (_g = (_f = u.configure) == null ? void 0 : _f.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content);
|
|
15
15
|
const b = e.ref("");
|
|
16
|
-
"input" ===
|
|
16
|
+
"input" === u.displayType && (b.value = u.fileInfo.showName || "");
|
|
17
17
|
let v = e.ref(1);
|
|
18
|
-
|
|
18
|
+
u.limit ? v.value = u.limit : u.multiple && (v.value = 9);
|
|
19
19
|
const w = (e2) => {
|
|
20
|
-
b.value ? b.value = b.value + "," + e2.showName : b.value = e2.showName,
|
|
20
|
+
b.value ? b.value = b.value + "," + e2.showName : b.value = e2.showName, u.fileList.push({ showName: e2.showName, serverPath: e2.serverPath }), u.onSuccess();
|
|
21
21
|
}, h = (e2) => {
|
|
22
22
|
const o2 = e2.deleteFile;
|
|
23
|
-
let l2 =
|
|
24
|
-
l2 > -1 &&
|
|
23
|
+
let l2 = u.fileList.findIndex((e3) => e3.serverPath === o2.serverPath);
|
|
24
|
+
l2 > -1 && u.fileList.splice(l2, 1), l2 = e2.all.findIndex((e3) => e3.serverPath === o2.serverPath), l2 > -1 && e2.all.splice(l2, 1), b.value = u.fileList.map((e3) => e3.showName).join(","), u.onRemove();
|
|
25
25
|
};
|
|
26
26
|
function y(e2) {
|
|
27
|
-
const o2 = Array.from(
|
|
27
|
+
const o2 = Array.from(u.fileList, ({ serverPath: e3 }) => e3);
|
|
28
28
|
e2.forEach((e3) => {
|
|
29
|
-
o2.indexOf(e3.serverPath) < 0 &&
|
|
30
|
-
}),
|
|
29
|
+
o2.indexOf(e3.serverPath) < 0 && u.fileList.push({ showName: e3.name, serverPath: e3.serverPath });
|
|
30
|
+
}), u.onSuccess();
|
|
31
31
|
}
|
|
32
32
|
function C(e2) {
|
|
33
33
|
const o2 = e2.rmFiles && e2.rmFiles.length > 0 ? e2.rmFiles[0] : null;
|
|
34
34
|
if (o2) {
|
|
35
|
-
let e3 =
|
|
36
|
-
e3 > -1 &&
|
|
35
|
+
let e3 = u.fileList.findIndex((e4) => e4.serverPath === o2.serverPath);
|
|
36
|
+
e3 > -1 && u.fileList.splice(e3, 1);
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
u.onRemove();
|
|
39
39
|
}
|
|
40
40
|
const g = e.ref(null), S = e.ref();
|
|
41
41
|
function F(e2) {
|
|
@@ -43,12 +43,12 @@ const e = require("vue"), o = require("./fs-drag-upload.vue.cjs"), l = require("
|
|
|
43
43
|
let o2 = JSON.parse(e2.message);
|
|
44
44
|
o2 && o2.message && (o2 = JSON.parse(o2.message)), r.ElMessage.error(o2);
|
|
45
45
|
} else
|
|
46
|
-
r.ElMessage.error(
|
|
46
|
+
r.ElMessage.error(f("fsUpload.uploadFailed"));
|
|
47
47
|
}
|
|
48
48
|
return navigator.userAgent.indexOf(" uni-app ") > 0 ? g.value = "app" : g.value = "browser", p({ pickFileDone: function(e2) {
|
|
49
49
|
"app" === g.value && S.value.pickFileDone(e2);
|
|
50
50
|
}, uploadFileDone: function(e2) {
|
|
51
51
|
"app" === g.value && S.value.uploadFileDone(e2);
|
|
52
|
-
} }), (n2, d2) => c.value || "input" !== s2.displayType ? c.value || "button" !== s2.displayType ? c.value || "drag" !== s2.displayType ? c.value && "input" === s2.displayType ? (e.openBlock(), e.createBlock(i, { key: 3, ref_key: "fileUploadRef", ref: S, disabled: s2.disabled, fileInfo: s2.fileInfo, systemCode: s2.systemCode, accept: s2.accept, multiple: s2.multiple, limit: e.unref(v), limitFileSize: s2.limitFileSize, "disabled-no-preview": s2.disabledNoPreview, "disabled-no-download": s2.disabledNoDownload, placeholder: s2.placeholder, action: s2.action, headers: s2.headers, "file-list": s2.fileList, watermark: s2.watermark, beforeUpload: s2.beforeUpload, onSuccess: s2.onSuccess, beforeRemove: s2.beforeRemove, onRemove: s2.onRemove, beforeDownload: s2.beforeDownload, pageContext: s2.pageContext, configure: s2.configure, openFsUpload: s2.openFsUpload, componentId: s2.componentId, componentName: s2.componentName, listCode: s2.listCode, openCameraOrChoosePhoto: s2.openCameraOrChoosePhoto }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "limit", "limitFileSize", "disabled-no-preview", "disabled-no-download", "placeholder", "action", "headers", "file-list", "watermark", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto"])) : c.value ? (e.openBlock(), e.createBlock(a, { key: 4, ref_key: "fileUploadRef", ref: S, disabled: s2.disabled, fileInfo: s2.fileInfo, systemCode: s2.systemCode, accept: s2.accept, multiple: s2.multiple, limit: e.unref(v), limitFileSize: s2.limitFileSize, "disabled-no-preview": s2.disabledNoPreview, "disabled-no-download": s2.disabledNoDownload, placeholder: s2.placeholder, action: s2.action, headers: s2.headers, "file-list": s2.fileList, watermark: s2.watermark, beforeUpload: s2.beforeUpload, onSuccess: s2.onSuccess, beforeRemove: s2.beforeRemove, onRemove: [s2.onRemove, C], beforeDownload: s2.beforeDownload, pageContext: s2.pageContext, configure: s2.configure, openFsUpload: s2.openFsUpload, componentId: s2.componentId, componentName: s2.componentName, listCode: s2.listCode, openCameraOrChoosePhoto: s2.openCameraOrChoosePhoto, onUploadend: y }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "limit", "limitFileSize", "disabled-no-preview", "disabled-no-download", "placeholder", "action", "headers", "file-list", "watermark", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto"])) : e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(o, { key: 2, disabled: s2.disabled, fileInfo: s2.fileInfo, systemCode: s2.systemCode, accept: s2.accept, multiple: s2.multiple, limit: e.unref(v), limitFileSize: s2.limitFileSize, "disabled-no-preview": s2.disabledNoPreview, "disabled-no-download": s2.disabledNoDownload, placeholder: s2.placeholder, action: s2.action, headers: s2.headers, "file-list": s2.fileList, watermark: s2.watermark, beforeUpload: s2.beforeUpload, onSuccess: s2.onSuccess, beforeRemove: s2.beforeRemove, onRemove: s2.onRemove, beforeDownload: s2.beforeDownload, pageContext: s2.pageContext, configure: s2.configure, openFsUpload: s2.openFsUpload }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "limit", "limitFileSize", "disabled-no-preview", "disabled-no-download", "placeholder", "action", "headers", "file-list", "watermark", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload"])) : (e.openBlock(), e.createBlock(l, { key: 1, disabled: s2.disabled, fileInfo: s2.fileInfo, systemCode: s2.systemCode, accept: s2.accept, multiple: s2.multiple, "disabled-no-preview": s2.disabledNoPreview, "disabled-no-download": s2.disabledNoDownload, limit: e.unref(v), limitFileSize: s2.limitFileSize, placeholder: s2.placeholder, action: s2.action, headers: s2.headers, "file-list": s2.fileList, beforeUpload: s2.beforeUpload, onSuccess: s2.onSuccess, beforeRemove: s2.beforeRemove, onRemove: s2.onRemove, beforeDownload: s2.beforeDownload, pageContext: s2.pageContext, configure: s2.configure, watermark: s2.watermark, openFsUpload: s2.openFsUpload }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "disabled-no-preview", "disabled-no-download", "limit", "limitFileSize", "placeholder", "action", "headers", "file-list", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "watermark", "openFsUpload"])) : (e.openBlock(), e.createBlock(t, { key: 0, value:
|
|
52
|
+
} }), (n2, d2) => c.value || "input" !== s2.displayType ? c.value || "button" !== s2.displayType ? c.value || "drag" !== s2.displayType ? c.value && "input" === s2.displayType ? (e.openBlock(), e.createBlock(i, { key: 3, ref_key: "fileUploadRef", ref: S, disabled: s2.disabled, fileInfo: s2.fileInfo, systemCode: s2.systemCode, accept: s2.accept, multiple: s2.multiple, limit: e.unref(v), limitFileSize: s2.limitFileSize, "disabled-no-preview": s2.disabledNoPreview, "disabled-no-download": s2.disabledNoDownload, placeholder: s2.placeholder, action: s2.action, headers: s2.headers, "file-list": s2.fileList, watermark: s2.watermark, beforeUpload: s2.beforeUpload, onSuccess: s2.onSuccess, beforeRemove: s2.beforeRemove, onRemove: s2.onRemove, beforeDownload: s2.beforeDownload, pageContext: s2.pageContext, configure: s2.configure, openFsUpload: s2.openFsUpload, componentId: s2.componentId, componentName: s2.componentName, listCode: s2.listCode, openCameraOrChoosePhoto: s2.openCameraOrChoosePhoto }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "limit", "limitFileSize", "disabled-no-preview", "disabled-no-download", "placeholder", "action", "headers", "file-list", "watermark", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto"])) : c.value ? (e.openBlock(), e.createBlock(a, { key: 4, ref_key: "fileUploadRef", ref: S, disabled: s2.disabled, fileInfo: s2.fileInfo, systemCode: s2.systemCode, accept: s2.accept, multiple: s2.multiple, limit: e.unref(v), limitFileSize: s2.limitFileSize, "disabled-no-preview": s2.disabledNoPreview, "disabled-no-download": s2.disabledNoDownload, placeholder: s2.placeholder, action: s2.action, headers: s2.headers, "file-list": s2.fileList, watermark: s2.watermark, beforeUpload: s2.beforeUpload, onSuccess: s2.onSuccess, beforeRemove: s2.beforeRemove, onRemove: [s2.onRemove, C], beforeDownload: s2.beforeDownload, pageContext: s2.pageContext, configure: s2.configure, openFsUpload: s2.openFsUpload, componentId: s2.componentId, componentName: s2.componentName, listCode: s2.listCode, openCameraOrChoosePhoto: s2.openCameraOrChoosePhoto, onUploadend: y }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "limit", "limitFileSize", "disabled-no-preview", "disabled-no-download", "placeholder", "action", "headers", "file-list", "watermark", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto"])) : e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(o, { key: 2, disabled: s2.disabled, fileInfo: s2.fileInfo, systemCode: s2.systemCode, accept: s2.accept, multiple: s2.multiple, limit: e.unref(v), limitFileSize: s2.limitFileSize, "disabled-no-preview": s2.disabledNoPreview, "disabled-no-download": s2.disabledNoDownload, placeholder: s2.placeholder, action: s2.action, headers: s2.headers, "file-list": s2.fileList, watermark: s2.watermark, beforeUpload: s2.beforeUpload, onSuccess: s2.onSuccess, beforeRemove: s2.beforeRemove, onRemove: s2.onRemove, beforeDownload: s2.beforeDownload, pageContext: s2.pageContext, configure: s2.configure, openFsUpload: s2.openFsUpload }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "limit", "limitFileSize", "disabled-no-preview", "disabled-no-download", "placeholder", "action", "headers", "file-list", "watermark", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload"])) : (e.openBlock(), e.createBlock(l, { key: 1, disabled: s2.disabled, fileInfo: s2.fileInfo, systemCode: s2.systemCode, accept: s2.accept, multiple: s2.multiple, "disabled-no-preview": s2.disabledNoPreview, "disabled-no-download": s2.disabledNoDownload, limit: e.unref(v), limitFileSize: s2.limitFileSize, placeholder: s2.placeholder, action: s2.action, headers: s2.headers, "file-list": s2.fileList, beforeUpload: s2.beforeUpload, onSuccess: s2.onSuccess, beforeRemove: s2.beforeRemove, onRemove: s2.onRemove, beforeDownload: s2.beforeDownload, pageContext: s2.pageContext, configure: s2.configure, watermark: s2.watermark, openFsUpload: s2.openFsUpload }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "disabled-no-preview", "disabled-no-download", "limit", "limitFileSize", "placeholder", "action", "headers", "file-list", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "watermark", "openFsUpload"])) : (e.openBlock(), e.createBlock(t, { key: 0, value: u.fileInfo.showName, row: s2.entity, disabled: s2.disabled, fileInfo: s2.fileInfo, openFsUpload: s2.openFsUpload, fileSetObj: { accept: s2.accept, disabledNoPreview: s2.disabledNoPreview, disabledNoDownload: s2.disabledNoDownload, multiple: s2.multiple, limitFileSize: s2.limitFileSize, limit: e.unref(v), downloadable: s2.downloadable, watermark: s2.watermark }, onUploadSuccess: w, onDeleteSuccess: h, onOnError: F }, null, 8, ["value", "row", "disabled", "fileInfo", "openFsUpload", "fileSetObj"]));
|
|
53
53
|
} });
|
|
54
54
|
module.exports = s;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const e = require("vue"), t = require("./json-view.vue2.cjs"), o = e.defineComponent({ name: "JsonViewDialog", inheritAttrs: false, __name: "json-view-dialog", props: { jsonObject: { type: Object, default: () => {
|
|
3
3
|
} }, appendToBody: { type: Boolean, default: false }, modelValue: { type: Boolean, default: false }, title: { type: String, default: "JSON 预览" } }, emits: ["update:modelValue"], setup(o2, { emit: l }) {
|
|
4
|
-
const a = o2, n = e.ref(false);
|
|
4
|
+
const a = o2, n = l, u = e.ref(false);
|
|
5
5
|
e.watch(() => a.modelValue, (e2) => {
|
|
6
|
-
e2 && (
|
|
6
|
+
e2 && (u.value = true);
|
|
7
7
|
});
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const d = () => {
|
|
9
|
+
u.value = false, n("update:modelValue", false);
|
|
10
10
|
};
|
|
11
11
|
return (l2, a2) => {
|
|
12
|
-
const
|
|
13
|
-
return e.openBlock(), e.createBlock(
|
|
12
|
+
const n2 = e.resolveComponent("el-dialog");
|
|
13
|
+
return e.openBlock(), e.createBlock(n2, { "append-to-body": "", modelValue: u.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e2) => u.value = e2), title: o2.title, width: "600", onClose: d }, { default: e.withCtx(() => [e.createVNode(t, { jsonObject: o2.jsonObject }, null, 8, ["jsonObject"])]), _: 1 }, 8, ["modelValue", "append-to-body", "title"]);
|
|
14
14
|
};
|
|
15
15
|
} });
|
|
16
16
|
module.exports = o;
|
|
@@ -68,6 +68,6 @@ const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeT
|
|
|
68
68
|
} }, emits: ["close", "upload-success", "delete-success", "delete", "update:value", , "close", , "update:value"] }, c = { class: "group-link-btn-main" };
|
|
69
69
|
const d = n(r, [["render", function(e2, t2, o2, l2, i2, a2) {
|
|
70
70
|
const n2 = s.resolveComponent("ElIconUpload2"), r2 = s.resolveComponent("el-icon"), d2 = s.resolveComponent("el-link"), p = s.resolveComponent("ElIconZoomIn"), h = s.resolveComponent("el-input"), u = s.resolveComponent("el-button"), m = s.resolveComponent("el-upload"), w = s.resolveComponent("el-dialog"), f = s.resolveComponent("el-image"), v = s.resolveComponent("el-table-column"), g = s.resolveComponent("el-icon-view"), I = s.resolveComponent("el-tooltip"), C = s.resolveComponent("el-icon-delete"), P = s.resolveComponent("el-table"), b = s.resolveComponent("fs-preview");
|
|
71
|
-
return s.openBlock(), s.createElementBlock("div", null, [o2.disabled ? (s.openBlock(), s.createBlock(b, { key: 1, "file-list": i2.showFileList, label: o2.value }, null, 8, ["file-list", "label"])) : (s.openBlock(), s.createElementBlock(s.Fragment, { key: 0 }, [s.createVNode(h, { ref: "item", disabled: o2.disabled, "model-value": o2.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: s.withCtx(() => [s.createElementVNode("div", c, [o2.disabled ? s.createCommentVNode("", true) : (s.openBlock(), s.createBlock(d2, { key: 0, type: "info", underline: false, onClick: a2.openAnnexUpload }, { icon: s.withCtx(() => [s.createVNode(r2, { size: 14 }, { default: s.withCtx(() => [s.createVNode(n2)]), _: 1 })]), _: 1 }, 8, ["onClick"])), s.createVNode(d2, { size: "default", type: "info", underline: false, onClick: a2.preview }, { icon: s.withCtx(() => [s.createVNode(r2, { size: 14 }, { default: s.withCtx(() => [s.createVNode(p)]), _: 1 })]), _: 1 }, 8, ["onClick"])])]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), s.createVNode(w, { modelValue: i2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "30%" }, { default: s.withCtx(() => [i2.annexUploadFlag ? (s.openBlock(), s.createBlock(m, { key: 0, accept: o2.fileSetObj.accept ? o2.fileSetObj.accept : null, action: i2.defaultAction, "before-upload": a2.handleBeforeUpload, headers: i2.headers, "on-success": a2.uploadOnSuccess, "with-credentials": true, name: "file" }, { default: s.withCtx(() => [s.createVNode(u, null, { default: s.withCtx(() => [s.createTextVNode(s.toDisplayString(e2.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : s.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title"]), s.createVNode(w, { modelValue: i2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: s.withCtx(() => [s.createElementVNode("span", null, s.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage"))
|
|
71
|
+
return s.openBlock(), s.createElementBlock("div", null, [o2.disabled ? (s.openBlock(), s.createBlock(b, { key: 1, "file-list": i2.showFileList, label: o2.value }, null, 8, ["file-list", "label"])) : (s.openBlock(), s.createElementBlock(s.Fragment, { key: 0 }, [s.createVNode(h, { ref: "item", disabled: o2.disabled, "model-value": o2.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: s.withCtx(() => [s.createElementVNode("div", c, [o2.disabled ? s.createCommentVNode("", true) : (s.openBlock(), s.createBlock(d2, { key: 0, type: "info", underline: false, onClick: a2.openAnnexUpload }, { icon: s.withCtx(() => [s.createVNode(r2, { size: 14 }, { default: s.withCtx(() => [s.createVNode(n2)]), _: 1 })]), _: 1 }, 8, ["onClick"])), s.createVNode(d2, { size: "default", type: "info", underline: false, onClick: a2.preview }, { icon: s.withCtx(() => [s.createVNode(r2, { size: 14 }, { default: s.withCtx(() => [s.createVNode(p)]), _: 1 })]), _: 1 }, 8, ["onClick"])])]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), s.createVNode(w, { modelValue: i2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "30%" }, { default: s.withCtx(() => [i2.annexUploadFlag ? (s.openBlock(), s.createBlock(m, { key: 0, accept: o2.fileSetObj.accept ? o2.fileSetObj.accept : null, action: i2.defaultAction, "before-upload": a2.handleBeforeUpload, headers: i2.headers, "on-success": a2.uploadOnSuccess, "with-credentials": true, name: "file" }, { default: s.withCtx(() => [s.createVNode(u, null, { default: s.withCtx(() => [s.createTextVNode(s.toDisplayString(e2.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : s.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title"]), s.createVNode(w, { modelValue: i2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: s.withCtx(() => [s.createElementVNode("span", null, s.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage")), 1)]), default: s.withCtx(() => [i2.previewImageInfo && i2.previewImageInfo.isImg ? (s.openBlock(), s.createBlock(f, { key: 0, "preview-src-list": [i2.previewImageInfo.src], src: i2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])) : s.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title"]), s.createVNode(w, { modelValue: i2.showPreviewMulti, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { title: s.withCtx(() => [s.createElementVNode("span", null, s.toDisplayString(e2.$t("imatrixUIPublicModel.preview")), 1)]), default: s.withCtx(() => [s.createVNode(P, { data: i2.showFileList, "show-header": false }, { default: s.withCtx(() => [s.createVNode(v, { prop: "showName", width: "300" }), s.createVNode(v, { align: "right" }, { default: s.withCtx((t3) => [s.createVNode(I, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: s.withCtx(() => [s.createVNode(r2, { style: { cursor: "pointer" }, onClick: (e3) => a2.previewSingle(t3.row) }, { default: s.withCtx(() => [s.createVNode(g)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), o2.disabled ? s.createCommentVNode("", true) : (s.openBlock(), s.createBlock(v, { key: 0 }, { default: s.withCtx((t3) => [s.createVNode(I, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: s.withCtx(() => [s.createVNode(r2, { style: { cursor: "pointer" }, onClick: (e3) => a2.deleteRow(t3.$index) }, { default: s.withCtx(() => [s.createVNode(C)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
|
|
72
72
|
}]]);
|
|
73
73
|
module.exports = d;
|
|
@@ -88,9 +88,9 @@ const e = require("@element-plus/icons-vue"), t = require("../../src/utils/auth.
|
|
|
88
88
|
}), this.setEntityValue(e3.join(","), t2.join(","));
|
|
89
89
|
} else
|
|
90
90
|
this.setEntityValue(null, null);
|
|
91
|
-
} }, emits: ["close", "update:value", "update:value"] }, r = { class: "el-upload__tip", style: { "margin-left": "12px" } }, p = { key: 0 }, c =
|
|
92
|
-
const
|
|
93
|
-
const s2 = i.resolveComponent("el-button"),
|
|
94
|
-
return i.openBlock(), i.createElementBlock("div", null, [l2.disabled ? (i.openBlock(), i.createBlock(
|
|
91
|
+
} }, emits: ["close", "update:value", "update:value"] }, r = { class: "el-upload__tip", style: { "margin-left": "12px" } }, p = { key: 0 }, c = { style: { "margin-left": "6.5px" } }, d = { style: { "line-height": "30px" } }, m = ["onClick"], u = { style: { "margin-left": "6.5px" } };
|
|
92
|
+
const h = n(s, [["render", function(e2, t2, l2, o2, a2, n2) {
|
|
93
|
+
const s2 = i.resolveComponent("el-button"), h2 = i.resolveComponent("el-input"), w = i.resolveComponent("el-upload"), f = i.resolveComponent("el-icon-paperclip"), g = i.resolveComponent("el-icon"), v = i.resolveComponent("el-icon-close"), N = i.resolveComponent("el-tooltip"), C = i.resolveComponent("el-tag"), b = i.resolveComponent("el-progress"), V = i.resolveComponent("el-row"), x = i.resolveComponent("el-col"), k = i.resolveComponent("el-dialog"), y = i.resolveComponent("el-image"), P = i.resolveComponent("el-table-column"), U = i.resolveComponent("el-icon-view"), F = i.resolveComponent("el-icon-delete"), S = i.resolveComponent("el-table"), I = i.resolveComponent("fs-preview");
|
|
94
|
+
return i.openBlock(), i.createElementBlock("div", null, [l2.disabled ? (i.openBlock(), i.createBlock(I, { key: 1, "file-list": a2.showFileList, label: l2.value }, null, 8, ["file-list", "label"])) : (i.openBlock(), i.createElementBlock(i.Fragment, { key: 0 }, [i.createVNode(h2, { ref: "item", disabled: l2.disabled, "model-value": l2.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: i.withCtx(() => [l2.disabled ? i.createCommentVNode("", true) : (i.openBlock(), i.createBlock(s2, { key: 0, icon: a2.ElIconUpload2, size: "default", onClick: n2.openAnnexUpload }, null, 8, ["icon", "onClick"]))]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), i.createVNode(k, { modelValue: a2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => a2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "40%" }, { default: i.withCtx(() => [i.createVNode(w, { id: "upload", "auto-upload": false, "on-change": n2.uploadFile, "show-file-list": false, action: "" }, { tip: i.withCtx(() => [i.createElementVNode("span", r, [i.createTextVNode(" 上传文件不能超过" + i.toDisplayString(l2.fileSetObj.limitFileSize) + "M ", 1), l2.fileSetObj.accept ? (i.openBlock(), i.createElementBlock("span", p, ",并且只接受" + i.toDisplayString(l2.fileSetObj.accept) + "类型文件", 1)) : i.createCommentVNode("", true)])]), default: i.withCtx(() => [i.createVNode(s2, { size: "default", type: "primary" }, { default: i.withCtx(() => [...t2[5] || (t2[5] = [i.createTextVNode(" 选择文件", -1)])]), _: 1 })]), _: 1 }, 8, ["on-change"]), t2[6] || (t2[6] = i.createElementVNode("br", null, null, -1)), (i.openBlock(true), i.createElementBlock(i.Fragment, null, i.renderList(a2.uploadingFile, (e3, t3) => (i.openBlock(), i.createBlock(V, { key: t3 }, { default: i.withCtx(() => [i.createVNode(C, { size: "small form-list-file" }, { default: i.withCtx(() => [i.createElementVNode("span", null, [i.createVNode(g, null, { default: i.withCtx(() => [i.createVNode(f)]), _: 1 }), i.createElementVNode("span", c, i.toDisplayString(e3.name), 1)]), i.createVNode(N, { content: "取消上传", effect: "light", placement: "right" }, { default: i.withCtx(() => [i.createVNode(g, { style: { "margin-left": "8px" }, onClick: (t4) => n2.cancelUpload(e3.serverName) }, { default: i.withCtx(() => [i.createVNode(v)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024), i.createVNode(b, { percentage: e3.uploadProgress }, null, 8, ["percentage"])]), _: 2 }, 1024))), 128)), i.createElementVNode("div", d, [i.createVNode(V, null, { default: i.withCtx(() => [i.createVNode(x, null, { default: i.withCtx(() => [(i.openBlock(true), i.createElementBlock(i.Fragment, null, i.renderList(a2.fileContent, (e3, t3) => (i.openBlock(), i.createBlock(C, { key: t3, size: "small form-list-file" }, { default: i.withCtx(() => [i.createElementVNode("span", { onClick: (t4) => n2.preview(e3.name, e3.serverName) }, [i.createVNode(g, null, { default: i.withCtx(() => [i.createVNode(f)]), _: 1 }), i.createElementVNode("span", u, i.toDisplayString(e3.name), 1)], 8, m), i.createVNode(N, { content: "移除已上传文件", effect: "light", placement: "right" }, { default: i.withCtx(() => [i.createVNode(g, { style: { "margin-left": "8px" }, onClick: (l3) => n2.handleOnRemove(t3, e3) }, { default: i.withCtx(() => [i.createVNode(v)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })])]), _: 1 }, 8, ["modelValue", "title"]), i.createVNode(k, { modelValue: a2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => a2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: i.withCtx(() => [i.createElementVNode("span", null, i.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage")), 1)]), default: i.withCtx(() => [i.createVNode(y, { "preview-src-list": [a2.previewImageInfo.src], src: a2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])]), _: 1 }, 8, ["modelValue", "title"]), i.createVNode(k, { modelValue: a2.showPreviewMulti, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => a2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { title: i.withCtx(() => [i.createElementVNode("span", null, i.toDisplayString(e2.$t("imatrixUIPublicModel.preview")), 1)]), default: i.withCtx(() => [i.createVNode(S, { data: a2.showFileList, "show-header": false }, { default: i.withCtx(() => [i.createVNode(P, { prop: "showName", width: "300" }), i.createVNode(P, { align: "right" }, { default: i.withCtx((t3) => [i.createVNode(N, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: i.withCtx(() => [i.createVNode(g, { style: { cursor: "pointer" }, onClick: (l3) => e2.previewSingle(t3.row) }, { default: i.withCtx(() => [i.createVNode(U)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), l2.disabled ? i.createCommentVNode("", true) : (i.openBlock(), i.createBlock(P, { key: 0 }, { default: i.withCtx((t3) => [i.createVNode(N, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: i.withCtx(() => [i.createVNode(g, { style: { cursor: "pointer" }, onClick: (l3) => e2.deleteRow(t3.$index) }, { default: i.withCtx(() => [i.createVNode(F)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
|
|
95
95
|
}]]);
|
|
96
|
-
module.exports =
|
|
96
|
+
module.exports = h;
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const e = require("vue"), t = require("../super-grid/src/normal-column-content.vue.cjs"), r = require("../super-grid/src/utils.cjs"), o = require("../super-grid/src/store.cjs"), a = require("./operation.vue.cjs"), n = { style: { "text-align": "center" } }, i = { class: "row-form-item" }, l = { components: { operation: a }, name: "RowForm" }, s = e.defineComponent({ ...l, props: { columns: {}, listCode: {}, isSql: {}, dragColumnProp: {}, tableName: {}, pageCode: {}, listName: {}, currentPage: {}, gridData: {}, pageGridData: {}, listToolbarFormData: {}, rowIndex: {}, options: {}, lineEdit: {}, showPage: {}, pageSize: {} }, emits: ["open-page", "close", "prohibitToEdit", "refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "refreshList"], setup(l2, { emit: s2 }) {
|
|
3
|
-
const d = l2, c = e.ref(function() {
|
|
3
|
+
const d = l2, c = s2, u = e.ref(function() {
|
|
4
4
|
let e2 = d.rowIndex;
|
|
5
5
|
d.showPage && (e2 = d.rowIndex < d.pageSize ? (d.currentPage - 1) * d.pageSize + d.rowIndex : d.currentPage * d.pageSize - 1);
|
|
6
6
|
return e2;
|
|
7
|
-
}()),
|
|
8
|
-
let
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
function
|
|
7
|
+
}()), p = e.ref(true), m = e.ref(true);
|
|
8
|
+
let g;
|
|
9
|
+
const f = o.get(d.listCode), v = f.options;
|
|
10
|
+
f.options.extraParam && f.options.extraParam.entityMap && (g = f.options.extraParam.entityMap);
|
|
11
|
+
const C = e.ref(null), k = d.columns ? d.columns.filter((e2) => e2.prop && "operation" === e2.prop) : null;
|
|
12
|
+
function w(e2) {
|
|
13
13
|
return r.getHeaderLable(e2);
|
|
14
14
|
}
|
|
15
|
-
function w() {
|
|
16
|
-
p.value = false, --c.value, e.nextTick(() => {
|
|
17
|
-
p.value = true;
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
15
|
function x() {
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
m.value = false, --u.value, e.nextTick(() => {
|
|
17
|
+
m.value = true;
|
|
23
18
|
});
|
|
24
19
|
}
|
|
25
|
-
function D(
|
|
26
|
-
|
|
20
|
+
function D() {
|
|
21
|
+
m.value = false, ++u.value, e.nextTick(() => {
|
|
22
|
+
m.value = true;
|
|
23
|
+
});
|
|
27
24
|
}
|
|
28
25
|
function h(e2) {
|
|
29
|
-
|
|
26
|
+
c("open-page", e2);
|
|
30
27
|
}
|
|
31
28
|
function P(e2) {
|
|
32
|
-
|
|
29
|
+
c("prohibitToEdit", e2);
|
|
33
30
|
}
|
|
34
|
-
function b(e2
|
|
35
|
-
|
|
31
|
+
function b(e2) {
|
|
32
|
+
c("refresData", e2);
|
|
36
33
|
}
|
|
37
|
-
function y(e2) {
|
|
38
|
-
d && d.lineEdit && d.lineEdit.editingCell ?
|
|
34
|
+
function y(e2, t2) {
|
|
35
|
+
d && d.lineEdit && d.lineEdit.editingCell ? c("refresPortData", e2, t2, d.lineEdit.editingCell.row) : c("refresPortData", e2, t2, this.index);
|
|
39
36
|
}
|
|
40
37
|
function B(e2) {
|
|
41
|
-
|
|
38
|
+
d && d.lineEdit && d.lineEdit.editingCell ? c("refresPortsData", e2, d.lineEdit.editingCell.row) : c("refresPortsData", e2, this.index);
|
|
39
|
+
}
|
|
40
|
+
function E(e2) {
|
|
41
|
+
c("refresMainTableFields", e2);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
43
|
+
function N() {
|
|
44
|
+
c("refreshList");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
function T(t2) {
|
|
47
|
+
m.value = false, u.value = d.gridData.length - 1, e.nextTick(() => {
|
|
48
|
+
m.value = true;
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
return
|
|
52
|
-
const
|
|
53
|
-
return e.openBlock(), e.createBlock(
|
|
51
|
+
return k && k.length > 0 && (C.value = k[0]), (r2, o2) => {
|
|
52
|
+
const s3 = e.resolveComponent("el-form-item"), d2 = e.resolveComponent("el-form"), m2 = e.resolveComponent("el-button"), f2 = e.resolveComponent("el-drawer");
|
|
53
|
+
return e.openBlock(), e.createBlock(f2, { modelValue: p.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e2) => p.value = e2), "close-on-click-modal": false, "close-on-press-escape": false, direction: "btt", size: "100%", onClose: o2[1] || (o2[1] = (e2) => (p.value = false, void c("close"))) }, { header: e.withCtx(() => [e.createElementVNode("div", n, e.toDisplayString(r2.$t("superGrid.recordLine", { row: u.value + 1 })), 1)]), default: e.withCtx(() => [C.value ? (e.openBlock(), e.createBlock(a, { key: 0, column: C.value, "list-code": l2.listCode, currentPage: l2.currentPage, "grid-data": l2.gridData, "page-grid-data": l2.pageGridData, row: l2.gridData[u.value], rowIndex: u.value, parentFormData: e.unref(g), onRefreshList: N, onAfterClick: T }, null, 8, ["column", "list-code", "currentPage", "grid-data", "page-grid-data", "row", "rowIndex", "parentFormData"])) : e.createCommentVNode("", true), e.createVNode(d2, { "label-width": "auto" }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(l2.columns, (r3, o3) => (e.openBlock(), e.createElementBlock(e.Fragment, null, ["$index" != r3.prop && "$selection" != r3.prop && "operation" != r3.prop ? (e.openBlock(), e.createBlock(s3, { key: o3, label: w(r3) }, { default: e.withCtx(() => [e.createElementVNode("div", i, [e.createVNode(t, { ref_for: true, ref: r3.prop, "is-sql": l2.isSql, column: r3, "list-code": l2.listCode, "drag-column-prop": l2.dragColumnProp, "right-click-menu-arr": e.unref(v).rightClickMenuArr, "table-name": l2.tableName, "page-code": l2.pageCode, "list-toolbar-form-data": l2.listToolbarFormData, "list-name": l2.listName, options: e.unref(v), "current-page": l2.currentPage, "grid-data": l2.gridData, "page-grid-data": l2.pageGridData, row: l2.gridData[u.value], "row-index": u.value, "is-show-form": true, onOpenPage: h, onRefresData: b, onRefreshList: N, onRefresPortData: y, onRefresPortsData: B, onRefresMainTableFields: E, onProhibitToEdit: P }, null, 8, ["is-sql", "column", "list-code", "drag-column-prop", "right-click-menu-arr", "table-name", "page-code", "list-toolbar-form-data", "list-name", "options", "current-page", "grid-data", "page-grid-data", "row", "row-index"])])]), _: 2 }, 1032, ["label"])) : e.createCommentVNode("", true)], 64))), 256))]), _: 1 }), 0 !== u.value ? (e.openBlock(), e.createBlock(m2, { key: 1, type: "primary", link: "", onClick: x }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(r2.$t("superGrid.prevRow")), 1)]), _: 1 })) : e.createCommentVNode("", true), u.value !== l2.gridData.length - 1 ? (e.openBlock(), e.createBlock(m2, { key: 2, type: "primary", link: "", onClick: D }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(r2.$t("superGrid.nextRow")), 1)]), _: 1 })) : e.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue"]);
|
|
54
54
|
};
|
|
55
55
|
} });
|
|
56
56
|
module.exports = s;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const e = require("vue"), o = require("../super-grid/src/row-operation.vue.cjs"), r = require("../super-grid/src/custom-formatter.cjs"), t = { key: 0, class: "grid-operation-buttons" }, n = e.defineComponent({ name: "RowForm", props: { column: {}, listCode: {}, currentPage: {}, gridData: {}, pageGridData: {}, rowIndex: {}, parentFormData: {}, row: {} }, emits: ["refreshList", "afterClick"], setup(n2, { emit: a }) {
|
|
3
|
-
const i = n2;
|
|
3
|
+
const i = n2, l = a;
|
|
4
4
|
e.ref(i.rowIndex);
|
|
5
|
-
const
|
|
6
|
-
function
|
|
5
|
+
const p = e.ref(true);
|
|
6
|
+
function s(e2) {
|
|
7
7
|
let o2 = null;
|
|
8
8
|
i.column.operations.forEach((r2) => {
|
|
9
9
|
r2.isGroup && r2.buttons.forEach((r3) => {
|
|
@@ -11,18 +11,18 @@ const e = require("vue"), o = require("../super-grid/src/row-operation.vue.cjs")
|
|
|
11
11
|
});
|
|
12
12
|
}), o2 && r.onClickFun(e2.row, i.column, o2.onClick, e2.rowIndex);
|
|
13
13
|
}
|
|
14
|
-
function s() {
|
|
15
|
-
a("refreshList");
|
|
16
|
-
}
|
|
17
14
|
function c() {
|
|
18
|
-
|
|
15
|
+
l("refreshList");
|
|
16
|
+
}
|
|
17
|
+
function d() {
|
|
18
|
+
l("afterClick", { row: i.row, column: i.column, rowIndex: i.rowIndex });
|
|
19
19
|
}
|
|
20
|
-
return e.ref(true), (r2,
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
return e.openBlock(), e.createElementBlock("span", { key: o2.props.code + t3 }, [e.withDirectives((e.openBlock(), e.createBlock(
|
|
24
|
-
var
|
|
25
|
-
}), 128))]), _: 2 }, 1024)]), default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(r2.$escapeHtml(t2.label)) + " ", 1)]), _: 2 }, 1032, ["size"])) : t2.props.customControl ? e.withDirectives((e.openBlock(), e.createBlock(e.resolveDynamicComponent(t2.props.customControl), { key:
|
|
20
|
+
return e.ref(true), (r2, a2) => {
|
|
21
|
+
const i2 = e.resolveComponent("el-dropdown-item"), l2 = e.resolveComponent("el-dropdown-menu"), m = e.resolveComponent("el-dropdown"), u = e.resolveDirective("permission");
|
|
22
|
+
return n2.column.operations ? (e.openBlock(), e.createElementBlock("div", t, [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(n2.column.operations, (t2, a3) => (e.openBlock(), e.createElementBlock("span", { key: a3, class: e.normalizeClass([p.value ? "" : "cell--span", "buttons-row-operation-span"]) }, [t2.isGroup ? (e.openBlock(), e.createBlock(m, { key: 0, size: t2.buttons && t2.buttons.length > 0 ? t2.buttons[0].props.size : "small", "split-button": "", onCommand: s }, { dropdown: e.withCtx(() => [e.createVNode(l2, null, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t2.buttons, (o2, t3) => {
|
|
23
|
+
return e.openBlock(), e.createElementBlock("span", { key: o2.props.code + t3 }, [e.withDirectives((e.openBlock(), e.createBlock(i2, { command: (a4 = o2.props.code, l3 = n2.row, p2 = n2.rowIndex, { comman: a4, row: l3, rowIndex: p2 }), disabled: r2.preventReclick }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(r2.$escapeHtml(o2.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[u, o2.props.permission]])]);
|
|
24
|
+
var a4, l3, p2;
|
|
25
|
+
}), 128))]), _: 2 }, 1024)]), default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(r2.$escapeHtml(t2.label)) + " ", 1)]), _: 2 }, 1032, ["size"])) : t2.props.customControl ? e.withDirectives((e.openBlock(), e.createBlock(e.resolveDynamicComponent(t2.props.customControl), { key: n2.column.prop + "_" + n2.rowIndex + "_" + n2.currentPage, disabled: true, row: n2.pageGridData[n2.rowIndex], entity: n2.pageGridData[n2.rowIndex], prop: n2.column.prop, parent: n2.parentFormData, "row-index": n2.rowIndex, "grid-data": n2.gridData, "page-grid-data": n2.pageGridData, "current-page": n2.currentPage, onRefreshList: c }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page"])), [[u, t2.props.permission]]) : (e.openBlock(), e.createBlock(o, { key: 2, column: n2.column, editing: n2.row.$editing, entity: n2.row, "is-show": t2.isShow, label: t2.props.label ? t2.props.label : n2.row[n2.column.prop], "on-click": t2.onClick, "operation-index": a3, "operation-setting": t2.props, "row-index": n2.rowIndex, "list-code": n2.listCode, "parent-form-data": n2.parentFormData, onAfterClick: d }, null, 8, ["column", "editing", "entity", "is-show", "label", "on-click", "operation-index", "operation-setting", "row-index", "list-code", "parent-form-data"]))], 2))), 128))])) : e.createCommentVNode("", true);
|
|
26
26
|
};
|
|
27
27
|
} });
|
|
28
28
|
module.exports = n;
|
|
@@ -8,6 +8,6 @@ const o = t({ name: "SecretInfo", props: { entity: { type: Object, default: null
|
|
|
8
8
|
this.decryInfo = e3, this.isShow = true;
|
|
9
9
|
});
|
|
10
10
|
} }, emits: ["update:value"] }, [["render", function(t2, o2, a, s, r, d) {
|
|
11
|
-
return void 0 !== a.value && null !== a.value && "" !== a.value ? (e.openBlock(), e.createElementBlock("span", l, [r.isShow ? (e.openBlock(), e.createElementBlock("span", i, [e.createTextVNode(e.toDisplayString(r.decryInfo), 1), e.createElementVNode("i", { class: "fa fa-eye", style: { "margin-left": "5px" }, onClick: o2[0] || (o2[0] = (...e2) => d.showHideSecretInfo && d.showHideSecretInfo(...e2)) })])) : (e.openBlock(), e.createElementBlock("span", n, [e.createTextVNode(" ******"), e.createElementVNode("i", { class: "fa fa-eye-slash", style: { "margin-left": "5px" }, onClick: o2[1] || (o2[1] = (...e2) => d.showHideSecretInfo && d.showHideSecretInfo(...e2)) })]))])) : e.createCommentVNode("", true);
|
|
11
|
+
return void 0 !== a.value && null !== a.value && "" !== a.value ? (e.openBlock(), e.createElementBlock("span", l, [r.isShow ? (e.openBlock(), e.createElementBlock("span", i, [e.createTextVNode(e.toDisplayString(r.decryInfo), 1), e.createElementVNode("i", { class: "fa fa-eye", style: { "margin-left": "5px" }, onClick: o2[0] || (o2[0] = (...e2) => d.showHideSecretInfo && d.showHideSecretInfo(...e2)) })])) : (e.openBlock(), e.createElementBlock("span", n, [o2[2] || (o2[2] = e.createTextVNode(" ******", -1)), e.createElementVNode("i", { class: "fa fa-eye-slash", style: { "margin-left": "5px" }, onClick: o2[1] || (o2[1] = (...e2) => d.showHideSecretInfo && d.showHideSecretInfo(...e2)) })]))])) : e.createCommentVNode("", true);
|
|
12
12
|
}]]);
|
|
13
13
|
module.exports = o;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const e = require("vue"), t = e.defineComponent({ __name: "index", props: { offset: { type: Number, default: 0 }, position: { type: String, default: "top", validator: (e2) => ["top", "bottom"].includes(e2) }, target: { type: [String, HTMLElement], default: () => window }, autoDetectParentScroll: { type: Boolean, default: true }, stickyInScrollContainer: { type: Boolean, default: true }, zIndex: { type: Number, default: 100 }, enableIntervalUpdate: { type: Boolean, default: true }, enableIntervalTime: { type: Number, default: 2e3 } }, emits: ["change"], setup(t2, { emit: o }) {
|
|
3
|
-
const n = t2, i = e.ref(null),
|
|
4
|
-
e2.contentRect.height && (
|
|
5
|
-
},
|
|
3
|
+
const n = t2, i = o, l = e.ref(null), r = e.ref(null), a = e.ref(false), s = e.ref({}), u = e.ref([]), c = e.ref(window), f = e.ref(0), d = e.ref(null), v = (e2) => {
|
|
4
|
+
e2.contentRect.height && (s.value.height = e2.contentRect.height);
|
|
5
|
+
}, p = () => {
|
|
6
6
|
try {
|
|
7
|
-
if (!
|
|
7
|
+
if (!r.value)
|
|
8
8
|
return;
|
|
9
|
-
const e2 =
|
|
9
|
+
const e2 = r.value.getBoundingClientRect(), t3 = c.value;
|
|
10
10
|
if (t3 === window) {
|
|
11
11
|
const t4 = "top" === n.position ? e2.top <= n.offset : e2.bottom >= window.innerHeight - n.offset;
|
|
12
|
-
|
|
12
|
+
f.value = 0, m(t4, e2);
|
|
13
13
|
} else if (n.stickyInScrollContainer) {
|
|
14
|
-
const o2 = t3.getBoundingClientRect(), { isFixTop:
|
|
14
|
+
const o2 = t3.getBoundingClientRect(), { isFixTop: i2, isFixBottom: r2, containerOffset: a2 } = ((e3) => {
|
|
15
15
|
const t4 = ["top"].includes(n.position), o3 = ["bottom"].includes(n.position);
|
|
16
|
-
if (!
|
|
16
|
+
if (!l.value)
|
|
17
17
|
return { isTop: t4, isBottom: o3 };
|
|
18
|
-
const
|
|
18
|
+
const i3 = l.value.getBoundingClientRect(), r3 = i3.top - e3.top, a3 = i3.left - e3.left, s2 = e3.height - i3.height - r3, u2 = e3.top, c2 = window.innerHeight - e3.bottom;
|
|
19
19
|
return { isTop: t4, isBottom: o3, containerTop: u2, containerBottom: c2, containerOffset: t4 ? u2 : o3 ? c2 : 0, offsetTop: r3, offsetLeft: a3, offsetBottom: s2, isFixTop: t4 && r3 <= 0, isFixBottom: o3 && s2 <= 0 };
|
|
20
20
|
})(o2);
|
|
21
|
-
|
|
21
|
+
f.value = a2 ?? 0, m(i2 || r2 || false, e2);
|
|
22
22
|
}
|
|
23
23
|
} catch (e2) {
|
|
24
24
|
console.error(e2);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
26
|
+
}, m = (e2, t3) => {
|
|
27
27
|
var _a;
|
|
28
|
-
t3.height && (e2 ===
|
|
29
|
-
},
|
|
30
|
-
requestAnimationFrame(
|
|
28
|
+
t3.height && (e2 === a.value && ((_a = s.value) == null ? void 0 : _a.height) === `${t3.height}px` || (a.value = e2, i("change", e2), s.value = e2 ? { width: "100%", height: `${t3.height}px` } : {}));
|
|
29
|
+
}, h = () => {
|
|
30
|
+
requestAnimationFrame(p);
|
|
31
31
|
};
|
|
32
|
-
let
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
let g;
|
|
33
|
+
const w = () => {
|
|
34
|
+
a.value = false, clearTimeout(g), g = window.setTimeout(() => {
|
|
35
|
+
p();
|
|
36
36
|
}, 100);
|
|
37
37
|
};
|
|
38
38
|
e.onMounted(() => {
|
|
39
39
|
setTimeout(() => {
|
|
40
40
|
e.nextTick(() => {
|
|
41
41
|
try {
|
|
42
|
-
n.enableIntervalUpdate && (
|
|
42
|
+
n.enableIntervalUpdate && (d.value = setInterval(h, n.enableIntervalTime));
|
|
43
43
|
const e2 = (() => {
|
|
44
|
-
if (n.autoDetectParentScroll &&
|
|
44
|
+
if (n.autoDetectParentScroll && r.value) {
|
|
45
45
|
const e3 = [];
|
|
46
|
-
let t3 =
|
|
46
|
+
let t3 = r.value.parentElement;
|
|
47
47
|
for (; t3 && t3 !== document.body; ) {
|
|
48
48
|
const { overflowY: o2 } = window.getComputedStyle(t3);
|
|
49
49
|
/(auto|scroll)/.test(o2) && e3.push(t3), t3 = t3.parentElement;
|
|
@@ -56,26 +56,26 @@ const e = require("vue"), t = e.defineComponent({ __name: "index", props: { offs
|
|
|
56
56
|
}
|
|
57
57
|
return [window];
|
|
58
58
|
})();
|
|
59
|
-
|
|
59
|
+
u.value = e2, c.value = e2[0], u.value.forEach((e3) => e3.addEventListener("scroll", h)), window.addEventListener("resize", w), p();
|
|
60
60
|
} catch (e2) {
|
|
61
61
|
console.error(e2);
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
}, 100);
|
|
65
65
|
}), e.onUnmounted(() => {
|
|
66
|
-
|
|
66
|
+
c.value && u.value.forEach((e2) => e2.removeEventListener("scroll", h)), window.removeEventListener("resize", w), clearTimeout(g), d.value && clearInterval(d.value);
|
|
67
67
|
}), e.watchEffect(() => {
|
|
68
68
|
e.nextTick(() => {
|
|
69
|
-
|
|
69
|
+
h();
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
-
const
|
|
72
|
+
const y = e.computed(() => {
|
|
73
73
|
var _a, _b;
|
|
74
|
-
return
|
|
74
|
+
return a.value && ((_a = r.value) == null ? void 0 : _a.offsetWidth) ? { position: "fixed", width: `${(_b = r.value) == null ? void 0 : _b.offsetWidth}px`, zIndex: n.zIndex, [n.position]: `${n.offset + f.value}px` } : { position: "relative" };
|
|
75
75
|
});
|
|
76
76
|
return (t3, o2) => {
|
|
77
|
-
const
|
|
78
|
-
return e.openBlock(), e.createElementBlock("div", { ref_key: "affixMainRef", ref:
|
|
77
|
+
const i2 = e.resolveDirective("resize");
|
|
78
|
+
return e.openBlock(), e.createElementBlock("div", { ref_key: "affixMainRef", ref: l, class: "yx-affix", style: e.normalizeStyle({ height: a.value ? s.value.height : void 0 }) }, [e.withDirectives((e.openBlock(), e.createElementBlock("div", { ref_key: "affixRef", ref: r, style: e.normalizeStyle(y.value), class: e.normalizeClass([{ "is-fixed": a.value, "is-top": "top" === n.position, "is-bottom": "bottom" === n.position }, "yx-affix-content"]) }, [e.renderSlot(t3.$slots, "default", {}, void 0, true)], 6)), [[i2, v]])], 4);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
module.exports = t;
|
|
@@ -5,44 +5,44 @@ const l = require("../../../_virtual/_plugin-vue_export-helper.cjs")({ __name: "
|
|
|
5
5
|
} }, setHeight: { type: [Function, void 0], default: () => {
|
|
6
6
|
} } }, emits: ["scrollToTop", "scrollToBottom"], setup(l2, { emit: s }) {
|
|
7
7
|
var _a;
|
|
8
|
-
const r =
|
|
8
|
+
const r = e.useSlots();
|
|
9
9
|
(_a = o == null ? void 0 : o.dispatch) == null ? void 0 : _a.call(o, "startListeningToResize");
|
|
10
|
-
const
|
|
10
|
+
const a = e.ref(null), i = e.ref(void 0), c = s, u = e.computed(() => ({ windowWidth: o.getters.windowWidth, windowHeight: o.getters.windowHeight, isMobileResize: o.getters.isMobileResize })), d = e.reactive({ always: false }), n = l2, { attrs: h } = e.useAttrs(), p = (e2) => {
|
|
11
11
|
try {
|
|
12
12
|
return e2 == null ? void 0 : e2(u.value);
|
|
13
13
|
} catch (e3) {
|
|
14
14
|
console.error(e3);
|
|
15
15
|
}
|
|
16
|
-
},
|
|
17
|
-
const t2 = e.mergeProps(d,
|
|
18
|
-
return { ...{ ...
|
|
19
|
-
}),
|
|
16
|
+
}, g = e.computed(() => {
|
|
17
|
+
const t2 = e.mergeProps(d, h);
|
|
18
|
+
return { ...{ ...n.setMaxHeight ? { maxHeight: p(n.setMaxHeight) } : {}, ...n.setHeight ? { height: p(n.setHeight) } : {} }, ...t2 };
|
|
19
|
+
}), v = (e2) => {
|
|
20
20
|
if (!e2)
|
|
21
21
|
return;
|
|
22
|
-
const t2 = e2.scrollTop <=
|
|
23
|
-
e2.scrollTop + e2.clientHeight + 1 >= e2.scrollHeight -
|
|
24
|
-
},
|
|
22
|
+
const t2 = e2.scrollTop <= n.triggerDistance;
|
|
23
|
+
e2.scrollTop + e2.clientHeight + 1 >= e2.scrollHeight - n.triggerDistance ? (!["at-bottom"].includes(i.value) && c("scrollToBottom"), i.value = "at-bottom") : t2 ? (!["at-top"].includes(i.value) && c("scrollToTop"), i.value = "at-top") : i.value = void 0;
|
|
24
|
+
}, w = () => {
|
|
25
25
|
var _a2;
|
|
26
|
-
const e2 = (_a2 =
|
|
26
|
+
const e2 = (_a2 = a.value) == null ? void 0 : _a2.$el.querySelector(".el-scrollbar__wrap");
|
|
27
27
|
if (e2) {
|
|
28
28
|
const t2 = 0 === e2.scrollTop, o2 = e2.scrollTop + e2.clientHeight === e2.scrollHeight;
|
|
29
|
-
|
|
29
|
+
n.showScrollShadow ? (t2 ? a.value.$el.classList.remove("scroll-top-shadow") : a.value.$el.classList.add("scroll-top-shadow"), o2 ? a.value.$el.classList.remove("scroll-bottom-shadow") : a.value.$el.classList.add("scroll-bottom-shadow")) : a.value.$el.classList.remove("scroll-top-shadow", "scroll-bottom-shadow"), v(e2);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
return e.onMounted(() => {
|
|
33
|
-
const e2 =
|
|
34
|
-
e2 && (e2.addEventListener("scroll",
|
|
35
|
-
}), e.watch(() =>
|
|
36
|
-
|
|
37
|
-
}), e.watch(() =>
|
|
38
|
-
setTimeout(
|
|
39
|
-
}), e.watch(() =>
|
|
40
|
-
setTimeout(
|
|
33
|
+
const e2 = a.value.$el.querySelector(".el-scrollbar__wrap");
|
|
34
|
+
e2 && (e2.addEventListener("scroll", w), w(), v(e2));
|
|
35
|
+
}), e.watch(() => n.showScrollShadow, () => {
|
|
36
|
+
w();
|
|
37
|
+
}), e.watch(() => g == null ? void 0 : g.maxHeight, () => {
|
|
38
|
+
setTimeout(w, 500);
|
|
39
|
+
}), e.watch(() => g == null ? void 0 : g.height, () => {
|
|
40
|
+
setTimeout(w, 500);
|
|
41
41
|
}), e.watch(() => {
|
|
42
42
|
var _a2;
|
|
43
|
-
return (_a2 =
|
|
43
|
+
return (_a2 = r.default) == null ? void 0 : _a2.call(r);
|
|
44
44
|
}, (e2, t2) => {
|
|
45
|
-
e2 !== t2 && setTimeout(
|
|
46
|
-
}, { deep: true }), (o2, l3) => (e.openBlock(), e.createBlock(e.unref(t.ElScrollbar), e.mergeProps(
|
|
45
|
+
e2 !== t2 && setTimeout(w, 500);
|
|
46
|
+
}, { deep: true }), (o2, l3) => (e.openBlock(), e.createBlock(e.unref(t.ElScrollbar), e.mergeProps(g.value, { class: { "is-dispatch": n.dispatch }, ref_key: "scrollbarRef", ref: a }), { default: e.withCtx(() => [e.renderSlot(o2.$slots, "default", {}, void 0, true)]), _: 3 }, 16, ["class"]));
|
|
47
47
|
} }, [["__scopeId", "data-v-dba8fdf8"]]);
|
|
48
48
|
module.exports = l;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const e = require("@element-plus/icons-vue"), t = require("../../assets/401/401.gif.cjs"),
|
|
2
|
+
const e = require("@element-plus/icons-vue"), t = require("../../assets/401/401.gif.cjs"), l = require("vue");
|
|
3
3
|
require("./401.vue2.cjs");
|
|
4
|
-
const
|
|
4
|
+
const o = require("../../../_virtual/_plugin-vue_export-helper.cjs"), r = { class: "errPage-container" }, a = { class: "list-unstyled" }, n = { class: "link-type" }, i = ["src"], c = ["src"];
|
|
5
|
+
const s = o({ data: () => ({ errGif: t + "?" + +/* @__PURE__ */ new Date(), ewizardClap: "https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646", dialogVisible: false, ElIconArrowLeft: e.ArrowLeft }), name: "Page401", methods: { back() {
|
|
5
6
|
this.$route.query.noGoBack ? this.$router.push({ path: "/dashboard" }) : this.$router.go(-1);
|
|
6
|
-
} } },
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
return o.openBlock(), o.createElementBlock("div", n, [o.createVNode(b, { icon: r2.ElIconArrowLeft, class: "pan-back-btn", onClick: f2.back }, { default: o.withCtx(() => [o.createTextVNode(" 返回 ")]), _: 1 }, 8, ["icon", "onClick"]), o.createVNode(C, null, { default: o.withCtx(() => [o.createVNode(g, { span: 12 }, { default: o.withCtx(() => [c, o.createTextVNode(" gif来源"), i, o.createTextVNode(" 页面 "), s, d, o.createElementVNode("ul", u, [m, o.createElementVNode("li", p, [o.createVNode(w, { to: "/dashboard" }, { default: o.withCtx(() => [o.createTextVNode(" 回首页 ")]), _: 1 })]), h, o.createElementVNode("li", null, [o.createElementVNode("a", { href: "#", onClick: t2[0] || (t2[0] = o.withModifiers((e3) => r2.dialogVisible = true, ["prevent"])) }, " 点我看图 ")])])]), _: 1 }), o.createVNode(g, { span: 12 }, { default: o.withCtx(() => [o.createElementVNode("img", { src: r2.errGif, width: "313", height: "428", alt: "Girl has dropped her ice cream." }, null, 8, V)]), _: 1 })]), _: 1 }), o.createVNode(E, { modelValue: r2.dialogVisible, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => r2.dialogVisible = e3), title: "随便看" }, { default: o.withCtx(() => [o.createElementVNode("img", { src: r2.ewizardClap, class: "pan-img" }, null, 8, N)]), _: 1 }, 8, ["modelValue"])]);
|
|
7
|
+
} } }, [["render", function(e2, t2, o2, s2, d, u) {
|
|
8
|
+
const m = l.resolveComponent("el-button"), h = l.resolveComponent("router-link"), p = l.resolveComponent("el-col"), V = l.resolveComponent("el-row"), N = l.resolveComponent("el-dialog");
|
|
9
|
+
return l.openBlock(), l.createElementBlock("div", r, [l.createVNode(m, { icon: d.ElIconArrowLeft, class: "pan-back-btn", onClick: u.back }, { default: l.withCtx(() => [...t2[2] || (t2[2] = [l.createTextVNode(" 返回 ", -1)])]), _: 1 }, 8, ["icon", "onClick"]), l.createVNode(V, null, { default: l.withCtx(() => [l.createVNode(p, { span: 12 }, { default: l.withCtx(() => [t2[6] || (t2[6] = l.createElementVNode("h1", { class: "text-jumbo text-ginormous" }, "Oops!", -1)), t2[7] || (t2[7] = l.createTextVNode(" gif来源", -1)), t2[8] || (t2[8] = l.createElementVNode("a", { href: "https://zh.airbnb.com/", target: "_blank" }, " airbnb ", -1)), t2[9] || (t2[9] = l.createTextVNode(" 页面 ", -1)), t2[10] || (t2[10] = l.createElementVNode("h2", null, "你没有权限去该页面", -1)), t2[11] || (t2[11] = l.createElementVNode("h6", null, "如有不满请联系你领导", -1)), l.createElementVNode("ul", a, [t2[4] || (t2[4] = l.createElementVNode("li", null, "或者你可以去:", -1)), l.createElementVNode("li", n, [l.createVNode(h, { to: "/dashboard" }, { default: l.withCtx(() => [...t2[3] || (t2[3] = [l.createTextVNode(" 回首页 ", -1)])]), _: 1 })]), t2[5] || (t2[5] = l.createElementVNode("li", { class: "link-type" }, [l.createElementVNode("a", { href: "https://www.taobao.com/" }, " 随便看看 ")], -1)), l.createElementVNode("li", null, [l.createElementVNode("a", { href: "#", onClick: t2[0] || (t2[0] = l.withModifiers((e3) => d.dialogVisible = true, ["prevent"])) }, " 点我看图 ")])])]), _: 1 }), l.createVNode(p, { span: 12 }, { default: l.withCtx(() => [l.createElementVNode("img", { src: d.errGif, width: "313", height: "428", alt: "Girl has dropped her ice cream." }, null, 8, i)]), _: 1 })]), _: 1 }), l.createVNode(N, { modelValue: d.dialogVisible, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => d.dialogVisible = e3), title: "随便看" }, { default: l.withCtx(() => [l.createElementVNode("img", { src: d.ewizardClap, class: "pan-img" }, null, 8, c)]), _: 1 }, 8, ["modelValue"])]);
|
|
10
10
|
}], ["__scopeId", "data-v-6bef0241"]]);
|
|
11
|
-
module.exports =
|
|
11
|
+
module.exports = s;
|