@fmdeui/fmui 1.0.114 → 1.0.116
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/index.mjs +2 -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/utils/formatTime.mjs +12 -1
- package/es/packages/utils/gloabdata.mjs +29 -0
- package/es/packages/utils/index.mjs +2 -1
- package/es/utils/formatTime.d.ts +10 -0
- package/es/utils/gloabdata.d.ts +24 -0
- package/es/utils/index.d.ts +1 -0
- package/index.js +192 -89
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +188 -90
- 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/index.js +6 -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/utils/formatTime.js +13 -0
- package/lib/packages/utils/gloabdata.js +33 -0
- package/lib/packages/utils/index.js +6 -0
- package/lib/utils/formatTime.d.ts +10 -0
- package/lib/utils/gloabdata.d.ts +24 -0
- package/lib/utils/index.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/{version.css → component.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.116 */
|
|
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";
|
|
@@ -2560,6 +2571,34 @@ const saulVModel = (props, propName, emit) => {
|
|
|
2560
2571
|
});
|
|
2561
2572
|
};
|
|
2562
2573
|
|
|
2574
|
+
const AppItem = {
|
|
2575
|
+
AccountInit: 100,
|
|
2576
|
+
AccountJust: 101,
|
|
2577
|
+
BookFare: 120,
|
|
2578
|
+
BookOtherIn: 121,
|
|
2579
|
+
BookOtherOut: 122,
|
|
2580
|
+
CarTeam: 125
|
|
2581
|
+
};
|
|
2582
|
+
function getAppItemData(num = 125) {
|
|
2583
|
+
const reldata = [
|
|
2584
|
+
{ id: 100, name: "\u8D26\u6237\u521D\u59CB\u5316" },
|
|
2585
|
+
{ id: 101, name: "\u8D26\u6237\u8C03\u8D26" },
|
|
2586
|
+
{ id: 120, name: "\u8BA2\u5355\u6536\u6B3E" },
|
|
2587
|
+
{ id: 121, name: "\u5176\u4ED6\u6536\u5165" },
|
|
2588
|
+
{ id: 122, name: "\u5176\u4ED6\u652F\u51FA" },
|
|
2589
|
+
{ id: 125, name: "\u4ED8\u8F66\u8D39" }
|
|
2590
|
+
];
|
|
2591
|
+
return reldata.filter((x) => x.id <= num);
|
|
2592
|
+
}
|
|
2593
|
+
function getAppItemText(id, num = 125) {
|
|
2594
|
+
let data = getAppItemData(num);
|
|
2595
|
+
let item = data.find((x) => x.id == id);
|
|
2596
|
+
if (item) {
|
|
2597
|
+
return item.name;
|
|
2598
|
+
}
|
|
2599
|
+
return "";
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2563
2602
|
function useChangeColor() {
|
|
2564
2603
|
const hexToRgb = (str) => {
|
|
2565
2604
|
let hexs = "";
|
|
@@ -20295,7 +20334,7 @@ const setupVXETable = (app) => {
|
|
|
20295
20334
|
app.use(VxeUITable);
|
|
20296
20335
|
};
|
|
20297
20336
|
|
|
20298
|
-
var _sfc_main$
|
|
20337
|
+
var _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
20299
20338
|
...{
|
|
20300
20339
|
name: "FButton"
|
|
20301
20340
|
},
|
|
@@ -20365,7 +20404,7 @@ var _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
20365
20404
|
}
|
|
20366
20405
|
});
|
|
20367
20406
|
|
|
20368
|
-
const FButton = _sfc_main$
|
|
20407
|
+
const FButton = _sfc_main$N;
|
|
20369
20408
|
|
|
20370
20409
|
const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
|
|
20371
20410
|
const translate = (path, option, locale) => get(locale, path, path).replace(
|
|
@@ -21081,7 +21120,7 @@ function getShowColumnWidth(flag, field, defaultValue = "", isJson = false) {
|
|
|
21081
21120
|
|
|
21082
21121
|
const _hoisted_1$w = { key: 0 };
|
|
21083
21122
|
const _hoisted_2$k = { key: 0 };
|
|
21084
|
-
var _sfc_main$
|
|
21123
|
+
var _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
21085
21124
|
...{
|
|
21086
21125
|
name: "FInput"
|
|
21087
21126
|
},
|
|
@@ -21334,13 +21373,13 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
21334
21373
|
}
|
|
21335
21374
|
});
|
|
21336
21375
|
|
|
21337
|
-
const FInput = _sfc_main$
|
|
21376
|
+
const FInput = _sfc_main$M;
|
|
21338
21377
|
|
|
21339
21378
|
const _hoisted_1$v = {
|
|
21340
21379
|
key: 0,
|
|
21341
21380
|
class: "back_to_top"
|
|
21342
21381
|
};
|
|
21343
|
-
var _sfc_main$
|
|
21382
|
+
var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
21344
21383
|
...{
|
|
21345
21384
|
name: "FLayoutPage"
|
|
21346
21385
|
},
|
|
@@ -21430,9 +21469,9 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
21430
21469
|
}
|
|
21431
21470
|
});
|
|
21432
21471
|
|
|
21433
|
-
const FLayoutPage = _sfc_main$
|
|
21472
|
+
const FLayoutPage = _sfc_main$L;
|
|
21434
21473
|
|
|
21435
|
-
var _sfc_main$
|
|
21474
|
+
var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
21436
21475
|
...{
|
|
21437
21476
|
name: "FLayoutPageItem"
|
|
21438
21477
|
},
|
|
@@ -21460,7 +21499,7 @@ var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
21460
21499
|
}
|
|
21461
21500
|
});
|
|
21462
21501
|
|
|
21463
|
-
const FLayoutPageItem = _sfc_main$
|
|
21502
|
+
const FLayoutPageItem = _sfc_main$K;
|
|
21464
21503
|
|
|
21465
21504
|
function debounce(func, delay = 500, immediate, resultCallback) {
|
|
21466
21505
|
let timer = null;
|
|
@@ -21504,7 +21543,7 @@ function toLine(name) {
|
|
|
21504
21543
|
}
|
|
21505
21544
|
|
|
21506
21545
|
const _hoisted_1$u = ["id"];
|
|
21507
|
-
var _sfc_main$
|
|
21546
|
+
var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
21508
21547
|
...{
|
|
21509
21548
|
name: "FChart"
|
|
21510
21549
|
},
|
|
@@ -21603,13 +21642,13 @@ var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
21603
21642
|
}
|
|
21604
21643
|
});
|
|
21605
21644
|
|
|
21606
|
-
const FChart = _sfc_main$
|
|
21645
|
+
const FChart = _sfc_main$J;
|
|
21607
21646
|
|
|
21608
21647
|
const _hoisted_1$t = {
|
|
21609
21648
|
key: 1,
|
|
21610
21649
|
class: "f_select__pagination"
|
|
21611
21650
|
};
|
|
21612
|
-
var _sfc_main$
|
|
21651
|
+
var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
21613
21652
|
...{
|
|
21614
21653
|
name: "FSelect"
|
|
21615
21654
|
},
|
|
@@ -21860,9 +21899,9 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21860
21899
|
}
|
|
21861
21900
|
});
|
|
21862
21901
|
|
|
21863
|
-
const FSelect = _sfc_main$
|
|
21902
|
+
const FSelect = _sfc_main$I;
|
|
21864
21903
|
|
|
21865
|
-
var _sfc_main$
|
|
21904
|
+
var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
21866
21905
|
...{
|
|
21867
21906
|
name: "RenderComp"
|
|
21868
21907
|
},
|
|
@@ -21887,7 +21926,7 @@ const _hoisted_2$j = { class: "inside_box_title" };
|
|
|
21887
21926
|
const _hoisted_3$c = { class: "check-box" };
|
|
21888
21927
|
const _hoisted_4$8 = { class: "more_dropdown_icon" };
|
|
21889
21928
|
const _hoisted_5$7 = { class: "out_box" };
|
|
21890
|
-
var _sfc_main$
|
|
21929
|
+
var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
21891
21930
|
...{
|
|
21892
21931
|
name: "MoreChoose"
|
|
21893
21932
|
},
|
|
@@ -22202,7 +22241,7 @@ function useComputed() {
|
|
|
22202
22241
|
};
|
|
22203
22242
|
}
|
|
22204
22243
|
|
|
22205
|
-
var _sfc_main$
|
|
22244
|
+
var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
22206
22245
|
...{
|
|
22207
22246
|
name: "FQueryCondition"
|
|
22208
22247
|
},
|
|
@@ -22621,7 +22660,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22621
22660
|
opt.labelRender ? {
|
|
22622
22661
|
name: "label",
|
|
22623
22662
|
fn: withCtx(() => [
|
|
22624
|
-
createVNode(_sfc_main$
|
|
22663
|
+
createVNode(_sfc_main$H, {
|
|
22625
22664
|
form: unref(queryState).form,
|
|
22626
22665
|
render: opt.labelRender
|
|
22627
22666
|
}, null, 8, ["form", "render"])
|
|
@@ -22717,7 +22756,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22717
22756
|
_: 1
|
|
22718
22757
|
/* STABLE */
|
|
22719
22758
|
})) : createCommentVNode("v-if", true),
|
|
22720
|
-
createVNode(_sfc_main$
|
|
22759
|
+
createVNode(_sfc_main$G, {
|
|
22721
22760
|
isDropDownSelectMore: __props.isDropDownSelectMore,
|
|
22722
22761
|
moreCheckList: __props.moreCheckList,
|
|
22723
22762
|
popoverAttrsBind: popoverAttrsBind.value,
|
|
@@ -22743,7 +22782,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
22743
22782
|
}
|
|
22744
22783
|
});
|
|
22745
22784
|
|
|
22746
|
-
var _sfc_main$
|
|
22785
|
+
var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
22747
22786
|
...{
|
|
22748
22787
|
name: "RenderCol"
|
|
22749
22788
|
},
|
|
@@ -22909,7 +22948,7 @@ const _hoisted_4$7 = {
|
|
|
22909
22948
|
key: 0,
|
|
22910
22949
|
class: "f-table-select__page"
|
|
22911
22950
|
};
|
|
22912
|
-
var _sfc_main$
|
|
22951
|
+
var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
22913
22952
|
...{
|
|
22914
22953
|
name: "FSelectTable"
|
|
22915
22954
|
},
|
|
@@ -23533,7 +23572,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23533
23572
|
[
|
|
23534
23573
|
__props.isShowQuery ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
23535
23574
|
createVNode(
|
|
23536
|
-
_sfc_main$
|
|
23575
|
+
_sfc_main$F,
|
|
23537
23576
|
mergeProps({
|
|
23538
23577
|
ref_key: "fQueryConditionRef",
|
|
23539
23578
|
ref: fQueryConditionRef,
|
|
@@ -23659,7 +23698,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23659
23698
|
fixed: item.fixed
|
|
23660
23699
|
}, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
|
|
23661
23700
|
default: withCtx((scope) => [
|
|
23662
|
-
item.render ? (openBlock(), createBlock(_sfc_main$
|
|
23701
|
+
item.render ? (openBlock(), createBlock(_sfc_main$E, {
|
|
23663
23702
|
key: 0,
|
|
23664
23703
|
column: item,
|
|
23665
23704
|
row: scope.row,
|
|
@@ -23722,11 +23761,11 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23722
23761
|
}
|
|
23723
23762
|
});
|
|
23724
23763
|
|
|
23725
|
-
const FSelectTable = _sfc_main$
|
|
23764
|
+
const FSelectTable = _sfc_main$D;
|
|
23726
23765
|
|
|
23727
|
-
const FQueryCondition = _sfc_main$
|
|
23766
|
+
const FQueryCondition = _sfc_main$F;
|
|
23728
23767
|
|
|
23729
|
-
var _sfc_main$
|
|
23768
|
+
var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23730
23769
|
...{
|
|
23731
23770
|
name: "RenderComp"
|
|
23732
23771
|
},
|
|
@@ -23746,7 +23785,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23746
23785
|
}
|
|
23747
23786
|
});
|
|
23748
23787
|
|
|
23749
|
-
var _sfc_main$
|
|
23788
|
+
var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
23750
23789
|
...{
|
|
23751
23790
|
name: "RenderBtn"
|
|
23752
23791
|
},
|
|
@@ -23771,7 +23810,7 @@ const _hoisted_1$q = {
|
|
|
23771
23810
|
class: "text_show"
|
|
23772
23811
|
};
|
|
23773
23812
|
const _hoisted_2$h = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
|
|
23774
|
-
var _sfc_main$
|
|
23813
|
+
var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23775
23814
|
...{
|
|
23776
23815
|
name: "FForm"
|
|
23777
23816
|
},
|
|
@@ -24142,7 +24181,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
24142
24181
|
item.labelSlotName || item.labelRender ? {
|
|
24143
24182
|
name: "label",
|
|
24144
24183
|
fn: withCtx(() => [
|
|
24145
|
-
item.labelRender ? (openBlock(), createBlock(_sfc_main$
|
|
24184
|
+
item.labelRender ? (openBlock(), createBlock(_sfc_main$C, {
|
|
24146
24185
|
key: 0,
|
|
24147
24186
|
render: item.labelRender,
|
|
24148
24187
|
item
|
|
@@ -24174,7 +24213,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
24174
24213
|
Fragment,
|
|
24175
24214
|
null,
|
|
24176
24215
|
[
|
|
24177
|
-
val.render ? (openBlock(), createBlock(_sfc_main$
|
|
24216
|
+
val.render ? (openBlock(), createBlock(_sfc_main$B, {
|
|
24178
24217
|
key: index,
|
|
24179
24218
|
item: val,
|
|
24180
24219
|
render: val.render
|
|
@@ -24221,10 +24260,10 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
24221
24260
|
}
|
|
24222
24261
|
});
|
|
24223
24262
|
|
|
24224
|
-
const FForm = _sfc_main$
|
|
24263
|
+
const FForm = _sfc_main$A;
|
|
24225
24264
|
|
|
24226
24265
|
const _hoisted_1$p = ["src"];
|
|
24227
|
-
var _sfc_main$
|
|
24266
|
+
var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
24228
24267
|
...{
|
|
24229
24268
|
name: "svgIcon"
|
|
24230
24269
|
},
|
|
@@ -24322,13 +24361,13 @@ function elSvg(app) {
|
|
|
24322
24361
|
}
|
|
24323
24362
|
}
|
|
24324
24363
|
if (!app._context.components[`SvgIcon`]) {
|
|
24325
|
-
app.component("SvgIcon", _sfc_main$
|
|
24364
|
+
app.component("SvgIcon", _sfc_main$z);
|
|
24326
24365
|
}
|
|
24327
24366
|
}
|
|
24328
24367
|
|
|
24329
24368
|
const emitter = mitt();
|
|
24330
24369
|
|
|
24331
|
-
var _sfc_main$
|
|
24370
|
+
var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
24332
24371
|
...{
|
|
24333
24372
|
name: "FLayout"
|
|
24334
24373
|
},
|
|
@@ -24414,7 +24453,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
24414
24453
|
}
|
|
24415
24454
|
});
|
|
24416
24455
|
|
|
24417
|
-
const FLayout = _sfc_main$
|
|
24456
|
+
const FLayout = _sfc_main$y;
|
|
24418
24457
|
|
|
24419
24458
|
function commonFunction() {
|
|
24420
24459
|
const { copy, isSupported } = useClipboard();
|
|
@@ -24816,7 +24855,7 @@ const _hoisted_119 = {
|
|
|
24816
24855
|
class: "traditionalColors-chines",
|
|
24817
24856
|
style: { "cursor": "grab", "color": "gray" }
|
|
24818
24857
|
};
|
|
24819
|
-
var _sfc_main$
|
|
24858
|
+
var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
24820
24859
|
...{
|
|
24821
24860
|
name: "FSettings"
|
|
24822
24861
|
},
|
|
@@ -26579,9 +26618,9 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
26579
26618
|
}
|
|
26580
26619
|
});
|
|
26581
26620
|
|
|
26582
|
-
const FSettings = _sfc_main$
|
|
26621
|
+
const FSettings = _sfc_main$x;
|
|
26583
26622
|
|
|
26584
|
-
var _sfc_main$
|
|
26623
|
+
var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
26585
26624
|
...{
|
|
26586
26625
|
name: "FModifyRecord"
|
|
26587
26626
|
},
|
|
@@ -26844,10 +26883,10 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
26844
26883
|
}
|
|
26845
26884
|
});
|
|
26846
26885
|
|
|
26847
|
-
const FModifyRecord = _sfc_main$
|
|
26886
|
+
const FModifyRecord = _sfc_main$w;
|
|
26848
26887
|
|
|
26849
26888
|
const _hoisted_1$n = { style: { "display": "flex", "justify-content": "end", "align-items": "right" } };
|
|
26850
|
-
var _sfc_main$
|
|
26889
|
+
var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
26851
26890
|
...{
|
|
26852
26891
|
name: "FmSelect"
|
|
26853
26892
|
},
|
|
@@ -27048,9 +27087,9 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
27048
27087
|
}
|
|
27049
27088
|
});
|
|
27050
27089
|
|
|
27051
|
-
const FmSelect = _sfc_main$
|
|
27090
|
+
const FmSelect = _sfc_main$v;
|
|
27052
27091
|
|
|
27053
|
-
var _sfc_main$
|
|
27092
|
+
var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
27054
27093
|
...{
|
|
27055
27094
|
name: "Fminputdropdown"
|
|
27056
27095
|
},
|
|
@@ -27248,9 +27287,9 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
27248
27287
|
}
|
|
27249
27288
|
});
|
|
27250
27289
|
|
|
27251
|
-
const Fminputdropdown = _sfc_main$
|
|
27290
|
+
const Fminputdropdown = _sfc_main$u;
|
|
27252
27291
|
|
|
27253
|
-
var _sfc_main$
|
|
27292
|
+
var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
27254
27293
|
...{ name: "FmInputNumber" },
|
|
27255
27294
|
__name: "index",
|
|
27256
27295
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -27359,14 +27398,14 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
27359
27398
|
}
|
|
27360
27399
|
});
|
|
27361
27400
|
|
|
27362
|
-
const FmInputNumber = _sfc_main$
|
|
27401
|
+
const FmInputNumber = _sfc_main$t;
|
|
27363
27402
|
|
|
27364
27403
|
const _hoisted_1$m = { style: { "color": "#fff" } };
|
|
27365
27404
|
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" } };
|
|
27366
27405
|
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" } };
|
|
27367
27406
|
const _hoisted_4$5 = { style: { "margin-top": "10px" } };
|
|
27368
27407
|
const _hoisted_5$5 = { class: "dialog-footer" };
|
|
27369
|
-
var _sfc_main$
|
|
27408
|
+
var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
27370
27409
|
__name: "userSelectDialog",
|
|
27371
27410
|
props: {
|
|
27372
27411
|
visible: {
|
|
@@ -27758,7 +27797,7 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
27758
27797
|
const _hoisted_1$l = { style: { "color": "#fff" } };
|
|
27759
27798
|
const _hoisted_2$e = { style: { "margin-top": "10px" } };
|
|
27760
27799
|
const _hoisted_3$8 = { class: "dialog-footer" };
|
|
27761
|
-
var _sfc_main$
|
|
27800
|
+
var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
27762
27801
|
__name: "supplierSelectDialog",
|
|
27763
27802
|
props: {
|
|
27764
27803
|
visible: {
|
|
@@ -28121,7 +28160,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
28121
28160
|
});
|
|
28122
28161
|
|
|
28123
28162
|
const _hoisted_1$k = { style: { "font-size": "14px", "line-height": "30px" } };
|
|
28124
|
-
var _sfc_main$
|
|
28163
|
+
var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
28125
28164
|
...{
|
|
28126
28165
|
name: "FmAutocomplete"
|
|
28127
28166
|
},
|
|
@@ -28270,7 +28309,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28270
28309
|
"trigger-on-focus": false,
|
|
28271
28310
|
onSelect: handleSelect,
|
|
28272
28311
|
style: { "margin-top": "-2px" }
|
|
28273
|
-
}, {
|
|
28312
|
+
}, createSlots({
|
|
28274
28313
|
default: withCtx(({ item }) => [
|
|
28275
28314
|
createElementVNode(
|
|
28276
28315
|
"div",
|
|
@@ -28280,50 +28319,108 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28280
28319
|
/* TEXT */
|
|
28281
28320
|
)
|
|
28282
28321
|
]),
|
|
28283
|
-
|
|
28284
|
-
|
|
28285
|
-
|
|
28286
|
-
|
|
28287
|
-
|
|
28288
|
-
|
|
28289
|
-
|
|
28290
|
-
|
|
28291
|
-
|
|
28292
|
-
|
|
28293
|
-
|
|
28294
|
-
|
|
28295
|
-
|
|
28296
|
-
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28302
|
-
|
|
28303
|
-
|
|
28304
|
-
|
|
28305
|
-
|
|
28306
|
-
|
|
28307
|
-
|
|
28308
|
-
|
|
28309
|
-
|
|
28310
|
-
|
|
28311
|
-
|
|
28312
|
-
title:
|
|
28313
|
-
|
|
28314
|
-
|
|
28315
|
-
|
|
28316
|
-
|
|
28317
|
-
|
|
28318
|
-
|
|
28319
|
-
|
|
28320
|
-
|
|
28321
|
-
|
|
28322
|
+
_: 2
|
|
28323
|
+
/* DYNAMIC */
|
|
28324
|
+
}, [
|
|
28325
|
+
__props.openType > -1 ? {
|
|
28326
|
+
name: "suffix",
|
|
28327
|
+
fn: withCtx(() => [
|
|
28328
|
+
createVNode(_component_el_icon, {
|
|
28329
|
+
color: "#E6A23C",
|
|
28330
|
+
size: __props.searchsize,
|
|
28331
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => visibleopenDialog.value = true, ["stop"]))
|
|
28332
|
+
}, {
|
|
28333
|
+
default: withCtx(() => [
|
|
28334
|
+
createVNode(unref(Search))
|
|
28335
|
+
]),
|
|
28336
|
+
_: 1
|
|
28337
|
+
/* STABLE */
|
|
28338
|
+
}, 8, ["size"]),
|
|
28339
|
+
__props.openType == 0 ? (openBlock(), createBlock(_sfc_main$s, {
|
|
28340
|
+
key: 0,
|
|
28341
|
+
visible: visibleopenDialog.value,
|
|
28342
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
|
|
28343
|
+
orgService: __props.orgService,
|
|
28344
|
+
orgAction: __props.orgAction,
|
|
28345
|
+
orgparas: __props.params,
|
|
28346
|
+
title: __props.title,
|
|
28347
|
+
userService: __props.userService,
|
|
28348
|
+
userAction: __props.userAction,
|
|
28349
|
+
userParams: __props.params,
|
|
28350
|
+
onChange: handleSelectDialogChange
|
|
28351
|
+
}, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
|
|
28352
|
+
__props.openType == 2 ? (openBlock(), createBlock(_sfc_main$r, {
|
|
28353
|
+
key: 1,
|
|
28354
|
+
visible: visibleopenDialog.value,
|
|
28355
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
|
|
28356
|
+
title: __props.title,
|
|
28357
|
+
userService: __props.userService,
|
|
28358
|
+
userAction: __props.userAction,
|
|
28359
|
+
userParams: __props.params,
|
|
28360
|
+
onChange: handleSelectDialogChange
|
|
28361
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true)
|
|
28362
|
+
]),
|
|
28363
|
+
key: "0"
|
|
28364
|
+
} : void 0
|
|
28365
|
+
]), 1032, ["modelValue", "placeholder"]);
|
|
28366
|
+
};
|
|
28367
|
+
}
|
|
28368
|
+
});
|
|
28369
|
+
|
|
28370
|
+
const FmAutocomplete = _sfc_main$q;
|
|
28371
|
+
|
|
28372
|
+
var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
28373
|
+
...{
|
|
28374
|
+
name: "Fmdatepicker"
|
|
28375
|
+
},
|
|
28376
|
+
__name: "index",
|
|
28377
|
+
props: /* @__PURE__ */ mergeModels({
|
|
28378
|
+
dateType: {
|
|
28379
|
+
type: String,
|
|
28380
|
+
default: "bdate"
|
|
28381
|
+
},
|
|
28382
|
+
adddaynum: {
|
|
28383
|
+
type: Number,
|
|
28384
|
+
default: 0
|
|
28385
|
+
}
|
|
28386
|
+
}, {
|
|
28387
|
+
"modelValue": {},
|
|
28388
|
+
"modelModifiers": {}
|
|
28389
|
+
}),
|
|
28390
|
+
emits: ["update:modelValue"],
|
|
28391
|
+
setup(__props) {
|
|
28392
|
+
const modeValue = useModel(__props, "modelValue");
|
|
28393
|
+
const props = __props;
|
|
28394
|
+
onMounted(() => {
|
|
28395
|
+
nextTick(() => {
|
|
28396
|
+
initdate();
|
|
28397
|
+
});
|
|
28398
|
+
});
|
|
28399
|
+
const initdate = () => {
|
|
28400
|
+
if (props.dateType === "bdate" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
|
|
28401
|
+
modeValue.value = getBdate(props.adddaynum);
|
|
28402
|
+
} else if (props.dateType === "edate" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
|
|
28403
|
+
modeValue.value = getEdate(props.adddaynum);
|
|
28404
|
+
} else if (props.dateType === "curday" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
|
|
28405
|
+
modeValue.value = formatDate(/* @__PURE__ */ new Date(), "YYYY-mm-dd");
|
|
28406
|
+
}
|
|
28407
|
+
};
|
|
28408
|
+
initdate();
|
|
28409
|
+
return (_ctx, _cache) => {
|
|
28410
|
+
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
28411
|
+
return openBlock(), createBlock(_component_el_date_picker, {
|
|
28412
|
+
class: "fmdatepicker",
|
|
28413
|
+
modelValue: modeValue.value,
|
|
28414
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValue.value = $event),
|
|
28415
|
+
type: "date",
|
|
28416
|
+
format: "YYYY-MM-DD",
|
|
28417
|
+
"value-format": "YYYY-MM-DD"
|
|
28418
|
+
}, null, 8, ["modelValue"]);
|
|
28322
28419
|
};
|
|
28323
28420
|
}
|
|
28324
28421
|
});
|
|
28325
28422
|
|
|
28326
|
-
const
|
|
28423
|
+
const Fmdatepicker = _sfc_main$p;
|
|
28327
28424
|
|
|
28328
28425
|
const makeInstaller = (components = []) => {
|
|
28329
28426
|
const install = (app) => {
|
|
@@ -28855,7 +28952,8 @@ const plugins = [
|
|
|
28855
28952
|
FmCascader,
|
|
28856
28953
|
FmInputNumber,
|
|
28857
28954
|
FmAutocomplete,
|
|
28858
|
-
FmSelect
|
|
28955
|
+
FmSelect,
|
|
28956
|
+
Fmdatepicker
|
|
28859
28957
|
];
|
|
28860
28958
|
|
|
28861
28959
|
var installer = makeInstaller([...plugins]);
|
|
@@ -32725,4 +32823,4 @@ var upgradeInfo = /*#__PURE__*/Object.freeze({
|
|
|
32725
32823
|
default: _sfc_main
|
|
32726
32824
|
});
|
|
32727
32825
|
|
|
32728
|
-
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 };
|
|
32826
|
+
export { AccountTypeEnum, AppItem, 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, getAppItemData, getAppItemText, 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>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: 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>;
|
|
34
|
+
export default _default;
|