@fmdeui/fmui 1.0.113 → 1.0.115
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/component.mjs +3 -1
- package/es/components/fm-datepicker/index.d.ts +33 -0
- package/es/components/fm-datepicker/index.vue.d.ts +34 -0
- package/es/components/index.d.ts +1 -0
- package/es/hooks/useVxeTableOptionsHook.d.ts +4 -0
- package/es/index.mjs +1 -1
- package/es/packages/components/fm-autocomplete/index2.vue.mjs +46 -41
- package/es/packages/components/fm-datepicker/index.mjs +6 -0
- package/es/packages/components/fm-datepicker/index.vue.mjs +5 -0
- package/es/packages/components/fm-datepicker/index2.vue.mjs +56 -0
- package/es/packages/components/index.mjs +1 -0
- package/es/packages/hooks/useVxeTableOptionsHook.mjs +22 -4
- package/es/packages/utils/formatTime.mjs +12 -1
- package/es/packages/utils/index.mjs +1 -1
- package/es/utils/formatTime.d.ts +10 -0
- package/index.js +183 -93
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +182 -94
- package/lib/component.js +3 -1
- package/lib/components/fm-datepicker/index.d.ts +33 -0
- package/lib/components/fm-datepicker/index.vue.d.ts +34 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/hooks/useVxeTableOptionsHook.d.ts +4 -0
- package/lib/index.js +2 -0
- package/lib/packages/components/fm-autocomplete/index2.vue.js +45 -40
- package/lib/packages/components/fm-datepicker/index.js +8 -0
- package/lib/packages/components/fm-datepicker/index.vue.js +9 -0
- package/lib/packages/components/fm-datepicker/index2.vue.js +60 -0
- package/lib/packages/components/index.js +6 -4
- package/lib/packages/hooks/useVxeTableOptionsHook.js +22 -4
- package/lib/packages/utils/formatTime.js +13 -0
- package/lib/packages/utils/index.js +2 -0
- package/lib/utils/formatTime.d.ts +10 -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/es/{defaults.css → make-installer.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.115 */
|
|
2
2
|
import VxeUITable from 'vxe-table';
|
|
3
3
|
import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element';
|
|
4
4
|
import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
|
|
@@ -755,6 +755,17 @@ function formatAxis(param, t) {
|
|
|
755
755
|
else if (hour < 22) return getMessage("eveningGreeting");
|
|
756
756
|
else return getMessage("nightGreeting");
|
|
757
757
|
}
|
|
758
|
+
function getBdate(num = 1) {
|
|
759
|
+
const firstDay = /* @__PURE__ */ new Date();
|
|
760
|
+
firstDay.setDate(num);
|
|
761
|
+
return formatDate(firstDay, "YYYY-mm-dd");
|
|
762
|
+
}
|
|
763
|
+
function getEdate(num = 0) {
|
|
764
|
+
const lastDay = /* @__PURE__ */ new Date();
|
|
765
|
+
lastDay.setMonth(lastDay.getMonth() + 1, 0);
|
|
766
|
+
if (num > 0) lastDay.setDate(num);
|
|
767
|
+
return formatDate(lastDay, "YYYY-mm-dd");
|
|
768
|
+
}
|
|
758
769
|
|
|
759
770
|
const TRIGGER_INPUT = "change";
|
|
760
771
|
const TRIGGER_BLUR = "blur";
|
|
@@ -20295,7 +20306,7 @@ const setupVXETable = (app) => {
|
|
|
20295
20306
|
app.use(VxeUITable);
|
|
20296
20307
|
};
|
|
20297
20308
|
|
|
20298
|
-
var _sfc_main$
|
|
20309
|
+
var _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
20299
20310
|
...{
|
|
20300
20311
|
name: "FButton"
|
|
20301
20312
|
},
|
|
@@ -20365,7 +20376,7 @@ var _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
20365
20376
|
}
|
|
20366
20377
|
});
|
|
20367
20378
|
|
|
20368
|
-
const FButton = _sfc_main$
|
|
20379
|
+
const FButton = _sfc_main$N;
|
|
20369
20380
|
|
|
20370
20381
|
const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
|
|
20371
20382
|
const translate = (path, option, locale) => get(locale, path, path).replace(
|
|
@@ -20436,7 +20447,7 @@ function powerAuthDel(value) {
|
|
|
20436
20447
|
}
|
|
20437
20448
|
|
|
20438
20449
|
const useVxeTable = (opt, extras) => {
|
|
20439
|
-
var _a, _b;
|
|
20450
|
+
var _a, _b, _c;
|
|
20440
20451
|
const vxeSize = useThemeConfig().themeConfig.globalComponentSize == "small" ? "mini" : useThemeConfig().themeConfig.globalComponentSize == "default" ? "small" : "medium";
|
|
20441
20452
|
const userStore = useUserInfo();
|
|
20442
20453
|
const processColumns = (columns) => {
|
|
@@ -20487,7 +20498,25 @@ const useVxeTable = (opt, extras) => {
|
|
|
20487
20498
|
}
|
|
20488
20499
|
}
|
|
20489
20500
|
}
|
|
20490
|
-
} : opt.spanMethod ? opt.spanMethod : ({ row, rowIndex, column, visibleData }) => {
|
|
20501
|
+
} : opt.spanMethod ? opt.spanMethod : opt.spanRules && ((_c = opt.spanRules) == null ? void 0 : _c.length) > 0 ? ({ row, rowIndex, column, visibleData }) => {
|
|
20502
|
+
if (!opt.spanRules || opt.spanRules.length === 0) return void 0;
|
|
20503
|
+
const rule = opt.spanRules.find((r) => r.targetFields.includes(column.field));
|
|
20504
|
+
if (!rule) return;
|
|
20505
|
+
const cellValue = row[rule.valueField];
|
|
20506
|
+
if (!cellValue && cellValue !== 0) return;
|
|
20507
|
+
const prevRow = visibleData[rowIndex - 1];
|
|
20508
|
+
if (prevRow && prevRow[rule.valueField] === cellValue) {
|
|
20509
|
+
return { rowspan: 0, colspan: 0 };
|
|
20510
|
+
}
|
|
20511
|
+
let rowspanCount = 1;
|
|
20512
|
+
let nextIndex = rowIndex + 1;
|
|
20513
|
+
while (nextIndex < visibleData.length && visibleData[nextIndex][rule.valueField] === cellValue) {
|
|
20514
|
+
rowspanCount++;
|
|
20515
|
+
nextIndex++;
|
|
20516
|
+
}
|
|
20517
|
+
if (rowspanCount > 1)
|
|
20518
|
+
return { rowspan: rowspanCount, colspan: 1 };
|
|
20519
|
+
} : ({ row, rowIndex, column, visibleData }) => {
|
|
20491
20520
|
};
|
|
20492
20521
|
const options = reactive({
|
|
20493
20522
|
stripe: false,
|
|
@@ -20588,11 +20617,11 @@ const useVxeTable = (opt, extras) => {
|
|
|
20588
20617
|
}
|
|
20589
20618
|
if (opt.remoteCustom && options.customConfig != void 0) {
|
|
20590
20619
|
options.customConfig.restoreStore = async ({ id, storeData }) => {
|
|
20591
|
-
var _a2, _b2,
|
|
20620
|
+
var _a2, _b2, _c2, _d;
|
|
20592
20621
|
const { data } = await useBaseApi("sysColumnCustom").get({ id }, "sysColumnCustomDetail");
|
|
20593
20622
|
if ((_a2 = data.result) == null ? void 0 : _a2.fixedData) storeData.fixedData = data.result.fixedData;
|
|
20594
20623
|
if ((_b2 = data.result) == null ? void 0 : _b2.resizableData) storeData.resizableData = data.result.resizableData;
|
|
20595
|
-
if ((
|
|
20624
|
+
if ((_c2 = data.result) == null ? void 0 : _c2.sortData) storeData.sortData = data.result.sortData;
|
|
20596
20625
|
if ((_d = data.result) == null ? void 0 : _d.visibleData) storeData.visibleData = data.result.visibleData;
|
|
20597
20626
|
return storeData;
|
|
20598
20627
|
};
|
|
@@ -21063,7 +21092,7 @@ function getShowColumnWidth(flag, field, defaultValue = "", isJson = false) {
|
|
|
21063
21092
|
|
|
21064
21093
|
const _hoisted_1$w = { key: 0 };
|
|
21065
21094
|
const _hoisted_2$k = { key: 0 };
|
|
21066
|
-
var _sfc_main$
|
|
21095
|
+
var _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
21067
21096
|
...{
|
|
21068
21097
|
name: "FInput"
|
|
21069
21098
|
},
|
|
@@ -21316,13 +21345,13 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
21316
21345
|
}
|
|
21317
21346
|
});
|
|
21318
21347
|
|
|
21319
|
-
const FInput = _sfc_main$
|
|
21348
|
+
const FInput = _sfc_main$M;
|
|
21320
21349
|
|
|
21321
21350
|
const _hoisted_1$v = {
|
|
21322
21351
|
key: 0,
|
|
21323
21352
|
class: "back_to_top"
|
|
21324
21353
|
};
|
|
21325
|
-
var _sfc_main$
|
|
21354
|
+
var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
21326
21355
|
...{
|
|
21327
21356
|
name: "FLayoutPage"
|
|
21328
21357
|
},
|
|
@@ -21412,9 +21441,9 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
21412
21441
|
}
|
|
21413
21442
|
});
|
|
21414
21443
|
|
|
21415
|
-
const FLayoutPage = _sfc_main$
|
|
21444
|
+
const FLayoutPage = _sfc_main$L;
|
|
21416
21445
|
|
|
21417
|
-
var _sfc_main$
|
|
21446
|
+
var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
21418
21447
|
...{
|
|
21419
21448
|
name: "FLayoutPageItem"
|
|
21420
21449
|
},
|
|
@@ -21442,7 +21471,7 @@ var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
21442
21471
|
}
|
|
21443
21472
|
});
|
|
21444
21473
|
|
|
21445
|
-
const FLayoutPageItem = _sfc_main$
|
|
21474
|
+
const FLayoutPageItem = _sfc_main$K;
|
|
21446
21475
|
|
|
21447
21476
|
function debounce(func, delay = 500, immediate, resultCallback) {
|
|
21448
21477
|
let timer = null;
|
|
@@ -21486,7 +21515,7 @@ function toLine(name) {
|
|
|
21486
21515
|
}
|
|
21487
21516
|
|
|
21488
21517
|
const _hoisted_1$u = ["id"];
|
|
21489
|
-
var _sfc_main$
|
|
21518
|
+
var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
21490
21519
|
...{
|
|
21491
21520
|
name: "FChart"
|
|
21492
21521
|
},
|
|
@@ -21585,13 +21614,13 @@ var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
21585
21614
|
}
|
|
21586
21615
|
});
|
|
21587
21616
|
|
|
21588
|
-
const FChart = _sfc_main$
|
|
21617
|
+
const FChart = _sfc_main$J;
|
|
21589
21618
|
|
|
21590
21619
|
const _hoisted_1$t = {
|
|
21591
21620
|
key: 1,
|
|
21592
21621
|
class: "f_select__pagination"
|
|
21593
21622
|
};
|
|
21594
|
-
var _sfc_main$
|
|
21623
|
+
var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
21595
21624
|
...{
|
|
21596
21625
|
name: "FSelect"
|
|
21597
21626
|
},
|
|
@@ -21842,9 +21871,9 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21842
21871
|
}
|
|
21843
21872
|
});
|
|
21844
21873
|
|
|
21845
|
-
const FSelect = _sfc_main$
|
|
21874
|
+
const FSelect = _sfc_main$I;
|
|
21846
21875
|
|
|
21847
|
-
var _sfc_main$
|
|
21876
|
+
var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
21848
21877
|
...{
|
|
21849
21878
|
name: "RenderComp"
|
|
21850
21879
|
},
|
|
@@ -21869,7 +21898,7 @@ const _hoisted_2$j = { class: "inside_box_title" };
|
|
|
21869
21898
|
const _hoisted_3$c = { class: "check-box" };
|
|
21870
21899
|
const _hoisted_4$8 = { class: "more_dropdown_icon" };
|
|
21871
21900
|
const _hoisted_5$7 = { class: "out_box" };
|
|
21872
|
-
var _sfc_main$
|
|
21901
|
+
var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
21873
21902
|
...{
|
|
21874
21903
|
name: "MoreChoose"
|
|
21875
21904
|
},
|
|
@@ -22184,7 +22213,7 @@ function useComputed() {
|
|
|
22184
22213
|
};
|
|
22185
22214
|
}
|
|
22186
22215
|
|
|
22187
|
-
var _sfc_main$
|
|
22216
|
+
var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
22188
22217
|
...{
|
|
22189
22218
|
name: "FQueryCondition"
|
|
22190
22219
|
},
|
|
@@ -22603,7 +22632,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22603
22632
|
opt.labelRender ? {
|
|
22604
22633
|
name: "label",
|
|
22605
22634
|
fn: withCtx(() => [
|
|
22606
|
-
createVNode(_sfc_main$
|
|
22635
|
+
createVNode(_sfc_main$H, {
|
|
22607
22636
|
form: unref(queryState).form,
|
|
22608
22637
|
render: opt.labelRender
|
|
22609
22638
|
}, null, 8, ["form", "render"])
|
|
@@ -22699,7 +22728,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22699
22728
|
_: 1
|
|
22700
22729
|
/* STABLE */
|
|
22701
22730
|
})) : createCommentVNode("v-if", true),
|
|
22702
|
-
createVNode(_sfc_main$
|
|
22731
|
+
createVNode(_sfc_main$G, {
|
|
22703
22732
|
isDropDownSelectMore: __props.isDropDownSelectMore,
|
|
22704
22733
|
moreCheckList: __props.moreCheckList,
|
|
22705
22734
|
popoverAttrsBind: popoverAttrsBind.value,
|
|
@@ -22725,7 +22754,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22725
22754
|
}
|
|
22726
22755
|
});
|
|
22727
22756
|
|
|
22728
|
-
var _sfc_main$
|
|
22757
|
+
var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
22729
22758
|
...{
|
|
22730
22759
|
name: "RenderCol"
|
|
22731
22760
|
},
|
|
@@ -22891,7 +22920,7 @@ const _hoisted_4$7 = {
|
|
|
22891
22920
|
key: 0,
|
|
22892
22921
|
class: "f-table-select__page"
|
|
22893
22922
|
};
|
|
22894
|
-
var _sfc_main$
|
|
22923
|
+
var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
22895
22924
|
...{
|
|
22896
22925
|
name: "FSelectTable"
|
|
22897
22926
|
},
|
|
@@ -23515,7 +23544,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23515
23544
|
[
|
|
23516
23545
|
__props.isShowQuery ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
23517
23546
|
createVNode(
|
|
23518
|
-
_sfc_main$
|
|
23547
|
+
_sfc_main$F,
|
|
23519
23548
|
mergeProps({
|
|
23520
23549
|
ref_key: "fQueryConditionRef",
|
|
23521
23550
|
ref: fQueryConditionRef,
|
|
@@ -23641,7 +23670,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23641
23670
|
fixed: item.fixed
|
|
23642
23671
|
}, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
|
|
23643
23672
|
default: withCtx((scope) => [
|
|
23644
|
-
item.render ? (openBlock(), createBlock(_sfc_main$
|
|
23673
|
+
item.render ? (openBlock(), createBlock(_sfc_main$E, {
|
|
23645
23674
|
key: 0,
|
|
23646
23675
|
column: item,
|
|
23647
23676
|
row: scope.row,
|
|
@@ -23704,11 +23733,11 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23704
23733
|
}
|
|
23705
23734
|
});
|
|
23706
23735
|
|
|
23707
|
-
const FSelectTable = _sfc_main$
|
|
23736
|
+
const FSelectTable = _sfc_main$D;
|
|
23708
23737
|
|
|
23709
|
-
const FQueryCondition = _sfc_main$
|
|
23738
|
+
const FQueryCondition = _sfc_main$F;
|
|
23710
23739
|
|
|
23711
|
-
var _sfc_main$
|
|
23740
|
+
var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23712
23741
|
...{
|
|
23713
23742
|
name: "RenderComp"
|
|
23714
23743
|
},
|
|
@@ -23728,7 +23757,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23728
23757
|
}
|
|
23729
23758
|
});
|
|
23730
23759
|
|
|
23731
|
-
var _sfc_main$
|
|
23760
|
+
var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
23732
23761
|
...{
|
|
23733
23762
|
name: "RenderBtn"
|
|
23734
23763
|
},
|
|
@@ -23753,7 +23782,7 @@ const _hoisted_1$q = {
|
|
|
23753
23782
|
class: "text_show"
|
|
23754
23783
|
};
|
|
23755
23784
|
const _hoisted_2$h = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
|
|
23756
|
-
var _sfc_main$
|
|
23785
|
+
var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23757
23786
|
...{
|
|
23758
23787
|
name: "FForm"
|
|
23759
23788
|
},
|
|
@@ -24124,7 +24153,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
24124
24153
|
item.labelSlotName || item.labelRender ? {
|
|
24125
24154
|
name: "label",
|
|
24126
24155
|
fn: withCtx(() => [
|
|
24127
|
-
item.labelRender ? (openBlock(), createBlock(_sfc_main$
|
|
24156
|
+
item.labelRender ? (openBlock(), createBlock(_sfc_main$C, {
|
|
24128
24157
|
key: 0,
|
|
24129
24158
|
render: item.labelRender,
|
|
24130
24159
|
item
|
|
@@ -24156,7 +24185,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
24156
24185
|
Fragment,
|
|
24157
24186
|
null,
|
|
24158
24187
|
[
|
|
24159
|
-
val.render ? (openBlock(), createBlock(_sfc_main$
|
|
24188
|
+
val.render ? (openBlock(), createBlock(_sfc_main$B, {
|
|
24160
24189
|
key: index,
|
|
24161
24190
|
item: val,
|
|
24162
24191
|
render: val.render
|
|
@@ -24203,10 +24232,10 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
24203
24232
|
}
|
|
24204
24233
|
});
|
|
24205
24234
|
|
|
24206
|
-
const FForm = _sfc_main$
|
|
24235
|
+
const FForm = _sfc_main$A;
|
|
24207
24236
|
|
|
24208
24237
|
const _hoisted_1$p = ["src"];
|
|
24209
|
-
var _sfc_main$
|
|
24238
|
+
var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
24210
24239
|
...{
|
|
24211
24240
|
name: "svgIcon"
|
|
24212
24241
|
},
|
|
@@ -24304,13 +24333,13 @@ function elSvg(app) {
|
|
|
24304
24333
|
}
|
|
24305
24334
|
}
|
|
24306
24335
|
if (!app._context.components[`SvgIcon`]) {
|
|
24307
|
-
app.component("SvgIcon", _sfc_main$
|
|
24336
|
+
app.component("SvgIcon", _sfc_main$z);
|
|
24308
24337
|
}
|
|
24309
24338
|
}
|
|
24310
24339
|
|
|
24311
24340
|
const emitter = mitt();
|
|
24312
24341
|
|
|
24313
|
-
var _sfc_main$
|
|
24342
|
+
var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
24314
24343
|
...{
|
|
24315
24344
|
name: "FLayout"
|
|
24316
24345
|
},
|
|
@@ -24396,7 +24425,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
24396
24425
|
}
|
|
24397
24426
|
});
|
|
24398
24427
|
|
|
24399
|
-
const FLayout = _sfc_main$
|
|
24428
|
+
const FLayout = _sfc_main$y;
|
|
24400
24429
|
|
|
24401
24430
|
function commonFunction() {
|
|
24402
24431
|
const { copy, isSupported } = useClipboard();
|
|
@@ -24798,7 +24827,7 @@ const _hoisted_119 = {
|
|
|
24798
24827
|
class: "traditionalColors-chines",
|
|
24799
24828
|
style: { "cursor": "grab", "color": "gray" }
|
|
24800
24829
|
};
|
|
24801
|
-
var _sfc_main$
|
|
24830
|
+
var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
24802
24831
|
...{
|
|
24803
24832
|
name: "FSettings"
|
|
24804
24833
|
},
|
|
@@ -26561,9 +26590,9 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
26561
26590
|
}
|
|
26562
26591
|
});
|
|
26563
26592
|
|
|
26564
|
-
const FSettings = _sfc_main$
|
|
26593
|
+
const FSettings = _sfc_main$x;
|
|
26565
26594
|
|
|
26566
|
-
var _sfc_main$
|
|
26595
|
+
var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
26567
26596
|
...{
|
|
26568
26597
|
name: "FModifyRecord"
|
|
26569
26598
|
},
|
|
@@ -26826,10 +26855,10 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
26826
26855
|
}
|
|
26827
26856
|
});
|
|
26828
26857
|
|
|
26829
|
-
const FModifyRecord = _sfc_main$
|
|
26858
|
+
const FModifyRecord = _sfc_main$w;
|
|
26830
26859
|
|
|
26831
26860
|
const _hoisted_1$n = { style: { "display": "flex", "justify-content": "end", "align-items": "right" } };
|
|
26832
|
-
var _sfc_main$
|
|
26861
|
+
var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
26833
26862
|
...{
|
|
26834
26863
|
name: "FmSelect"
|
|
26835
26864
|
},
|
|
@@ -27030,9 +27059,9 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
27030
27059
|
}
|
|
27031
27060
|
});
|
|
27032
27061
|
|
|
27033
|
-
const FmSelect = _sfc_main$
|
|
27062
|
+
const FmSelect = _sfc_main$v;
|
|
27034
27063
|
|
|
27035
|
-
var _sfc_main$
|
|
27064
|
+
var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
27036
27065
|
...{
|
|
27037
27066
|
name: "Fminputdropdown"
|
|
27038
27067
|
},
|
|
@@ -27230,9 +27259,9 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
27230
27259
|
}
|
|
27231
27260
|
});
|
|
27232
27261
|
|
|
27233
|
-
const Fminputdropdown = _sfc_main$
|
|
27262
|
+
const Fminputdropdown = _sfc_main$u;
|
|
27234
27263
|
|
|
27235
|
-
var _sfc_main$
|
|
27264
|
+
var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
27236
27265
|
...{ name: "FmInputNumber" },
|
|
27237
27266
|
__name: "index",
|
|
27238
27267
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -27341,14 +27370,14 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
27341
27370
|
}
|
|
27342
27371
|
});
|
|
27343
27372
|
|
|
27344
|
-
const FmInputNumber = _sfc_main$
|
|
27373
|
+
const FmInputNumber = _sfc_main$t;
|
|
27345
27374
|
|
|
27346
27375
|
const _hoisted_1$m = { style: { "color": "#fff" } };
|
|
27347
27376
|
const _hoisted_2$f = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
|
|
27348
27377
|
const _hoisted_3$9 = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
|
|
27349
27378
|
const _hoisted_4$5 = { style: { "margin-top": "10px" } };
|
|
27350
27379
|
const _hoisted_5$5 = { class: "dialog-footer" };
|
|
27351
|
-
var _sfc_main$
|
|
27380
|
+
var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
27352
27381
|
__name: "userSelectDialog",
|
|
27353
27382
|
props: {
|
|
27354
27383
|
visible: {
|
|
@@ -27740,7 +27769,7 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
27740
27769
|
const _hoisted_1$l = { style: { "color": "#fff" } };
|
|
27741
27770
|
const _hoisted_2$e = { style: { "margin-top": "10px" } };
|
|
27742
27771
|
const _hoisted_3$8 = { class: "dialog-footer" };
|
|
27743
|
-
var _sfc_main$
|
|
27772
|
+
var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
27744
27773
|
__name: "supplierSelectDialog",
|
|
27745
27774
|
props: {
|
|
27746
27775
|
visible: {
|
|
@@ -28103,7 +28132,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
28103
28132
|
});
|
|
28104
28133
|
|
|
28105
28134
|
const _hoisted_1$k = { style: { "font-size": "14px", "line-height": "30px" } };
|
|
28106
|
-
var _sfc_main$
|
|
28135
|
+
var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
28107
28136
|
...{
|
|
28108
28137
|
name: "FmAutocomplete"
|
|
28109
28138
|
},
|
|
@@ -28252,7 +28281,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28252
28281
|
"trigger-on-focus": false,
|
|
28253
28282
|
onSelect: handleSelect,
|
|
28254
28283
|
style: { "margin-top": "-2px" }
|
|
28255
|
-
}, {
|
|
28284
|
+
}, createSlots({
|
|
28256
28285
|
default: withCtx(({ item }) => [
|
|
28257
28286
|
createElementVNode(
|
|
28258
28287
|
"div",
|
|
@@ -28262,50 +28291,108 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28262
28291
|
/* TEXT */
|
|
28263
28292
|
)
|
|
28264
28293
|
]),
|
|
28265
|
-
|
|
28266
|
-
|
|
28267
|
-
|
|
28268
|
-
|
|
28269
|
-
|
|
28270
|
-
|
|
28271
|
-
|
|
28272
|
-
|
|
28273
|
-
|
|
28274
|
-
|
|
28275
|
-
|
|
28276
|
-
|
|
28277
|
-
|
|
28278
|
-
|
|
28279
|
-
|
|
28280
|
-
|
|
28281
|
-
|
|
28282
|
-
|
|
28283
|
-
|
|
28284
|
-
|
|
28285
|
-
|
|
28286
|
-
|
|
28287
|
-
|
|
28288
|
-
|
|
28289
|
-
|
|
28290
|
-
|
|
28291
|
-
|
|
28292
|
-
|
|
28293
|
-
|
|
28294
|
-
title:
|
|
28295
|
-
|
|
28296
|
-
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28302
|
-
|
|
28303
|
-
|
|
28294
|
+
_: 2
|
|
28295
|
+
/* DYNAMIC */
|
|
28296
|
+
}, [
|
|
28297
|
+
__props.openType > -1 ? {
|
|
28298
|
+
name: "suffix",
|
|
28299
|
+
fn: withCtx(() => [
|
|
28300
|
+
createVNode(_component_el_icon, {
|
|
28301
|
+
color: "#E6A23C",
|
|
28302
|
+
size: __props.searchsize,
|
|
28303
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => visibleopenDialog.value = true, ["stop"]))
|
|
28304
|
+
}, {
|
|
28305
|
+
default: withCtx(() => [
|
|
28306
|
+
createVNode(unref(Search))
|
|
28307
|
+
]),
|
|
28308
|
+
_: 1
|
|
28309
|
+
/* STABLE */
|
|
28310
|
+
}, 8, ["size"]),
|
|
28311
|
+
__props.openType == 0 ? (openBlock(), createBlock(_sfc_main$s, {
|
|
28312
|
+
key: 0,
|
|
28313
|
+
visible: visibleopenDialog.value,
|
|
28314
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
|
|
28315
|
+
orgService: __props.orgService,
|
|
28316
|
+
orgAction: __props.orgAction,
|
|
28317
|
+
orgparas: __props.params,
|
|
28318
|
+
title: __props.title,
|
|
28319
|
+
userService: __props.userService,
|
|
28320
|
+
userAction: __props.userAction,
|
|
28321
|
+
userParams: __props.params,
|
|
28322
|
+
onChange: handleSelectDialogChange
|
|
28323
|
+
}, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
|
|
28324
|
+
__props.openType == 2 ? (openBlock(), createBlock(_sfc_main$r, {
|
|
28325
|
+
key: 1,
|
|
28326
|
+
visible: visibleopenDialog.value,
|
|
28327
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
|
|
28328
|
+
title: __props.title,
|
|
28329
|
+
userService: __props.userService,
|
|
28330
|
+
userAction: __props.userAction,
|
|
28331
|
+
userParams: __props.params,
|
|
28332
|
+
onChange: handleSelectDialogChange
|
|
28333
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true)
|
|
28334
|
+
]),
|
|
28335
|
+
key: "0"
|
|
28336
|
+
} : void 0
|
|
28337
|
+
]), 1032, ["modelValue", "placeholder"]);
|
|
28338
|
+
};
|
|
28339
|
+
}
|
|
28340
|
+
});
|
|
28341
|
+
|
|
28342
|
+
const FmAutocomplete = _sfc_main$q;
|
|
28343
|
+
|
|
28344
|
+
var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
28345
|
+
...{
|
|
28346
|
+
name: "Fmdatepicker"
|
|
28347
|
+
},
|
|
28348
|
+
__name: "index",
|
|
28349
|
+
props: /* @__PURE__ */ mergeModels({
|
|
28350
|
+
dateType: {
|
|
28351
|
+
type: String,
|
|
28352
|
+
default: "bdate"
|
|
28353
|
+
},
|
|
28354
|
+
adddaynum: {
|
|
28355
|
+
type: Number,
|
|
28356
|
+
default: 0
|
|
28357
|
+
}
|
|
28358
|
+
}, {
|
|
28359
|
+
"modelValue": {},
|
|
28360
|
+
"modelModifiers": {}
|
|
28361
|
+
}),
|
|
28362
|
+
emits: ["update:modelValue"],
|
|
28363
|
+
setup(__props) {
|
|
28364
|
+
const modeValue = useModel(__props, "modelValue");
|
|
28365
|
+
const props = __props;
|
|
28366
|
+
onMounted(() => {
|
|
28367
|
+
nextTick(() => {
|
|
28368
|
+
initdate();
|
|
28369
|
+
});
|
|
28370
|
+
});
|
|
28371
|
+
const initdate = () => {
|
|
28372
|
+
if (props.dateType === "bdate" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
|
|
28373
|
+
modeValue.value = getBdate(props.adddaynum);
|
|
28374
|
+
} else if (props.dateType === "edate" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
|
|
28375
|
+
modeValue.value = getEdate(props.adddaynum);
|
|
28376
|
+
} else if (props.dateType === "curday" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
|
|
28377
|
+
modeValue.value = formatDate(/* @__PURE__ */ new Date(), "YYYY-mm-dd");
|
|
28378
|
+
}
|
|
28379
|
+
};
|
|
28380
|
+
initdate();
|
|
28381
|
+
return (_ctx, _cache) => {
|
|
28382
|
+
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
28383
|
+
return openBlock(), createBlock(_component_el_date_picker, {
|
|
28384
|
+
class: "fmdatepicker",
|
|
28385
|
+
modelValue: modeValue.value,
|
|
28386
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValue.value = $event),
|
|
28387
|
+
type: "date",
|
|
28388
|
+
format: "YYYY-MM-DD",
|
|
28389
|
+
"value-format": "YYYY-MM-DD"
|
|
28390
|
+
}, null, 8, ["modelValue"]);
|
|
28304
28391
|
};
|
|
28305
28392
|
}
|
|
28306
28393
|
});
|
|
28307
28394
|
|
|
28308
|
-
const
|
|
28395
|
+
const Fmdatepicker = _sfc_main$p;
|
|
28309
28396
|
|
|
28310
28397
|
const makeInstaller = (components = []) => {
|
|
28311
28398
|
const install = (app) => {
|
|
@@ -28837,7 +28924,8 @@ const plugins = [
|
|
|
28837
28924
|
FmCascader,
|
|
28838
28925
|
FmInputNumber,
|
|
28839
28926
|
FmAutocomplete,
|
|
28840
|
-
FmSelect
|
|
28927
|
+
FmSelect,
|
|
28928
|
+
Fmdatepicker
|
|
28841
28929
|
];
|
|
28842
28930
|
|
|
28843
28931
|
var installer = makeInstaller([...plugins]);
|
|
@@ -32707,4 +32795,4 @@ var upgradeInfo = /*#__PURE__*/Object.freeze({
|
|
|
32707
32795
|
default: _sfc_main
|
|
32708
32796
|
});
|
|
32709
32797
|
|
|
32710
|
-
export { AccountTypeEnum, AppSysTypeData, AppSysTypeEnum, CurrencyData, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PowerAreaData, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, cmpId, commonFun, commonFunction, dataURLtoBlob, decryptJWT, installer as default, depId, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getFileUrl, getFormItemLabel, getFormItemProp, getHeader, getJWTDate, getOpOrg, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getToken, getWeek, getlimit, getpower, groupId, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initIconfont, initIdleTimeout, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadRemoteMessages, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, pinia, posId, posName, powerAuthDel, provideFormEvents, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, restartSignalR, roles, saulVModel, service, setCssCdn, setIntroduction, setJsCdn, setupI18n, showFileUrl, showTabelColumn, signalR, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, updateIdleTimeout, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormEvents, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, usefminputdropdownstore, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
|
|
32798
|
+
export { AccountTypeEnum, AppSysTypeData, AppSysTypeEnum, CurrencyData, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PowerAreaData, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, cmpId, commonFun, commonFunction, dataURLtoBlob, decryptJWT, installer as default, depId, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getBdate, getCountryCode, getEdate, getFileName, getFileUrl, getFormItemLabel, getFormItemProp, getHeader, getJWTDate, getOpOrg, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getToken, getWeek, getlimit, getpower, groupId, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initIconfont, initIdleTimeout, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadRemoteMessages, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, pinia, posId, posName, powerAuthDel, provideFormEvents, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, restartSignalR, roles, saulVModel, service, setCssCdn, setIntroduction, setJsCdn, setupI18n, showFileUrl, showTabelColumn, signalR, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, updateIdleTimeout, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormEvents, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, usefminputdropdownstore, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
|
package/lib/component.js
CHANGED
|
@@ -20,6 +20,7 @@ var index$e = require('./packages/components/fmcascader/index.js');
|
|
|
20
20
|
var index$f = require('./packages/components/fm-inputnumber/index.js');
|
|
21
21
|
var index$g = require('./packages/components/fm-autocomplete/index.js');
|
|
22
22
|
var index$h = require('./packages/components/fm-select/index.js');
|
|
23
|
+
var index$i = require('./packages/components/fm-datepicker/index.js');
|
|
23
24
|
|
|
24
25
|
const plugins = [
|
|
25
26
|
index.FButton,
|
|
@@ -39,7 +40,8 @@ const plugins = [
|
|
|
39
40
|
index$e.FmCascader,
|
|
40
41
|
index$f.FmInputNumber,
|
|
41
42
|
index$g.FmAutocomplete,
|
|
42
|
-
index$h.FmSelect
|
|
43
|
+
index$h.FmSelect,
|
|
44
|
+
index$i.Fmdatepicker
|
|
43
45
|
];
|
|
44
46
|
|
|
45
47
|
exports.default = plugins;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export declare const Fmdatepicker: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
dateType: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
adddaynum: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: PropType<any>;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: any) => any;
|
|
16
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
17
|
+
dateType: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
adddaynum: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: PropType<any>;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
dateType: string;
|
|
32
|
+
adddaynum: number;
|
|
33
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|