@fmdevui/fm-dev 1.0.62 → 1.0.64
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 -2
- package/es/core/ui/components/fmtree/index.vue.d.ts +90 -0
- package/es/core/ui/components/index.d.ts +77 -1
- package/es/index.css +2 -0
- package/es/index.mjs +1 -1
- package/es/packages/core/index.mjs +1 -1
- package/es/packages/core/ui/components/fmtree/index.vue.mjs +7 -0
- package/es/packages/core/ui/components/fmtree/index.vue2.mjs +241 -0
- package/es/packages/core/ui/components/fmtree/index.vue3.mjs +3 -0
- package/es/packages/core/ui/components/index.mjs +3 -1
- package/index.css +27 -0
- package/index.js +279 -38
- package/index.min.css +2 -0
- package/index.min.js +26 -25
- package/index.min.mjs +26 -25
- package/index.mjs +280 -40
- package/lib/component.js +2 -1
- package/lib/core/ui/components/fmtree/index.vue.d.ts +90 -0
- package/lib/core/ui/components/index.d.ts +77 -1
- package/lib/{version.css → index.css} +2 -0
- package/lib/index.js +1 -0
- package/lib/packages/core/index.js +1 -0
- package/lib/packages/core/ui/components/fmtree/index.vue.js +11 -0
- package/lib/packages/core/ui/components/fmtree/index.vue2.js +245 -0
- package/lib/packages/core/ui/components/fmtree/index.vue3.js +7 -0
- package/lib/packages/core/ui/components/index.js +3 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
2
|
-
import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle, createCommentVNode, normalizeClass, withModifiers, mergeModels, useModel, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text, resolveDynamicComponent, markRaw, toRaw as toRaw$1, hasInjectionContext,
|
|
1
|
+
/*! fm-dev v1.0.64 */
|
|
2
|
+
import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle, createCommentVNode, normalizeClass, withModifiers, mergeModels, useModel, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text, resolveDirective, unref, resolveDynamicComponent, markRaw, toRaw as toRaw$1, hasInjectionContext, isReactive as isReactive$1, toRef, getCurrentScope, onScopeDispose, toRefs } from 'vue';
|
|
3
3
|
import crypto from 'crypto';
|
|
4
4
|
import require$$0 from 'url';
|
|
5
5
|
import require$$1 from 'http';
|
|
@@ -10,17 +10,17 @@ import require$$4 from 'assert';
|
|
|
10
10
|
import zlib from 'zlib';
|
|
11
11
|
import { ElMessage, ElLoading, dayjs } from 'element-plus';
|
|
12
12
|
|
|
13
|
-
const _hoisted_1$
|
|
14
|
-
const _hoisted_2$
|
|
15
|
-
const _hoisted_3$
|
|
16
|
-
const _hoisted_4$
|
|
17
|
-
const _hoisted_5 = { class: "fm-transfer-buttons__item" };
|
|
13
|
+
const _hoisted_1$5 = { class: "fm-transfer-panel" };
|
|
14
|
+
const _hoisted_2$3 = { class: "fm-transfer-panel__header" };
|
|
15
|
+
const _hoisted_3$2 = { class: "fm-transfer-panel__body" };
|
|
16
|
+
const _hoisted_4$2 = { class: "fm-transfer-buttons__item" };
|
|
17
|
+
const _hoisted_5$1 = { class: "fm-transfer-buttons__item" };
|
|
18
18
|
const _hoisted_6 = { class: "fm-transfer-buttons__item" };
|
|
19
19
|
const _hoisted_7 = { class: "fm-transfer-buttons__item" };
|
|
20
20
|
const _hoisted_8 = { class: "fm-transfer-panel" };
|
|
21
21
|
const _hoisted_9 = { class: "fm-transfer-panel__header" };
|
|
22
22
|
const _hoisted_10 = { class: "fm-transfer-panel__body" };
|
|
23
|
-
var _sfc_main$
|
|
23
|
+
var _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
24
24
|
...{
|
|
25
25
|
name: "FmTransfer"
|
|
26
26
|
},
|
|
@@ -180,8 +180,8 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
180
180
|
default: withCtx(() => [
|
|
181
181
|
createVNode(_component_el_col, { span: 10 }, {
|
|
182
182
|
default: withCtx(() => [
|
|
183
|
-
createElementVNode("div", _hoisted_1$
|
|
184
|
-
createElementVNode("p", _hoisted_2$
|
|
183
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
184
|
+
createElementVNode("p", _hoisted_2$3, [
|
|
185
185
|
createVNode(_component_el_checkbox, {
|
|
186
186
|
modelValue: state.leftAllChecked,
|
|
187
187
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.leftAllChecked = $event),
|
|
@@ -207,7 +207,7 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
207
207
|
/* TEXT */
|
|
208
208
|
)
|
|
209
209
|
]),
|
|
210
|
-
createElementVNode("div", _hoisted_3$
|
|
210
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
211
211
|
createVNode(_component_el_input, {
|
|
212
212
|
class: "transfer-panel__filter",
|
|
213
213
|
modelValue: state.leftKeyword,
|
|
@@ -258,7 +258,7 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
258
258
|
class: "fm-transfer-buttons"
|
|
259
259
|
}, {
|
|
260
260
|
default: withCtx(() => [
|
|
261
|
-
createElementVNode("div", _hoisted_4$
|
|
261
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
262
262
|
createVNode(_component_el_button, {
|
|
263
263
|
type: "primary",
|
|
264
264
|
style: {},
|
|
@@ -266,7 +266,7 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
266
266
|
onClick: toRight
|
|
267
267
|
})
|
|
268
268
|
]),
|
|
269
|
-
createElementVNode("div", _hoisted_5, [
|
|
269
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
270
270
|
createVNode(_component_el_button, {
|
|
271
271
|
type: "primary",
|
|
272
272
|
style: {},
|
|
@@ -377,9 +377,9 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
|
|
380
|
-
const _hoisted_1$
|
|
381
|
-
const _hoisted_2$
|
|
382
|
-
var _sfc_main$
|
|
380
|
+
const _hoisted_1$4 = { class: "notice-bar-warp-text-box" };
|
|
381
|
+
const _hoisted_2$2 = ["innerHTML"];
|
|
382
|
+
var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
383
383
|
...{
|
|
384
384
|
name: "FmNoticeBar"
|
|
385
385
|
},
|
|
@@ -470,7 +470,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
470
470
|
2
|
|
471
471
|
/* CLASS */
|
|
472
472
|
)) : createCommentVNode("v-if", true),
|
|
473
|
-
createElementVNode("div", _hoisted_1$
|
|
473
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
474
474
|
createElementVNode(
|
|
475
475
|
"div",
|
|
476
476
|
{
|
|
@@ -482,7 +482,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
482
482
|
createElementVNode("div", {
|
|
483
483
|
innerHTML: props.text,
|
|
484
484
|
"data-slate-editor": ""
|
|
485
|
-
}, null, 8, _hoisted_2$
|
|
485
|
+
}, null, 8, _hoisted_2$2)
|
|
486
486
|
],
|
|
487
487
|
512
|
|
488
488
|
/* NEED_PATCH */
|
|
@@ -502,7 +502,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
502
502
|
}
|
|
503
503
|
});
|
|
504
504
|
|
|
505
|
-
var _sfc_main$
|
|
505
|
+
var _sfc_main$6 = {
|
|
506
506
|
name: "dragVerify",
|
|
507
507
|
props: {
|
|
508
508
|
isPassing: {
|
|
@@ -775,18 +775,18 @@ var _export_sfc = (sfc, props) => {
|
|
|
775
775
|
return target;
|
|
776
776
|
};
|
|
777
777
|
|
|
778
|
-
const _hoisted_1$
|
|
779
|
-
const _hoisted_2 = ["src"];
|
|
780
|
-
const _hoisted_3 = {
|
|
778
|
+
const _hoisted_1$3 = { class: "drag-verify-container" };
|
|
779
|
+
const _hoisted_2$1 = ["src"];
|
|
780
|
+
const _hoisted_3$1 = {
|
|
781
781
|
key: 0,
|
|
782
782
|
class: "tips success"
|
|
783
783
|
};
|
|
784
|
-
const _hoisted_4 = {
|
|
784
|
+
const _hoisted_4$1 = {
|
|
785
785
|
key: 1,
|
|
786
786
|
class: "tips danger"
|
|
787
787
|
};
|
|
788
788
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
789
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
789
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
790
790
|
createElementVNode(
|
|
791
791
|
"div",
|
|
792
792
|
{
|
|
@@ -800,17 +800,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
800
800
|
onLoad: _cache[0] || (_cache[0] = (...args) => $options.checkimgLoaded && $options.checkimgLoaded(...args)),
|
|
801
801
|
style: normalizeStyle($data.imgStyle),
|
|
802
802
|
alt: ""
|
|
803
|
-
}, null, 46, _hoisted_2),
|
|
803
|
+
}, null, 46, _hoisted_2$1),
|
|
804
804
|
$props.showTips && $props.isPassing ? (openBlock(), createElementBlock(
|
|
805
805
|
"div",
|
|
806
|
-
_hoisted_3,
|
|
806
|
+
_hoisted_3$1,
|
|
807
807
|
toDisplayString$1($props.successTip),
|
|
808
808
|
1
|
|
809
809
|
/* TEXT */
|
|
810
810
|
)) : createCommentVNode("v-if", true),
|
|
811
811
|
$props.showTips && !$props.isPassing && $data.showErrorTip ? (openBlock(), createElementBlock(
|
|
812
812
|
"div",
|
|
813
|
-
_hoisted_4,
|
|
813
|
+
_hoisted_4$1,
|
|
814
814
|
toDisplayString$1($props.failTip),
|
|
815
815
|
1
|
|
816
816
|
/* TEXT */
|
|
@@ -884,9 +884,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
884
884
|
)
|
|
885
885
|
]);
|
|
886
886
|
}
|
|
887
|
-
var dragimg = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
887
|
+
var dragimg = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render], ["__scopeId", "data-v-9e8c9ed2"]]);
|
|
888
888
|
|
|
889
|
-
var _sfc_main$
|
|
889
|
+
var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
890
890
|
...{
|
|
891
891
|
name: "Fmselect"
|
|
892
892
|
},
|
|
@@ -23745,8 +23745,8 @@ const useApi = (url, options = {}) => {
|
|
|
23745
23745
|
};
|
|
23746
23746
|
};
|
|
23747
23747
|
|
|
23748
|
-
const _hoisted_1$
|
|
23749
|
-
var _sfc_main$
|
|
23748
|
+
const _hoisted_1$2 = { style: { "font-size": "14px", "line-height": "30px" } };
|
|
23749
|
+
var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
23750
23750
|
...{
|
|
23751
23751
|
name: "FmAutocomplete"
|
|
23752
23752
|
},
|
|
@@ -23852,7 +23852,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23852
23852
|
default: withCtx(({ item }) => [
|
|
23853
23853
|
createElementVNode(
|
|
23854
23854
|
"div",
|
|
23855
|
-
_hoisted_1$
|
|
23855
|
+
_hoisted_1$2,
|
|
23856
23856
|
toDisplayString$1(item[__props.fName]),
|
|
23857
23857
|
1
|
|
23858
23858
|
/* TEXT */
|
|
@@ -23865,7 +23865,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23865
23865
|
}
|
|
23866
23866
|
});
|
|
23867
23867
|
|
|
23868
|
-
var _sfc_main$
|
|
23868
|
+
var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
23869
23869
|
...{
|
|
23870
23870
|
name: "Fminputdropdown"
|
|
23871
23871
|
},
|
|
@@ -30043,6 +30043,244 @@ var svg = /*#__PURE__*/Object.freeze({
|
|
|
30043
30043
|
ZoomOut: zoom_out_default
|
|
30044
30044
|
});
|
|
30045
30045
|
|
|
30046
|
+
const _hoisted_1$1 = { class: "card-header" };
|
|
30047
|
+
const _hoisted_2 = { class: "tree-h-flex" };
|
|
30048
|
+
const _hoisted_3 = { class: "tree-h-left" };
|
|
30049
|
+
const _hoisted_4 = { class: "tree-h-right-group" };
|
|
30050
|
+
const _hoisted_5 = { style: { "margin-bottom": "45px" } };
|
|
30051
|
+
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
30052
|
+
...{
|
|
30053
|
+
name: "FmTree"
|
|
30054
|
+
},
|
|
30055
|
+
__name: "index",
|
|
30056
|
+
props: {
|
|
30057
|
+
checkStrictly: { type: Boolean, default: true },
|
|
30058
|
+
/**
|
|
30059
|
+
* api service name
|
|
30060
|
+
*/
|
|
30061
|
+
apiService: {
|
|
30062
|
+
type: String,
|
|
30063
|
+
default: "planOrder"
|
|
30064
|
+
},
|
|
30065
|
+
/**
|
|
30066
|
+
* api service 下的方法
|
|
30067
|
+
*/
|
|
30068
|
+
apiAction: {
|
|
30069
|
+
type: String,
|
|
30070
|
+
default: "autoQuerySearch"
|
|
30071
|
+
},
|
|
30072
|
+
paras: {
|
|
30073
|
+
type: Object,
|
|
30074
|
+
default: null
|
|
30075
|
+
},
|
|
30076
|
+
nodeKey: {
|
|
30077
|
+
type: String,
|
|
30078
|
+
default: "id"
|
|
30079
|
+
},
|
|
30080
|
+
defaultProps: {
|
|
30081
|
+
type: Object,
|
|
30082
|
+
default: { children: "children", label: "name" }
|
|
30083
|
+
}
|
|
30084
|
+
},
|
|
30085
|
+
emits: ["node-click"],
|
|
30086
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
30087
|
+
const props = __props;
|
|
30088
|
+
const filterText = ref("");
|
|
30089
|
+
const treeRef = ref();
|
|
30090
|
+
const state = reactive({
|
|
30091
|
+
loading: false,
|
|
30092
|
+
folderData: [],
|
|
30093
|
+
isShowCheckbox: false,
|
|
30094
|
+
strictly: false
|
|
30095
|
+
});
|
|
30096
|
+
onMounted(async () => {
|
|
30097
|
+
await fetchTreeData();
|
|
30098
|
+
});
|
|
30099
|
+
watch(filterText, (val) => {
|
|
30100
|
+
treeRef.value.filter(val);
|
|
30101
|
+
});
|
|
30102
|
+
const fetchTreeData = async (showLoading = true) => {
|
|
30103
|
+
if (showLoading) state.loading = true;
|
|
30104
|
+
var res = await useBaseApi(props.apiService).get(props.paras, props.apiAction);
|
|
30105
|
+
state.folderData = res.data.result ?? [];
|
|
30106
|
+
if (showLoading) state.loading = false;
|
|
30107
|
+
return res.data.result ?? [];
|
|
30108
|
+
};
|
|
30109
|
+
const getCheckedKeys = () => {
|
|
30110
|
+
return treeRef.value.getCheckedKeys();
|
|
30111
|
+
};
|
|
30112
|
+
const filterNode = (value, data) => {
|
|
30113
|
+
if (!value) return true;
|
|
30114
|
+
return data.name.includes(value);
|
|
30115
|
+
};
|
|
30116
|
+
const handleCommand = async (command) => {
|
|
30117
|
+
if ("expandAll" == command) {
|
|
30118
|
+
for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
|
|
30119
|
+
treeRef.value.store._getAllNodes()[i].expanded = true;
|
|
30120
|
+
}
|
|
30121
|
+
} else if ("collapseAll" == command) {
|
|
30122
|
+
for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
|
|
30123
|
+
treeRef.value.store._getAllNodes()[i].expanded = false;
|
|
30124
|
+
}
|
|
30125
|
+
} else if ("refresh" == command) {
|
|
30126
|
+
fetchTreeData();
|
|
30127
|
+
} else if ("rootNode" == command) {
|
|
30128
|
+
treeRef.value?.setCurrentKey();
|
|
30129
|
+
emit("node-click", { id: 0, name: "" });
|
|
30130
|
+
}
|
|
30131
|
+
};
|
|
30132
|
+
const emit = __emit;
|
|
30133
|
+
const nodeClick = (node) => {
|
|
30134
|
+
emit("node-click", { id: node.id, name: node.name });
|
|
30135
|
+
};
|
|
30136
|
+
const setCurrentKey = (key, shouldAutoExpandParent) => {
|
|
30137
|
+
treeRef.value?.setCurrentKey(key, shouldAutoExpandParent);
|
|
30138
|
+
};
|
|
30139
|
+
__expose({ fetchTreeData, getCheckedKeys, setCurrentKey });
|
|
30140
|
+
return (_ctx, _cache) => {
|
|
30141
|
+
const _component_el_input = resolveComponent("el-input");
|
|
30142
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
30143
|
+
const _component_el_button = resolveComponent("el-button");
|
|
30144
|
+
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
30145
|
+
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
30146
|
+
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
30147
|
+
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
30148
|
+
const _component_el_tree = resolveComponent("el-tree");
|
|
30149
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
30150
|
+
const _component_el_card = resolveComponent("el-card");
|
|
30151
|
+
const _directive_loading = resolveDirective("loading");
|
|
30152
|
+
return openBlock(), createBlock(_component_el_card, {
|
|
30153
|
+
class: "box-card",
|
|
30154
|
+
shadow: "hover",
|
|
30155
|
+
"body-style": "height:100%;overflow:auto;padding:5px;width:100%;"
|
|
30156
|
+
}, {
|
|
30157
|
+
header: withCtx(() => [
|
|
30158
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
30159
|
+
createElementVNode("div", _hoisted_2, [
|
|
30160
|
+
createElementVNode("div", _hoisted_3, [
|
|
30161
|
+
createVNode(_component_el_input, {
|
|
30162
|
+
"prefix-icon": unref(search_default),
|
|
30163
|
+
modelValue: filterText.value,
|
|
30164
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterText.value = $event),
|
|
30165
|
+
modelModifiers: { lazy: true },
|
|
30166
|
+
clearable: "",
|
|
30167
|
+
placeholder: "\u7C7B\u578B\u540D\u79F0"
|
|
30168
|
+
}, null, 8, ["prefix-icon", "modelValue"])
|
|
30169
|
+
]),
|
|
30170
|
+
createElementVNode("div", _hoisted_4, [
|
|
30171
|
+
createVNode(_component_el_dropdown, { onCommand: handleCommand }, {
|
|
30172
|
+
dropdown: withCtx(() => [
|
|
30173
|
+
createVNode(_component_el_dropdown_menu, null, {
|
|
30174
|
+
default: withCtx(() => [
|
|
30175
|
+
createVNode(_component_el_dropdown_item, { command: "expandAll" }, {
|
|
30176
|
+
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
30177
|
+
createTextVNode("\u5168\u90E8\u5C55\u5F00")
|
|
30178
|
+
])),
|
|
30179
|
+
_: 1,
|
|
30180
|
+
__: [2]
|
|
30181
|
+
}),
|
|
30182
|
+
createVNode(_component_el_dropdown_item, { command: "collapseAll" }, {
|
|
30183
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
30184
|
+
createTextVNode("\u5168\u90E8\u6298\u53E0")
|
|
30185
|
+
])),
|
|
30186
|
+
_: 1,
|
|
30187
|
+
__: [3]
|
|
30188
|
+
}),
|
|
30189
|
+
createVNode(_component_el_dropdown_item, { command: "rootNode" }, {
|
|
30190
|
+
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
30191
|
+
createTextVNode("\u6839\u8282\u70B9")
|
|
30192
|
+
])),
|
|
30193
|
+
_: 1,
|
|
30194
|
+
__: [4]
|
|
30195
|
+
}),
|
|
30196
|
+
createVNode(_component_el_dropdown_item, { command: "refresh" }, {
|
|
30197
|
+
default: withCtx(() => _cache[5] || (_cache[5] = [
|
|
30198
|
+
createTextVNode("\u5237\u65B0")
|
|
30199
|
+
])),
|
|
30200
|
+
_: 1,
|
|
30201
|
+
__: [5]
|
|
30202
|
+
})
|
|
30203
|
+
]),
|
|
30204
|
+
_: 1
|
|
30205
|
+
/* STABLE */
|
|
30206
|
+
})
|
|
30207
|
+
]),
|
|
30208
|
+
default: withCtx(() => [
|
|
30209
|
+
createVNode(_component_el_button, { style: { "margin-left": "8px", "width": "34px" } }, {
|
|
30210
|
+
default: withCtx(() => [
|
|
30211
|
+
createVNode(_component_el_icon, { class: "el-icon--center" }, {
|
|
30212
|
+
default: withCtx(() => [
|
|
30213
|
+
createVNode(unref(more_filled_default))
|
|
30214
|
+
]),
|
|
30215
|
+
_: 1
|
|
30216
|
+
/* STABLE */
|
|
30217
|
+
})
|
|
30218
|
+
]),
|
|
30219
|
+
_: 1
|
|
30220
|
+
/* STABLE */
|
|
30221
|
+
})
|
|
30222
|
+
]),
|
|
30223
|
+
_: 1
|
|
30224
|
+
/* STABLE */
|
|
30225
|
+
})
|
|
30226
|
+
]),
|
|
30227
|
+
!props.checkStrictly && state.isShowCheckbox ? (openBlock(), createBlock(_component_el_checkbox, {
|
|
30228
|
+
key: 0,
|
|
30229
|
+
modelValue: state.strictly,
|
|
30230
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.strictly = $event),
|
|
30231
|
+
label: "\u8054\u52A8",
|
|
30232
|
+
style: { "margin-left": "8px" },
|
|
30233
|
+
border: ""
|
|
30234
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("v-if", true)
|
|
30235
|
+
])
|
|
30236
|
+
])
|
|
30237
|
+
]),
|
|
30238
|
+
default: withCtx(() => [
|
|
30239
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_5, [
|
|
30240
|
+
createVNode(_component_el_scrollbar, null, {
|
|
30241
|
+
default: withCtx(() => [
|
|
30242
|
+
createVNode(_component_el_tree, {
|
|
30243
|
+
ref_key: "treeRef",
|
|
30244
|
+
ref: treeRef,
|
|
30245
|
+
class: "filter-tree",
|
|
30246
|
+
data: state.folderData,
|
|
30247
|
+
"node-key": __props.nodeKey,
|
|
30248
|
+
props: __props.defaultProps,
|
|
30249
|
+
"filter-node-method": filterNode,
|
|
30250
|
+
onNodeClick: nodeClick,
|
|
30251
|
+
"show-checkbox": state.isShowCheckbox,
|
|
30252
|
+
"default-expand-all": "",
|
|
30253
|
+
"highlight-current": "",
|
|
30254
|
+
"check-strictly": !state.strictly
|
|
30255
|
+
}, {
|
|
30256
|
+
default: withCtx(({ node }) => [
|
|
30257
|
+
createCommentVNode(' <el-icon v-if="node.level < 4" size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-FolderOpened /></el-icon>\r\n <el-icon v-else size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Folder /></el-icon> '),
|
|
30258
|
+
createTextVNode(
|
|
30259
|
+
" " + toDisplayString$1(node.label),
|
|
30260
|
+
1
|
|
30261
|
+
/* TEXT */
|
|
30262
|
+
)
|
|
30263
|
+
]),
|
|
30264
|
+
_: 1
|
|
30265
|
+
/* STABLE */
|
|
30266
|
+
}, 8, ["data", "node-key", "props", "show-checkbox", "check-strictly"])
|
|
30267
|
+
]),
|
|
30268
|
+
_: 1
|
|
30269
|
+
/* STABLE */
|
|
30270
|
+
})
|
|
30271
|
+
])), [
|
|
30272
|
+
[_directive_loading, state.loading]
|
|
30273
|
+
])
|
|
30274
|
+
]),
|
|
30275
|
+
_: 1
|
|
30276
|
+
/* STABLE */
|
|
30277
|
+
});
|
|
30278
|
+
};
|
|
30279
|
+
}
|
|
30280
|
+
});
|
|
30281
|
+
|
|
30282
|
+
var fmtree = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-a783e82e"]]);
|
|
30283
|
+
|
|
30046
30284
|
const _hoisted_1 = ["src"];
|
|
30047
30285
|
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
30048
30286
|
...{
|
|
@@ -30142,12 +30380,13 @@ function elSvg(app) {
|
|
|
30142
30380
|
}
|
|
30143
30381
|
}
|
|
30144
30382
|
|
|
30145
|
-
const FmTransfer = _sfc_main$
|
|
30146
|
-
const FmNoticeBar = _sfc_main$
|
|
30383
|
+
const FmTransfer = _sfc_main$8;
|
|
30384
|
+
const FmNoticeBar = _sfc_main$7;
|
|
30147
30385
|
const FmDragImg = dragimg;
|
|
30148
|
-
const Fmselect = _sfc_main$
|
|
30149
|
-
const FmAutocomplete = _sfc_main$
|
|
30150
|
-
const Fminputdropdown = _sfc_main$
|
|
30386
|
+
const Fmselect = _sfc_main$5;
|
|
30387
|
+
const FmAutocomplete = _sfc_main$4;
|
|
30388
|
+
const Fminputdropdown = _sfc_main$3;
|
|
30389
|
+
const FmTree = fmtree;
|
|
30151
30390
|
|
|
30152
30391
|
const makeInstaller = (components = []) => {
|
|
30153
30392
|
const install = (app) => {
|
|
@@ -30198,7 +30437,8 @@ const plugins = [
|
|
|
30198
30437
|
FmNoticeBar,
|
|
30199
30438
|
Fmselect,
|
|
30200
30439
|
FmAutocomplete,
|
|
30201
|
-
Fminputdropdown
|
|
30440
|
+
Fminputdropdown,
|
|
30441
|
+
FmTree
|
|
30202
30442
|
];
|
|
30203
30443
|
|
|
30204
30444
|
var installer = makeInstaller([...plugins]);
|
|
@@ -52951,4 +53191,4 @@ const version = "1.0.0";
|
|
|
52951
53191
|
|
|
52952
53192
|
const install = installer.install;
|
|
52953
53193
|
|
|
52954
|
-
export { AccountTypeEnum, FmAutocomplete, FmDragImg, FmLogin, FmNoticeBar, FmTransfer, Fminputdropdown, Fmselect, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PUB, Session, Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, commonFunctionObj, dataURLtoBlob, decryptJWT, installer as default, directive, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, elSvg, emitter, feature, fileToBase64, formatAxis, formatDate, formatPast, getCountryCode, getFileName, getFileUrl, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, pinia, refreshAccessTokenKey, removeDuplicate, request2, service, setIntroduction, setupI18n, showFileUrl, signatureByKSort, tansParams, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useKeepALiveNames, useLoginApi, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version };
|
|
53194
|
+
export { AccountTypeEnum, FmAutocomplete, FmDragImg, FmLogin, FmNoticeBar, FmTransfer, FmTree, Fminputdropdown, Fmselect, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PUB, Session, Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, commonFunctionObj, dataURLtoBlob, decryptJWT, installer as default, directive, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, elSvg, emitter, feature, fileToBase64, formatAxis, formatDate, formatPast, getCountryCode, getFileName, getFileUrl, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, pinia, refreshAccessTokenKey, removeDuplicate, request2, service, setIntroduction, setupI18n, showFileUrl, signatureByKSort, tansParams, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useKeepALiveNames, useLoginApi, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version };
|
package/lib/component.js
CHANGED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { TreeKey } from 'element-plus/es/components/tree/src/tree.type';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { TreeKey } from 'element-plus';
|
|
4
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
|
+
checkStrictly: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* api service name
|
|
11
|
+
*/
|
|
12
|
+
apiService: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* api service 下的方法
|
|
18
|
+
*/
|
|
19
|
+
apiAction: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
paras: {
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
default: null;
|
|
26
|
+
};
|
|
27
|
+
nodeKey: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
defaultProps: {
|
|
32
|
+
type: ObjectConstructor;
|
|
33
|
+
default: {
|
|
34
|
+
children: string;
|
|
35
|
+
label: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}>, {
|
|
39
|
+
fetchTreeData: (showLoading?: boolean) => Promise<any>;
|
|
40
|
+
getCheckedKeys: () => TreeKey[];
|
|
41
|
+
setCurrentKey: (key?: TreeKey | undefined, shouldAutoExpandParent?: boolean | undefined) => void;
|
|
42
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
43
|
+
"node-click": (...args: any[]) => void;
|
|
44
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
45
|
+
checkStrictly: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* api service name
|
|
51
|
+
*/
|
|
52
|
+
apiService: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* api service 下的方法
|
|
58
|
+
*/
|
|
59
|
+
apiAction: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
paras: {
|
|
64
|
+
type: ObjectConstructor;
|
|
65
|
+
default: null;
|
|
66
|
+
};
|
|
67
|
+
nodeKey: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
defaultProps: {
|
|
72
|
+
type: ObjectConstructor;
|
|
73
|
+
default: {
|
|
74
|
+
children: string;
|
|
75
|
+
label: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}>> & Readonly<{
|
|
79
|
+
"onNode-click"?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
}>, {
|
|
81
|
+
apiService: string;
|
|
82
|
+
apiAction: string;
|
|
83
|
+
checkStrictly: boolean;
|
|
84
|
+
paras: Record<string, any>;
|
|
85
|
+
nodeKey: string;
|
|
86
|
+
defaultProps: Record<string, any>;
|
|
87
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
88
|
+
treeRef: unknown;
|
|
89
|
+
}, any>;
|
|
90
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { elSvg } from './svgIcon';
|
|
2
2
|
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
3
|
+
import { TreeKey } from 'element-plus';
|
|
4
|
+
import { TreeKey } from 'element-plus/es/components/tree/src/tree.type';
|
|
3
5
|
declare const FmTransfer: DefineComponent<ExtractPropTypes<{
|
|
4
6
|
leftTitle: StringConstructor;
|
|
5
7
|
rightTitle: StringConstructor;
|
|
@@ -688,4 +690,78 @@ declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
|
|
|
688
690
|
inputWidth: string;
|
|
689
691
|
dropWidth: string;
|
|
690
692
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
691
|
-
|
|
693
|
+
declare const FmTree: DefineComponent<ExtractPropTypes<{
|
|
694
|
+
checkStrictly: {
|
|
695
|
+
type: BooleanConstructor;
|
|
696
|
+
default: boolean;
|
|
697
|
+
};
|
|
698
|
+
apiService: {
|
|
699
|
+
type: StringConstructor;
|
|
700
|
+
default: string;
|
|
701
|
+
};
|
|
702
|
+
apiAction: {
|
|
703
|
+
type: StringConstructor;
|
|
704
|
+
default: string;
|
|
705
|
+
};
|
|
706
|
+
paras: {
|
|
707
|
+
type: ObjectConstructor;
|
|
708
|
+
default: null;
|
|
709
|
+
};
|
|
710
|
+
nodeKey: {
|
|
711
|
+
type: StringConstructor;
|
|
712
|
+
default: string;
|
|
713
|
+
};
|
|
714
|
+
defaultProps: {
|
|
715
|
+
type: ObjectConstructor;
|
|
716
|
+
default: {
|
|
717
|
+
children: string;
|
|
718
|
+
label: string;
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
}>, {
|
|
722
|
+
fetchTreeData: (showLoading?: boolean) => Promise<any>;
|
|
723
|
+
getCheckedKeys: () => TreeKey[];
|
|
724
|
+
setCurrentKey: (key?: TreeKey | undefined, shouldAutoExpandParent?: boolean | undefined) => void;
|
|
725
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
726
|
+
"node-click": (...args: any[]) => void;
|
|
727
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
728
|
+
checkStrictly: {
|
|
729
|
+
type: BooleanConstructor;
|
|
730
|
+
default: boolean;
|
|
731
|
+
};
|
|
732
|
+
apiService: {
|
|
733
|
+
type: StringConstructor;
|
|
734
|
+
default: string;
|
|
735
|
+
};
|
|
736
|
+
apiAction: {
|
|
737
|
+
type: StringConstructor;
|
|
738
|
+
default: string;
|
|
739
|
+
};
|
|
740
|
+
paras: {
|
|
741
|
+
type: ObjectConstructor;
|
|
742
|
+
default: null;
|
|
743
|
+
};
|
|
744
|
+
nodeKey: {
|
|
745
|
+
type: StringConstructor;
|
|
746
|
+
default: string;
|
|
747
|
+
};
|
|
748
|
+
defaultProps: {
|
|
749
|
+
type: ObjectConstructor;
|
|
750
|
+
default: {
|
|
751
|
+
children: string;
|
|
752
|
+
label: string;
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
}>> & Readonly<{
|
|
756
|
+
"onNode-click"?: ((...args: any[]) => any) | undefined;
|
|
757
|
+
}>, {
|
|
758
|
+
apiService: string;
|
|
759
|
+
apiAction: string;
|
|
760
|
+
checkStrictly: boolean;
|
|
761
|
+
paras: Record<string, any>;
|
|
762
|
+
nodeKey: string;
|
|
763
|
+
defaultProps: Record<string, any>;
|
|
764
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
765
|
+
treeRef: unknown;
|
|
766
|
+
}, any>;
|
|
767
|
+
export { FmTransfer, FmNoticeBar, FmDragImg, Fmselect, FmAutocomplete, Fminputdropdown, FmTree, elSvg };
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
.drag_verify[data-v-9e8c9ed2]{background-color:#e8e8e8;overflow:hidden;position:relative;text-align:center}.drag_verify .dv_handler[data-v-9e8c9ed2]{cursor:move;left:0;position:absolute;top:0}.drag_verify .dv_handler i[data-v-9e8c9ed2]{color:#666;font-size:16px;padding-left:0}.drag_verify .dv_handler .el-icon-circle-check[data-v-9e8c9ed2]{color:#6c6;margin-top:9px}.drag_verify .dv_progress_bar[data-v-9e8c9ed2]{height:34px;position:absolute;width:0}.drag_verify .dv_text[data-v-9e8c9ed2]{background:-webkit-gradient(linear,left top,right top,color-stop(0,var(--textColor)),color-stop(.4,var(--textColor)),color-stop(.5,#fff),color-stop(.6,var(--textColor)),color-stop(1,var(--textColor)));-webkit-background-clip:text;color:transparent;position:absolute;top:0;-moz-user-select:none;-webkit-user-select:none;user-select:none;-o-user-select:none;-ms-user-select:none;-webkit-text-fill-color:transparent;-webkit-text-size-adjust:none;animation:slidetounlock 3s infinite}.drag_verify .dv_text[data-v-9e8c9ed2] *{-webkit-text-fill-color:var(--textColor)}.goFirst[data-v-9e8c9ed2]{left:0!important;transition:left .5s}.goOrigin[data-v-9e8c9ed2]{transition:transform .5s}.goKeep[data-v-9e8c9ed2]{transition:left .2s}.goFirst2[data-v-9e8c9ed2]{transition:width .5s;width:0!important}.drag-verify-container[data-v-9e8c9ed2]{border-radius:50%;line-height:0;position:relative}.move-bar[data-v-9e8c9ed2]{position:absolute;z-index:100}.clip-bar[data-v-9e8c9ed2]{background:hsla(0,0%,100%,.8);position:absolute}.refresh[data-v-9e8c9ed2]{cursor:pointer;font-size:20px;position:absolute;right:5px;top:5px;z-index:200}.tips[data-v-9e8c9ed2]{bottom:25px;font-size:12px;height:20px;line-height:20px;position:absolute;text-align:center;width:100%;z-index:200}.tips.success[data-v-9e8c9ed2]{background:hsla(0,0%,100%,.6);color:green}.tips.danger[data-v-9e8c9ed2]{background:rgba(0,0,0,.6);color:#ff0}.check-img[data-v-9e8c9ed2]{border-radius:50%;width:100%}
|
|
2
|
+
|
|
3
|
+
.box-card[data-v-a783e82e]{flex:1}.box-card[data-v-a783e82e]>.el-card__header{padding:5px}.tree-h-flex[data-v-a783e82e]{align-items:center;display:flex}.tree-h-left[data-v-a783e82e]{flex:1;min-width:0;width:100%}.tree-h-right-group[data-v-a783e82e]{align-items:center;display:flex}
|
package/lib/index.js
CHANGED
|
@@ -52,6 +52,7 @@ exports.FmAutocomplete = index$1.FmAutocomplete;
|
|
|
52
52
|
exports.FmDragImg = index$1.FmDragImg;
|
|
53
53
|
exports.FmNoticeBar = index$1.FmNoticeBar;
|
|
54
54
|
exports.FmTransfer = index$1.FmTransfer;
|
|
55
|
+
exports.FmTree = index$1.FmTree;
|
|
55
56
|
exports.Fminputdropdown = index$1.Fminputdropdown;
|
|
56
57
|
exports.Fmselect = index$1.Fmselect;
|
|
57
58
|
exports.elSvg = index$2.elSvg;
|