wlwy-package 3.2.3-httpOnlyCookie.0 → 4.0.0-beta.2
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/editor/index.es.js +1 -1
- package/dist/{editor-core-C7ZO3umt.js → editor-core-BGPSxIdD.js} +2 -2
- package/dist/{index-DtK1XQdW.js → index-5P9J8Ohq.js} +221 -66
- package/dist/{index-BPPIVUm2.js → index-nd_lc6wA.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/wlwy-package.es.js +2010 -3443
- package/package.json +2 -2
- package/dist/types/index.d.ts +0 -17
- package/dist/types/packages/axios/index.d.ts +0 -6
- package/dist/types/packages/axios/service.d.ts +0 -21
- package/dist/types/packages/axios/types/index.d.ts +0 -35
- package/dist/types/packages/components/antd/index.d.ts +0 -10
- package/dist/types/packages/components/antd/src/button.vue.d.ts +0 -10
- package/dist/types/packages/components/antd/src/datePicker.vue.d.ts +0 -16
- package/dist/types/packages/components/antd/src/descriptions-item.vue.d.ts +0 -9
- package/dist/types/packages/components/antd/src/descriptions.vue.d.ts +0 -6
- package/dist/types/packages/components/antd/src/modal.vue.d.ts +0 -30
- package/dist/types/packages/components/antd/src/select.vue.d.ts +0 -14
- package/dist/types/packages/components/antd/src/statistic.vue.d.ts +0 -3
- package/dist/types/packages/components/antd/src/upload.vue.d.ts +0 -40
- package/dist/types/packages/components/antd/type.d.ts +0 -164
- package/dist/types/packages/components/common/index.d.ts +0 -20
- package/dist/types/packages/components/common/src/Redirect.vue.d.ts +0 -2
- package/dist/types/packages/components/common/src/configProvider.vue.d.ts +0 -13
- package/dist/types/packages/components/common/src/cropper.vue.d.ts +0 -29
- package/dist/types/packages/components/common/src/dropdown.vue.d.ts +0 -23
- package/dist/types/packages/components/common/src/editTitle.vue.d.ts +0 -18
- package/dist/types/packages/components/common/src/noData.vue.d.ts +0 -7
- package/dist/types/packages/components/common/src/page.vue.d.ts +0 -38
- package/dist/types/packages/components/common/src/pageHead.vue.d.ts +0 -29
- package/dist/types/packages/components/common/src/rangePicker.vue.d.ts +0 -24
- package/dist/types/packages/components/common/src/slashHeader.vue.d.ts +0 -7
- package/dist/types/packages/components/common/src/upload-modal.vue.d.ts +0 -43
- package/dist/types/packages/components/common/type.d.ts +0 -296
- package/dist/types/packages/components/form/business/index.d.ts +0 -8
- package/dist/types/packages/components/form/business/src/channel.vue.d.ts +0 -5
- package/dist/types/packages/components/form/business/src/country.vue.d.ts +0 -3
- package/dist/types/packages/components/form/business/src/customer.vue.d.ts +0 -6
- package/dist/types/packages/components/form/business/src/sku.vue.d.ts +0 -5
- package/dist/types/packages/components/form/business/type.d.ts +0 -36
- package/dist/types/packages/components/form/default/index.d.ts +0 -44
- package/dist/types/packages/components/form/default/src/checkbox.vue.d.ts +0 -18
- package/dist/types/packages/components/form/default/src/custom.vue.d.ts +0 -14
- package/dist/types/packages/components/form/default/src/datePicker.vue.d.ts +0 -6
- package/dist/types/packages/components/form/default/src/dateRange.vue.d.ts +0 -10
- package/dist/types/packages/components/form/default/src/form.vue.d.ts +0 -429
- package/dist/types/packages/components/form/default/src/formCol.vue.d.ts +0 -16
- package/dist/types/packages/components/form/default/src/formItem.vue.d.ts +0 -20
- package/dist/types/packages/components/form/default/src/formItemRest.vue.d.ts +0 -2
- package/dist/types/packages/components/form/default/src/input.vue.d.ts +0 -26
- package/dist/types/packages/components/form/default/src/inputI18n.vue.d.ts +0 -14
- package/dist/types/packages/components/form/default/src/inputMatch.vue.d.ts +0 -18
- package/dist/types/packages/components/form/default/src/inputNumber.vue.d.ts +0 -16
- package/dist/types/packages/components/form/default/src/inputPassword.vue.d.ts +0 -16
- package/dist/types/packages/components/form/default/src/inputTags.vue.d.ts +0 -21
- package/dist/types/packages/components/form/default/src/modal.vue.d.ts +0 -46
- package/dist/types/packages/components/form/default/src/numberRange.vue.d.ts +0 -9
- package/dist/types/packages/components/form/default/src/page.vue.d.ts +0 -48
- package/dist/types/packages/components/form/default/src/radio.vue.d.ts +0 -18
- package/dist/types/packages/components/form/default/src/select.vue.d.ts +0 -21
- package/dist/types/packages/components/form/default/src/selectInput.vue.d.ts +0 -13
- package/dist/types/packages/components/form/default/src/textarea.vue.d.ts +0 -14
- package/dist/types/packages/components/form/default/src/timePicker.vue.d.ts +0 -6
- package/dist/types/packages/components/form/default/src/upload-image.vue.d.ts +0 -23
- package/dist/types/packages/components/form/default/src/upload.vue.d.ts +0 -12
- package/dist/types/packages/components/form/default/src/wrap.vue.d.ts +0 -56
- package/dist/types/packages/components/form/default/type.d.ts +0 -680
- package/dist/types/packages/components/form/index.d.ts +0 -2
- package/dist/types/packages/components/form/type.d.ts +0 -2
- package/dist/types/packages/components/icon/index.d.ts +0 -4
- package/dist/types/packages/components/icon/src/icon.vue.d.ts +0 -12
- package/dist/types/packages/components/icon/src/index.vue.d.ts +0 -9
- package/dist/types/packages/components/icon/src/switch.vue.d.ts +0 -18
- package/dist/types/packages/components/icon/type.d.ts +0 -41
- package/dist/types/packages/components/index.d.ts +0 -7
- package/dist/types/packages/components/layout/blank.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/index.d.ts +0 -7
- package/dist/types/packages/components/layout/index.vue.d.ts +0 -9
- package/dist/types/packages/components/layout/skeleton/list.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/skeleton/switch.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/footer.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/header/index.vue.d.ts +0 -10
- package/dist/types/packages/components/layout/src/header/modules/download.vue.d.ts +0 -6
- package/dist/types/packages/components/layout/src/header/modules/language.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/header/modules/password-modal.vue.d.ts +0 -9
- package/dist/types/packages/components/layout/src/header/modules/topMenu.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/header/modules/warehouse.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/logo.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/siderMenu.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/subMenuItem.vue.d.ts +0 -6
- package/dist/types/packages/components/layout/src/tabsNav.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/type.d.ts +0 -17
- package/dist/types/packages/components/lazy/charts/index.d.ts +0 -21
- package/dist/types/packages/components/lazy/charts/index.vue.d.ts +0 -7
- package/dist/types/packages/components/lazy/editor/editor-core.vue.d.ts +0 -36
- package/dist/types/packages/components/lazy/editor/index.d.ts +0 -3
- package/dist/types/packages/components/lazy/editor/index.vue.d.ts +0 -35
- package/dist/types/packages/components/lazy/editor/type.d.ts +0 -62
- package/dist/types/packages/components/list/index.d.ts +0 -7
- package/dist/types/packages/components/list/input.d.ts +0 -432
- package/dist/types/packages/components/list/src/header.vue.d.ts +0 -44
- package/dist/types/packages/components/list/src/index.vue.d.ts +0 -68
- package/dist/types/packages/components/list/src/pager.vue.d.ts +0 -10
- package/dist/types/packages/components/list/src/table.vue.d.ts +0 -774
- package/dist/types/packages/components/list/type.d.ts +0 -346
- package/dist/types/packages/components/table/constants.d.ts +0 -15
- package/dist/types/packages/components/table/index.d.ts +0 -7
- package/dist/types/packages/components/table/resolveInjectColumns.d.ts +0 -17
- package/dist/types/packages/components/table/src/action-column.vue.d.ts +0 -11
- package/dist/types/packages/components/table/src/column.vue.d.ts +0 -82
- package/dist/types/packages/components/table/src/pager.vue.d.ts +0 -314
- package/dist/types/packages/components/table/src/search.vue.d.ts +0 -34
- package/dist/types/packages/components/table/src/table.vue.d.ts +0 -802
- package/dist/types/packages/components/table/type.d.ts +0 -179
- package/dist/types/packages/components/table/useWTableConfig.d.ts +0 -34
- package/dist/types/packages/components/table/vxeDefaultConfig.d.ts +0 -8
- package/dist/types/packages/components/table/warnDeprecated.d.ts +0 -6
- package/dist/types/packages/config.d.ts +0 -27
- package/dist/types/packages/directive/auth.d.ts +0 -4
- package/dist/types/packages/directive/auths.d.ts +0 -4
- package/dist/types/packages/directive/index.d.ts +0 -6
- package/dist/types/packages/hooks/business/index.d.ts +0 -4
- package/dist/types/packages/hooks/business/src/index.d.ts +0 -4
- package/dist/types/packages/hooks/business/src/useCountryDict.d.ts +0 -22
- package/dist/types/packages/hooks/business/src/useCurrencyDict.d.ts +0 -22
- package/dist/types/packages/hooks/business/src/useCustomerDict.d.ts +0 -22
- package/dist/types/packages/hooks/business/src/useWarehouseZoneDict.d.ts +0 -22
- package/dist/types/packages/hooks/business/useBusinessDict.d.ts +0 -2
- package/dist/types/packages/hooks/business/useDict.d.ts +0 -25
- package/dist/types/packages/hooks/index.d.ts +0 -2
- package/dist/types/packages/hooks/private/index.d.ts +0 -2
- package/dist/types/packages/hooks/private/src/useKey.d.ts +0 -1
- package/dist/types/packages/hooks/private/src/useRenderCell.d.ts +0 -71
- package/dist/types/packages/hooks/web/index.d.ts +0 -17
- package/dist/types/packages/hooks/web/src/useAffix.d.ts +0 -19
- package/dist/types/packages/hooks/web/src/useCatchPreloadError.d.ts +0 -6
- package/dist/types/packages/hooks/web/src/useCookie.d.ts +0 -11
- package/dist/types/packages/hooks/web/src/useEmitBack.d.ts +0 -3
- package/dist/types/packages/hooks/web/src/useEnum.d.ts +0 -24
- package/dist/types/packages/hooks/web/src/useExport.d.ts +0 -4
- package/dist/types/packages/hooks/web/src/useFormItemProps.d.ts +0 -22
- package/dist/types/packages/hooks/web/src/useFormStorage.d.ts +0 -18
- package/dist/types/packages/hooks/web/src/useI18n.d.ts +0 -26
- package/dist/types/packages/hooks/web/src/useListConfig.d.ts +0 -16
- package/dist/types/packages/hooks/web/src/useLocale.d.ts +0 -6
- package/dist/types/packages/hooks/web/src/useNProgress.d.ts +0 -5
- package/dist/types/packages/hooks/web/src/usePageForm.d.ts +0 -9
- package/dist/types/packages/hooks/web/src/usePrefixTitle.d.ts +0 -7
- package/dist/types/packages/hooks/web/src/useTabsNav.d.ts +0 -13
- package/dist/types/packages/hooks/web/src/useUpload.d.ts +0 -1
- package/dist/types/packages/hooks/web/src/useWatchForm.d.ts +0 -10
- package/dist/types/packages/hooks/web/src/useWindowSize.d.ts +0 -8
- package/dist/types/packages/index.d.ts +0 -21
- package/dist/types/packages/keys/index.d.ts +0 -6
- package/dist/types/packages/keys/public.d.ts +0 -0
- package/dist/types/packages/plugins/index.d.ts +0 -1
- package/dist/types/packages/plugins/vueI18n/helper.d.ts +0 -1
- package/dist/types/packages/plugins/vueI18n/index.d.ts +0 -14
- package/dist/types/packages/setup/index.d.ts +0 -1
- package/dist/types/packages/setup/vxe.d.ts +0 -10
- package/dist/types/packages/store/index.d.ts +0 -9
- package/dist/types/packages/store/modules/common.d.ts +0 -50
- package/dist/types/packages/store/modules/dict.d.ts +0 -436
- package/dist/types/packages/store/modules/language.d.ts +0 -182
- package/dist/types/packages/store/modules/tagsNav.d.ts +0 -156
- package/dist/types/packages/store/modules/userPermission.d.ts +0 -60
- package/dist/types/packages/type.d.ts +0 -44
- package/dist/types/packages/utils/config.d.ts +0 -1
- package/dist/types/packages/utils/createRefInstanceProxy.d.ts +0 -13
- package/dist/types/packages/utils/formatCellValue.d.ts +0 -82
- package/dist/types/packages/utils/getPrefixTitle.d.ts +0 -5
- package/dist/types/packages/utils/index.d.ts +0 -48
- package/dist/types/packages/utils/type.d.ts +0 -6
- package/dist/types/packages/utils/warehouse.d.ts +0 -30
package/dist/editor/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, ref, shallowRef, onMounted, watch, toRaw, watchEffect, mergeModels, useCssVars, unref, useModel, computed, onBeforeUnmount, createVNode } from "vue";
|
|
2
2
|
import "xe-utils";
|
|
3
|
+
import { u as useI18n, b as useLocale, A as API } from "./index-5P9J8Ohq.js";
|
|
3
4
|
import { theme, message } from "ant-design-vue";
|
|
4
5
|
import "vue-router";
|
|
5
|
-
import {
|
|
6
|
-
import { _ as _export_sfc$1 } from "./index-BPPIVUm2.js";
|
|
6
|
+
import { _ as _export_sfc$1 } from "./index-nd_lc6wA.js";
|
|
7
7
|
var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
|
|
8
8
|
function t(e10) {
|
|
9
9
|
return e10 && e10.__esModule && Object.prototype.hasOwnProperty.call(e10, "default") ? e10.default : e10;
|
|
@@ -4,9 +4,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
import { defineStore, createPinia } from "pinia";
|
|
5
5
|
import { ref, reactive, computed, toRefs, effectScope, shallowRef, watch, isRef, defineComponent, getCurrentInstance, h, Fragment, inject, onMounted, onUnmounted, createVNode, Text, unref, useAttrs, useSlots, provide, nextTick, createBlock, openBlock, resolveDynamicComponent, createElementBlock } from "vue";
|
|
6
6
|
import { cookie, merge as merge$1, omit, pick, toTreeArray, clone, findTree } from "xe-utils";
|
|
7
|
-
import { message, theme } from "ant-design-vue";
|
|
8
|
-
import { useRouter } from "vue-router";
|
|
7
|
+
import { message, FormItem, theme } from "ant-design-vue";
|
|
9
8
|
import dayjs from "dayjs";
|
|
9
|
+
import isBetween from "dayjs/plugin/isBetween";
|
|
10
|
+
import isSameOrAfter from "dayjs/plugin/isSameOrAfter";
|
|
11
|
+
import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
12
|
+
import { useRouter } from "vue-router";
|
|
10
13
|
import utc from "dayjs/plugin/utc";
|
|
11
14
|
import timezone from "dayjs/plugin/timezone";
|
|
12
15
|
import * as Icons from "@ant-design/icons-vue";
|
|
@@ -181,7 +184,7 @@ const useTabsNavStoreWithOut = () => {
|
|
|
181
184
|
function getConfig() {
|
|
182
185
|
return window._CONFIG ?? {};
|
|
183
186
|
}
|
|
184
|
-
function getCookie(key) {
|
|
187
|
+
function getCookie$1(key) {
|
|
185
188
|
return cookie.get(key) || "";
|
|
186
189
|
}
|
|
187
190
|
function setCookie(key, value, options = {}) {
|
|
@@ -207,12 +210,164 @@ function getTopLevelDomain(url) {
|
|
|
207
210
|
}
|
|
208
211
|
function useCookie() {
|
|
209
212
|
return {
|
|
210
|
-
getCookie,
|
|
213
|
+
getCookie: getCookie$1,
|
|
211
214
|
setCookie,
|
|
212
215
|
removeCookie,
|
|
213
216
|
getCookieAll
|
|
214
217
|
};
|
|
215
218
|
}
|
|
219
|
+
dayjs.extend(isBetween);
|
|
220
|
+
dayjs.extend(isSameOrAfter);
|
|
221
|
+
dayjs.extend(isSameOrBefore);
|
|
222
|
+
const DEFAULT_DATETIME_FORMAT$1 = "YYYY-MM-DD HH:mm:ss";
|
|
223
|
+
const DEFAULT_DATE_FORMAT$1 = "YYYY-MM-DD";
|
|
224
|
+
function useDate(options = {}) {
|
|
225
|
+
const defaultFormat = options.format ?? DEFAULT_DATETIME_FORMAT$1;
|
|
226
|
+
const includeCurrent = options.includeCurrent ?? true;
|
|
227
|
+
function toDayjs(value) {
|
|
228
|
+
if (value == null || value === "") return dayjs();
|
|
229
|
+
return dayjs.isDayjs(value) ? value : dayjs(value);
|
|
230
|
+
}
|
|
231
|
+
function format2(value, pattern = defaultFormat) {
|
|
232
|
+
if (!value) return "-";
|
|
233
|
+
const d = toDayjs(value);
|
|
234
|
+
return d.isValid() ? d.format(pattern) : "-";
|
|
235
|
+
}
|
|
236
|
+
function parse2(value, pattern) {
|
|
237
|
+
return pattern ? dayjs(value, pattern) : dayjs(value);
|
|
238
|
+
}
|
|
239
|
+
function startOf(value, unit = "day") {
|
|
240
|
+
return toDayjs(value).startOf(unit);
|
|
241
|
+
}
|
|
242
|
+
function endOf(value, unit = "day") {
|
|
243
|
+
return toDayjs(value).endOf(unit);
|
|
244
|
+
}
|
|
245
|
+
function toTimestamp(value) {
|
|
246
|
+
return toDayjs(value).valueOf();
|
|
247
|
+
}
|
|
248
|
+
function fromTimestamp(ms) {
|
|
249
|
+
return dayjs(ms);
|
|
250
|
+
}
|
|
251
|
+
function recentRange(n, unit = "day", opts) {
|
|
252
|
+
const base = endOf((opts == null ? void 0 : opts.base) ?? dayjs(), "day");
|
|
253
|
+
const include = (opts == null ? void 0 : opts.includeCurrent) ?? includeCurrent;
|
|
254
|
+
let start;
|
|
255
|
+
if (unit === "day" || unit === "d") {
|
|
256
|
+
start = base.subtract(include ? n - 1 : n, "day").startOf("day");
|
|
257
|
+
} else {
|
|
258
|
+
start = base.subtract(n, unit).add(include ? 1 : 0, "day").startOf("day");
|
|
259
|
+
}
|
|
260
|
+
return [start, base];
|
|
261
|
+
}
|
|
262
|
+
const recentDays = (n, opts) => recentRange(n, "day", opts);
|
|
263
|
+
const recentMonths = (n, opts) => recentRange(n, "month", opts);
|
|
264
|
+
const recentYears = (n, opts) => recentRange(n, "year", opts);
|
|
265
|
+
const presets = {
|
|
266
|
+
last3Days: () => recentDays(3),
|
|
267
|
+
last7Days: () => recentDays(7),
|
|
268
|
+
last1Month: () => recentMonths(1),
|
|
269
|
+
last3Months: () => recentMonths(3),
|
|
270
|
+
last6Months: () => recentMonths(6),
|
|
271
|
+
last1Year: () => recentYears(1),
|
|
272
|
+
last2Years: () => recentYears(2),
|
|
273
|
+
last3Years: () => recentYears(3),
|
|
274
|
+
last5Years: () => recentYears(5),
|
|
275
|
+
last10Years: () => recentYears(10)
|
|
276
|
+
};
|
|
277
|
+
function today() {
|
|
278
|
+
const now2 = dayjs();
|
|
279
|
+
return [now2.startOf("day"), now2.endOf("day")];
|
|
280
|
+
}
|
|
281
|
+
function yesterday() {
|
|
282
|
+
const d = dayjs().subtract(1, "day");
|
|
283
|
+
return [d.startOf("day"), d.endOf("day")];
|
|
284
|
+
}
|
|
285
|
+
function thisWeek() {
|
|
286
|
+
const now2 = dayjs();
|
|
287
|
+
return [now2.startOf("week"), now2.endOf("week")];
|
|
288
|
+
}
|
|
289
|
+
function lastWeek() {
|
|
290
|
+
const d = dayjs().subtract(1, "week");
|
|
291
|
+
return [d.startOf("week"), d.endOf("week")];
|
|
292
|
+
}
|
|
293
|
+
function thisMonth() {
|
|
294
|
+
const now2 = dayjs();
|
|
295
|
+
return [now2.startOf("month"), now2.endOf("month")];
|
|
296
|
+
}
|
|
297
|
+
function lastMonth() {
|
|
298
|
+
const d = dayjs().subtract(1, "month");
|
|
299
|
+
return [d.startOf("month"), d.endOf("month")];
|
|
300
|
+
}
|
|
301
|
+
function thisYear() {
|
|
302
|
+
const now2 = dayjs();
|
|
303
|
+
return [now2.startOf("year"), now2.endOf("year")];
|
|
304
|
+
}
|
|
305
|
+
function lastYear() {
|
|
306
|
+
const d = dayjs().subtract(1, "year");
|
|
307
|
+
return [d.startOf("year"), d.endOf("year")];
|
|
308
|
+
}
|
|
309
|
+
function add(value, n, unit) {
|
|
310
|
+
return toDayjs(value).add(n, unit);
|
|
311
|
+
}
|
|
312
|
+
function subtract(value, n, unit) {
|
|
313
|
+
return toDayjs(value).subtract(n, unit);
|
|
314
|
+
}
|
|
315
|
+
function diff(a, b, unit = "day", float = false) {
|
|
316
|
+
return toDayjs(a).diff(toDayjs(b), unit, float);
|
|
317
|
+
}
|
|
318
|
+
function isBefore(a, b, unit) {
|
|
319
|
+
return toDayjs(a).isBefore(toDayjs(b), unit);
|
|
320
|
+
}
|
|
321
|
+
function isAfter(a, b, unit) {
|
|
322
|
+
return toDayjs(a).isAfter(toDayjs(b), unit);
|
|
323
|
+
}
|
|
324
|
+
function isSame(a, b, unit) {
|
|
325
|
+
return toDayjs(a).isSame(toDayjs(b), unit);
|
|
326
|
+
}
|
|
327
|
+
function isBetween2(value, start, end, unit = "day", inclusivity = "[]") {
|
|
328
|
+
return toDayjs(value).isBetween(toDayjs(start), toDayjs(end), unit, inclusivity);
|
|
329
|
+
}
|
|
330
|
+
function toTimestampRange(range) {
|
|
331
|
+
return [range[0].valueOf(), range[1].valueOf()];
|
|
332
|
+
}
|
|
333
|
+
function toFormatRange(range, pattern = defaultFormat) {
|
|
334
|
+
return [range[0].format(pattern), range[1].format(pattern)];
|
|
335
|
+
}
|
|
336
|
+
return {
|
|
337
|
+
dayjs,
|
|
338
|
+
DEFAULT_DATETIME_FORMAT: DEFAULT_DATETIME_FORMAT$1,
|
|
339
|
+
DEFAULT_DATE_FORMAT: DEFAULT_DATE_FORMAT$1,
|
|
340
|
+
toDayjs,
|
|
341
|
+
format: format2,
|
|
342
|
+
parse: parse2,
|
|
343
|
+
startOf,
|
|
344
|
+
endOf,
|
|
345
|
+
toTimestamp,
|
|
346
|
+
fromTimestamp,
|
|
347
|
+
recentRange,
|
|
348
|
+
recentDays,
|
|
349
|
+
recentMonths,
|
|
350
|
+
recentYears,
|
|
351
|
+
presets,
|
|
352
|
+
today,
|
|
353
|
+
yesterday,
|
|
354
|
+
thisWeek,
|
|
355
|
+
lastWeek,
|
|
356
|
+
thisMonth,
|
|
357
|
+
lastMonth,
|
|
358
|
+
thisYear,
|
|
359
|
+
lastYear,
|
|
360
|
+
add,
|
|
361
|
+
subtract,
|
|
362
|
+
diff,
|
|
363
|
+
isBefore,
|
|
364
|
+
isAfter,
|
|
365
|
+
isSame,
|
|
366
|
+
isBetween: isBetween2,
|
|
367
|
+
toTimestampRange,
|
|
368
|
+
toFormatRange
|
|
369
|
+
};
|
|
370
|
+
}
|
|
216
371
|
function bind(fn, thisArg) {
|
|
217
372
|
return function wrap() {
|
|
218
373
|
return fn.apply(thisArg, arguments);
|
|
@@ -2705,6 +2860,7 @@ const {
|
|
|
2705
2860
|
mergeConfig
|
|
2706
2861
|
} = axios;
|
|
2707
2862
|
const DEFAULT_LOADING = false;
|
|
2863
|
+
const { getCookie } = useCookie();
|
|
2708
2864
|
const { getLanguage: getLanguage$1 } = useLocale();
|
|
2709
2865
|
class service {
|
|
2710
2866
|
constructor(config2) {
|
|
@@ -2713,40 +2869,40 @@ class service {
|
|
|
2713
2869
|
__publicField(this, "interceptors");
|
|
2714
2870
|
__publicField(this, "showLoading");
|
|
2715
2871
|
__publicField(this, "spinning");
|
|
2716
|
-
__publicField(this, "
|
|
2717
|
-
var _a, _b, _c, _d
|
|
2872
|
+
__publicField(this, "tokenKey");
|
|
2873
|
+
var _a, _b, _c, _d;
|
|
2718
2874
|
this.interceptors = config2.interceptors;
|
|
2719
2875
|
this.showLoading = config2.showLoading || DEFAULT_LOADING;
|
|
2720
|
-
|
|
2721
|
-
this.systemType = config2.systemType || (typeof headerSystemType === "string" ? headerSystemType : "T");
|
|
2876
|
+
this.tokenKey = config2.tokenKey || "ttoken";
|
|
2722
2877
|
delete config2.interceptors;
|
|
2723
2878
|
delete config2.showLoading;
|
|
2724
2879
|
delete config2.tokenKey;
|
|
2725
|
-
delete config2.systemType;
|
|
2726
|
-
config2.withCredentials = true;
|
|
2727
2880
|
this.instance = axios.create(config2);
|
|
2881
|
+
this.instance.interceptors.request.use((_a = this.interceptors) == null ? void 0 : _a.requestInterceptor, (_b = this.interceptors) == null ? void 0 : _b.requestInterceptorCatch);
|
|
2728
2882
|
this.instance.interceptors.response.use((_c = this.interceptors) == null ? void 0 : _c.responseInterceptor, (_d = this.interceptors) == null ? void 0 : _d.responseInterceptorCatch);
|
|
2729
2883
|
this.instance.interceptors.request.use(
|
|
2730
2884
|
(config22) => {
|
|
2731
|
-
var _a2;
|
|
2732
2885
|
if (this.spinning ?? this.showLoading) {
|
|
2733
2886
|
const commonStore = useCommonStoreWithOut();
|
|
2734
2887
|
commonStore.setLoading(true);
|
|
2735
2888
|
}
|
|
2736
|
-
config22.headers
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2889
|
+
Object.assign(config22.headers, {
|
|
2890
|
+
// 添加TOKEN
|
|
2891
|
+
Satoken: getCookie(this.tokenKey) ?? "",
|
|
2892
|
+
// 添加语言
|
|
2893
|
+
language: getLanguage$1(),
|
|
2894
|
+
// 添加SystemType
|
|
2895
|
+
"System-Type": "T",
|
|
2896
|
+
// 添加时区
|
|
2897
|
+
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
2898
|
+
...config22.headers
|
|
2899
|
+
});
|
|
2743
2900
|
return config22;
|
|
2744
2901
|
},
|
|
2745
2902
|
(error) => {
|
|
2746
2903
|
return error;
|
|
2747
2904
|
}
|
|
2748
2905
|
);
|
|
2749
|
-
this.instance.interceptors.request.use((_e = this.interceptors) == null ? void 0 : _e.requestInterceptor, (_f = this.interceptors) == null ? void 0 : _f.requestInterceptorCatch);
|
|
2750
2906
|
this.instance.interceptors.response.use(
|
|
2751
2907
|
(response) => {
|
|
2752
2908
|
const commonStore = useCommonStoreWithOut();
|
|
@@ -8471,14 +8627,23 @@ const DEFAULT_TEMPORAL_PATTERNS = {
|
|
|
8471
8627
|
datetime: DEFAULT_DATETIME_FORMAT
|
|
8472
8628
|
};
|
|
8473
8629
|
const INTL_MAX_FRACTION_DIGITS = 20;
|
|
8474
|
-
function resolvePlaceholder() {
|
|
8475
|
-
return DEFAULT_PLACEHOLDER;
|
|
8630
|
+
function resolvePlaceholder(emptyPlaceholder) {
|
|
8631
|
+
return emptyPlaceholder ?? DEFAULT_PLACEHOLDER;
|
|
8476
8632
|
}
|
|
8477
8633
|
function isEmptyCellValue(value) {
|
|
8478
8634
|
if (value === null || value === void 0) return true;
|
|
8479
8635
|
if (value === "") return true;
|
|
8480
8636
|
return false;
|
|
8481
8637
|
}
|
|
8638
|
+
function isEmptyTemporalValue(value) {
|
|
8639
|
+
if (isEmptyCellValue(value)) return true;
|
|
8640
|
+
if (value === 0 || value === "0") return true;
|
|
8641
|
+
if (typeof value === "string" && value.trim() === "") return true;
|
|
8642
|
+
return false;
|
|
8643
|
+
}
|
|
8644
|
+
function isTemporalFormatType(type) {
|
|
8645
|
+
return type === "date" || type === "time" || type === "datetime";
|
|
8646
|
+
}
|
|
8482
8647
|
function preserveRawCellValue(value) {
|
|
8483
8648
|
if (value === null || value === void 0) return "";
|
|
8484
8649
|
return String(value);
|
|
@@ -8548,6 +8713,7 @@ function resolveNumberPrecision(precision) {
|
|
|
8548
8713
|
};
|
|
8549
8714
|
}
|
|
8550
8715
|
function formatTemporalValue(value, temporalType, options) {
|
|
8716
|
+
if (isEmptyTemporalValue(value)) return "";
|
|
8551
8717
|
const d = coerceToValidDate(value, DEFAULT_DATE_MIN_YEAR, DEFAULT_DATE_MAX_YEAR);
|
|
8552
8718
|
if (!d) return preserveRawCellValue(value);
|
|
8553
8719
|
try {
|
|
@@ -8607,7 +8773,10 @@ function formatCellValueCore(value, options) {
|
|
|
8607
8773
|
const n = coerceFiniteNumber(value);
|
|
8608
8774
|
if (n === null) return preserveRawCellValue(value);
|
|
8609
8775
|
try {
|
|
8610
|
-
return new Intl.NumberFormat(void 0,
|
|
8776
|
+
return new Intl.NumberFormat(void 0, {
|
|
8777
|
+
...resolveNumberPrecision(options.precision),
|
|
8778
|
+
...options.useGrouping !== void 0 ? { useGrouping: options.useGrouping } : {}
|
|
8779
|
+
}).format(n);
|
|
8611
8780
|
} catch {
|
|
8612
8781
|
return preserveRawCellValue(value);
|
|
8613
8782
|
}
|
|
@@ -8654,9 +8823,13 @@ function formatCellValueCore(value, options) {
|
|
|
8654
8823
|
return preserveRawCellValue(value);
|
|
8655
8824
|
}
|
|
8656
8825
|
}
|
|
8657
|
-
function formatCellValue(value, options) {
|
|
8826
|
+
function formatCellValue(value, options, emptyPlaceholder = DEFAULT_PLACEHOLDER) {
|
|
8827
|
+
const placeholder = resolvePlaceholder(emptyPlaceholder);
|
|
8658
8828
|
if (isEmptyCellValue(value)) {
|
|
8659
|
-
return
|
|
8829
|
+
return placeholder;
|
|
8830
|
+
}
|
|
8831
|
+
if (isTemporalFormatType(options.type) && isEmptyTemporalValue(value)) {
|
|
8832
|
+
return placeholder;
|
|
8660
8833
|
}
|
|
8661
8834
|
return formatCellValueCore(value, options);
|
|
8662
8835
|
}
|
|
@@ -8705,38 +8878,20 @@ function pickMultiple(obj, targets) {
|
|
|
8705
8878
|
}
|
|
8706
8879
|
const { t } = useI18n();
|
|
8707
8880
|
const { isChinese } = useLocale();
|
|
8708
|
-
const
|
|
8709
|
-
span
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
htmlFor: true,
|
|
8716
|
-
label: true,
|
|
8717
|
-
labelAlign: true,
|
|
8718
|
-
labelCol: true,
|
|
8719
|
-
name: true,
|
|
8720
|
-
required: true,
|
|
8721
|
-
tooltip: true,
|
|
8722
|
-
validateFirst: true,
|
|
8723
|
-
validateStatus: true,
|
|
8724
|
-
validateTrigger: true,
|
|
8725
|
-
wrapperCol: true,
|
|
8726
|
-
class: true,
|
|
8727
|
-
style: true,
|
|
8728
|
-
hidden: true,
|
|
8729
|
-
noStyle: true,
|
|
8730
|
-
prefixCls: true,
|
|
8731
|
-
prop: true,
|
|
8732
|
-
rules: true,
|
|
8733
|
-
messageVariables: true,
|
|
8734
|
-
offset: true,
|
|
8735
|
-
labelTooltip: true,
|
|
8736
|
-
labelTooltipIcon: true
|
|
8737
|
-
};
|
|
8881
|
+
const W_FORM_ITEM_EXTRA_KEYS = [
|
|
8882
|
+
"span",
|
|
8883
|
+
"offset",
|
|
8884
|
+
"labelTooltip",
|
|
8885
|
+
"labelTooltipIcon",
|
|
8886
|
+
"compact"
|
|
8887
|
+
];
|
|
8738
8888
|
const FormItemSlotsKey = ["extra", "help", "label"];
|
|
8739
|
-
const FormItemPropsKeys =
|
|
8889
|
+
const FormItemPropsKeys = [
|
|
8890
|
+
...Object.keys(FormItem.props ?? {}),
|
|
8891
|
+
...W_FORM_ITEM_EXTRA_KEYS,
|
|
8892
|
+
"class",
|
|
8893
|
+
"style"
|
|
8894
|
+
];
|
|
8740
8895
|
function pickFormItemFromProps(props) {
|
|
8741
8896
|
const result = {};
|
|
8742
8897
|
for (const key of FormItemPropsKeys) {
|
|
@@ -8750,7 +8905,7 @@ function useFormItemProps(props) {
|
|
|
8750
8905
|
const attrs = useAttrs();
|
|
8751
8906
|
const slots = useSlots();
|
|
8752
8907
|
const { useInjectDisabled, useInjectData } = useFormStorage();
|
|
8753
|
-
const
|
|
8908
|
+
const formDisabled = useInjectDisabled(false);
|
|
8754
8909
|
const WFormData = useInjectData();
|
|
8755
8910
|
const attrMap = computed(() => {
|
|
8756
8911
|
const fromAttrs = pickMultiple(kebabToCamel(attrs), {
|
|
@@ -8774,7 +8929,7 @@ function useFormItemProps(props) {
|
|
|
8774
8929
|
return props.label ? t(props.label) : props.label ?? "";
|
|
8775
8930
|
});
|
|
8776
8931
|
const disabled = computed(() => {
|
|
8777
|
-
return props.disabled || props.isDetails ||
|
|
8932
|
+
return props.disabled || props.isDetails || formDisabled.value || false;
|
|
8778
8933
|
});
|
|
8779
8934
|
const placeholder = computed(() => {
|
|
8780
8935
|
return disabled.value ? "" : props.placeholder ? t(props.placeholder) : `${t("com_msg_062")}${isChinese ? "" : " "}${label.value}`;
|
|
@@ -9464,15 +9619,15 @@ export {
|
|
|
9464
9619
|
useLanguageStoreWithOut as m,
|
|
9465
9620
|
newWin as n,
|
|
9466
9621
|
_sfc_main as o,
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9622
|
+
useService as p,
|
|
9623
|
+
setupStore as q,
|
|
9624
|
+
store as r,
|
|
9470
9625
|
setConfig as s,
|
|
9471
|
-
|
|
9626
|
+
useTabsNavStore as t,
|
|
9472
9627
|
useI18n as u,
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9628
|
+
useUserPermissionStore as v,
|
|
9629
|
+
useDictStore as w,
|
|
9630
|
+
useLanguageStore as x,
|
|
9631
|
+
useCookie as y,
|
|
9632
|
+
useDate as z
|
|
9478
9633
|
};
|
|
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
}),
|
|
23
23
|
emits: /* @__PURE__ */ mergeModels(["change", "focus", "blur"], ["update:html", "update:text"]),
|
|
24
24
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
25
|
-
const EditorCore = defineAsyncComponent(() => import("./editor-core-
|
|
25
|
+
const EditorCore = defineAsyncComponent(() => import("./editor-core-BGPSxIdD.js"));
|
|
26
26
|
const html = useModel(__props, "html");
|
|
27
27
|
const text = useModel(__props, "text");
|
|
28
28
|
const props = __props;
|