dlzn-ui 2.0.6 → 2.0.8

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 (187) hide show
  1. package/assets/$loading-D_Zs2VgL.css +1 -0
  2. package/assets/LoginBg-XqWOv7dJ.css +1 -0
  3. package/assets/main-CxSb5Gqw.css +2 -0
  4. package/assets/{button-Bwn73ZEc.css → provider-1BcdscQq.css} +1 -1
  5. package/chunks/$loading-Df3COGfW.mjs +241 -0
  6. package/chunks/{AssignUser-DCju22tm.mjs → AssignUser-Dj8rq5gH.mjs} +3 -3
  7. package/chunks/{Common-DQbblaTl.mjs → Common-CnrITpXz.mjs} +7 -7
  8. package/chunks/{Day-9BKmHuZl.mjs → Day-tjS-0iDA.mjs} +13 -13
  9. package/chunks/{DictTypeDetail-e14bGyiZ.mjs → DictTypeDetail-CcohOVfN.mjs} +7 -7
  10. package/chunks/FileSaver.min-BAG7TK0U.mjs +70 -0
  11. package/chunks/{Hour-CrFFADzT.mjs → Hour-B9fx59cM.mjs} +1 -1
  12. package/chunks/{Index-Bu5a_B5n.mjs → Index-B-_PVf5U.mjs} +1 -1
  13. package/chunks/{Index-QUCWrT4d.mjs → Index-BTEVAXbg.mjs} +2 -2
  14. package/chunks/{Index-bEWcnIHJ.mjs → Index-BxfxoY-l.mjs} +1 -1
  15. package/chunks/{Index-Bi44jQm2.mjs → Index-CrxoIuR-.mjs} +1 -1
  16. package/chunks/{Index-ChH8kYUs.mjs → Index-D-gi1OVy.mjs} +2 -2
  17. package/chunks/{Index-DloA1g7z.mjs → Index-DlrNiiDp.mjs} +5 -5
  18. package/chunks/{Index-De48YIRG.mjs → Index-baebFewJ.mjs} +1 -1
  19. package/chunks/{Index-CZ0ICyCx.mjs → Index-z9vUMzmS.mjs} +2 -2
  20. package/chunks/{IndexItem-OIGXdAkP.mjs → IndexItem-rt5wZA39.mjs} +7 -7
  21. package/chunks/{Log-DdemNjDW.mjs → Log-DK5aduPG.mjs} +8 -8
  22. package/chunks/{LoginBg-BD6ChYvu.mjs → LoginBg-BtuSDFUq.mjs} +10 -18
  23. package/chunks/{MenuNode-ByutDAqI.mjs → MenuNode-B0M4WpOn.mjs} +1 -1
  24. package/chunks/{MenuNode-DXgE629W.mjs → MenuNode-DEBSfNz9.mjs} +3 -3
  25. package/chunks/{Minute-xZNOCy8Q.mjs → Minute-hPwzkaCM.mjs} +1 -1
  26. package/chunks/{Month-CvWOcD_9.mjs → Month-Cnjhbs28.mjs} +1 -1
  27. package/chunks/{Second-BvMnEOms.mjs → Second-DAYKul2s.mjs} +1 -1
  28. package/chunks/{SelectDept-DmtKBaW0.mjs → SelectDept-CC4ckbbt.mjs} +1 -1
  29. package/chunks/{SelectMenu-tEpLm6Ij.mjs → SelectMenu-pBim6_Lj.mjs} +1 -1
  30. package/chunks/{SelectUser-CTvBarod.mjs → SelectUser-D6dBXxlL.mjs} +2 -2
  31. package/chunks/Triangle-C5ogSVp9.mjs +1140 -0
  32. package/chunks/{UserInfo-qrNR9tve.mjs → UserInfo-BUlPdKge.mjs} +11 -11
  33. package/chunks/{Wrapper-LEchQmDn.mjs → Wrapper-C6BtJDSa.mjs} +5 -5
  34. package/chunks/__vite-browser-external-D1GT_Hx9.mjs +7 -0
  35. package/chunks/{app-CggLqjRQ.mjs → app-Dk-mybzX.mjs} +5 -5
  36. package/chunks/auto-animate-FPySn19g.mjs +341 -0
  37. package/chunks/crypto-js-DWj_rBsG.mjs +3695 -0
  38. package/chunks/css-Cw_qlmlv.mjs +521 -0
  39. package/chunks/{custom-page-list-CJWB72dw.mjs → custom-page-list-EQhltX7t.mjs} +4 -4
  40. package/chunks/{custom-page-table-5f8lI6CQ.mjs → custom-page-table-CYLFzT4F.mjs} +2 -2
  41. package/chunks/date-picker-C_5NJHjq.mjs +8186 -0
  42. package/chunks/icon-jnCbW4iu.mjs +1013 -0
  43. package/chunks/{menu-CjNx3wKR.mjs → menu-DYwAudY3.mjs} +1 -1
  44. package/chunks/{overview-BEtKbidZ.mjs → overview-D9YB44O0.mjs} +1 -1
  45. package/chunks/{page-list-C3nqGnnX.mjs → page-list-BnGVTcad.mjs} +36 -36
  46. package/chunks/{page-query-C6oSW1je.mjs → page-query-QCT-mat_.mjs} +5 -5
  47. package/chunks/{page-table-3DTiPP9H.mjs → page-table-DMOjg44G.mjs} +9 -9
  48. package/chunks/{pagination-C6-VAj4W.mjs → pagination-BNAZYVJk.mjs} +1 -1
  49. package/chunks/{button-Dk3CiB69.mjs → provider-DQIMA4mE.mjs} +840 -809
  50. package/chunks/rolldown-runtime-D_tDV3RV.mjs +23 -0
  51. package/chunks/{scrollbar-CI1mysNQ.mjs → scrollbar-B0u39t4J.mjs} +9 -10
  52. package/chunks/store-C46_JI7q.mjs +112 -0
  53. package/chunks/{table-Cp9NQHjQ.mjs → table-BFP90EA0.mjs} +11 -11
  54. package/chunks/{tag-CfeJWJii.mjs → tag-BDpZ8-Fj.mjs} +1 -1
  55. package/components/app/index.mjs +1 -1
  56. package/components/app/src/app.mjs +1 -1
  57. package/components/button/index.mjs +1 -1
  58. package/components/button/src/button.mjs +1 -1
  59. package/components/checkbox-group/index.mjs +1 -1
  60. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  61. package/components/cron/index.mjs +1 -1
  62. package/components/cron/src/Common.mjs +1 -1
  63. package/components/cron/src/Day.mjs +1 -1
  64. package/components/cron/src/Hour.mjs +1 -1
  65. package/components/cron/src/Minute.mjs +1 -1
  66. package/components/cron/src/Month.mjs +1 -1
  67. package/components/cron/src/Picker.mjs +6206 -103
  68. package/components/cron/src/Second.mjs +1 -1
  69. package/components/cron/src/cron.mjs +1 -1
  70. package/components/custom-page-list/index.mjs +1 -1
  71. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  72. package/components/custom-page-table/index.mjs +1 -1
  73. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  74. package/components/date-picker/index.mjs +1 -1
  75. package/components/date-picker/src/date-picker.mjs +1 -1
  76. package/components/form/index.mjs +1 -1
  77. package/components/form/src/form.mjs +1 -1
  78. package/components/icon/index.mjs +1 -1
  79. package/components/icon/src/icon.mjs +1 -1
  80. package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  81. package/components/index.mjs +19 -19
  82. package/components/overview/index.mjs +1 -1
  83. package/components/overview/src/DicLabel/Index.mjs +1 -1
  84. package/components/overview/src/IndexItem.mjs +1 -1
  85. package/components/overview/src/OptionLabel/Index.mjs +1 -1
  86. package/components/overview/src/overview.mjs +1 -1
  87. package/components/page-list/index.mjs +1 -1
  88. package/components/page-list/src/page-list.d.ts +3 -3
  89. package/components/page-list/src/page-list.mjs +1 -1
  90. package/components/page-query/index.mjs +1 -1
  91. package/components/page-query/src/page-query.mjs +1 -1
  92. package/components/page-table/index.mjs +1 -1
  93. package/components/page-table/src/page-table.mjs +1 -1
  94. package/components/page-table/src/page-table.vue.d.ts +1 -1
  95. package/components/pagination/index.mjs +1 -1
  96. package/components/pagination/src/pagination.mjs +1 -1
  97. package/components/provider/index.mjs +1 -1
  98. package/components/provider/src/Provider.mjs +1 -1
  99. package/components/radio-group/index.mjs +1 -1
  100. package/components/radio-group/src/radio-group.mjs +1 -1
  101. package/components/scrollbar/index.mjs +1 -1
  102. package/components/scrollbar/src/scrollbar.mjs +1 -1
  103. package/components/select/index.mjs +2 -2
  104. package/components/select/src/select.mjs +1 -1
  105. package/components/select-sys-user/index.mjs +1 -1
  106. package/components/select-sys-user/src/Picker.mjs +2 -2
  107. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  108. package/components/table/index.mjs +1 -1
  109. package/components/table/src/table.mjs +1 -1
  110. package/components/table/src/table.vue.d.ts +1 -1
  111. package/components/tag/index.mjs +1 -1
  112. package/components/tag/src/tag.mjs +1 -1
  113. package/components/tree/index.mjs +2 -2
  114. package/components/tree/src/tree.mjs +1 -1
  115. package/components/tree-select/index.mjs +1 -1
  116. package/components/tree-select/src/tree-select.mjs +1 -1
  117. package/components/upload/index.mjs +2 -2
  118. package/components/upload/src/upload.mjs +1 -1
  119. package/hooks/useAnimateAuto/index.mjs +6 -6
  120. package/hooks/useContextMenu/menu/index.mjs +1 -1
  121. package/hooks/useContextMenu/menu/src/MenuNode.mjs +1 -1
  122. package/hooks/useContextMenu/menu/src/menu.mjs +1 -1
  123. package/hooks/useDicOptions/index.mjs +2 -2
  124. package/hooks/useSysUser/index.mjs +2 -2
  125. package/index.d.ts +3 -0
  126. package/layout/Entry.mjs +1 -1
  127. package/layout/Login.mjs +6 -6
  128. package/layout/NotFound.mjs +1 -1
  129. package/layout/modules/Aside.mjs +1 -1
  130. package/layout/modules/Breadcrumb.mjs +1 -1
  131. package/layout/modules/Header.mjs +1 -1
  132. package/layout/modules/LoginBg.mjs +1 -1
  133. package/layout/modules/MenuNode.mjs +1 -1
  134. package/layout/profile/Index.mjs +4 -4
  135. package/layout/profile/ResetPwd.mjs +1 -1
  136. package/layout/profile/UserInfo.mjs +1 -1
  137. package/layout/vueBits/LightRays.mjs +47 -47
  138. package/layout/vueBits/Plasma.mjs +29 -29
  139. package/layout/vueBits/Prism.mjs +51 -51
  140. package/main.d.ts +2 -0
  141. package/main.mjs +41 -0
  142. package/package.json +17 -11
  143. package/plugins/autoImport/$alova/index.mjs +2 -2
  144. package/plugins/autoImport/$confirm/index.mjs +1 -1
  145. package/plugins/autoImport/$dialog/index.mjs +1 -1
  146. package/plugins/autoImport/$drawer/index.mjs +1 -1
  147. package/plugins/autoImport/$loading/index.mjs +2 -38
  148. package/plugins/captcha/captcha.mjs +13 -13
  149. package/plugins/captcha/index.mjs +1 -1
  150. package/plugins/echarts/index.mjs +705 -25
  151. package/plugins/initialize/index.mjs +1 -1
  152. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  153. package/plugins/tableRenders/Wrapper.mjs +1 -1
  154. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  155. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  156. package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
  157. package/plugins/tableRenders/cell/ImageViewer/Index.vue.d.ts +1 -1
  158. package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
  159. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  160. package/plugins/tableRenders/cell/Tags/Index.mjs +1 -1
  161. package/plugins/tableRenders/cell/index.mjs +7 -7
  162. package/plugins/tableRenders/title/index.mjs +1 -1
  163. package/router/index.mjs +1 -1
  164. package/store/index.mjs +2 -7
  165. package/store/modules/common.mjs +1 -1
  166. package/store/modules/login.mjs +1 -1
  167. package/store/modules/recentRouters.mjs +1 -1
  168. package/store/modules/router.mjs +1 -1
  169. package/store/modules/user.mjs +2 -2
  170. package/utils/tool.mjs +16 -15
  171. package/views/system/dept/index.mjs +10 -10
  172. package/views/system/dept/utils.mjs +1 -1
  173. package/views/system/dict/index.mjs +18 -18
  174. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  175. package/views/system/menu/index.mjs +11 -11
  176. package/views/system/post/index.mjs +6 -6
  177. package/views/system/role/index.mjs +42 -42
  178. package/views/system/role/modules/AssignUser.mjs +1 -1
  179. package/views/system/role/modules/SelectDept.mjs +1 -1
  180. package/views/system/role/modules/SelectMenu.mjs +1 -1
  181. package/views/system/role/modules/SelectUser.mjs +1 -1
  182. package/views/system/user/index.mjs +49 -49
  183. package/views/tool/job/index.mjs +31 -31
  184. package/views/tool/job/modules/Log.mjs +1 -1
  185. package/assets/LoginBg-BTrRjkK7.css +0 -1
  186. package/chunks/date-picker-DtbDIFUH.mjs +0 -378
  187. package/chunks/icon-COjp1yrx.mjs +0 -21
@@ -1,378 +0,0 @@
1
- import { t as e } from "./icon-COjp1yrx.mjs";
2
- import "../components/icon/index.mjs";
3
- import '../assets/css-BPkXehJY.css';import '../assets/date-picker-CKUanIvh.css';/* empty css */
4
- import { isFalsy as t } from "../utils/boolean.mjs";
5
- import "../utils/index.mjs";
6
- import n from "../plugins/autoImport/dayjs/index.mjs";
7
- import { computed as r, createBlock as i, defineComponent as a, getCurrentInstance as o, h as s, inject as c, mergeProps as l, openBlock as u, ref as d, resolveDynamicComponent as f, unref as p, watch as m } from "vue";
8
- import { ElDatePicker as h } from "element-plus";
9
- //#endregion
10
- //#region ../../packages/dlzn-ui/components/date-picker/src/date-picker.vue
11
- var g = /* @__PURE__ */ a({
12
- inheritAttrs: !1,
13
- __name: "date-picker",
14
- props: {
15
- modelValue: {},
16
- onBlur: {},
17
- onCalendarChange: {},
18
- onChange: {},
19
- onClear: {},
20
- onFocus: {},
21
- onPanelChange: {},
22
- onVisibleChange: {},
23
- status: { default: "default" },
24
- type: { default: "date" },
25
- showNow: { type: Boolean },
26
- showConfirm: { type: Boolean },
27
- showFooter: {
28
- type: Boolean,
29
- default: !1
30
- },
31
- showWeekNumber: { type: Boolean },
32
- ariaLabel: {},
33
- emptyValues: {},
34
- valueOnClear: {},
35
- disabledDate: {},
36
- cellClassName: {},
37
- shortcuts: {},
38
- arrowControl: { type: Boolean },
39
- tabindex: {},
40
- validateEvent: {
41
- type: Boolean,
42
- default: !0
43
- },
44
- unlinkPanels: {
45
- type: Boolean,
46
- default: !0
47
- },
48
- singlePanel: { type: Boolean },
49
- placement: {},
50
- fallbackPlacements: {},
51
- disabledHours: {},
52
- disabledMinutes: {},
53
- disabledSeconds: {},
54
- automaticDropdown: {
55
- type: Boolean,
56
- default: !0
57
- },
58
- id: {},
59
- name: {},
60
- popperClass: {},
61
- popperStyle: {},
62
- format: {},
63
- valueFormat: {},
64
- dateFormat: {},
65
- timeFormat: {},
66
- clearable: {
67
- type: Boolean,
68
- default: !0
69
- },
70
- clearIcon: { default: () => s(e, {
71
- icon: "carbon:close-filled",
72
- size: "16"
73
- }) },
74
- editable: { type: Boolean },
75
- saveOnBlur: {
76
- type: Boolean,
77
- default: void 0
78
- },
79
- prefixIcon: {},
80
- size: {},
81
- readonly: {
82
- type: Boolean,
83
- default: void 0
84
- },
85
- disabled: {
86
- type: Boolean,
87
- default: void 0
88
- },
89
- placeholder: {},
90
- popperOptions: { default: () => ({ modifiers: [{
91
- name: "offset",
92
- options: { offset: () => [0, 8] }
93
- }] }) },
94
- rangeSeparator: {},
95
- startPlaceholder: {},
96
- endPlaceholder: {},
97
- defaultTime: {},
98
- isRange: { type: Boolean }
99
- },
100
- emits: ["update:modelValue"],
101
- setup(e, { emit: a }) {
102
- let g = e, _ = a, v = c("isFormDisabled", r(() => !1)), y = c("isFormReadonly", r(() => !1)), b = d(g.modelValue);
103
- m(() => g.modelValue, (e) => {
104
- b.value = e;
105
- }, { deep: !0 });
106
- function x() {
107
- if (g.defaultTime !== void 0) return g.defaultTime;
108
- switch (g.type) {
109
- case "datetimerange": return [n().startOf("day").toDate(), n().endOf("day").toDate()];
110
- default: return;
111
- }
112
- }
113
- function S() {
114
- if (g.endPlaceholder !== void 0) return g.endPlaceholder;
115
- switch (g.type) {
116
- case "daterange": return "结束日期";
117
- case "datetimerange": return "结束时间";
118
- case "monthrange": return "结束月份";
119
- case "yearrange": return "结束年";
120
- default: return;
121
- }
122
- }
123
- function C() {
124
- if (g.format !== void 0) return g.format;
125
- switch (g.type) {
126
- case "week": return "YYYY年第 ww 周";
127
- default: return;
128
- }
129
- }
130
- function w() {
131
- if (g.placeholder !== void 0) return g.placeholder;
132
- switch (g.type) {
133
- case "datetime": return "请选择时间";
134
- case "month":
135
- case "months": return "请选择月";
136
- case "week": return "请选择周";
137
- case "year":
138
- case "years": return "请选择年";
139
- default: return "请选择日期";
140
- }
141
- }
142
- function T() {
143
- if (g.shortcuts !== void 0) return g.shortcuts;
144
- if (g.disabledDate !== void 0 || g.disabledHours !== void 0 || g.disabledMinutes !== void 0 || g.disabledSeconds !== void 0) return [];
145
- switch (g.type) {
146
- case "date": return [
147
- {
148
- text: "今天",
149
- value: n().toDate()
150
- },
151
- {
152
- text: "昨天",
153
- value: () => n().subtract(1, "day").toDate()
154
- },
155
- {
156
- text: "一周前",
157
- value: () => n().subtract(1, "week").toDate()
158
- }
159
- ];
160
- case "daterange": return [
161
- {
162
- text: "最近一周",
163
- value: () => [n().subtract(1, "week").toDate(), n().toDate()]
164
- },
165
- {
166
- text: "本月",
167
- value: () => [n().startOf("month").toDate(), n().endOf("month").toDate()]
168
- },
169
- {
170
- text: "上一个月",
171
- value: () => [n().subtract(1, "month").startOf("month").toDate(), n().subtract(1, "month").endOf("month").toDate()]
172
- },
173
- {
174
- text: "最近一个月",
175
- value: () => [n().subtract(1, "month").toDate(), n().toDate()]
176
- },
177
- {
178
- text: "最近三个月",
179
- value: () => [n().subtract(3, "month").toDate(), n().toDate()]
180
- },
181
- {
182
- text: "最近半年",
183
- value: () => [n().subtract(6, "month").toDate(), n().toDate()]
184
- },
185
- {
186
- text: "最近一年",
187
- value: () => [n().subtract(1, "year").toDate(), n().toDate()]
188
- },
189
- {
190
- text: "最近两年",
191
- value: () => [n().subtract(2, "year").toDate(), n().toDate()]
192
- },
193
- {
194
- text: "最近三年",
195
- value: () => [n().subtract(3, "year").toDate(), n().toDate()]
196
- }
197
- ];
198
- case "datetime": return [
199
- {
200
- text: "今天",
201
- value: n().toDate()
202
- },
203
- {
204
- text: "今日开始",
205
- value: () => n().startOf("day").toDate()
206
- },
207
- {
208
- text: "今日结束",
209
- value: () => n().endOf("day").toDate()
210
- },
211
- {
212
- text: "昨天",
213
- value: () => n().subtract(1, "day").toDate()
214
- },
215
- {
216
- text: "三天前",
217
- value: () => n().subtract(3, "day").toDate()
218
- },
219
- {
220
- text: "一周前",
221
- value: () => n().subtract(1, "week").toDate()
222
- },
223
- {
224
- text: "一个月前",
225
- value: () => n().subtract(1, "month").toDate()
226
- },
227
- {
228
- text: "本月初",
229
- value: () => n().startOf("month").toDate()
230
- },
231
- {
232
- text: "本月末",
233
- value: () => n().endOf("month").toDate()
234
- }
235
- ];
236
- case "datetimerange": return [
237
- {
238
- text: "今天",
239
- value: () => [n().startOf("day").toDate(), n().endOf("day").toDate()]
240
- },
241
- {
242
- text: "昨天",
243
- value: () => [n().subtract(1, "day").startOf("day").toDate(), n().subtract(1, "day").endOf("day").toDate()]
244
- },
245
- {
246
- text: "最近一周",
247
- value: () => [n().startOf("day").subtract(1, "week").toDate(), n().endOf("day").toDate()]
248
- },
249
- {
250
- text: "本月",
251
- value: () => [n().startOf("month").toDate(), n().endOf("month").toDate()]
252
- },
253
- {
254
- text: "上个月",
255
- value: () => [n().subtract(1, "month").startOf("month").toDate(), n().subtract(1, "month").endOf("month").toDate()]
256
- },
257
- {
258
- text: "最近一个月",
259
- value: () => [n().startOf("day").subtract(1, "month").toDate(), n().endOf("day").toDate()]
260
- },
261
- {
262
- text: "最近三个月",
263
- value: () => [n().startOf("day").subtract(3, "month").toDate(), n().endOf("day").toDate()]
264
- },
265
- {
266
- text: "最近半年",
267
- value: () => [n().startOf("day").subtract(6, "month").toDate(), n().endOf("day").toDate()]
268
- },
269
- {
270
- text: "最近一年",
271
- value: () => [n().startOf("day").subtract(1, "year").toDate(), n().endOf("day").toDate()]
272
- }
273
- ];
274
- case "monthrange": return [
275
- {
276
- text: "本月",
277
- value: [n().toDate(), n().toDate()]
278
- },
279
- {
280
- text: "上月",
281
- value: () => [n().subtract(1, "month").startOf("month").toDate(), n().subtract(1, "month").endOf("month").toDate()]
282
- },
283
- {
284
- text: "今年至今",
285
- value: () => [n().startOf("year").toDate(), n().toDate()]
286
- },
287
- {
288
- text: "最近一个月",
289
- value: () => [n().subtract(1, "month").toDate(), n().toDate()]
290
- },
291
- {
292
- text: "最近三个月",
293
- value: () => [n().subtract(3, "month").toDate(), n().toDate()]
294
- },
295
- {
296
- text: "最近六个月",
297
- value: () => [n().subtract(6, "month").toDate(), n().toDate()]
298
- },
299
- {
300
- text: "最近一年",
301
- value: () => [n().subtract(1, "year").toDate(), n().toDate()]
302
- },
303
- {
304
- text: "最近三年",
305
- value: () => [n().subtract(3, "year").toDate(), n().toDate()]
306
- }
307
- ];
308
- default: return [];
309
- }
310
- }
311
- function E() {
312
- if (g.startPlaceholder !== void 0) return g.startPlaceholder;
313
- switch (g.type) {
314
- case "daterange": return "开始日期";
315
- case "datetimerange": return "开始时间";
316
- case "monthrange": return "开始月份";
317
- case "yearrange": return "开始年";
318
- default: return;
319
- }
320
- }
321
- function D() {
322
- if (g.valueFormat !== void 0) return g.valueFormat;
323
- switch (g.type) {
324
- case "datetime":
325
- case "datetimerange": return "YYYY-MM-DD HH:mm:ss";
326
- case "month":
327
- case "monthrange":
328
- case "months": return "YYYY-MM";
329
- case "year":
330
- case "yearrange":
331
- case "years": return "YYYY";
332
- default: return "YYYY-MM-DD";
333
- }
334
- }
335
- let O = r(() => {
336
- let e = {
337
- ...g,
338
- defaultTime: x(),
339
- disabled: g.disabled ?? v.value,
340
- endPlaceholder: S(),
341
- format: C(),
342
- placeholder: w(),
343
- readonly: g.readonly ?? y.value,
344
- shortcuts: T(),
345
- startPlaceholder: E(),
346
- valueFormat: D()
347
- };
348
- return Object.keys(e).forEach((t) => {
349
- e[t] === void 0 && delete e[t];
350
- }), e;
351
- }), k = o();
352
- function A(e) {
353
- k.exposed = e ?? {};
354
- }
355
- return (n, r) => (u(), i(f(s(p(h), l(n.$attrs, {
356
- ...O.value,
357
- modelValue: b.value,
358
- "onUpdate:modelValue": (e) => {
359
- b.value = e;
360
- },
361
- onChange: (n) => {
362
- let r = n;
363
- p(t)(n) && (r = [
364
- "daterange",
365
- "dates",
366
- "datetimerange",
367
- "monthrange",
368
- "months",
369
- "yearrange",
370
- "years"
371
- ].includes(e.type) ? [] : ""), _("update:modelValue", r), g.onChange?.(r);
372
- },
373
- ref: A
374
- }, { class: `t-is-${e.status}` }), n.$slots))));
375
- }
376
- });
377
- //#endregion
378
- export { g as t };
@@ -1,21 +0,0 @@
1
- import { createBlock as e, defineComponent as t, normalizeStyle as n, openBlock as r, unref as i } from "vue";
2
- import { Icon as a } from "@iconify/vue";
3
- //#endregion
4
- //#region ../../packages/dlzn-ui/components/icon/src/icon.vue
5
- var o = /* @__PURE__ */ t({
6
- name: "TIcon",
7
- __name: "icon",
8
- props: {
9
- icon: {},
10
- size: { default: "24" }
11
- },
12
- setup(t) {
13
- return (o, s) => (r(), e(i(a), {
14
- icon: t.icon,
15
- inline: "",
16
- style: n({ fontSize: `${t.size}px` })
17
- }, null, 8, ["icon", "style"]));
18
- }
19
- });
20
- //#endregion
21
- export { o as t };