@cmstops/pro-compo 0.1.10 → 0.1.12
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.css +1035 -0
- package/dist/index.min.css +1 -1
- package/es/_virtual/plugin-vue_export-helper.js +7 -0
- package/es/config.d.ts +2 -0
- package/es/config.js +3 -1
- package/es/contentDetailList/component.d.ts +0 -0
- package/es/contentDetailList/component.js +89 -0
- package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/CompoItem/index.js +76 -0
- package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/ContentListItem/index.js +99 -0
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +71 -0
- package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocItem/index.js +199 -0
- package/es/contentDetailList/components/Content/KongoNavItem/DocTags/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +184 -0
- package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +131 -0
- package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/LiveItem/index.js +82 -0
- package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/MaccountItem/index.js +84 -0
- package/es/contentDetailList/components/Content/MaccountItem/temp/user.js +2 -0
- package/es/contentDetailList/components/Content/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/index.js +308 -0
- package/es/contentDetailList/components/Doc/index.d.ts +0 -0
- package/es/contentDetailList/components/Doc/index.js +58 -0
- package/es/contentDetailList/index.d.ts +2 -0
- package/es/contentDetailList/index.js +7 -0
- package/es/contentDetailList/scripts/data.d.ts +254 -0
- package/es/contentDetailList/scripts/index.d.ts +58 -0
- package/es/contentDetailList/scripts/index.js +137 -0
- package/es/contentDetailList/style/ComoItem.less +106 -0
- package/es/contentDetailList/style/Content.less +49 -0
- package/es/contentDetailList/style/ContentListItem.less +131 -0
- package/es/contentDetailList/style/Doc.less +8 -0
- package/es/contentDetailList/style/DocItem.less +145 -0
- package/es/contentDetailList/style/DocTags.less +63 -0
- package/es/contentDetailList/style/KongoNavItem.less +110 -0
- package/es/contentDetailList/style/LiveItem.less +115 -0
- package/es/contentDetailList/style/MaccountItem.less +114 -0
- package/es/contentDetailList/style/css.js +1 -0
- package/es/contentDetailList/style/index.css +683 -0
- package/es/contentDetailList/style/index.d.ts +1 -0
- package/es/contentDetailList/style/index.js +1 -0
- package/es/contentDetailList/style/index.less +9 -0
- package/es/contentModal/component.js +2 -1
- package/es/contentModal/components/CompoList/CompoFilter/index.js +3 -2
- package/es/contentModal/components/CompoList/index.js +3 -2
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +2 -1
- package/es/contentModal/components/ViewAllColumn/index.js +2 -1
- package/es/contentModal/components/storeBox/index.js +2 -1
- package/es/emptyData/component.d.ts +0 -0
- package/es/emptyData/component.js +48 -0
- package/es/emptyData/index.d.ts +2 -0
- package/es/emptyData/index.js +7 -0
- package/es/emptyData/style/css.js +1 -0
- package/es/emptyData/style/index.css +26 -0
- package/es/emptyData/style/index.d.ts +1 -0
- package/es/emptyData/style/index.js +1 -0
- package/es/emptyData/style/index.less +30 -0
- package/es/hooks/toggle.d.ts +6 -0
- package/es/hooks/toggle.js +9 -0
- package/es/hooks/user.js +2 -0
- package/es/index.css +1035 -0
- package/es/index.d.ts +6 -0
- package/es/index.js +6 -0
- package/es/index.less +6 -0
- package/es/mediaFilter/component.d.ts +0 -0
- package/es/mediaFilter/component.js +41 -0
- package/es/mediaFilter/components/DocFilter.d.ts +0 -0
- package/es/mediaFilter/components/DocFilter.js +248 -0
- package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
- package/es/mediaFilter/components/FilterGroup.js +184 -0
- package/es/mediaFilter/components/FilterItem.d.ts +0 -0
- package/es/mediaFilter/components/FilterItem.js +113 -0
- package/es/mediaFilter/components/MediaFilter.js +8 -0
- package/es/mediaFilter/components/MpAccountFilter.js +8 -0
- package/es/mediaFilter/components/MpContentFilter.js +8 -0
- package/es/mediaFilter/index.d.ts +2 -0
- package/es/mediaFilter/index.js +7 -0
- package/es/mediaFilter/script/optionsGetter.d.ts +26 -0
- package/es/mediaFilter/script/optionsGetter.js +82 -0
- package/es/mediaFilter/style/css.js +1 -0
- package/es/mediaFilter/style/index.css +90 -0
- package/es/mediaFilter/style/index.d.ts +1 -0
- package/es/mediaFilter/style/index.js +1 -0
- package/es/mediaFilter/style/index.less +108 -0
- package/es/messageBox/list.js +2 -1
- package/es/previousVersion/component.js +2 -1
- package/es/previousVersion/style/index.less +1 -0
- package/es/resourceModal/component.js +2 -1
- package/es/resourceModal/components/MediaPreviewer/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +5 -3
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/index.js +3 -2
- package/es/resourceModal/script/filter.d.ts +1 -0
- package/es/resourceModal/script/filter.js +15 -2
- package/es/selectAvatarList/component.d.ts +0 -0
- package/es/selectAvatarList/component.js +77 -0
- package/es/selectAvatarList/index.d.ts +2 -0
- package/es/selectAvatarList/index.js +7 -0
- package/es/selectAvatarList/style/css.js +1 -0
- package/es/selectAvatarList/style/index.css +4 -0
- package/es/selectAvatarList/style/index.d.ts +1 -0
- package/es/selectAvatarList/style/index.js +1 -0
- package/es/selectAvatarList/style/index.less +4 -0
- package/es/selectGategory/component.js +5 -12
- package/es/selectGategory/components/ColumnSelection/index.js +5 -1
- package/es/uploadBefore/component.d.ts +0 -0
- package/es/uploadBefore/component.js +81 -0
- package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
- package/es/uploadBefore/components/UploadBefore.js +228 -0
- package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
- package/es/uploadBefore/components/UploadForClick.js +28 -0
- package/es/uploadBefore/index.d.ts +2 -0
- package/es/uploadBefore/index.js +7 -0
- package/es/uploadBefore/script/api.d.ts +16 -0
- package/es/uploadBefore/script/api.js +27 -0
- package/es/uploadBefore/script/fileTypeAdapter.d.ts +39 -0
- package/es/uploadBefore/script/fileTypeAdapter.js +48 -0
- package/es/uploadBefore/script/fileUpload.d.ts +7 -0
- package/es/uploadBefore/script/fileUpload.js +39 -0
- package/es/uploadBefore/script/uploadHooks.d.ts +55 -0
- package/es/uploadBefore/script/uploadHooks.js +33 -0
- package/es/uploadBefore/style/css.js +1 -0
- package/es/uploadBefore/style/index.css +111 -0
- package/es/uploadBefore/style/index.d.ts +1 -0
- package/es/uploadBefore/style/index.js +1 -0
- package/es/uploadBefore/style/index.less +144 -0
- package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
- package/es/uploadStep/component.js +139 -4
- package/es/uploadStep/script/fileTypeAdapter.d.ts +20 -0
- package/es/uploadStep/style/index.css +113 -0
- package/es/uploadStep/style/index.less +148 -0
- package/es/userDirector/component.d.ts +0 -0
- package/es/userDirector/component.js +200 -0
- package/es/userDirector/index.d.ts +2 -0
- package/es/userDirector/index.js +7 -0
- package/es/userDirector/script/api.d.ts +9 -0
- package/es/userDirector/script/api.js +32 -0
- package/es/userDirector/style/css.js +1 -0
- package/es/userDirector/style/index.css +8 -0
- package/es/userDirector/style/index.d.ts +1 -0
- package/es/userDirector/style/index.js +1 -0
- package/es/userDirector/style/index.less +8 -0
- package/es/utils/doc.d.ts +18 -16
- package/es/utils/doc.js +52 -0
- package/es/utils/index.d.ts +8 -0
- package/es/utils/index.js +22 -1
- package/es/utils/tusUpload.d.ts +8 -0
- package/es/utils/tusUpload.js +52 -0
- package/lib/_virtual/plugin-vue_export-helper.js +8 -0
- package/lib/config.js +4 -0
- package/lib/contentDetailList/component.js +90 -0
- package/lib/contentDetailList/components/Content/CompoItem/index.js +77 -0
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +100 -0
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +72 -0
- package/lib/contentDetailList/components/Content/DocItem/index.js +200 -0
- package/lib/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +185 -0
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +132 -0
- package/lib/contentDetailList/components/Content/LiveItem/index.js +83 -0
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +85 -0
- package/lib/contentDetailList/components/Content/MaccountItem/temp/user.js +3 -0
- package/lib/contentDetailList/components/Content/index.js +313 -0
- package/lib/contentDetailList/components/Doc/index.js +59 -0
- package/lib/contentDetailList/index.js +8 -0
- package/lib/contentDetailList/scripts/index.js +153 -0
- package/lib/contentDetailList/style/ComoItem.less +106 -0
- package/lib/contentDetailList/style/Content.less +49 -0
- package/lib/contentDetailList/style/ContentListItem.less +131 -0
- package/lib/contentDetailList/style/Doc.less +8 -0
- package/lib/contentDetailList/style/DocItem.less +145 -0
- package/lib/contentDetailList/style/DocTags.less +63 -0
- package/lib/contentDetailList/style/KongoNavItem.less +110 -0
- package/lib/contentDetailList/style/LiveItem.less +115 -0
- package/lib/contentDetailList/style/MaccountItem.less +114 -0
- package/lib/contentDetailList/style/css.js +2 -0
- package/lib/contentDetailList/style/index.css +683 -0
- package/lib/contentDetailList/style/index.js +2 -0
- package/lib/contentDetailList/style/index.less +9 -0
- package/lib/contentModal/component.js +2 -1
- package/lib/contentModal/components/CompoList/CompoFilter/index.js +3 -2
- package/lib/contentModal/components/CompoList/index.js +3 -2
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +2 -1
- package/lib/contentModal/components/ViewAllColumn/index.js +2 -1
- package/lib/contentModal/components/storeBox/index.js +2 -1
- package/lib/emptyData/component.js +49 -0
- package/lib/emptyData/index.js +8 -0
- package/lib/emptyData/style/css.js +2 -0
- package/lib/emptyData/style/index.css +26 -0
- package/lib/emptyData/style/index.js +2 -0
- package/lib/emptyData/style/index.less +30 -0
- package/lib/hooks/toggle.js +11 -0
- package/lib/hooks/user.js +2 -0
- package/lib/index.css +1035 -0
- package/lib/index.js +12 -0
- package/lib/index.less +6 -0
- package/lib/mediaFilter/component.js +42 -0
- package/lib/mediaFilter/components/DocFilter.js +249 -0
- package/lib/mediaFilter/components/FilterGroup.js +185 -0
- package/lib/mediaFilter/components/FilterItem.js +114 -0
- package/lib/mediaFilter/components/MediaFilter.js +9 -0
- package/lib/mediaFilter/components/MpAccountFilter.js +9 -0
- package/lib/mediaFilter/components/MpContentFilter.js +9 -0
- package/lib/mediaFilter/index.js +8 -0
- package/lib/mediaFilter/script/optionsGetter.js +88 -0
- package/lib/mediaFilter/style/css.js +2 -0
- package/lib/mediaFilter/style/index.css +90 -0
- package/lib/mediaFilter/style/index.js +2 -0
- package/lib/mediaFilter/style/index.less +108 -0
- package/lib/messageBox/list.js +2 -1
- package/lib/previousVersion/component.js +2 -1
- package/lib/previousVersion/style/index.less +1 -0
- package/lib/resourceModal/component.js +2 -1
- package/lib/resourceModal/components/MediaPreviewer/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +5 -3
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/index.js +3 -2
- package/lib/resourceModal/script/filter.js +14 -0
- package/lib/selectAvatarList/component.js +78 -0
- package/lib/selectAvatarList/index.js +8 -0
- package/lib/selectAvatarList/style/css.js +2 -0
- package/lib/selectAvatarList/style/index.css +4 -0
- package/lib/selectAvatarList/style/index.js +2 -0
- package/lib/selectAvatarList/style/index.less +4 -0
- package/lib/selectGategory/component.js +4 -11
- package/lib/selectGategory/components/ColumnSelection/index.js +5 -1
- package/lib/uploadBefore/component.js +82 -0
- package/lib/uploadBefore/components/UploadBefore.js +229 -0
- package/lib/uploadBefore/components/UploadForClick.js +29 -0
- package/lib/uploadBefore/index.js +8 -0
- package/lib/uploadBefore/script/api.js +32 -0
- package/lib/uploadBefore/script/fileTypeAdapter.js +53 -0
- package/lib/uploadBefore/script/fileUpload.js +42 -0
- package/lib/uploadBefore/script/uploadHooks.js +36 -0
- package/lib/uploadBefore/style/css.js +2 -0
- package/lib/uploadBefore/style/index.css +111 -0
- package/lib/uploadBefore/style/index.js +2 -0
- package/lib/uploadBefore/style/index.less +144 -0
- package/lib/uploadStep/component.js +138 -3
- package/lib/uploadStep/style/index.css +113 -0
- package/lib/uploadStep/style/index.less +148 -0
- package/lib/userDirector/component.js +201 -0
- package/lib/userDirector/index.js +8 -0
- package/lib/userDirector/script/api.js +38 -0
- package/lib/userDirector/style/css.js +2 -0
- package/lib/userDirector/style/index.css +8 -0
- package/lib/userDirector/style/index.js +2 -0
- package/lib/userDirector/style/index.less +8 -0
- package/lib/utils/doc.js +59 -0
- package/lib/utils/index.js +23 -0
- package/lib/utils/tusUpload.js +75 -0
- package/package.json +8 -1
package/lib/index.js
CHANGED
|
@@ -10,6 +10,12 @@ var index$5 = require("./contentModal/index.js");
|
|
|
10
10
|
var index$6 = require("./resourceModal/index.js");
|
|
11
11
|
var index$7 = require("./previousVersion/index.js");
|
|
12
12
|
var index$8 = require("./selectGategory/index.js");
|
|
13
|
+
var index$9 = require("./uploadBefore/index.js");
|
|
14
|
+
var index$a = require("./contentDetailList/index.js");
|
|
15
|
+
var index$b = require("./emptyData/index.js");
|
|
16
|
+
var index$c = require("./mediaFilter/index.js");
|
|
17
|
+
var index$d = require("./selectAvatarList/index.js");
|
|
18
|
+
var index$e = require("./userDirector/index.js");
|
|
13
19
|
exports["default"] = components;
|
|
14
20
|
exports.appCenter = index;
|
|
15
21
|
exports.messageBox = index$1;
|
|
@@ -20,3 +26,9 @@ exports.contentModal = index$5;
|
|
|
20
26
|
exports.resourceModal = index$6;
|
|
21
27
|
exports.previousVersion = index$7;
|
|
22
28
|
exports.selectGategory = index$8;
|
|
29
|
+
exports.uploadBefore = index$9;
|
|
30
|
+
exports.contentDetailList = index$a;
|
|
31
|
+
exports.emptyData = index$b;
|
|
32
|
+
exports.mediaFilter = index$c;
|
|
33
|
+
exports.selectAvatarList = index$d;
|
|
34
|
+
exports.userDirector = index$e;
|
package/lib/index.less
CHANGED
|
@@ -8,3 +8,9 @@
|
|
|
8
8
|
@import './resourceModal/style/index.less';
|
|
9
9
|
@import './previousVersion/style/index.less';
|
|
10
10
|
@import './selectGategory/style/index.less';
|
|
11
|
+
@import './uploadBefore/style/index.less';
|
|
12
|
+
@import './contentDetailList/style/index.less';
|
|
13
|
+
@import './emptyData/style/index.less';
|
|
14
|
+
@import './mediaFilter/style/index.less';
|
|
15
|
+
@import './selectAvatarList/style/index.less';
|
|
16
|
+
@import './userDirector/style/index.less';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var config = require("../config.js");
|
|
4
|
+
var DocFilter = require("./components/DocFilter.js");
|
|
5
|
+
var MediaFilter = require("./components/MediaFilter.js");
|
|
6
|
+
var MpAccountFilter = require("./components/MpAccountFilter.js");
|
|
7
|
+
var MpContentFilter = require("./components/MpContentFilter.js");
|
|
8
|
+
const _hoisted_1 = { class: "filter-wrp" };
|
|
9
|
+
const _sfc_main = vue.defineComponent({
|
|
10
|
+
...{ name: "mediaFilter" },
|
|
11
|
+
__name: "component",
|
|
12
|
+
props: {
|
|
13
|
+
filterType: {},
|
|
14
|
+
docFilterKeys: {},
|
|
15
|
+
docFilterType: {},
|
|
16
|
+
BASE_API: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["search", "change"],
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const emits = __emit;
|
|
22
|
+
props.BASE_API || config.DEFAULT_BASE_API;
|
|
23
|
+
function handleFilterChange(params) {
|
|
24
|
+
emits("change", params);
|
|
25
|
+
}
|
|
26
|
+
function handleFilterSearch(params) {
|
|
27
|
+
emits("search", params);
|
|
28
|
+
}
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
31
|
+
_ctx.filterType === "DOC" ? (vue.openBlock(), vue.createBlock(DocFilter, {
|
|
32
|
+
key: 0,
|
|
33
|
+
"filter-keys": _ctx.docFilterKeys,
|
|
34
|
+
"filter-type": _ctx.docFilterType,
|
|
35
|
+
onSearch: handleFilterSearch,
|
|
36
|
+
onChange: handleFilterChange
|
|
37
|
+
}, null, 8, ["filter-keys", "filter-type"])) : _ctx.filterType === "MEDIA" ? (vue.openBlock(), vue.createBlock(MediaFilter, { key: 1 })) : _ctx.filterType === "MP_ACOUNT" ? (vue.openBlock(), vue.createBlock(MpAccountFilter, { key: 2 })) : _ctx.filterType === "MP_CONTENT" ? (vue.openBlock(), vue.createBlock(MpContentFilter, { key: 3 })) : vue.createCommentVNode("v-if", true)
|
|
38
|
+
]);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var icon = require("@arco-design/web-vue/es/icon");
|
|
5
|
+
var doc = require("../../utils/doc.js");
|
|
6
|
+
var optionsGetter = require("../script/optionsGetter.js");
|
|
7
|
+
var FilterGroup = require("./FilterGroup.js");
|
|
8
|
+
var FilterItem = require("./FilterItem.js");
|
|
9
|
+
const _hoisted_1 = { class: "label" };
|
|
10
|
+
const _hoisted_2 = { class: "label" };
|
|
11
|
+
const _sfc_main = vue.defineComponent({
|
|
12
|
+
__name: "DocFilter",
|
|
13
|
+
props: {
|
|
14
|
+
filterKeys: { default: () => ["keywords", "doc_type"] },
|
|
15
|
+
filterType: { default: "APV" }
|
|
16
|
+
},
|
|
17
|
+
emits: ["search", "change"],
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const emits = __emit;
|
|
21
|
+
const { highLevelSearchOptions, showHighLevelSearch, sortOptions } = optionsGetter.useHighLevelSearch(props.filterType);
|
|
22
|
+
const filter = vue.ref({
|
|
23
|
+
keywords: "",
|
|
24
|
+
doc_type: "",
|
|
25
|
+
doc_state: "",
|
|
26
|
+
doc_thumb: "",
|
|
27
|
+
pub_time: "",
|
|
28
|
+
doc_banner: "",
|
|
29
|
+
apv_state: "",
|
|
30
|
+
apv_type: "",
|
|
31
|
+
order: highLevelSearchOptions.value.length > 0 ? highLevelSearchOptions.value[0].value : "",
|
|
32
|
+
sort: -1,
|
|
33
|
+
meta: {}
|
|
34
|
+
});
|
|
35
|
+
if (props.filterType === "MINE") {
|
|
36
|
+
choseMeta(filter.value.order);
|
|
37
|
+
}
|
|
38
|
+
const bannerOptions = [
|
|
39
|
+
{ value: "", label: "\u5168\u90E8" },
|
|
40
|
+
{ value: "0", label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD" },
|
|
41
|
+
{ value: "1", label: "\u6709\u72EC\u7ACB\u8F6E\u64AD" }
|
|
42
|
+
];
|
|
43
|
+
const selectorsLeft = [
|
|
44
|
+
{ key: "doc_type", label: "\u7A3F\u4EF6\u7C7B\u578B", pos: "left", options: doc.typeOptions() },
|
|
45
|
+
{ key: "doc_state", label: "\u7A3F\u4EF6\u72B6\u6001", pos: "left", options: doc.stateOptions() },
|
|
46
|
+
{ key: "doc_thumb", label: "\u5C01\u9762\u7C7B\u578B", pos: "left", options: doc.docThumbTypeMap() },
|
|
47
|
+
{ key: "pub_time", label: "\u53D1\u5E03\u65F6\u95F4", pos: "left", isDatePicker: true },
|
|
48
|
+
{ key: "doc_banner", label: "\u72EC\u7ACB\u8F6E\u64AD", pos: "left", options: bannerOptions },
|
|
49
|
+
{ key: "apv_type", label: "\u5BA1\u6279\u7C7B\u578B", pos: "left", options: optionsGetter.getProvalTypeOptions() },
|
|
50
|
+
{ key: "apv_state", label: "\u5BA1\u6838\u72B6\u6001", pos: "left", options: optionsGetter.getApprovalStateOptions() }
|
|
51
|
+
];
|
|
52
|
+
const calculateRules = vue.computed(() => {
|
|
53
|
+
return selectorsLeft.filter((item) => {
|
|
54
|
+
if (props.filterKeys.includes(item.key))
|
|
55
|
+
return true;
|
|
56
|
+
return false;
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
const showReset = vue.computed(() => {
|
|
60
|
+
return calculateRules.value.some((item) => {
|
|
61
|
+
return filter.value[item.key] !== "";
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
function reset() {
|
|
65
|
+
const excludeColumn = ["order", "sort", "meta", "keywords"];
|
|
66
|
+
Object.keys(filter.value).forEach((key) => {
|
|
67
|
+
if (excludeColumn.includes(key))
|
|
68
|
+
return;
|
|
69
|
+
filter.value[key] = "";
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function handleSearch() {
|
|
73
|
+
emits("search", filter.value);
|
|
74
|
+
}
|
|
75
|
+
vue.watch(
|
|
76
|
+
() => filter.value,
|
|
77
|
+
(n) => {
|
|
78
|
+
const ret = {};
|
|
79
|
+
calculateRules.value.forEach((item) => {
|
|
80
|
+
ret[item.key] = n[item.key];
|
|
81
|
+
});
|
|
82
|
+
ret.keywords = n.keywords;
|
|
83
|
+
ret.highSearch = {
|
|
84
|
+
order: n.order,
|
|
85
|
+
sort: n.sort,
|
|
86
|
+
meta: n.meta
|
|
87
|
+
};
|
|
88
|
+
emits("change", ret);
|
|
89
|
+
},
|
|
90
|
+
{ deep: true }
|
|
91
|
+
);
|
|
92
|
+
const currentChose = vue.computed(() => {
|
|
93
|
+
return highLevelSearchOptions.value.find(
|
|
94
|
+
(item) => item.value === filter.value.order
|
|
95
|
+
);
|
|
96
|
+
});
|
|
97
|
+
function choseOrder(e) {
|
|
98
|
+
filter.value.order = e;
|
|
99
|
+
if (props.filterType === "MINE")
|
|
100
|
+
choseMeta(e);
|
|
101
|
+
}
|
|
102
|
+
function choseMeta(e) {
|
|
103
|
+
const v = highLevelSearchOptions.value.find((item) => item.value === e);
|
|
104
|
+
if (!v)
|
|
105
|
+
return;
|
|
106
|
+
filter.value.meta = {
|
|
107
|
+
from: `${v.key}_from`,
|
|
108
|
+
to: `${v.key}_to`
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function choseSort(e) {
|
|
112
|
+
filter.value.sort = e;
|
|
113
|
+
}
|
|
114
|
+
return (_ctx, _cache) => {
|
|
115
|
+
return vue.openBlock(), vue.createBlock(FilterGroup, null, {
|
|
116
|
+
search: vue.withCtx(() => [
|
|
117
|
+
vue.createVNode(vue.unref(webVue.InputSearch), {
|
|
118
|
+
modelValue: filter.value.keywords,
|
|
119
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.keywords = $event),
|
|
120
|
+
"allow-clear": "",
|
|
121
|
+
size: "medium",
|
|
122
|
+
placeholder: "\u8BF7\u8F93\u5165\u6807\u9898\u5173\u952E\u5B57",
|
|
123
|
+
onSearch: handleSearch
|
|
124
|
+
}, null, 8, ["modelValue"])
|
|
125
|
+
]),
|
|
126
|
+
left: vue.withCtx(() => [
|
|
127
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(calculateRules.value, (item) => {
|
|
128
|
+
return vue.openBlock(), vue.createBlock(FilterItem, {
|
|
129
|
+
key: item.key,
|
|
130
|
+
value: filter.value[item.key],
|
|
131
|
+
"onUpdate:value": ($event) => filter.value[item.key] = $event,
|
|
132
|
+
label: item.label,
|
|
133
|
+
"date-picker": !!item.isDatePicker,
|
|
134
|
+
options: item.options
|
|
135
|
+
}, {
|
|
136
|
+
default: vue.withCtx(() => [
|
|
137
|
+
vue.createCommentVNode(" \u65E5\u671F\u9009\u62E9\u5668 "),
|
|
138
|
+
item.isDatePicker ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RangePicker), {
|
|
139
|
+
key: 0,
|
|
140
|
+
modelValue: filter.value[item.key],
|
|
141
|
+
"onUpdate:modelValue": ($event) => filter.value[item.key] = $event,
|
|
142
|
+
onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
|
|
143
|
+
}, ["stop"]))
|
|
144
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
145
|
+
vue.createCommentVNode(" \u666E\u901A\u9009\u62E9\u5668 "),
|
|
146
|
+
vue.createVNode(vue.unref(webVue.Select), {
|
|
147
|
+
modelValue: filter.value[item.key],
|
|
148
|
+
"onUpdate:modelValue": ($event) => filter.value[item.key] = $event,
|
|
149
|
+
bordered: false,
|
|
150
|
+
style: { "width": "120px" },
|
|
151
|
+
onClick: _cache[2] || (_cache[2] = vue.withModifiers(() => {
|
|
152
|
+
}, ["stop"]))
|
|
153
|
+
}, {
|
|
154
|
+
default: vue.withCtx(() => [
|
|
155
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.options, (opt) => {
|
|
156
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
157
|
+
key: opt.value,
|
|
158
|
+
label: opt.label,
|
|
159
|
+
value: opt.value
|
|
160
|
+
}, null, 8, ["label", "value"]);
|
|
161
|
+
}), 128))
|
|
162
|
+
]),
|
|
163
|
+
_: 2
|
|
164
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
165
|
+
], 64))
|
|
166
|
+
]),
|
|
167
|
+
_: 2
|
|
168
|
+
}, 1032, ["value", "onUpdate:value", "label", "date-picker", "options"]);
|
|
169
|
+
}), 128)),
|
|
170
|
+
vue.createCommentVNode(" \u91CD\u7F6E "),
|
|
171
|
+
showReset.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
172
|
+
key: 0,
|
|
173
|
+
type: "text",
|
|
174
|
+
onClick: reset
|
|
175
|
+
}, {
|
|
176
|
+
icon: vue.withCtx(() => [
|
|
177
|
+
vue.createVNode(vue.unref(icon.IconRefresh))
|
|
178
|
+
]),
|
|
179
|
+
default: vue.withCtx(() => [
|
|
180
|
+
vue.createTextVNode(" \u91CD\u7F6E ")
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
184
|
+
]),
|
|
185
|
+
right: vue.withCtx(() => [
|
|
186
|
+
vue.unref(showHighLevelSearch) ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Dropdown), { key: 0 }, {
|
|
187
|
+
content: vue.withCtx(() => [
|
|
188
|
+
vue.createVNode(vue.unref(webVue.Dgroup), { title: "order" }, {
|
|
189
|
+
default: vue.withCtx(() => [
|
|
190
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(highLevelSearchOptions), (item) => {
|
|
191
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Doption), {
|
|
192
|
+
key: item.value,
|
|
193
|
+
class: vue.normalizeClass({ active: item.value === filter.value.order, dop: true }),
|
|
194
|
+
onClick: ($event) => choseOrder(item.value)
|
|
195
|
+
}, {
|
|
196
|
+
default: vue.withCtx(() => [
|
|
197
|
+
vue.createElementVNode("span", _hoisted_1, [
|
|
198
|
+
vue.createTextVNode(vue.toDisplayString(item.label) + " ", 1),
|
|
199
|
+
item.value === filter.value.order ? (vue.openBlock(), vue.createBlock(vue.unref(icon.IconCheck), { key: 0 })) : vue.createCommentVNode("v-if", true)
|
|
200
|
+
])
|
|
201
|
+
]),
|
|
202
|
+
_: 2
|
|
203
|
+
}, 1032, ["class", "onClick"]);
|
|
204
|
+
}), 128))
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
}),
|
|
208
|
+
vue.createVNode(vue.unref(webVue.Dgroup), { title: "sort" }, {
|
|
209
|
+
default: vue.withCtx(() => [
|
|
210
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(sortOptions), (item) => {
|
|
211
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Doption), {
|
|
212
|
+
key: item.value,
|
|
213
|
+
class: vue.normalizeClass({ active: item.value === filter.value.sort, dop: true }),
|
|
214
|
+
onClick: ($event) => choseSort(item.value)
|
|
215
|
+
}, {
|
|
216
|
+
default: vue.withCtx(() => [
|
|
217
|
+
vue.createElementVNode("span", _hoisted_2, [
|
|
218
|
+
vue.createTextVNode(vue.toDisplayString(item.label) + " ", 1),
|
|
219
|
+
item.value === filter.value.sort ? (vue.openBlock(), vue.createBlock(vue.unref(icon.IconCheck), { key: 0 })) : vue.createCommentVNode("v-if", true)
|
|
220
|
+
])
|
|
221
|
+
]),
|
|
222
|
+
_: 2
|
|
223
|
+
}, 1032, ["class", "onClick"]);
|
|
224
|
+
}), 128))
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
})
|
|
228
|
+
]),
|
|
229
|
+
default: vue.withCtx(() => [
|
|
230
|
+
vue.createVNode(vue.unref(webVue.Button), { text: "text" }, {
|
|
231
|
+
default: vue.withCtx(() => {
|
|
232
|
+
var _a;
|
|
233
|
+
return [
|
|
234
|
+
vue.createTextVNode(vue.toDisplayString((_a = currentChose.value) == null ? void 0 : _a.label), 1)
|
|
235
|
+
];
|
|
236
|
+
}),
|
|
237
|
+
_: 1
|
|
238
|
+
})
|
|
239
|
+
]),
|
|
240
|
+
_: 1
|
|
241
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
242
|
+
vue.renderSlot(_ctx.$slots, "right")
|
|
243
|
+
]),
|
|
244
|
+
_: 3
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var icon = require("@arco-design/web-vue/es/icon");
|
|
5
|
+
var core = require("@popperjs/core");
|
|
6
|
+
const _hoisted_1 = { class: "filter-view-container" };
|
|
7
|
+
const _hoisted_2 = { class: "filter-search" };
|
|
8
|
+
const _hoisted_3 = { class: "more-btn" };
|
|
9
|
+
const _hoisted_4 = { class: "right-prefix" };
|
|
10
|
+
const _hoisted_5 = { class: "filter-content" };
|
|
11
|
+
const _hoisted_6 = { class: "right" };
|
|
12
|
+
const _hoisted_7 = {
|
|
13
|
+
ref: "tempNode",
|
|
14
|
+
style: { "display": "none" }
|
|
15
|
+
};
|
|
16
|
+
const _sfc_main = vue.defineComponent({
|
|
17
|
+
__name: "FilterGroup",
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const documentWidth = vue.ref(0);
|
|
20
|
+
const overflowWidth = vue.ref(0);
|
|
21
|
+
vue.watch(
|
|
22
|
+
() => documentWidth.value,
|
|
23
|
+
(n) => checkOverflow()
|
|
24
|
+
);
|
|
25
|
+
vue.watch(
|
|
26
|
+
() => overflowWidth.value,
|
|
27
|
+
(n) => setPannelItem()
|
|
28
|
+
);
|
|
29
|
+
const initDocWidthListener = function() {
|
|
30
|
+
window.onresize = (() => {
|
|
31
|
+
return () => {
|
|
32
|
+
documentWidth.value = document.body.clientWidth;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
};
|
|
36
|
+
const filterItemsRef = vue.ref();
|
|
37
|
+
const moreBtnRef = vue.ref();
|
|
38
|
+
const dpPannelRef = vue.ref();
|
|
39
|
+
const initPopper = function() {
|
|
40
|
+
core.createPopper(moreBtnRef.value, dpPannelRef.value, {
|
|
41
|
+
placement: "bottom-start",
|
|
42
|
+
modifiers: [{ name: "offset", options: { offset: [-40, 10] } }]
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
const popperShowFlag = vue.ref(false);
|
|
46
|
+
function showPopper() {
|
|
47
|
+
popperShowFlag.value = true;
|
|
48
|
+
window.onclick = hidePopper;
|
|
49
|
+
}
|
|
50
|
+
function hidePopper() {
|
|
51
|
+
popperShowFlag.value = false;
|
|
52
|
+
}
|
|
53
|
+
const itemNodeArr = vue.ref([]);
|
|
54
|
+
const itemWidthArr = vue.ref([]);
|
|
55
|
+
const itemArr = vue.ref([]);
|
|
56
|
+
function checkOverflow() {
|
|
57
|
+
if (!filterItemsRef.value)
|
|
58
|
+
return;
|
|
59
|
+
const parent = filterItemsRef.value.parentNode;
|
|
60
|
+
if (!itemNodeArr.value.length) {
|
|
61
|
+
itemNodeArr.value = mapNodes(filterItemsRef.value.childNodes);
|
|
62
|
+
itemWidthArr.value = itemNodeArr.value.map((node) => node.clientWidth + 10);
|
|
63
|
+
itemArr.value = itemWidthArr.value.map((_, idx) => idx);
|
|
64
|
+
}
|
|
65
|
+
const parentWidth = parent.clientWidth;
|
|
66
|
+
const leftWidth = getArrWidth(itemWidthArr.value);
|
|
67
|
+
const rightWidth = parent.childNodes[parent.childNodes.length - 1].clientWidth;
|
|
68
|
+
overflowWidth.value = leftWidth + rightWidth - parentWidth;
|
|
69
|
+
}
|
|
70
|
+
function mapNodes(nodes) {
|
|
71
|
+
const nodeArr = [];
|
|
72
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
73
|
+
const element = nodes[i];
|
|
74
|
+
nodeArr.push(element);
|
|
75
|
+
}
|
|
76
|
+
return nodeArr.filter((item) => item.clientWidth);
|
|
77
|
+
}
|
|
78
|
+
function getArrWidth(arr) {
|
|
79
|
+
return arr.reduce((prev, cur) => prev + cur, 0);
|
|
80
|
+
}
|
|
81
|
+
const pannelArray = vue.ref("");
|
|
82
|
+
vue.watch(
|
|
83
|
+
() => pannelArray.value,
|
|
84
|
+
(n, o) => refreshPannel(n, o)
|
|
85
|
+
);
|
|
86
|
+
function refreshPannel(newStr, oldStr) {
|
|
87
|
+
const nArr = newStr ? newStr.split(",") : [];
|
|
88
|
+
const oArr = oldStr ? oldStr.split(",") : [];
|
|
89
|
+
if (nArr.length && nArr.length > oArr.length) {
|
|
90
|
+
diff(nArr, oArr).forEach((index) => inNode(parseInt(index, 10)));
|
|
91
|
+
} else if (nArr.length >= 0 && nArr.length < oArr.length) {
|
|
92
|
+
diff(oArr, nArr).forEach((index) => outNode(parseInt(index, 10)));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
const diff = (arr1, arr2) => {
|
|
96
|
+
const diff2 = [];
|
|
97
|
+
for (let i = 0; i < arr1.length; i++) {
|
|
98
|
+
const item = arr1[i];
|
|
99
|
+
if (!arr2.includes(item))
|
|
100
|
+
diff2.push(item);
|
|
101
|
+
}
|
|
102
|
+
return diff2;
|
|
103
|
+
};
|
|
104
|
+
function inNode(index) {
|
|
105
|
+
var _a, _b, _c;
|
|
106
|
+
const node = mapNodes((_a = filterItemsRef.value) == null ? void 0 : _a.childNodes)[index];
|
|
107
|
+
const temp = document.createElement("div");
|
|
108
|
+
temp.style.width = `${itemWidthArr.value[index]}px`;
|
|
109
|
+
temp.style.position = "absolute";
|
|
110
|
+
temp.style.left = `${50}px`;
|
|
111
|
+
(_b = filterItemsRef.value) == null ? void 0 : _b.replaceChild(temp, node);
|
|
112
|
+
(_c = dpPannelRef.value) == null ? void 0 : _c.appendChild(node);
|
|
113
|
+
}
|
|
114
|
+
function outNode(index) {
|
|
115
|
+
var _a;
|
|
116
|
+
const node = itemNodeArr.value[index];
|
|
117
|
+
(_a = filterItemsRef.value) == null ? void 0 : _a.replaceChild(
|
|
118
|
+
node,
|
|
119
|
+
mapNodes(filterItemsRef.value.childNodes)[index]
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
function setPannelItem() {
|
|
123
|
+
let inPannelNum = 0;
|
|
124
|
+
if (overflowWidth.value > 0) {
|
|
125
|
+
const avgWidth = 120;
|
|
126
|
+
inPannelNum = Math.ceil((overflowWidth.value + 200) / avgWidth);
|
|
127
|
+
}
|
|
128
|
+
pannelArray.value = itemArr.value.slice(0, inPannelNum).join(",");
|
|
129
|
+
}
|
|
130
|
+
vue.onMounted(() => {
|
|
131
|
+
initDocWidthListener();
|
|
132
|
+
initPopper();
|
|
133
|
+
setTimeout(() => checkOverflow());
|
|
134
|
+
});
|
|
135
|
+
return (_ctx, _cache) => {
|
|
136
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
137
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
138
|
+
vue.renderSlot(_ctx.$slots, "search")
|
|
139
|
+
]),
|
|
140
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
141
|
+
vue.createElementVNode("div", {
|
|
142
|
+
ref_key: "moreBtnRef",
|
|
143
|
+
ref: moreBtnRef
|
|
144
|
+
}, [
|
|
145
|
+
vue.withDirectives(vue.createVNode(vue.unref(webVue.Button), {
|
|
146
|
+
onClick: vue.withModifiers(showPopper, ["stop"])
|
|
147
|
+
}, {
|
|
148
|
+
default: vue.withCtx(() => [
|
|
149
|
+
vue.createElementVNode("span", _hoisted_4, [
|
|
150
|
+
vue.createTextVNode(" \u66F4\u591A\u7B5B\u9009 "),
|
|
151
|
+
vue.createVNode(vue.unref(icon.IconCaretDown))
|
|
152
|
+
])
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["onClick"]), [
|
|
156
|
+
[vue.vShow, pannelArray.value]
|
|
157
|
+
])
|
|
158
|
+
], 512),
|
|
159
|
+
vue.withDirectives(vue.createElementVNode("div", {
|
|
160
|
+
id: "dpPannelRef",
|
|
161
|
+
ref_key: "dpPannelRef",
|
|
162
|
+
ref: dpPannelRef,
|
|
163
|
+
class: "filter-pannel"
|
|
164
|
+
}, null, 512), [
|
|
165
|
+
[vue.vShow, popperShowFlag.value]
|
|
166
|
+
])
|
|
167
|
+
]),
|
|
168
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
169
|
+
vue.createElementVNode("div", {
|
|
170
|
+
ref_key: "filterItemsRef",
|
|
171
|
+
ref: filterItemsRef,
|
|
172
|
+
class: "left"
|
|
173
|
+
}, [
|
|
174
|
+
vue.renderSlot(_ctx.$slots, "left")
|
|
175
|
+
], 512),
|
|
176
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
177
|
+
vue.renderSlot(_ctx.$slots, "right")
|
|
178
|
+
])
|
|
179
|
+
]),
|
|
180
|
+
vue.createElementVNode("div", _hoisted_7, null, 512)
|
|
181
|
+
]);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var icon = require("@arco-design/web-vue/es/icon");
|
|
5
|
+
const _hoisted_1 = { class: "filter-item-view" };
|
|
6
|
+
const _hoisted_2 = { class: "show-view" };
|
|
7
|
+
const _hoisted_3 = { class: "right-prefix" };
|
|
8
|
+
const _hoisted_4 = { class: "right-prefix" };
|
|
9
|
+
const _hoisted_5 = { class: "right-prefix" };
|
|
10
|
+
const _hoisted_6 = { class: "select-view" };
|
|
11
|
+
const _sfc_main = vue.defineComponent({
|
|
12
|
+
__name: "FilterItem",
|
|
13
|
+
props: {
|
|
14
|
+
value: { default: "" },
|
|
15
|
+
allValue: { default: "" },
|
|
16
|
+
label: { default: "" },
|
|
17
|
+
options: { default: () => [] },
|
|
18
|
+
icon: { default: "" },
|
|
19
|
+
rightIcon: { default: "" },
|
|
20
|
+
datePicker: { type: Boolean, default: false },
|
|
21
|
+
backgroundColor: { default: "none" }
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const hasValue = vue.computed(() => {
|
|
26
|
+
if (props.allValue !== "" && props.value === props.allValue)
|
|
27
|
+
return false;
|
|
28
|
+
if (Array.isArray(props.value))
|
|
29
|
+
return props.value.length > 0;
|
|
30
|
+
return props.value;
|
|
31
|
+
});
|
|
32
|
+
const valueItem = vue.computed(() => {
|
|
33
|
+
return props.options.find((item) => item.value === props.value);
|
|
34
|
+
});
|
|
35
|
+
const arrValue = vue.computed(() => {
|
|
36
|
+
if (!Array.isArray(props.value))
|
|
37
|
+
return "";
|
|
38
|
+
return props.value.map((item) => {
|
|
39
|
+
if (props.datePicker)
|
|
40
|
+
return timeFilter(item);
|
|
41
|
+
return item.alias || item.title || item.label;
|
|
42
|
+
}).join(" / ");
|
|
43
|
+
});
|
|
44
|
+
function timeFilter(timeValue) {
|
|
45
|
+
if (!timeValue)
|
|
46
|
+
return "";
|
|
47
|
+
if (typeof timeValue === "number" && String(timeValue).length === 10) {
|
|
48
|
+
timeValue *= 1e3;
|
|
49
|
+
}
|
|
50
|
+
const date = new Date(timeValue);
|
|
51
|
+
return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`;
|
|
52
|
+
}
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
55
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
56
|
+
vue.createVNode(vue.unref(webVue.ButtonGroup), {
|
|
57
|
+
type: "primary",
|
|
58
|
+
size: "medium"
|
|
59
|
+
}, {
|
|
60
|
+
default: vue.withCtx(() => [
|
|
61
|
+
vue.createCommentVNode(" \u666E\u901A\u503C "),
|
|
62
|
+
valueItem.value ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: "hasvalue-btn"
|
|
65
|
+
}, {
|
|
66
|
+
default: vue.withCtx(() => [
|
|
67
|
+
vue.createElementVNode("span", _hoisted_3, [
|
|
68
|
+
vue.createTextVNode(vue.toDisplayString(valueItem.value.label) + " ", 1),
|
|
69
|
+
vue.createVNode(vue.unref(icon.IconCaretDown))
|
|
70
|
+
])
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 512)), [
|
|
74
|
+
[vue.vShow, hasValue.value]
|
|
75
|
+
]) : vue.createCommentVNode("v-if", true),
|
|
76
|
+
vue.createCommentVNode(" \u6570\u7EC4\u503C "),
|
|
77
|
+
arrValue.value ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
78
|
+
key: 1,
|
|
79
|
+
class: "hasvalue-btn"
|
|
80
|
+
}, {
|
|
81
|
+
default: vue.withCtx(() => [
|
|
82
|
+
vue.createElementVNode("span", _hoisted_4, [
|
|
83
|
+
vue.createTextVNode(vue.toDisplayString(arrValue.value) + " ", 1),
|
|
84
|
+
vue.createVNode(vue.unref(icon.IconCaretDown))
|
|
85
|
+
])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}, 512)), [
|
|
89
|
+
[vue.vShow, hasValue.value]
|
|
90
|
+
]) : vue.createCommentVNode("v-if", true),
|
|
91
|
+
vue.createCommentVNode(" \u672A\u8FDB\u884C\u9009\u62E9\u65F6\u5C55\u793A "),
|
|
92
|
+
vue.withDirectives(vue.createVNode(vue.unref(webVue.Button), { type: "secondary" }, {
|
|
93
|
+
default: vue.withCtx(() => [
|
|
94
|
+
vue.createElementVNode("span", _hoisted_5, [
|
|
95
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
96
|
+
vue.createVNode(vue.unref(icon.IconCaretDown))
|
|
97
|
+
])
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 512), [
|
|
101
|
+
[vue.vShow, !hasValue.value]
|
|
102
|
+
])
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
})
|
|
106
|
+
]),
|
|
107
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
108
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
109
|
+
])
|
|
110
|
+
]);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var pluginVue_exportHelper = require("../../_virtual/plugin-vue_export-helper.js");
|
|
4
|
+
const _sfc_main = {};
|
|
5
|
+
function _sfc_render(_ctx, _cache) {
|
|
6
|
+
return vue.openBlock(), vue.createElementBlock("div", null, " \u7D20\u6750\u7B5B\u9009\u7EC4\u4EF6 ");
|
|
7
|
+
}
|
|
8
|
+
var MedFilter = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["render", _sfc_render]]);
|
|
9
|
+
module.exports = MedFilter;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var pluginVue_exportHelper = require("../../_virtual/plugin-vue_export-helper.js");
|
|
4
|
+
const _sfc_main = {};
|
|
5
|
+
function _sfc_render(_ctx, _cache) {
|
|
6
|
+
return vue.openBlock(), vue.createElementBlock("div", null, " \u516C\u4F17\u53F7\u8D26\u53F7\u7B5B\u9009\u7EC4\u4EF6 ");
|
|
7
|
+
}
|
|
8
|
+
var MpaFilter = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["render", _sfc_render]]);
|
|
9
|
+
module.exports = MpaFilter;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var pluginVue_exportHelper = require("../../_virtual/plugin-vue_export-helper.js");
|
|
4
|
+
const _sfc_main = {};
|
|
5
|
+
function _sfc_render(_ctx, _cache) {
|
|
6
|
+
return vue.openBlock(), vue.createElementBlock("div", null, " \u516C\u4F17\u53F7\u5185\u5BB9\u7B5B\u9009\u7EC4\u4EF6 ");
|
|
7
|
+
}
|
|
8
|
+
var MpcFilter = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["render", _sfc_render]]);
|
|
9
|
+
module.exports = MpcFilter;
|