@lemon30_npm/csit-vue3 0.0.7 → 0.0.9

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.
Files changed (184) hide show
  1. package/README.md +29 -10
  2. package/dist/csit-vue3.js +21 -13
  3. package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
  4. package/dist/lib/axios/index.js +67 -0
  5. package/dist/lib/axios/middlewares/middleware-executor.js +15 -0
  6. package/dist/lib/axios/middlewares/request-middlewares/addXRequestedWith.js +12 -0
  7. package/dist/lib/axios/middlewares/request-middlewares/dafeiyiqi-disposeGetUrlParams.js +17 -0
  8. package/dist/lib/axios/middlewares/request-middlewares/logRequest.js +7 -0
  9. package/dist/lib/axios/middlewares/response-middlewares/formatResponseData.js +7 -0
  10. package/dist/lib/axios/middlewares/response-middlewares/handle-error/errorMessages.js +14 -0
  11. package/dist/lib/axios/middlewares/response-middlewares/handle-error/handleError.js +35 -0
  12. package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleFileStream.js +11 -0
  13. package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleSuccess.js +20 -0
  14. package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleTokenInvalidToLogin.js +18 -0
  15. package/dist/lib/axios/middlewares/response-middlewares/logResponse.js +13 -0
  16. package/dist/lib/ci-blue-line-title/index.css +1 -0
  17. package/dist/lib/ci-blue-line-title/index.js +7 -0
  18. package/dist/lib/ci-blue-line-title/index.vue.js +7 -0
  19. package/dist/lib/ci-blue-line-title/index.vue2.js +29 -0
  20. package/dist/lib/ci-common-list/ci-common-list-layout/index.css +1 -0
  21. package/dist/lib/ci-common-list/ci-common-list-layout/index.js +7 -0
  22. package/dist/lib/ci-common-list/ci-common-list-layout/index.vue.js +7 -0
  23. package/dist/lib/ci-common-list/ci-common-list-layout/index.vue2.js +87 -0
  24. package/dist/lib/ci-common-list/ci-common-list-pagination/index.js +7 -0
  25. package/dist/lib/ci-common-list/ci-common-list-pagination/index.vue.js +7 -0
  26. package/dist/lib/ci-common-list/ci-common-list-pagination/index.vue2.js +31 -0
  27. package/dist/lib/ci-common-list/ci-common-list-query/index.css +1 -0
  28. package/dist/lib/ci-common-list/ci-common-list-query/index.js +7 -0
  29. package/dist/lib/ci-common-list/ci-common-list-query/index.vue.js +7 -0
  30. package/dist/lib/ci-common-list/ci-common-list-query/index.vue2.js +80 -0
  31. package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.css +1 -0
  32. package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.js +7 -0
  33. package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.vue.js +7 -0
  34. package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.vue2.js +51 -0
  35. package/dist/lib/ci-dictionary-select/config.js +18 -0
  36. package/dist/lib/ci-dictionary-select/index.css +0 -0
  37. package/dist/lib/ci-dictionary-select/index.js +7 -0
  38. package/dist/lib/ci-dictionary-select/index.vue.js +7 -0
  39. package/dist/lib/ci-dictionary-select/index.vue2.js +78 -0
  40. package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.css +1 -0
  41. package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.js +7 -0
  42. package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.vue.js +7 -0
  43. package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.vue2.js +77 -0
  44. package/dist/lib/ci-echarts/ci-echart-ChinaMap/model/ChinaGeoJson.js +911 -0
  45. package/dist/lib/ci-echarts/ci-echart-ChinaMap/model/index.js +14 -0
  46. package/dist/lib/ci-echarts/ci-echart-ChinaMap/model/options.js +278 -0
  47. package/dist/lib/ci-echarts/ci-echart-bar/index.css +1 -0
  48. package/dist/lib/ci-echarts/ci-echart-bar/index.js +10 -0
  49. package/dist/lib/ci-echarts/ci-echart-bar/index.vue.js +7 -0
  50. package/dist/lib/ci-echarts/ci-echart-bar/index.vue2.js +42 -0
  51. package/dist/lib/ci-echarts/ci-echart-bar/model/options.js +22 -0
  52. package/dist/lib/ci-echarts/ci-echart-pie/index.css +1 -0
  53. package/dist/lib/ci-echarts/ci-echart-pie/index.js +10 -0
  54. package/dist/lib/ci-echarts/ci-echart-pie/index.vue.js +7 -0
  55. package/dist/lib/ci-echarts/ci-echart-pie/index.vue2.js +50 -0
  56. package/dist/lib/ci-echarts/ci-echart-pie/model/options.js +38 -0
  57. package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.css +1 -0
  58. package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.js +7 -0
  59. package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.vue.js +7 -0
  60. package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.vue2.js +77 -0
  61. package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/model/index.js +47 -0
  62. package/dist/lib/ci-no-data-status/images/No-data-available.png.js +4 -0
  63. package/dist/lib/ci-no-data-status/index.css +1 -0
  64. package/dist/lib/ci-no-data-status/index.js +7 -0
  65. package/dist/lib/ci-no-data-status/index.vue.js +7 -0
  66. package/dist/lib/ci-no-data-status/index.vue2.js +25 -0
  67. package/dist/lib/ci-page-header/index.css +1 -0
  68. package/dist/lib/ci-page-header/index.js +7 -0
  69. package/dist/lib/ci-page-header/index.vue.js +7 -0
  70. package/dist/lib/ci-page-header/index.vue2.js +60 -0
  71. package/dist/lib/ci-svg-icon/index.js +8 -0
  72. package/dist/lib/ci-svg-icon/index.vue.js +26 -0
  73. package/dist/lib/ci-svg-icon/index.vue2.js +4 -0
  74. package/dist/lib/ci-time-line-list/index.css +1 -0
  75. package/dist/lib/ci-time-line-list/index.js +7 -0
  76. package/dist/lib/ci-time-line-list/index.vue.js +7 -0
  77. package/dist/lib/ci-time-line-list/index.vue2.js +49 -0
  78. package/dist/lib/ci-time-line-list/model/index.js +56 -0
  79. package/dist/lib/ci-upload/computed/index.js +16 -0
  80. package/dist/lib/ci-upload/expose/index.js +25 -0
  81. package/dist/lib/ci-upload/hooks/useUpload.js +58 -0
  82. package/dist/lib/ci-upload/hooks/useUploadRetry.js +45 -0
  83. package/dist/lib/ci-upload/icons/icon-loading-blue.svg.js +4 -0
  84. package/dist/lib/ci-upload/icons/icon-upload-btn-disabled.svg.js +4 -0
  85. package/dist/lib/ci-upload/icons/icon-upload-btn-hover.svg.js +4 -0
  86. package/dist/lib/ci-upload/icons/icon-upload-btn.svg.js +4 -0
  87. package/dist/lib/ci-upload/icons/icon-upload-fail.svg.js +4 -0
  88. package/dist/lib/ci-upload/icons/icon-upload-retry.svg.js +4 -0
  89. package/dist/lib/ci-upload/icons/icon-upload-success.svg.js +4 -0
  90. package/dist/lib/ci-upload/icons/icons-file-extension/dmg.svg.js +4 -0
  91. package/dist/lib/ci-upload/icons/icons-file-extension/doc.svg.js +4 -0
  92. package/dist/lib/ci-upload/icons/icons-file-extension/docx.svg.js +4 -0
  93. package/dist/lib/ci-upload/icons/icons-file-extension/file-type-default.svg.js +4 -0
  94. package/dist/lib/ci-upload/icons/icons-file-extension/gd.svg.js +4 -0
  95. package/dist/lib/ci-upload/icons/icons-file-extension/jpg.svg.js +4 -0
  96. package/dist/lib/ci-upload/icons/icons-file-extension/jpge.svg.js +4 -0
  97. package/dist/lib/ci-upload/icons/icons-file-extension/ofd.svg.js +4 -0
  98. package/dist/lib/ci-upload/icons/icons-file-extension/pdf.svg.js +4 -0
  99. package/dist/lib/ci-upload/icons/icons-file-extension/png.svg.js +4 -0
  100. package/dist/lib/ci-upload/icons/icons-file-extension/rar.svg.js +4 -0
  101. package/dist/lib/ci-upload/icons/icons-file-extension/sep.svg.js +4 -0
  102. package/dist/lib/ci-upload/icons/icons-file-extension/txt.svg.js +4 -0
  103. package/dist/lib/ci-upload/icons/icons-file-extension/wps.svg.js +4 -0
  104. package/dist/lib/ci-upload/icons/icons-file-extension/wpt.svg.js +4 -0
  105. package/dist/lib/ci-upload/icons/icons-file-extension/xls.svg.js +4 -0
  106. package/dist/lib/ci-upload/icons/icons-file-extension/xlsx.svg.js +4 -0
  107. package/dist/lib/ci-upload/icons/icons-file-extension/zip.svg.js +4 -0
  108. package/dist/lib/ci-upload/index.css +1 -0
  109. package/dist/lib/ci-upload/index.js +8 -0
  110. package/dist/lib/ci-upload/index.vue.js +7 -0
  111. package/dist/lib/ci-upload/index.vue2.js +385 -0
  112. package/dist/lib/ci-upload/props/index.js +48 -0
  113. package/dist/lib/ci-upload/styles/index.css +1 -0
  114. package/dist/lib/ci-upload/utils/file-icon-maps.js +50 -0
  115. package/dist/lib/ci-upload/utils/file.js +25 -0
  116. package/dist/lib/components/components-global/SvgIcon/index.vue.js +26 -0
  117. package/dist/lib/components/components-global/SvgIcon/index.vue2.js +4 -0
  118. package/dist/lib/components/index.js +85 -0
  119. package/dist/lib/config/env-config/index.js +4 -0
  120. package/dist/lib/config/system-config/projectSettings.js +7 -0
  121. package/dist/lib/favicon.ico +0 -0
  122. package/dist/lib/utils/system/useSystem.js +9 -0
  123. package/dist/types/ci-blue-line-title/index.d.ts +3 -0
  124. package/dist/types/ci-blue-line-title/index.vue.d.ts +14 -0
  125. package/dist/types/ci-blue-line-title/type.d.ts +4 -0
  126. package/dist/types/ci-common-list/ci-common-list-layout/index.d.ts +2 -0
  127. package/dist/types/ci-common-list/ci-common-list-layout/index.vue.d.ts +19 -0
  128. package/dist/types/ci-common-list/ci-common-list-pagination/index.d.ts +3 -0
  129. package/dist/types/ci-common-list/ci-common-list-pagination/index.vue.d.ts +7 -0
  130. package/dist/types/ci-common-list/ci-common-list-pagination/type.d.ts +5 -0
  131. package/dist/types/ci-common-list/ci-common-list-query/index.d.ts +2 -0
  132. package/dist/types/ci-common-list/ci-common-list-query/index.vue.d.ts +12 -0
  133. package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/index.d.ts +3 -0
  134. package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/index.vue.d.ts +15 -0
  135. package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/type.d.ts +7 -0
  136. package/dist/types/ci-dictionary-select/config.d.ts +14 -0
  137. package/dist/types/ci-dictionary-select/index.d.ts +3 -0
  138. package/dist/types/ci-dictionary-select/index.vue.d.ts +14 -0
  139. package/dist/types/ci-dictionary-select/model/index.d.ts +8 -0
  140. package/dist/types/ci-dictionary-select/type.d.ts +16 -0
  141. package/dist/types/ci-echarts/ci-echart-ChinaMap/index.d.ts +3 -0
  142. package/dist/types/ci-echarts/ci-echart-ChinaMap/index.vue.d.ts +17 -0
  143. package/dist/types/ci-echarts/ci-echart-ChinaMap/model/ChinaGeoJson.d.ts +33 -0
  144. package/dist/types/ci-echarts/ci-echart-ChinaMap/model/index.d.ts +16 -0
  145. package/dist/types/ci-echarts/ci-echart-ChinaMap/model/options.d.ts +110 -0
  146. package/dist/types/ci-echarts/ci-echart-ChinaMap/type.d.ts +18 -0
  147. package/dist/types/ci-echarts/ci-echart-bar/index.d.ts +3 -0
  148. package/dist/types/ci-echarts/ci-echart-bar/index.vue.d.ts +8 -0
  149. package/dist/types/ci-echarts/ci-echart-bar/model/option-illegality-active-type-distribution.d.ts +63 -0
  150. package/dist/types/ci-echarts/ci-echart-bar/model/options.d.ts +17 -0
  151. package/dist/types/ci-echarts/ci-echart-bar/type.d.ts +27 -0
  152. package/dist/types/ci-echarts/ci-echart-pie/index.d.ts +3 -0
  153. package/dist/types/ci-echarts/ci-echart-pie/index.vue.d.ts +8 -0
  154. package/dist/types/ci-echarts/ci-echart-pie/model/option-data-distribution.d.ts +77 -0
  155. package/dist/types/ci-echarts/ci-echart-pie/model/options.d.ts +30 -0
  156. package/dist/types/ci-echarts/ci-echart-pie/type.d.ts +26 -0
  157. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/index.d.ts +3 -0
  158. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/index.vue.d.ts +24 -0
  159. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/model/index.d.ts +4 -0
  160. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/type.d.ts +12 -0
  161. package/dist/types/ci-no-data-status/index.d.ts +3 -0
  162. package/dist/types/ci-no-data-status/index.vue.d.ts +11 -0
  163. package/dist/types/ci-no-data-status/type.d.ts +3 -0
  164. package/dist/types/ci-page-header/index.d.ts +3 -0
  165. package/dist/types/ci-page-header/index.vue.d.ts +21 -0
  166. package/dist/types/ci-page-header/type.d.ts +7 -0
  167. package/dist/types/ci-svg-icon/index.d.ts +4 -0
  168. package/dist/types/ci-svg-icon/index.vue.d.ts +8 -0
  169. package/dist/types/ci-svg-icon/type.d.ts +7 -0
  170. package/dist/types/ci-time-line-list/index.d.ts +3 -0
  171. package/dist/types/ci-time-line-list/index.vue.d.ts +14 -0
  172. package/dist/types/ci-time-line-list/model/index.d.ts +5 -0
  173. package/dist/types/ci-time-line-list/type.d.ts +8 -0
  174. package/dist/types/ci-upload/computed/index.d.ts +8 -0
  175. package/dist/types/ci-upload/expose/index.d.ts +17 -0
  176. package/dist/types/ci-upload/hooks/useUpload.d.ts +8 -0
  177. package/dist/types/ci-upload/hooks/useUploadRetry.d.ts +13 -0
  178. package/dist/types/ci-upload/index.d.ts +3 -0
  179. package/dist/types/ci-upload/index.vue.d.ts +56 -0
  180. package/dist/types/ci-upload/props/index.d.ts +27 -0
  181. package/dist/types/ci-upload/type.d.ts +39 -0
  182. package/dist/types/ci-upload/utils/file-icon-maps.d.ts +1 -0
  183. package/dist/types/ci-upload/utils/file.d.ts +8 -0
  184. package/package.json +6 -2
@@ -0,0 +1,31 @@
1
+ import { ElPagination as a } from "element-plus/es";
2
+ import { defineComponent as n, useAttrs as s, onMounted as r, createElementBlock as i, openBlock as l, createVNode as p, mergeProps as u, unref as c } from "vue";
3
+ const m = { class: "CiCommonListPagination" }, d = {
4
+ name: "CiCommonListPagination",
5
+ inheritAttrs: !1
6
+ // 禁止继承外部传递给组件的属性(例如 class、style 等)
7
+ }, y = /* @__PURE__ */ n({
8
+ ...d,
9
+ props: {
10
+ pageSizes: { default: () => [10, 20, 30, 50] },
11
+ background: { type: Boolean, default: !0 },
12
+ layout: { default: "total, sizes, prev, pager, next, jumper" }
13
+ },
14
+ setup(g) {
15
+ const t = s();
16
+ return Object.keys(t).filter((e) => e.startsWith("on")).map((e) => e.slice(2).toLowerCase()), r(() => {
17
+ }), (e, f) => {
18
+ const o = a;
19
+ return l(), i("div", m, [
20
+ p(o, u({
21
+ "page-sizes": e.pageSizes,
22
+ background: e.background,
23
+ layout: e.layout
24
+ }, c(t)), null, 16, ["page-sizes", "background", "layout"])
25
+ ]);
26
+ };
27
+ }
28
+ });
29
+ export {
30
+ y as default
31
+ };
@@ -0,0 +1 @@
1
+ .CommonListQuery[data-v-9a8012aa]{display:flex;flex-wrap:wrap;align-items:center}.CommonListQuery .query-conditions[data-v-9a8012aa]{display:flex;flex-wrap:wrap;align-content:flex-start;overflow:hidden;transition:height .3s ease-in-out}.CommonListQuery .query-conditions[data-v-9a8012aa] .conditions-item{display:flex;align-items:center;margin-right:30px;margin-bottom:14px}.CommonListQuery .query-conditions[data-v-9a8012aa] .conditions-item label{flex-shrink:0;margin-right:10px}.CommonListQuery .query-conditions .query-actions[data-v-9a8012aa]{display:flex;align-items:center;margin-bottom:14px}.CommonListQuery .query-conditions .query-actions .down-triangle[data-v-9a8012aa]{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #3573f3;margin-left:5px}
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue.js";
2
+ o.install = (m) => {
3
+ m.component(o.name, o);
4
+ };
5
+ export {
6
+ o as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9a8012aa"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,80 @@
1
+ import { ElButton as k } from "element-plus/es";
2
+ import { defineComponent as c, ref as i, onMounted as g, createElementBlock as $, openBlock as a, createElementVNode as s, normalizeStyle as x, normalizeClass as q, renderSlot as p, createCommentVNode as H, createVNode as f, createBlock as y, withCtx as r, createTextVNode as u, nextTick as w } from "vue";
3
+ const B = { class: "CommonListQuery" }, E = { class: "query-actions" }, N = {
4
+ name: "CommonListQuery",
5
+ inheritAttrs: !1
6
+ // 禁止继承外部传递给组件的属性(例如 class、style 等)
7
+ }, L = /* @__PURE__ */ c({
8
+ ...N,
9
+ setup(V) {
10
+ const t = i(!1), o = i(null), d = i(0), m = i(0);
11
+ g(() => {
12
+ C();
13
+ });
14
+ const C = async () => {
15
+ o.value && (d.value = o.value.scrollHeight);
16
+ }, v = async () => {
17
+ t.value = !t.value, await w(), o.value && (m.value = o.value.scrollHeight);
18
+ };
19
+ return (n, e) => {
20
+ const l = k;
21
+ return a(), $("div", B, [
22
+ s("div", {
23
+ class: q(["query-conditions", { "is-expanded": t.value }]),
24
+ ref_key: "queryConditions",
25
+ ref: o,
26
+ style: x({ height: t.value ? `${m.value}px` : `${d.value}px` })
27
+ }, [
28
+ p(n.$slots, "showConditions", {}, void 0, !0),
29
+ t.value ? p(n.$slots, "hiddenConditions", { key: 0 }, void 0, !0) : H("", !0),
30
+ s("div", E, [
31
+ f(l, {
32
+ type: "primary",
33
+ onClick: e[0] || (e[0] = (_) => n.$emit("query"))
34
+ }, {
35
+ default: r(() => e[2] || (e[2] = [
36
+ u("查询")
37
+ ])),
38
+ _: 1,
39
+ __: [2]
40
+ }),
41
+ f(l, {
42
+ onClick: e[1] || (e[1] = (_) => n.$emit("reset"))
43
+ }, {
44
+ default: r(() => e[3] || (e[3] = [
45
+ u("重置")
46
+ ])),
47
+ _: 1,
48
+ __: [3]
49
+ }),
50
+ t.value ? (a(), y(l, {
51
+ key: 1,
52
+ onClick: v
53
+ }, {
54
+ default: r(() => e[5] || (e[5] = [
55
+ u("收起")
56
+ ])),
57
+ _: 1,
58
+ __: [5]
59
+ })) : (a(), y(l, {
60
+ key: 0,
61
+ type: "primary",
62
+ link: "",
63
+ onClick: v
64
+ }, {
65
+ default: r(() => e[4] || (e[4] = [
66
+ s("span", null, "更多筛选", -1),
67
+ s("div", { class: "down-triangle" }, null, -1)
68
+ ])),
69
+ _: 1,
70
+ __: [4]
71
+ }))
72
+ ])
73
+ ], 6)
74
+ ]);
75
+ };
76
+ }
77
+ });
78
+ export {
79
+ L as default
80
+ };
@@ -0,0 +1 @@
1
+ .CiCommonListStartEndDatePicker[data-v-e8646aac] .startDatePicker{margin-right:10px;width:190px}.CiCommonListStartEndDatePicker[data-v-e8646aac] .endDatePicker{width:190px}
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue.js";
2
+ t.install = (o) => {
3
+ o.component(t.name, t);
4
+ };
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e8646aac"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,51 @@
1
+ import { ElDatePicker as m } from "element-plus/es";
2
+ import { defineComponent as D, createElementBlock as c, openBlock as p, createVNode as r } from "vue";
3
+ const f = { class: "CiCommonListStartEndDatePicker" }, V = {
4
+ name: "CiCommonListStartEndDatePicker",
5
+ inheritAttrs: !1
6
+ // 禁止继承外部传递给组件的属性(例如 class、style 等)
7
+ }, T = /* @__PURE__ */ D({
8
+ ...V,
9
+ props: {
10
+ startPlaceholder: { default: "开始日期" },
11
+ endPlaceholder: { default: "结束日期" },
12
+ startDateValue: { default: "" },
13
+ endDateValue: { default: "" },
14
+ requireEndDateBeforeToday: { type: Boolean, default: !1 }
15
+ },
16
+ emits: ["update:startDateValue", "update:endDateValue"],
17
+ setup(n, { emit: s }) {
18
+ const o = s, a = n, u = (e) => a.endDateValue ? e.getTime() > new Date(a.endDateValue).getTime() : !1, i = (e) => {
19
+ const t = a.startDateValue ? e.getTime() < new Date(a.startDateValue).getTime() - 864e5 : !1, l = /* @__PURE__ */ new Date();
20
+ l.setHours(0, 0, 0, 0);
21
+ const d = a.requireEndDateBeforeToday ? e.getTime() > l.getTime() : !1;
22
+ return t || d;
23
+ };
24
+ return (e, t) => {
25
+ const l = m;
26
+ return p(), c("div", f, [
27
+ r(l, {
28
+ class: "startDatePicker",
29
+ "value-format": "YYYY-MM-DD",
30
+ type: "date",
31
+ placeholder: e.startPlaceholder,
32
+ "model-value": e.startDateValue,
33
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => o("update:startDateValue", d)),
34
+ "disabled-date": u
35
+ }, null, 8, ["placeholder", "model-value"]),
36
+ r(l, {
37
+ class: "endDatePicker",
38
+ "value-format": "YYYY-MM-DD",
39
+ type: "date",
40
+ placeholder: e.endPlaceholder,
41
+ "model-value": e.endDateValue,
42
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => o("update:endDateValue", d)),
43
+ "disabled-date": i
44
+ }, null, 8, ["placeholder", "model-value"])
45
+ ]);
46
+ };
47
+ }
48
+ });
49
+ export {
50
+ T as default
51
+ };
@@ -0,0 +1,18 @@
1
+ import i from "../axios/index.js";
2
+ const e = {
3
+ // 字典项接口地址
4
+ dictionary_url: "/iadw/api/dict/v1/getDictListByCde",
5
+ // 字典项接口请求方式 post get 参数入参key
6
+ dictionary_request_method_param_key: "cde",
7
+ // 字典项接口返回的数据对象 Select组件 label 字段
8
+ dictionary_label: "dictValue",
9
+ // 字典项接口返回的数据对象 Select组件 value 字段
10
+ dictionary_value: "dictKey",
11
+ // select框默认宽度值
12
+ dictionary_selectWidth: "190px",
13
+ // 封装的 Axios 实例(请求接口需要用到)
14
+ dictionary_axios: i
15
+ };
16
+ export {
17
+ e as dictionarySettings
18
+ };
File without changes
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue.js";
2
+ t.install = (e) => {
3
+ e.component(t.name, t);
4
+ };
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5b47f532"]]);
5
+ export {
6
+ c as default
7
+ };
@@ -0,0 +1,78 @@
1
+ import { ElSelect as g, ElOption as y } from "element-plus/es";
2
+ import { defineComponent as h, ref as _, watch as b, computed as u, createBlock as p, openBlock as i, mergeProps as v, withCtx as w, createElementBlock as B, Fragment as C, renderList as R } from "vue";
3
+ import { dictionarySettings as a } from "./config.js";
4
+ const S = {
5
+ name: "CiDictionarySelect",
6
+ inheritAttrs: !1
7
+ }, O = /* @__PURE__ */ h({
8
+ ...S,
9
+ props: {
10
+ clearable: { type: Boolean, default: !0 },
11
+ filterable: { type: Boolean, default: !0 },
12
+ placeholder: { default: "请选择" },
13
+ collapseTags: { type: Boolean, default: !0 },
14
+ collapseTagsTooltip: { type: Boolean, default: !0 },
15
+ maxCollapseTags: { default: 1 },
16
+ multiple: { type: Boolean, default: !0 },
17
+ dictionaryCode: { default: "" },
18
+ showRange: { default: () => [] },
19
+ noShowRange: { default: () => [] }
20
+ },
21
+ setup(d) {
22
+ const t = d, r = _([]), f = {
23
+ width: a.dictionary_selectWidth
24
+ };
25
+ b(
26
+ () => t.dictionaryCode,
27
+ async (e) => {
28
+ var n;
29
+ if (e) {
30
+ const s = a.dictionary_axios;
31
+ {
32
+ const o = await s({
33
+ url: a.dictionary_url,
34
+ method: "get",
35
+ params: {
36
+ [a.dictionary_request_method_param_key]: e
37
+ }
38
+ });
39
+ o.data = (n = o.data) == null ? void 0 : n.map((l) => ({
40
+ ...l,
41
+ label: l[a.dictionary_label],
42
+ value: l[a.dictionary_value]
43
+ })), r.value = o.data;
44
+ }
45
+ }
46
+ },
47
+ {
48
+ immediate: !0
49
+ }
50
+ );
51
+ const c = u(() => t.showRange.length !== 0 ? r.value.filter((e) => t.showRange.includes(e.value)) : r.value), m = u(() => t.noShowRange.length !== 0 ? c.value.filter((e) => !t.noShowRange.includes(e.value)) : c.value);
52
+ return (e, n) => {
53
+ const s = y, o = g;
54
+ return i(), p(o, v({
55
+ class: "CiDictionarySelect",
56
+ clearable: e.clearable,
57
+ filterable: e.filterable,
58
+ "collapse-tags": e.collapseTags,
59
+ "collapse-tags-tooltip": e.collapseTagsTooltip,
60
+ "max-collapse-tags": e.maxCollapseTags,
61
+ placeholder: e.placeholder,
62
+ multiple: e.multiple
63
+ }, e.$attrs, { style: f }), {
64
+ default: w(() => [
65
+ (i(!0), B(C, null, R(m.value, (l) => (i(), p(s, {
66
+ key: l.value,
67
+ label: l.label,
68
+ value: l.value
69
+ }, null, 8, ["label", "value"]))), 128))
70
+ ]),
71
+ _: 1
72
+ }, 16, ["clearable", "filterable", "collapse-tags", "collapse-tags-tooltip", "max-collapse-tags", "placeholder", "multiple"]);
73
+ };
74
+ }
75
+ });
76
+ export {
77
+ O as default
78
+ };
@@ -0,0 +1 @@
1
+ #CiEchartChinaMap[data-v-492b6878]{height:376px}
@@ -0,0 +1,7 @@
1
+ import a from "./index.vue.js";
2
+ a.install = (t) => {
3
+ t.component(a.name, a);
4
+ };
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-492b6878"]]);
5
+ export {
6
+ i as default
7
+ };
@@ -0,0 +1,77 @@
1
+ import { defineComponent as M, ref as _, reactive as O, watch as r, nextTick as s, onBeforeUnmount as b, createElementBlock as k, openBlock as v } from "vue";
2
+ import * as i from "echarts/core";
3
+ import { MapChart as g, ScatterChart as z } from "echarts/charts";
4
+ import { TooltipComponent as D, VisualMapComponent as P, MarkPointComponent as R, ToolboxComponent as w } from "echarts/components";
5
+ import { CanvasRenderer as x } from "echarts/renderers";
6
+ import { __ChinaGeoJson as L } from "./model/ChinaGeoJson.js";
7
+ import { defaultOption as S } from "./model/options.js";
8
+ import { nanhaizhudaoWithLableOffset as u, OriginSpecialAreaMarkPoint as l } from "./model/index.js";
9
+ const V = {
10
+ name: "CiEchartChinaMap"
11
+ }, J = /* @__PURE__ */ M({
12
+ ...V,
13
+ props: {
14
+ fragmentOption: { default: () => ({}) },
15
+ ChinaMapData: { default: () => [] },
16
+ props: { default: () => ({ name: "name", value: "value" }) },
17
+ showSpecialMarkPoint: { type: Boolean, default: !0 },
18
+ nanhaizhudaoLabelOffset: { default: () => [0, 0] }
19
+ },
20
+ setup(h, { expose: m }) {
21
+ i.use([
22
+ g,
23
+ D,
24
+ P,
25
+ R,
26
+ w,
27
+ z,
28
+ x
29
+ ]), i.registerMap("china", L);
30
+ const p = _(null);
31
+ let n = null, o = O(S);
32
+ const a = h, c = () => (l.forEach((e) => {
33
+ const t = a.ChinaMapData.find(
34
+ (C) => C[a.props.name] === e.name
35
+ );
36
+ t ? e.value = t[a.props.value] : e.value = void 0;
37
+ }), l), d = () => {
38
+ const e = a.ChinaMapData.find((t) => t[a.props.name] === "南海诸岛");
39
+ e ? e.label = { ...e.label, offset: a.nanhaizhudaoLabelOffset } : a.ChinaMapData.push(u[0]);
40
+ };
41
+ r(
42
+ () => a.fragmentOption,
43
+ (e, t) => {
44
+ Object.assign(o, a.fragmentOption), s(() => {
45
+ f();
46
+ });
47
+ },
48
+ { deep: !0, immediate: !0 }
49
+ ), r(
50
+ () => a.ChinaMapData,
51
+ (e, t) => {
52
+ d(), o.series[0].data = a.ChinaMapData, a.showSpecialMarkPoint ? o.series[0].markPoint.data = c() : o.series[0].markPoint.data = [], s(() => {
53
+ f();
54
+ });
55
+ }
56
+ ), r(
57
+ () => a.nanhaizhudaoLabelOffset,
58
+ () => {
59
+ u[0].label.offset = a.nanhaizhudaoLabelOffset;
60
+ },
61
+ { immediate: !0 }
62
+ );
63
+ function f() {
64
+ n ? n.clear() : n = i.init(p.value), n.setOption(o);
65
+ }
66
+ return b(() => {
67
+ n && n.dispose();
68
+ }), m({ OriginSpecialAreaMarkPoint: l }), (e, t) => (v(), k("div", {
69
+ id: "CiEchartChinaMap",
70
+ ref_key: "chartRef",
71
+ ref: p
72
+ }, null, 512));
73
+ }
74
+ });
75
+ export {
76
+ J as default
77
+ };