fit2cloud-ui-plus 0.0.1-beta.14 → 0.0.1-beta.17
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/lib/fit2cloud-ui-plus.es.js +142 -117
- package/lib/fit2cloud-ui-plus.umd.js +1 -1
- package/package.json +2 -2
- package/src/components/filter-bar/FuFilter.vue +37 -29
- package/src/components/filter-bar/FuFilterBar.vue +25 -16
- package/src/components/filter-bar/FuFilterInput.vue +45 -0
- package/src/components/filter-bar/index.ts +4 -4
- package/src/components/read-write-switch/index.d.ts +2 -0
- package/src/components/read-write-switch/types.d.ts +4 -0
- package/src/components/search-bar/FuComplexSearch.vue +170 -0
- package/src/components/search-bar/FuQuickSearch.vue +54 -0
- package/src/components/search-bar/FuSearchBar.vue +158 -0
- package/src/components/search-bar/FuSearchBarButton.vue +22 -0
- package/src/components/search-bar/FuSearchContions.vue +29 -0
- package/src/components/search-bar/complex-components/FuComplexDate.vue +69 -0
- package/src/components/search-bar/complex-components/FuComplexDateTime.vue +68 -0
- package/src/components/search-bar/complex-components/FuComplexInput.vue +50 -0
- package/src/components/search-bar/complex-components/FuComplexSelect.vue +86 -0
- package/src/components/search-bar/complex-components/index.js +16 -0
- package/src/components/search-bar/complex-components/mixins.js +26 -0
- package/src/components/search-bar/index.js +16 -0
- package/src/components/search-bar/types.ts +23 -0
- package/src/components/table/index.d.ts +2 -0
- package/src/components/table/table-column-select/utils.d.ts +8 -0
- package/src/components/table/types.d.ts +2 -0
- package/src/components/tabs/FuTabs.vue +4 -3
- package/src/hooks/use-global-config/index.d.ts +1 -0
- package/src/hooks/use-locale/index.d.ts +14 -0
- package/src/hooks/use-size/index.d.ts +5 -0
- package/src/styles/common/variables.scss +5 -0
- package/src/styles/components/filter-bar.scss +6 -3
- package/src/styles/components/search-bar.scss +285 -0
- package/src/styles/components/table.scss +2 -1
- package/types/examples/pages/search/attributes.d.ts +57 -0
- package/types/examples/pages/search/demo/BaseSearchbar.vue.d.ts +66 -0
- package/types/examples/pages/search/demo/ComplexComponentsDemo.vue.d.ts +60 -0
- package/types/examples/pages/search/demo/ComplexSearchDemo.vue.d.ts +84 -0
- package/types/examples/pages/search/demo/CustomComponentsDemo.vue.d.ts +50 -0
- package/types/examples/pages/search/demo/EchoConditionsDemo.vue.d.ts +52 -0
- package/types/examples/pages/search/demo/QuickSearchDemo.vue.d.ts +18 -0
- package/types/examples/pages/search/demo/SearchBarButtonDemo.vue.d.ts +54 -0
- package/types/examples/pages/search/index.vue.d.ts +150 -0
- package/types/src/components/filter-bar/FuFilter.vue.d.ts +3 -0
- package/types/src/components/filter-bar/FuFilterBar.vue.d.ts +12 -1
- package/types/src/components/filter-bar/FuFilterInput.vue.d.ts +17 -0
- package/types/src/components/filter-bar/index.d.ts +2 -2
- package/types/src/components/search-bar/FuComplexSearch.vue.d.ts +2 -0
- package/types/src/components/search-bar/FuQuickSearch.vue.d.ts +33 -0
- package/types/src/components/search-bar/FuSearchBar.vue.d.ts +2 -0
- package/types/src/components/search-bar/FuSearchBarButton.vue.d.ts +12 -0
- package/types/src/components/search-bar/FuSearchContions.vue.d.ts +12 -0
- package/types/src/components/search-bar/complex-components/FuComplexDate.vue.d.ts +36 -0
- package/types/src/components/search-bar/complex-components/FuComplexDateTime.vue.d.ts +36 -0
- package/types/src/components/search-bar/complex-components/FuComplexInput.vue.d.ts +26 -0
- package/types/src/components/search-bar/complex-components/FuComplexSelect.vue.d.ts +50 -0
- package/types/src/components/search-bar/complex-components/index.d.ts +0 -0
- package/types/src/components/search-bar/complex-components/mixins.d.ts +6 -0
- package/types/src/components/search-bar/index.d.ts +0 -0
- package/types/src/components/search-bar/types.d.ts +17 -0
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/filter-bar/FuSearchInput.vue +0 -37
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, mergeProps, getCurrentInstance, inject, computed, unref, isRef, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createVNode, withCtx, provide, onMounted, createTextVNode, createCommentVNode, renderSlot, resolveDynamicComponent, toHandlers, nextTick, normalizeClass, withModifiers, h, normalizeStyle, Transition, useSlots,
|
|
20
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, mergeProps, getCurrentInstance, inject, computed, unref, isRef, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createVNode, withCtx, provide, onMounted, withDirectives, createTextVNode, createCommentVNode, vShow, renderSlot, resolveDynamicComponent, toHandlers, nextTick, normalizeClass, withModifiers, h, normalizeStyle, Transition, useSlots, isVNode, Comment, onUpdated, normalizeProps, guardReactiveProps } from "vue";
|
|
21
21
|
const COMPONENTS_SIZE = ["", "default", "small", "large"];
|
|
22
22
|
const validateSize = (val) => ["", ...COMPONENTS_SIZE].includes(val);
|
|
23
23
|
var _export_sfc = (sfc, props) => {
|
|
@@ -27,28 +27,32 @@ var _export_sfc = (sfc, props) => {
|
|
|
27
27
|
}
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
|
-
const __default__$h = { name: "
|
|
30
|
+
const __default__$h = { name: "FuFilterInput" };
|
|
31
31
|
const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$h), {
|
|
32
32
|
props: {
|
|
33
33
|
size: {
|
|
34
34
|
type: String,
|
|
35
35
|
validator: validateSize
|
|
36
36
|
},
|
|
37
|
-
|
|
37
|
+
modelValue: String
|
|
38
38
|
},
|
|
39
|
-
emits: ["
|
|
39
|
+
emits: ["update:modelValue", "change"],
|
|
40
40
|
setup(__props, { emit }) {
|
|
41
41
|
const props = __props;
|
|
42
42
|
const quick = ref("");
|
|
43
|
-
watch(() => props.
|
|
43
|
+
watch(() => props.modelValue, (val) => {
|
|
44
44
|
quick.value = val;
|
|
45
45
|
});
|
|
46
46
|
function input(e) {
|
|
47
|
-
emit("
|
|
47
|
+
emit("update:modelValue", quick.value, e);
|
|
48
48
|
}
|
|
49
49
|
function blur(e) {
|
|
50
50
|
emit("change", quick.value, e);
|
|
51
51
|
}
|
|
52
|
+
function clear() {
|
|
53
|
+
emit("update:modelValue", quick.value);
|
|
54
|
+
emit("change", quick.value);
|
|
55
|
+
}
|
|
52
56
|
function keydown(e) {
|
|
53
57
|
const event = e;
|
|
54
58
|
if (event.key === "Enter") {
|
|
@@ -58,13 +62,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
58
62
|
return (_ctx, _cache) => {
|
|
59
63
|
const _component_el_input = resolveComponent("el-input");
|
|
60
64
|
return openBlock(), createBlock(_component_el_input, mergeProps({
|
|
61
|
-
class: "fu-
|
|
65
|
+
class: "fu-filter-input",
|
|
62
66
|
"prefix-icon": "Search",
|
|
63
67
|
modelValue: quick.value,
|
|
64
68
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => quick.value = $event),
|
|
65
69
|
onInput: input,
|
|
66
70
|
onBlur: blur,
|
|
67
|
-
onKeydown: keydown
|
|
71
|
+
onKeydown: keydown,
|
|
72
|
+
onClear: clear
|
|
68
73
|
}, _ctx.$attrs, {
|
|
69
74
|
clearable: "",
|
|
70
75
|
size: __props.size
|
|
@@ -72,7 +77,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
72
77
|
};
|
|
73
78
|
}
|
|
74
79
|
}));
|
|
75
|
-
var
|
|
80
|
+
var FuFilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/FuFilterInput.vue"]]);
|
|
76
81
|
const globalConfig = ref();
|
|
77
82
|
function useGlobalConfig(key, defaultValue = void 0) {
|
|
78
83
|
const config = getCurrentInstance() ? inject(Symbol(), globalConfig) : globalConfig;
|
|
@@ -572,7 +577,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
572
577
|
};
|
|
573
578
|
}
|
|
574
579
|
});
|
|
575
|
-
var FuFilterConditions = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__file", "/Users/
|
|
580
|
+
var FuFilterConditions = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/FuFilterConditions.vue"]]);
|
|
576
581
|
const selectKey = Symbol("SelectKey");
|
|
577
582
|
const referenceKey = Symbol("ReferenceKey");
|
|
578
583
|
const _hoisted_1$b = { class: "fu-filter__result" };
|
|
@@ -595,10 +600,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
595
600
|
drawerWidth: {
|
|
596
601
|
type: [Number, String],
|
|
597
602
|
default: "680px"
|
|
598
|
-
}
|
|
603
|
+
},
|
|
604
|
+
showEmpty: Boolean
|
|
599
605
|
},
|
|
600
606
|
emits: ["filter"],
|
|
601
607
|
setup(__props, { expose, emit }) {
|
|
608
|
+
const props = __props;
|
|
602
609
|
const { t } = useLocale();
|
|
603
610
|
const filterRef = ref(null);
|
|
604
611
|
const conditionsRef = ref(null);
|
|
@@ -683,6 +690,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
683
690
|
const el = filterRef.value;
|
|
684
691
|
return el === null ? 0 : el.getBoundingClientRect().width - 210;
|
|
685
692
|
});
|
|
693
|
+
const show = computed(() => {
|
|
694
|
+
return conditions.value.length > 0 && props.showEmpty === false || props.showEmpty;
|
|
695
|
+
});
|
|
686
696
|
provide(referenceKey, references);
|
|
687
697
|
onMounted(() => {
|
|
688
698
|
drawer.value = false;
|
|
@@ -698,61 +708,65 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
698
708
|
const _component_Delete = resolveComponent("Delete");
|
|
699
709
|
const _component_el_button = resolveComponent("el-button");
|
|
700
710
|
const _component_el_drawer = resolveComponent("el-drawer");
|
|
701
|
-
return openBlock(), createElementBlock(
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
createElementVNode("div", _hoisted_1$b, [
|
|
707
|
-
createTextVNode(toDisplayString(__props.count) + " ", 1),
|
|
708
|
-
createElementVNode("span", _hoisted_2$6, toDisplayString(unref(t)("fu.filter_bar.results")), 1)
|
|
709
|
-
]),
|
|
710
|
-
_hoisted_3$4,
|
|
711
|
-
scroll.value ? (openBlock(), createElementBlock("div", {
|
|
712
|
-
key: 0,
|
|
713
|
-
class: "fu-filter__scroll",
|
|
714
|
-
onMousedown: left,
|
|
715
|
-
onMouseup: mouseup
|
|
716
|
-
}, [
|
|
717
|
-
createVNode(_component_el_icon, null, {
|
|
718
|
-
default: withCtx(() => [
|
|
719
|
-
createVNode(_component_ArrowLeftBold)
|
|
720
|
-
]),
|
|
721
|
-
_: 1
|
|
722
|
-
})
|
|
723
|
-
], 32)) : createCommentVNode("v-if", true),
|
|
724
|
-
createVNode(FuFilterConditions, {
|
|
725
|
-
conditions: conditions.value,
|
|
726
|
-
onChange: change,
|
|
727
|
-
ref_key: "conditionsRef",
|
|
728
|
-
ref: conditionsRef
|
|
729
|
-
}, null, 8, ["conditions"]),
|
|
730
|
-
scroll.value ? (openBlock(), createElementBlock("div", {
|
|
731
|
-
key: 1,
|
|
732
|
-
class: "fu-filter__scroll",
|
|
733
|
-
onMousedown: right,
|
|
734
|
-
onMouseup: mouseup
|
|
735
|
-
}, [
|
|
736
|
-
createVNode(_component_el_icon, null, {
|
|
737
|
-
default: withCtx(() => [
|
|
738
|
-
createVNode(_component_ArrowRightBold)
|
|
739
|
-
]),
|
|
740
|
-
_: 1
|
|
741
|
-
})
|
|
742
|
-
], 32)) : createCommentVNode("v-if", true),
|
|
743
|
-
conditions.value.length > 0 ? (openBlock(), createElementBlock("div", {
|
|
744
|
-
key: 2,
|
|
745
|
-
class: "fu-filter__clear fu-scale-click",
|
|
746
|
-
onClick: clear
|
|
711
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
712
|
+
withDirectives(createElementVNode("div", {
|
|
713
|
+
class: "fu-filter",
|
|
714
|
+
ref_key: "filterRef",
|
|
715
|
+
ref: filterRef
|
|
747
716
|
}, [
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
717
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
718
|
+
createTextVNode(toDisplayString(__props.count) + " ", 1),
|
|
719
|
+
createElementVNode("span", _hoisted_2$6, toDisplayString(unref(t)("fu.filter_bar.results")), 1)
|
|
720
|
+
]),
|
|
721
|
+
_hoisted_3$4,
|
|
722
|
+
scroll.value ? (openBlock(), createElementBlock("div", {
|
|
723
|
+
key: 0,
|
|
724
|
+
class: "fu-filter__scroll",
|
|
725
|
+
onMousedown: left,
|
|
726
|
+
onMouseup: mouseup
|
|
727
|
+
}, [
|
|
728
|
+
createVNode(_component_el_icon, null, {
|
|
729
|
+
default: withCtx(() => [
|
|
730
|
+
createVNode(_component_ArrowLeftBold)
|
|
731
|
+
]),
|
|
732
|
+
_: 1
|
|
733
|
+
})
|
|
734
|
+
], 32)) : createCommentVNode("v-if", true),
|
|
735
|
+
createVNode(FuFilterConditions, {
|
|
736
|
+
conditions: conditions.value,
|
|
737
|
+
onChange: change,
|
|
738
|
+
ref_key: "conditionsRef",
|
|
739
|
+
ref: conditionsRef
|
|
740
|
+
}, null, 8, ["conditions"]),
|
|
741
|
+
scroll.value ? (openBlock(), createElementBlock("div", {
|
|
742
|
+
key: 1,
|
|
743
|
+
class: "fu-filter__scroll",
|
|
744
|
+
onMousedown: right,
|
|
745
|
+
onMouseup: mouseup
|
|
746
|
+
}, [
|
|
747
|
+
createVNode(_component_el_icon, null, {
|
|
748
|
+
default: withCtx(() => [
|
|
749
|
+
createVNode(_component_ArrowRightBold)
|
|
750
|
+
]),
|
|
751
|
+
_: 1
|
|
752
|
+
})
|
|
753
|
+
], 32)) : createCommentVNode("v-if", true),
|
|
754
|
+
conditions.value.length > 0 ? (openBlock(), createElementBlock("div", {
|
|
755
|
+
key: 2,
|
|
756
|
+
class: "fu-filter__clear fu-scale-click",
|
|
757
|
+
onClick: clear
|
|
758
|
+
}, [
|
|
759
|
+
createVNode(_component_el_icon, null, {
|
|
760
|
+
default: withCtx(() => [
|
|
761
|
+
createVNode(_component_Delete)
|
|
762
|
+
]),
|
|
763
|
+
_: 1
|
|
764
|
+
}),
|
|
765
|
+
createTextVNode(" " + toDisplayString(unref(t)("fu.filter_bar.clear")), 1)
|
|
766
|
+
])) : createCommentVNode("v-if", true)
|
|
767
|
+
], 512), [
|
|
768
|
+
[vShow, unref(show)]
|
|
769
|
+
]),
|
|
756
770
|
createVNode(_component_el_drawer, {
|
|
757
771
|
size: __props.drawerWidth,
|
|
758
772
|
"custom-class": "fu-filter__drawer",
|
|
@@ -798,11 +812,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
798
812
|
]),
|
|
799
813
|
_: 3
|
|
800
814
|
}, 8, ["size", "title", "modelValue"])
|
|
801
|
-
],
|
|
815
|
+
], 64);
|
|
802
816
|
};
|
|
803
817
|
}
|
|
804
818
|
}));
|
|
805
|
-
var FuFilter = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__file", "/Users/
|
|
819
|
+
var FuFilter = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/FuFilter.vue"]]);
|
|
806
820
|
const _hoisted_1$a = { class: "fu-filter-bar" };
|
|
807
821
|
const _hoisted_2$5 = { class: "fu-filter-bar__top" };
|
|
808
822
|
const _hoisted_3$3 = { class: "top_left" };
|
|
@@ -818,7 +832,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
818
832
|
},
|
|
819
833
|
resultCount: Number,
|
|
820
834
|
quickPlaceholder: String,
|
|
821
|
-
components: Array
|
|
835
|
+
components: Array,
|
|
836
|
+
showEmpty: {
|
|
837
|
+
type: Boolean,
|
|
838
|
+
default: false
|
|
839
|
+
}
|
|
822
840
|
},
|
|
823
841
|
emits: ["exec"],
|
|
824
842
|
setup(__props, { expose, emit }) {
|
|
@@ -842,14 +860,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
842
860
|
(_a2 = filterRef.value) == null ? void 0 : _a2.setConditions(conditionObj2);
|
|
843
861
|
}
|
|
844
862
|
const conditionObj = computed(() => {
|
|
845
|
-
let obj = {
|
|
863
|
+
let obj = {};
|
|
864
|
+
if (quick.value) {
|
|
865
|
+
obj.quick = quick.value;
|
|
866
|
+
}
|
|
846
867
|
conditions.value.forEach((c) => {
|
|
847
868
|
obj[c.field] = c;
|
|
848
869
|
});
|
|
849
870
|
return obj;
|
|
850
871
|
});
|
|
851
872
|
expose({
|
|
852
|
-
setConditions
|
|
873
|
+
setConditions,
|
|
874
|
+
open
|
|
853
875
|
});
|
|
854
876
|
return (_ctx, _cache) => {
|
|
855
877
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -859,26 +881,27 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
859
881
|
renderSlot(_ctx.$slots, "tl")
|
|
860
882
|
]),
|
|
861
883
|
createElementVNode("div", _hoisted_4$1, [
|
|
862
|
-
renderSlot(_ctx.$slots, "tr", {}, () => [
|
|
863
|
-
createVNode(
|
|
884
|
+
renderSlot(_ctx.$slots, "tr", { condition: unref(conditionObj) }, () => [
|
|
885
|
+
createVNode(FuFilterInput, {
|
|
864
886
|
size: __props.size,
|
|
865
887
|
modelValue: quick.value,
|
|
866
888
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => quick.value = $event),
|
|
867
889
|
placeholder: __props.quickPlaceholder,
|
|
868
890
|
onChange: change
|
|
869
|
-
}, null, 8, ["size", "modelValue", "placeholder"])
|
|
870
|
-
createVNode(_component_el_button, {
|
|
871
|
-
onClick: open,
|
|
872
|
-
icon: "Filter",
|
|
873
|
-
size: __props.size
|
|
874
|
-
}, {
|
|
875
|
-
default: withCtx(() => [
|
|
876
|
-
createTextVNode(toDisplayString(unref(t)("fu.filter_bar.filter")) + " ", 1),
|
|
877
|
-
conditions.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5, "(" + toDisplayString(conditions.value.length) + ")", 1)) : createCommentVNode("v-if", true)
|
|
878
|
-
]),
|
|
879
|
-
_: 1
|
|
880
|
-
}, 8, ["size"])
|
|
891
|
+
}, null, 8, ["size", "modelValue", "placeholder"])
|
|
881
892
|
]),
|
|
893
|
+
createVNode(_component_el_button, {
|
|
894
|
+
class: "fu-filter-button",
|
|
895
|
+
onClick: open,
|
|
896
|
+
icon: "Filter",
|
|
897
|
+
size: __props.size
|
|
898
|
+
}, {
|
|
899
|
+
default: withCtx(() => [
|
|
900
|
+
createTextVNode(toDisplayString(unref(t)("fu.filter_bar.filter")) + " ", 1),
|
|
901
|
+
conditions.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5, "(" + toDisplayString(conditions.value.length) + ")", 1)) : createCommentVNode("v-if", true)
|
|
902
|
+
]),
|
|
903
|
+
_: 1
|
|
904
|
+
}, 8, ["size"]),
|
|
882
905
|
renderSlot(_ctx.$slots, "buttons")
|
|
883
906
|
])
|
|
884
907
|
]),
|
|
@@ -889,19 +912,20 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
889
912
|
onFilter: filter,
|
|
890
913
|
count: __props.resultCount,
|
|
891
914
|
components: __props.components,
|
|
892
|
-
size: __props.size
|
|
915
|
+
size: __props.size,
|
|
916
|
+
"show-empty": __props.showEmpty
|
|
893
917
|
}, {
|
|
894
918
|
default: withCtx(() => [
|
|
895
919
|
renderSlot(_ctx.$slots, "default")
|
|
896
920
|
]),
|
|
897
921
|
_: 3
|
|
898
|
-
}, 8, ["count", "components", "size"])
|
|
922
|
+
}, 8, ["count", "components", "size", "show-empty"])
|
|
899
923
|
])
|
|
900
924
|
]);
|
|
901
925
|
};
|
|
902
926
|
}
|
|
903
927
|
}));
|
|
904
|
-
var FuFilterBar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__file", "/Users/
|
|
928
|
+
var FuFilterBar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/FuFilterBar.vue"]]);
|
|
905
929
|
const _hoisted_1$9 = ["onClick"];
|
|
906
930
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
907
931
|
__name: "FuFilterOption",
|
|
@@ -939,7 +963,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
939
963
|
};
|
|
940
964
|
}
|
|
941
965
|
});
|
|
942
|
-
var FuFilterOption = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__file", "/Users/
|
|
966
|
+
var FuFilterOption = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterOption.vue"]]);
|
|
943
967
|
const _hoisted_1$8 = { class: "fu-filter-component" };
|
|
944
968
|
const _hoisted_2$4 = { class: "fu-filter-component__label" };
|
|
945
969
|
const _hoisted_3$2 = { class: "fu-filter-component__content" };
|
|
@@ -1121,7 +1145,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1121
1145
|
};
|
|
1122
1146
|
}
|
|
1123
1147
|
}));
|
|
1124
|
-
var FuFilterSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "/Users/
|
|
1148
|
+
var FuFilterSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterSelect.vue"]]);
|
|
1125
1149
|
const getCheckDate = (timestamp) => {
|
|
1126
1150
|
if (!timestamp)
|
|
1127
1151
|
return false;
|
|
@@ -1218,7 +1242,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1218
1242
|
};
|
|
1219
1243
|
}
|
|
1220
1244
|
}));
|
|
1221
|
-
var FuFilterDate = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "/Users/
|
|
1245
|
+
var FuFilterDate = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterDate.vue"]]);
|
|
1222
1246
|
const _hoisted_1$6 = { class: "fu-filter-component" };
|
|
1223
1247
|
const _hoisted_2$2 = { class: "fu-filter-component__label" };
|
|
1224
1248
|
const _hoisted_3 = { class: "fu-filter-component__content" };
|
|
@@ -1286,18 +1310,18 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1286
1310
|
};
|
|
1287
1311
|
}
|
|
1288
1312
|
}));
|
|
1289
|
-
var FuFilterDateTime = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "/Users/
|
|
1290
|
-
|
|
1313
|
+
var FuFilterDateTime = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterDateTime.vue"]]);
|
|
1314
|
+
FuFilterBar.install = (app) => {
|
|
1291
1315
|
app.component(FuFilterBar.name, FuFilterBar);
|
|
1292
1316
|
app.component(FuFilter.name, FuFilter);
|
|
1293
|
-
app.component(
|
|
1317
|
+
app.component(FuFilterInput.name, FuFilterInput);
|
|
1294
1318
|
app.component(FuFilterSelect.name, FuFilterSelect);
|
|
1295
1319
|
app.component(FuFilterDate.name, FuFilterDate);
|
|
1296
1320
|
app.component(FuFilterDateTime.name, FuFilterDateTime);
|
|
1297
1321
|
};
|
|
1298
1322
|
var __glob_1_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1299
1323
|
__proto__: null,
|
|
1300
|
-
"default":
|
|
1324
|
+
"default": FuFilterBar
|
|
1301
1325
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1302
1326
|
const uuid = function() {
|
|
1303
1327
|
let d = new Date().getTime();
|
|
@@ -1383,7 +1407,7 @@ const _sfc_main$h = defineComponent({
|
|
|
1383
1407
|
};
|
|
1384
1408
|
}
|
|
1385
1409
|
});
|
|
1386
|
-
var FuReadWriteSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "/Users/
|
|
1410
|
+
var FuReadWriteSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/read-write-switch/FuReadWriteSwitch.vue"]]);
|
|
1387
1411
|
const __default__$b = { name: "FuInputRwSwitch" };
|
|
1388
1412
|
const _sfc_main$g = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$b), {
|
|
1389
1413
|
props: {
|
|
@@ -1436,7 +1460,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1436
1460
|
};
|
|
1437
1461
|
}
|
|
1438
1462
|
}));
|
|
1439
|
-
var FuInputRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "/Users/
|
|
1463
|
+
var FuInputRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/read-write-switch/FuInputRwSwitch.vue"]]);
|
|
1440
1464
|
const __default__$a = { name: "FuSelectRwSwitch" };
|
|
1441
1465
|
const _sfc_main$f = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$a), {
|
|
1442
1466
|
props: {
|
|
@@ -1514,7 +1538,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1514
1538
|
};
|
|
1515
1539
|
}
|
|
1516
1540
|
}));
|
|
1517
|
-
var FuSelectRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "/Users/
|
|
1541
|
+
var FuSelectRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/read-write-switch/FuSelectRwSwitch.vue"]]);
|
|
1518
1542
|
FuReadWriteSwitch.install = (app) => {
|
|
1519
1543
|
app.component(FuReadWriteSwitch.name, FuReadWriteSwitch);
|
|
1520
1544
|
app.component(FuInputRwSwitch.name, FuInputRwSwitch);
|
|
@@ -1664,7 +1688,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1664
1688
|
};
|
|
1665
1689
|
}
|
|
1666
1690
|
});
|
|
1667
|
-
var FuSpeedDialButton = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "/Users/
|
|
1691
|
+
var FuSpeedDialButton = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialButton.vue"]]);
|
|
1668
1692
|
const SpeedDialKey = Symbol("SpeedDialKey");
|
|
1669
1693
|
const _hoisted_1$5 = { class: "fu-speed-dial-action-button" };
|
|
1670
1694
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
@@ -1756,7 +1780,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1756
1780
|
};
|
|
1757
1781
|
}
|
|
1758
1782
|
});
|
|
1759
|
-
var FuSpeedDialActionButton = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "/Users/
|
|
1783
|
+
var FuSpeedDialActionButton = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialActionButton.vue"]]);
|
|
1760
1784
|
const __default__$9 = { name: "FuSpeedDialItem" };
|
|
1761
1785
|
const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$9), {
|
|
1762
1786
|
props: {
|
|
@@ -1847,7 +1871,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1847
1871
|
};
|
|
1848
1872
|
}
|
|
1849
1873
|
}));
|
|
1850
|
-
var FuSpeedDialItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "/Users/
|
|
1874
|
+
var FuSpeedDialItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialItem.vue"]]);
|
|
1851
1875
|
const _hoisted_1$4 = { class: "fu-speed-dial__content" };
|
|
1852
1876
|
const __default__$8 = { name: "FuSpeedDial" };
|
|
1853
1877
|
const _sfc_main$b = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$8), {
|
|
@@ -2117,7 +2141,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2117
2141
|
};
|
|
2118
2142
|
}
|
|
2119
2143
|
}));
|
|
2120
|
-
var FuSpeedDial = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "/Users/
|
|
2144
|
+
var FuSpeedDial = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDial.vue"]]);
|
|
2121
2145
|
FuSpeedDial.install = (app) => {
|
|
2122
2146
|
app.component(FuSpeedDial.name, FuSpeedDial);
|
|
2123
2147
|
app.component(FuSpeedDialItem.name, FuSpeedDialItem);
|
|
@@ -2333,7 +2357,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2333
2357
|
};
|
|
2334
2358
|
}
|
|
2335
2359
|
}));
|
|
2336
|
-
var FuSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "/Users/
|
|
2360
|
+
var FuSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/split-pane/FuSplitPane.vue"]]);
|
|
2337
2361
|
FuSplitPane.install = (app) => {
|
|
2338
2362
|
app.component(FuSplitPane.name, FuSplitPane);
|
|
2339
2363
|
};
|
|
@@ -2529,7 +2553,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2529
2553
|
};
|
|
2530
2554
|
}
|
|
2531
2555
|
}));
|
|
2532
|
-
var FuTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "/Users/
|
|
2556
|
+
var FuTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/FuTable.vue"]]);
|
|
2533
2557
|
const tableColumnSelect = (localKey) => {
|
|
2534
2558
|
const columnsKey = computed(() => {
|
|
2535
2559
|
return localKey ? "FU-T-" + localKey : "";
|
|
@@ -2701,7 +2725,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2701
2725
|
};
|
|
2702
2726
|
}
|
|
2703
2727
|
});
|
|
2704
|
-
var FuTableColumnSelectPopover = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "/Users/
|
|
2728
|
+
var FuTableColumnSelectPopover = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelectPopover.vue"]]);
|
|
2705
2729
|
const _hoisted_1$1 = { style: { "display": "inline-block" } };
|
|
2706
2730
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2707
2731
|
__name: "FuTableColumnSelectDialog",
|
|
@@ -2835,7 +2859,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2835
2859
|
};
|
|
2836
2860
|
}
|
|
2837
2861
|
});
|
|
2838
|
-
var FuTableColumnSelectDialog = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "/Users/
|
|
2862
|
+
var FuTableColumnSelectDialog = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelectDialog.vue"]]);
|
|
2839
2863
|
const _sfc_main$6 = defineComponent({
|
|
2840
2864
|
name: "FuTableColumnSelect",
|
|
2841
2865
|
props: ["type"],
|
|
@@ -2850,7 +2874,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
2850
2874
|
};
|
|
2851
2875
|
}
|
|
2852
2876
|
});
|
|
2853
|
-
var FuTableColumnSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__file", "/Users/
|
|
2877
|
+
var FuTableColumnSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelect.vue"]]);
|
|
2854
2878
|
const __default__$5 = { name: "FuTablePagination" };
|
|
2855
2879
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$5), {
|
|
2856
2880
|
props: {
|
|
@@ -2899,7 +2923,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2899
2923
|
};
|
|
2900
2924
|
}
|
|
2901
2925
|
}));
|
|
2902
|
-
var FuTablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__file", "/Users/
|
|
2926
|
+
var FuTablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/FuTablePagination.vue"]]);
|
|
2903
2927
|
const __default__$4 = { name: "FuTableButton" };
|
|
2904
2928
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
|
|
2905
2929
|
props: {
|
|
@@ -2928,7 +2952,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2928
2952
|
};
|
|
2929
2953
|
}
|
|
2930
2954
|
}));
|
|
2931
|
-
var FuTableButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "/Users/
|
|
2955
|
+
var FuTableButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-operations/FuTableButton.vue"]]);
|
|
2932
2956
|
const __default__$3 = { name: "FuTableMoreButton" };
|
|
2933
2957
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
|
|
2934
2958
|
props: {
|
|
@@ -3014,7 +3038,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
3014
3038
|
};
|
|
3015
3039
|
}
|
|
3016
3040
|
}));
|
|
3017
|
-
var FuTableMoreButton = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "/Users/
|
|
3041
|
+
var FuTableMoreButton = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-operations/FuTableMoreButton.vue"]]);
|
|
3018
3042
|
const __default__$2 = { name: "FuTableOperations" };
|
|
3019
3043
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
|
|
3020
3044
|
props: {
|
|
@@ -3121,7 +3145,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
3121
3145
|
};
|
|
3122
3146
|
}
|
|
3123
3147
|
}));
|
|
3124
|
-
var FuTableOperations = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/Users/
|
|
3148
|
+
var FuTableOperations = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/table-operations/FuTableOperations.vue"]]);
|
|
3125
3149
|
const _hoisted_1 = { class: "fu-dropdown-link" };
|
|
3126
3150
|
const _hoisted_2 = {
|
|
3127
3151
|
key: 0,
|
|
@@ -3255,7 +3279,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
3255
3279
|
};
|
|
3256
3280
|
}
|
|
3257
3281
|
}));
|
|
3258
|
-
var FuTableColumnDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/Users/
|
|
3282
|
+
var FuTableColumnDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/table/FuTableColumnDropdown.vue"]]);
|
|
3259
3283
|
FuTable.install = (app) => {
|
|
3260
3284
|
app.component(FuTable.name, FuTable);
|
|
3261
3285
|
app.component(FuTablePagination.name, FuTablePagination);
|
|
@@ -3324,10 +3348,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
3324
3348
|
addable: false
|
|
3325
3349
|
}, _ctx.$attrs), {
|
|
3326
3350
|
default: withCtx(() => [
|
|
3327
|
-
renderSlot(_ctx.$slots, "default"),
|
|
3328
3351
|
__props.addable ? (openBlock(), createBlock(_component_el_tab_pane, {
|
|
3329
3352
|
name: "add",
|
|
3330
|
-
key: "add"
|
|
3353
|
+
key: "add",
|
|
3354
|
+
lazy: true
|
|
3331
3355
|
}, {
|
|
3332
3356
|
label: withCtx(() => [
|
|
3333
3357
|
renderSlot(_ctx.$slots, "add", {}, () => [
|
|
@@ -3404,14 +3428,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
3404
3428
|
])
|
|
3405
3429
|
]),
|
|
3406
3430
|
_: 3
|
|
3407
|
-
})) : createCommentVNode("v-if", true)
|
|
3431
|
+
})) : createCommentVNode("v-if", true),
|
|
3432
|
+
renderSlot(_ctx.$slots, "default")
|
|
3408
3433
|
]),
|
|
3409
3434
|
_: 3
|
|
3410
3435
|
}, 16);
|
|
3411
3436
|
};
|
|
3412
3437
|
}
|
|
3413
3438
|
}));
|
|
3414
|
-
var FuTabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/
|
|
3439
|
+
var FuTabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/mokun/fit2cloud2.0/fit2cloud-ui-plus/src/components/tabs/FuTabs.vue"]]);
|
|
3415
3440
|
FuTabs.install = (app) => {
|
|
3416
3441
|
app.component(FuTabs.name, FuTabs);
|
|
3417
3442
|
};
|
|
@@ -3420,7 +3445,7 @@ var __glob_1_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
3420
3445
|
"default": FuTabs
|
|
3421
3446
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3422
3447
|
const name = "fit2cloud-ui-plus";
|
|
3423
|
-
const version = "0.0.1-beta.
|
|
3448
|
+
const version = "0.0.1-beta.17";
|
|
3424
3449
|
const main = "./lib/fit2cloud-ui-plus.es.js";
|
|
3425
3450
|
const files = [
|
|
3426
3451
|
"lib",
|
|
@@ -3443,7 +3468,7 @@ const scripts = {
|
|
|
3443
3468
|
};
|
|
3444
3469
|
const dependencies = {
|
|
3445
3470
|
"@element-plus/icons-vue": "^1.1.4",
|
|
3446
|
-
"element-plus": "^2.2.
|
|
3471
|
+
"element-plus": "^2.2.13",
|
|
3447
3472
|
"github-markdown-css": "^5.1.0",
|
|
3448
3473
|
"prism-theme-vars": "^0.2.3",
|
|
3449
3474
|
prismjs: "^1.28.0",
|