@fmdeui/fmui 1.0.158 → 1.0.160
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/es/index.mjs +1 -1
- package/es/packages/api/index.mjs +1 -1
- package/es/packages/components/fm-inputdropdown/index2.vue.mjs +1 -0
- package/es/packages/utils/formatTime.mjs +11 -1
- package/es/packages/utils/index.mjs +1 -1
- package/es/utils/formatTime.d.ts +1 -0
- package/index.js +14 -2
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +14 -3
- package/lib/index.js +1 -0
- package/lib/packages/api/index.js +1 -1
- package/lib/packages/components/fm-inputdropdown/index2.vue.js +1 -0
- package/lib/packages/utils/formatTime.js +11 -0
- package/lib/packages/utils/index.js +1 -0
- package/lib/utils/formatTime.d.ts +1 -0
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/{lib → es}/make-installer.css +0 -0
- /package/{es/index.css → lib/version.css} +0 -0
package/es/index.mjs
CHANGED
|
@@ -28,7 +28,7 @@ export { default as en } from './packages/locale/lang/en.mjs';
|
|
|
28
28
|
export { exportExcel } from './packages/utils/exportExcel.mjs';
|
|
29
29
|
export { feature, useSysApi } from './packages/api/sys/index.mjs';
|
|
30
30
|
export { flowLoading } from './packages/utils/flowLoading.mjs';
|
|
31
|
-
export { formatAxis, formatDate, formatPast, getBdate, getEdate, getWeek } from './packages/utils/formatTime.mjs';
|
|
31
|
+
export { formatAxis, formatDate, formatPast, getBdate, getEdate, getWeek, scrollToSection } from './packages/utils/formatTime.mjs';
|
|
32
32
|
export { gcj02ToBd09, wgs84ToBd09, wgs84ToGcj02 } from './packages/utils/gpsConvertor.mjs';
|
|
33
33
|
export { getFileDownloadUrl, getFileUrl, showFileUrl, showFileUrlByType } from './packages/utils/uploadfileurl.mjs';
|
|
34
34
|
export { getFormItemLabel, getFormItemProp, getPageSetting, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getlimit, showTabelColumn } from './packages/hooks/limitsFunction.mjs';
|
|
@@ -209,7 +209,7 @@ const COST_CATEGORIES = [
|
|
|
209
209
|
{ code: "TICKET", type: 3, name: "\u7968\u52A1", icon: "\u{1F3AB}", color: "#13c2c2", bg: "#e6fffb" },
|
|
210
210
|
{ code: "SCENIC", type: 11, name: "\u666F\u70B9", icon: "\uFE0F\u{1F3DE}\uFE0F", color: "#52c41a", bg: "#f6ffed" },
|
|
211
211
|
{ code: "INSURE", type: 9, name: "\u4FDD\u9669", icon: "\u{1F6E1}\uFE0F", color: "#eb2f96", bg: "#fff0f6" },
|
|
212
|
-
{ code:
|
|
212
|
+
//{ code: 'GUIDE',type:10, name: '导服', icon: '👨', color: '#f5222d', bg: '#fff1f0' },
|
|
213
213
|
{ code: "VISA", type: 15, name: "\u7B7E\u8BC1", icon: "\u{1F4CB}", color: "#faad14", bg: "#fffbe6" },
|
|
214
214
|
{ code: "SHIP", type: 14, name: "\u6E38\u8239", icon: "\u{1F6A2}", color: "#0ea5e9", bg: "#e0f2fe" },
|
|
215
215
|
{ code: "TOPLAN", type: 6, name: "\u5730\u63A5", icon: "\u{1F91D}", color: "#1890ff", bg: "#e6f7ff" },
|
|
@@ -183,6 +183,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
183
183
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
|
|
184
184
|
placeholder: props.placeholder,
|
|
185
185
|
style: normalizeStyle({ width: __props.inputWidth }),
|
|
186
|
+
onInput: handelChange,
|
|
186
187
|
onChange: handelChange,
|
|
187
188
|
onClick: handClick
|
|
188
189
|
}, {
|
|
@@ -117,5 +117,15 @@ function getEdate(num = 0) {
|
|
|
117
117
|
if (num > 0) lastDay.setDate(num);
|
|
118
118
|
return formatDate(lastDay, "YYYY-mm-dd");
|
|
119
119
|
}
|
|
120
|
+
function scrollToSection(targetId, time = 1500) {
|
|
121
|
+
const targetEl = document.getElementById(targetId);
|
|
122
|
+
if (targetEl) {
|
|
123
|
+
targetEl.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
124
|
+
targetEl.classList.remove("section-highlight");
|
|
125
|
+
void targetEl.offsetWidth;
|
|
126
|
+
targetEl.classList.add("section-highlight");
|
|
127
|
+
setTimeout(() => targetEl.classList.remove("section-highlight"), time);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
120
130
|
|
|
121
|
-
export { formatAxis, formatDate, formatPast, getBdate, getEdate, getWeek };
|
|
131
|
+
export { formatAxis, formatDate, formatPast, getBdate, getEdate, getWeek, scrollToSection };
|
|
@@ -5,7 +5,7 @@ export { signatureByKSort } from './data-signature.mjs';
|
|
|
5
5
|
export { downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, getFileName, openWindow } from './download.mjs';
|
|
6
6
|
export { exportExcel } from './exportExcel.mjs';
|
|
7
7
|
export { flowLoading } from './flowLoading.mjs';
|
|
8
|
-
export { formatAxis, formatDate, formatPast, getBdate, getEdate, getWeek } from './formatTime.mjs';
|
|
8
|
+
export { formatAxis, formatDate, formatPast, getBdate, getEdate, getWeek, scrollToSection } from './formatTime.mjs';
|
|
9
9
|
export { useFormRulePresets } from './formRule.mjs';
|
|
10
10
|
export { validateFormWithScroll, validateFormWithScrollCallback } from './formValidate.mjs';
|
|
11
11
|
import './getStyleSheets.mjs';
|
package/es/utils/formatTime.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.160 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -768,6 +768,16 @@
|
|
|
768
768
|
if (num > 0) lastDay.setDate(num);
|
|
769
769
|
return formatDate(lastDay, "YYYY-mm-dd");
|
|
770
770
|
}
|
|
771
|
+
function scrollToSection(targetId, time = 1500) {
|
|
772
|
+
const targetEl = document.getElementById(targetId);
|
|
773
|
+
if (targetEl) {
|
|
774
|
+
targetEl.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
775
|
+
targetEl.classList.remove("section-highlight");
|
|
776
|
+
void targetEl.offsetWidth;
|
|
777
|
+
targetEl.classList.add("section-highlight");
|
|
778
|
+
setTimeout(() => targetEl.classList.remove("section-highlight"), time);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
771
781
|
|
|
772
782
|
const TRIGGER_INPUT = "change";
|
|
773
783
|
const TRIGGER_BLUR = "blur";
|
|
@@ -3878,7 +3888,7 @@
|
|
|
3878
3888
|
{ code: "TICKET", type: 3, name: "\u7968\u52A1", icon: "\u{1F3AB}", color: "#13c2c2", bg: "#e6fffb" },
|
|
3879
3889
|
{ code: "SCENIC", type: 11, name: "\u666F\u70B9", icon: "\uFE0F\u{1F3DE}\uFE0F", color: "#52c41a", bg: "#f6ffed" },
|
|
3880
3890
|
{ code: "INSURE", type: 9, name: "\u4FDD\u9669", icon: "\u{1F6E1}\uFE0F", color: "#eb2f96", bg: "#fff0f6" },
|
|
3881
|
-
{ code:
|
|
3891
|
+
//{ code: 'GUIDE',type:10, name: '导服', icon: '👨', color: '#f5222d', bg: '#fff1f0' },
|
|
3882
3892
|
{ code: "VISA", type: 15, name: "\u7B7E\u8BC1", icon: "\u{1F4CB}", color: "#faad14", bg: "#fffbe6" },
|
|
3883
3893
|
{ code: "SHIP", type: 14, name: "\u6E38\u8239", icon: "\u{1F6A2}", color: "#0ea5e9", bg: "#e0f2fe" },
|
|
3884
3894
|
{ code: "TOPLAN", type: 6, name: "\u5730\u63A5", icon: "\u{1F91D}", color: "#1890ff", bg: "#e6f7ff" },
|
|
@@ -27375,6 +27385,7 @@
|
|
|
27375
27385
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
|
|
27376
27386
|
placeholder: props.placeholder,
|
|
27377
27387
|
style: vue.normalizeStyle({ width: __props.inputWidth }),
|
|
27388
|
+
onInput: handelChange,
|
|
27378
27389
|
onChange: handelChange,
|
|
27379
27390
|
onClick: handClick
|
|
27380
27391
|
}, {
|
|
@@ -35133,6 +35144,7 @@
|
|
|
35133
35144
|
exports.restartSignalR = restartSignalR;
|
|
35134
35145
|
exports.roles = roles;
|
|
35135
35146
|
exports.saulVModel = saulVModel;
|
|
35147
|
+
exports.scrollToSection = scrollToSection;
|
|
35136
35148
|
exports.service = service;
|
|
35137
35149
|
exports.setCssCdn = setCssCdn;
|
|
35138
35150
|
exports.setIntroduction = setIntroduction;
|