fit2cloud-ui-plus 0.0.1-beta.1 → 0.0.1-beta.10
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 +349 -1264
- package/lib/fit2cloud-ui-plus.umd.js +1 -1
- package/package.json +5 -10
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/filter-bar/FuFilter.vue +19 -14
- package/src/components/filter-bar/FuFilterBar.vue +16 -11
- package/src/components/filter-bar/FuSearchInput.vue +8 -2
- package/src/components/filter-bar/filter-components/FuFilterDate.vue +17 -13
- package/src/components/filter-bar/filter-components/FuFilterDateTime.vue +16 -13
- package/src/components/filter-bar/filter-components/FuFilterSelect.vue +17 -12
- package/src/components/filter-bar/index.ts +11 -12
- package/src/components/read-write-switch/FuInputRwSwitch.vue +9 -5
- package/src/components/read-write-switch/FuReadWriteSwitch.vue +38 -36
- package/src/components/read-write-switch/FuSelectRwSwitch.vue +11 -7
- package/src/components/read-write-switch/types.ts +4 -0
- package/src/components/split-pane/FuSplitPane.vue +3 -3
- package/src/components/table/FuTable.vue +16 -25
- package/src/components/table/FuTableBody.ts +38 -34
- package/src/components/table/{table-column-dropdown/FuTableColumnDropdown.vue → FuTableColumnDropdown.vue} +5 -2
- package/src/components/table/index.ts +11 -7
- package/src/components/table/table-column-select/FuTableColumnSelectDialog.vue +15 -20
- package/src/components/table/table-column-select/FuTableColumnSelectPopover.vue +12 -11
- package/src/components/table/table-column-select/utils.ts +10 -7
- package/src/components/table/table-operations/FuTableButton.vue +1 -4
- package/src/components/table/table-operations/FuTableMoreButton.vue +5 -3
- package/src/components/table/table-operations/FuTableOperations.vue +6 -7
- package/src/components/table/types.ts +3 -0
- package/src/components/tabs/FuTabs.vue +4 -2
- package/src/hooks/index.ts +2 -0
- package/src/hooks/use-global-config/index.ts +0 -15
- package/src/hooks/use-size/index.ts +29 -0
- package/src/styles/common/variables.scss +2 -6
- package/src/styles/components/filter-bar.scss +3 -3
- package/src/styles/components/split-pane.scss +1 -1
- package/src/styles/components/steps.scss +2 -2
- package/src/styles/components/table.scss +3 -5
- package/src/styles/components/tabs.scss +1 -1
- package/src/styles/index.scss +0 -1
- package/src/tools/size.ts +6 -0
- package/src/tools/theme.ts +0 -12
- package/src/tools/types.ts +9 -0
- package/src/tools/utils.ts +36 -36
- package/src/tools/vnode.ts +47 -0
- package/src/components/search-bar/FuComplexSearch.vue +0 -108
- package/src/components/search-bar/FuQuickSearch.vue +0 -43
- package/src/components/search-bar/FuSearchBar.vue +0 -165
- package/src/components/search-bar/FuSearchBarButton.vue +0 -14
- package/src/components/search-bar/FuSearchContions.vue +0 -24
- package/src/components/search-bar/index.ts +0 -13
- package/src/components/search-bar/store.ts +0 -25
- package/src/components/speed-dial/FuSpeedDial.vue +0 -280
- package/src/components/speed-dial/FuSpeedDialActionButton.vue +0 -88
- package/src/components/speed-dial/FuSpeedDialButton.vue +0 -42
- package/src/components/speed-dial/FuSpeedDialItem.vue +0 -88
- package/src/components/speed-dial/index.ts +0 -11
- package/src/components/steps/FuHorizontalNavigation.vue +0 -18
- package/src/components/steps/FuHorizontalSteps.vue +0 -94
- package/src/components/steps/FuStep.vue +0 -13
- package/src/components/steps/FuSteps.vue +0 -22
- package/src/components/steps/FuStepsFooter.ts +0 -79
- package/src/components/steps/FuVerticalNavigation.vue +0 -35
- package/src/components/steps/FuVerticalSteps.vue +0 -79
- package/src/components/steps/Stepper.ts +0 -188
- package/src/components/steps/index.ts +0 -11
- package/src/components/table/table-column-dropdown/index.ts +0 -7
- package/src/components/table/table-column-select/index.ts +0 -8
- package/src/components/table/table-operations/index.ts +0 -12
- package/src/components/virtual-scroller/FuVirtualHorizontalScroll.js +0 -96
- package/src/components/virtual-scroller/FuVirtualScroll.js +0 -15
- package/src/components/virtual-scroller/FuVirtualVerticalScroll.js +0 -95
- package/src/components/virtual-scroller/index.js +0 -10
- package/src/styles/components/search-bar.scss +0 -285
|
@@ -17,11 +17,9 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
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, withDirectives, vModelText, useSlots, normalizeStyle, Transition, reactive, onUpdated, vShow, normalizeProps, guardReactiveProps } from "vue";
|
|
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, isVNode, Comment, useSlots, onUpdated, withDirectives, vShow, normalizeProps, guardReactiveProps } from "vue";
|
|
21
|
+
const COMPONENTS_SIZE = ["", "default", "small", "large"];
|
|
22
|
+
const validateSize = (val) => ["", ...COMPONENTS_SIZE].includes(val);
|
|
25
23
|
var _export_sfc = (sfc, props) => {
|
|
26
24
|
const target = sfc.__vccOpts || sfc;
|
|
27
25
|
for (const [key, val] of props) {
|
|
@@ -29,9 +27,13 @@ var _export_sfc = (sfc, props) => {
|
|
|
29
27
|
}
|
|
30
28
|
return target;
|
|
31
29
|
};
|
|
32
|
-
const __default__$
|
|
33
|
-
const _sfc_main$
|
|
30
|
+
const __default__$f = { name: "FuSearchInput" };
|
|
31
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$f), {
|
|
34
32
|
props: {
|
|
33
|
+
size: {
|
|
34
|
+
type: String,
|
|
35
|
+
validator: validateSize
|
|
36
|
+
},
|
|
35
37
|
value: String
|
|
36
38
|
},
|
|
37
39
|
emits: ["input", "change"],
|
|
@@ -63,11 +65,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
63
65
|
onInput: input,
|
|
64
66
|
onBlur: blur,
|
|
65
67
|
onKeydown: keydown
|
|
66
|
-
}, _ctx.$attrs, {
|
|
68
|
+
}, _ctx.$attrs, {
|
|
69
|
+
clearable: "",
|
|
70
|
+
size: __props.size
|
|
71
|
+
}), null, 16, ["modelValue", "size"]);
|
|
67
72
|
};
|
|
68
73
|
}
|
|
69
74
|
}));
|
|
70
|
-
var FuSearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
75
|
+
var FuSearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/FuSearchInput.vue"]]);
|
|
71
76
|
const globalConfig = ref();
|
|
72
77
|
function useGlobalConfig(key, defaultValue = void 0) {
|
|
73
78
|
const config = getCurrentInstance() ? inject(Symbol(), globalConfig) : globalConfig;
|
|
@@ -129,21 +134,21 @@ function isSymbol(value) {
|
|
|
129
134
|
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
130
135
|
}
|
|
131
136
|
function arrayMap(array, iteratee) {
|
|
132
|
-
var
|
|
133
|
-
while (++
|
|
134
|
-
result[
|
|
137
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
138
|
+
while (++index < length) {
|
|
139
|
+
result[index] = iteratee(array[index], index, array);
|
|
135
140
|
}
|
|
136
141
|
return result;
|
|
137
142
|
}
|
|
138
|
-
var isArray = Array.isArray;
|
|
139
|
-
var isArray$
|
|
143
|
+
var isArray$1 = Array.isArray;
|
|
144
|
+
var isArray$2 = isArray$1;
|
|
140
145
|
var INFINITY$1 = 1 / 0;
|
|
141
146
|
var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
142
147
|
function baseToString(value) {
|
|
143
148
|
if (typeof value == "string") {
|
|
144
149
|
return value;
|
|
145
150
|
}
|
|
146
|
-
if (isArray$
|
|
151
|
+
if (isArray$2(value)) {
|
|
147
152
|
return arrayMap(value, baseToString) + "";
|
|
148
153
|
}
|
|
149
154
|
if (isSymbol(value)) {
|
|
@@ -213,7 +218,7 @@ function eq(value, other) {
|
|
|
213
218
|
}
|
|
214
219
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
215
220
|
function isKey(value, object) {
|
|
216
|
-
if (isArray$
|
|
221
|
+
if (isArray$2(value)) {
|
|
217
222
|
return false;
|
|
218
223
|
}
|
|
219
224
|
var type = typeof value;
|
|
@@ -258,10 +263,10 @@ function hashSet(key, value) {
|
|
|
258
263
|
return this;
|
|
259
264
|
}
|
|
260
265
|
function Hash(entries) {
|
|
261
|
-
var
|
|
266
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
262
267
|
this.clear();
|
|
263
|
-
while (++
|
|
264
|
-
var entry = entries[
|
|
268
|
+
while (++index < length) {
|
|
269
|
+
var entry = entries[index];
|
|
265
270
|
this.set(entry[0], entry[1]);
|
|
266
271
|
}
|
|
267
272
|
}
|
|
@@ -286,41 +291,41 @@ function assocIndexOf(array, key) {
|
|
|
286
291
|
var arrayProto = Array.prototype;
|
|
287
292
|
var splice = arrayProto.splice;
|
|
288
293
|
function listCacheDelete(key) {
|
|
289
|
-
var data = this.__data__,
|
|
290
|
-
if (
|
|
294
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
295
|
+
if (index < 0) {
|
|
291
296
|
return false;
|
|
292
297
|
}
|
|
293
298
|
var lastIndex = data.length - 1;
|
|
294
|
-
if (
|
|
299
|
+
if (index == lastIndex) {
|
|
295
300
|
data.pop();
|
|
296
301
|
} else {
|
|
297
|
-
splice.call(data,
|
|
302
|
+
splice.call(data, index, 1);
|
|
298
303
|
}
|
|
299
304
|
--this.size;
|
|
300
305
|
return true;
|
|
301
306
|
}
|
|
302
307
|
function listCacheGet(key) {
|
|
303
|
-
var data = this.__data__,
|
|
304
|
-
return
|
|
308
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
309
|
+
return index < 0 ? void 0 : data[index][1];
|
|
305
310
|
}
|
|
306
311
|
function listCacheHas(key) {
|
|
307
312
|
return assocIndexOf(this.__data__, key) > -1;
|
|
308
313
|
}
|
|
309
314
|
function listCacheSet(key, value) {
|
|
310
|
-
var data = this.__data__,
|
|
311
|
-
if (
|
|
315
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
316
|
+
if (index < 0) {
|
|
312
317
|
++this.size;
|
|
313
318
|
data.push([key, value]);
|
|
314
319
|
} else {
|
|
315
|
-
data[
|
|
320
|
+
data[index][1] = value;
|
|
316
321
|
}
|
|
317
322
|
return this;
|
|
318
323
|
}
|
|
319
324
|
function ListCache(entries) {
|
|
320
|
-
var
|
|
325
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
321
326
|
this.clear();
|
|
322
|
-
while (++
|
|
323
|
-
var entry = entries[
|
|
327
|
+
while (++index < length) {
|
|
328
|
+
var entry = entries[index];
|
|
324
329
|
this.set(entry[0], entry[1]);
|
|
325
330
|
}
|
|
326
331
|
}
|
|
@@ -329,13 +334,13 @@ ListCache.prototype["delete"] = listCacheDelete;
|
|
|
329
334
|
ListCache.prototype.get = listCacheGet;
|
|
330
335
|
ListCache.prototype.has = listCacheHas;
|
|
331
336
|
ListCache.prototype.set = listCacheSet;
|
|
332
|
-
var Map
|
|
333
|
-
var Map$
|
|
337
|
+
var Map = getNative(root$1, "Map");
|
|
338
|
+
var Map$1 = Map;
|
|
334
339
|
function mapCacheClear() {
|
|
335
340
|
this.size = 0;
|
|
336
341
|
this.__data__ = {
|
|
337
342
|
"hash": new Hash(),
|
|
338
|
-
"map": new (Map$
|
|
343
|
+
"map": new (Map$1 || ListCache)(),
|
|
339
344
|
"string": new Hash()
|
|
340
345
|
};
|
|
341
346
|
}
|
|
@@ -365,10 +370,10 @@ function mapCacheSet(key, value) {
|
|
|
365
370
|
return this;
|
|
366
371
|
}
|
|
367
372
|
function MapCache(entries) {
|
|
368
|
-
var
|
|
373
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
369
374
|
this.clear();
|
|
370
|
-
while (++
|
|
371
|
-
var entry = entries[
|
|
375
|
+
while (++index < length) {
|
|
376
|
+
var entry = entries[index];
|
|
372
377
|
this.set(entry[0], entry[1]);
|
|
373
378
|
}
|
|
374
379
|
}
|
|
@@ -423,7 +428,7 @@ function toString(value) {
|
|
|
423
428
|
return value == null ? "" : baseToString(value);
|
|
424
429
|
}
|
|
425
430
|
function castPath(value, object) {
|
|
426
|
-
if (isArray$
|
|
431
|
+
if (isArray$2(value)) {
|
|
427
432
|
return value;
|
|
428
433
|
}
|
|
429
434
|
return isKey(value, object) ? [value] : stringToPath$1(toString(value));
|
|
@@ -438,11 +443,11 @@ function toKey(value) {
|
|
|
438
443
|
}
|
|
439
444
|
function baseGet(object, path) {
|
|
440
445
|
path = castPath(path, object);
|
|
441
|
-
var
|
|
442
|
-
while (object != null &&
|
|
443
|
-
object = object[toKey(path[
|
|
446
|
+
var index = 0, length = path.length;
|
|
447
|
+
while (object != null && index < length) {
|
|
448
|
+
object = object[toKey(path[index++])];
|
|
444
449
|
}
|
|
445
|
-
return
|
|
450
|
+
return index && index == length ? object : void 0;
|
|
446
451
|
}
|
|
447
452
|
function get(object, path, defaultValue) {
|
|
448
453
|
var result = object == null ? void 0 : baseGet(object, path);
|
|
@@ -524,18 +529,19 @@ const useLocale = () => {
|
|
|
524
529
|
const locale = useGlobalConfig("locale");
|
|
525
530
|
return buildLocaleContext(computed(() => locale.value || Chinese));
|
|
526
531
|
};
|
|
527
|
-
const _hoisted_1$
|
|
528
|
-
const _hoisted_2$
|
|
529
|
-
const _sfc_main$
|
|
532
|
+
const _hoisted_1$a = { class: "fu-filter-conditions" };
|
|
533
|
+
const _hoisted_2$7 = { class: "condition-text" };
|
|
534
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
535
|
+
__name: "FuFilterConditions",
|
|
530
536
|
props: {
|
|
531
537
|
conditions: Array
|
|
532
538
|
},
|
|
533
539
|
emits: ["change"],
|
|
534
540
|
setup(__props, { emit }) {
|
|
535
541
|
const props = __props;
|
|
536
|
-
function remove(
|
|
542
|
+
function remove(index) {
|
|
537
543
|
var _a;
|
|
538
|
-
(_a = props.conditions) == null ? void 0 : _a.splice(
|
|
544
|
+
(_a = props.conditions) == null ? void 0 : _a.splice(index, 1);
|
|
539
545
|
emit("change", props.conditions);
|
|
540
546
|
}
|
|
541
547
|
function text(condition) {
|
|
@@ -544,16 +550,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
544
550
|
return (_ctx, _cache) => {
|
|
545
551
|
const _component_CloseBold = resolveComponent("CloseBold");
|
|
546
552
|
const _component_el_icon = resolveComponent("el-icon");
|
|
547
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
548
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.conditions, (condition,
|
|
553
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
554
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.conditions, (condition, index) => {
|
|
549
555
|
return openBlock(), createElementBlock("div", {
|
|
550
556
|
class: "fu-filter-conditions__item",
|
|
551
|
-
key:
|
|
557
|
+
key: index
|
|
552
558
|
}, [
|
|
553
|
-
createElementVNode("div", _hoisted_2$
|
|
559
|
+
createElementVNode("div", _hoisted_2$7, toDisplayString(text(condition)), 1),
|
|
554
560
|
createVNode(_component_el_icon, {
|
|
555
561
|
class: "fu-scale-click",
|
|
556
|
-
onClick: ($event) => remove(
|
|
562
|
+
onClick: ($event) => remove(index)
|
|
557
563
|
}, {
|
|
558
564
|
default: withCtx(() => [
|
|
559
565
|
createVNode(_component_CloseBold)
|
|
@@ -566,17 +572,21 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
566
572
|
};
|
|
567
573
|
}
|
|
568
574
|
});
|
|
569
|
-
var FuFilterConditions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
575
|
+
var FuFilterConditions = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/FuFilterConditions.vue"]]);
|
|
570
576
|
const selectKey = Symbol("SelectKey");
|
|
571
577
|
const referenceKey = Symbol("ReferenceKey");
|
|
572
|
-
const _hoisted_1$
|
|
573
|
-
const _hoisted_2$
|
|
574
|
-
const _hoisted_3$
|
|
575
|
-
const _hoisted_4$
|
|
576
|
-
const _hoisted_5$
|
|
577
|
-
const __default__$
|
|
578
|
-
const _sfc_main$
|
|
578
|
+
const _hoisted_1$9 = { class: "fu-filter__result" };
|
|
579
|
+
const _hoisted_2$6 = { style: { "opacity": "0.6" } };
|
|
580
|
+
const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("div", { class: "fu-filter__split" }, null, -1);
|
|
581
|
+
const _hoisted_4$2 = { class: "drawer-body" };
|
|
582
|
+
const _hoisted_5$1 = { class: "drawer-footer" };
|
|
583
|
+
const __default__$e = { name: "FuFilter" };
|
|
584
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$e), {
|
|
579
585
|
props: {
|
|
586
|
+
size: {
|
|
587
|
+
type: String,
|
|
588
|
+
validator: validateSize
|
|
589
|
+
},
|
|
580
590
|
count: {
|
|
581
591
|
type: Number,
|
|
582
592
|
default: 0
|
|
@@ -693,11 +703,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
693
703
|
ref_key: "filterRef",
|
|
694
704
|
ref: filterRef
|
|
695
705
|
}, [
|
|
696
|
-
createElementVNode("div", _hoisted_1$
|
|
706
|
+
createElementVNode("div", _hoisted_1$9, [
|
|
697
707
|
createTextVNode(toDisplayString(__props.count) + " ", 1),
|
|
698
|
-
createElementVNode("span", _hoisted_2$
|
|
708
|
+
createElementVNode("span", _hoisted_2$6, toDisplayString(unref(t)("fu.filter_bar.results")), 1)
|
|
699
709
|
]),
|
|
700
|
-
_hoisted_3$
|
|
710
|
+
_hoisted_3$4,
|
|
701
711
|
scroll.value ? (openBlock(), createElementBlock("div", {
|
|
702
712
|
key: 0,
|
|
703
713
|
class: "fu-filter__scroll",
|
|
@@ -752,27 +762,29 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
752
762
|
onOpen: initComponents
|
|
753
763
|
}, {
|
|
754
764
|
default: withCtx(() => [
|
|
755
|
-
createElementVNode("div", _hoisted_4$
|
|
765
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
756
766
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
757
767
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.components, (c, i) => {
|
|
758
768
|
return openBlock(), createBlock(resolveDynamicComponent(c.component), mergeProps({ key: i }, c, {
|
|
759
769
|
ref_for: true,
|
|
760
770
|
ref: c.field
|
|
761
|
-
}, toHandlers(c)), null, 16);
|
|
771
|
+
}, toHandlers(c), { size: __props.size }), null, 16, ["size"]);
|
|
762
772
|
}), 128))
|
|
763
773
|
])
|
|
764
774
|
]),
|
|
765
|
-
createElementVNode("div", _hoisted_5$
|
|
775
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
766
776
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
767
777
|
createVNode(_component_el_button, {
|
|
778
|
+
size: __props.size,
|
|
768
779
|
onClick: _cache[0] || (_cache[0] = ($event) => drawer.value = false)
|
|
769
780
|
}, {
|
|
770
781
|
default: withCtx(() => [
|
|
771
782
|
createTextVNode(toDisplayString(unref(t)("fu.filter_bar.cancel")), 1)
|
|
772
783
|
]),
|
|
773
784
|
_: 1
|
|
774
|
-
}),
|
|
785
|
+
}, 8, ["size"]),
|
|
775
786
|
createVNode(_component_el_button, {
|
|
787
|
+
size: __props.size,
|
|
776
788
|
type: "primary",
|
|
777
789
|
onClick: filter
|
|
778
790
|
}, {
|
|
@@ -780,7 +792,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
780
792
|
createTextVNode(toDisplayString(unref(t)("fu.filter_bar.search")), 1)
|
|
781
793
|
]),
|
|
782
794
|
_: 1
|
|
783
|
-
})
|
|
795
|
+
}, 8, ["size"])
|
|
784
796
|
])
|
|
785
797
|
])
|
|
786
798
|
]),
|
|
@@ -790,16 +802,20 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
790
802
|
};
|
|
791
803
|
}
|
|
792
804
|
}));
|
|
793
|
-
var FuFilter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
794
|
-
const _hoisted_1$
|
|
795
|
-
const _hoisted_2$
|
|
796
|
-
const _hoisted_3$
|
|
797
|
-
const _hoisted_4$
|
|
798
|
-
const _hoisted_5
|
|
805
|
+
var FuFilter = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/FuFilter.vue"]]);
|
|
806
|
+
const _hoisted_1$8 = { class: "fu-filter-bar" };
|
|
807
|
+
const _hoisted_2$5 = { class: "fu-filter-bar__top" };
|
|
808
|
+
const _hoisted_3$3 = { class: "top_left" };
|
|
809
|
+
const _hoisted_4$1 = { class: "top_right" };
|
|
810
|
+
const _hoisted_5 = { key: 0 };
|
|
799
811
|
const _hoisted_6 = { class: "fu-filter-bar__bottom" };
|
|
800
|
-
const __default__$
|
|
801
|
-
const _sfc_main$
|
|
812
|
+
const __default__$d = { name: "FuFilterBar" };
|
|
813
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$d), {
|
|
802
814
|
props: {
|
|
815
|
+
size: {
|
|
816
|
+
type: String,
|
|
817
|
+
validator: validateSize
|
|
818
|
+
},
|
|
803
819
|
resultCount: Number,
|
|
804
820
|
quickPlaceholder: String,
|
|
805
821
|
components: Array
|
|
@@ -837,30 +853,31 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
837
853
|
});
|
|
838
854
|
return (_ctx, _cache) => {
|
|
839
855
|
const _component_el_button = resolveComponent("el-button");
|
|
840
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
841
|
-
createElementVNode("div", _hoisted_2$
|
|
842
|
-
createElementVNode("div", _hoisted_3$
|
|
856
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
857
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
858
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
843
859
|
renderSlot(_ctx.$slots, "tl")
|
|
844
860
|
]),
|
|
845
|
-
createElementVNode("div", _hoisted_4$
|
|
861
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
846
862
|
renderSlot(_ctx.$slots, "tr", {}, () => [
|
|
847
|
-
createCommentVNode(' :size="configSize" '),
|
|
848
863
|
createVNode(FuSearchInput, {
|
|
864
|
+
size: __props.size,
|
|
849
865
|
modelValue: quick.value,
|
|
850
866
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => quick.value = $event),
|
|
851
867
|
placeholder: __props.quickPlaceholder,
|
|
852
868
|
onChange: change
|
|
853
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
869
|
+
}, null, 8, ["size", "modelValue", "placeholder"]),
|
|
854
870
|
createVNode(_component_el_button, {
|
|
855
871
|
onClick: open,
|
|
856
|
-
icon: "Filter"
|
|
872
|
+
icon: "Filter",
|
|
873
|
+
size: __props.size
|
|
857
874
|
}, {
|
|
858
875
|
default: withCtx(() => [
|
|
859
876
|
createTextVNode(toDisplayString(unref(t)("fu.filter_bar.filter")) + " ", 1),
|
|
860
|
-
conditions.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5
|
|
877
|
+
conditions.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5, "(" + toDisplayString(conditions.value.length) + ")", 1)) : createCommentVNode("v-if", true)
|
|
861
878
|
]),
|
|
862
879
|
_: 1
|
|
863
|
-
})
|
|
880
|
+
}, 8, ["size"])
|
|
864
881
|
]),
|
|
865
882
|
renderSlot(_ctx.$slots, "buttons")
|
|
866
883
|
])
|
|
@@ -871,21 +888,23 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
871
888
|
ref: filterRef,
|
|
872
889
|
onFilter: filter,
|
|
873
890
|
count: __props.resultCount,
|
|
874
|
-
components: __props.components
|
|
891
|
+
components: __props.components,
|
|
892
|
+
size: __props.size
|
|
875
893
|
}, {
|
|
876
894
|
default: withCtx(() => [
|
|
877
895
|
renderSlot(_ctx.$slots, "default")
|
|
878
896
|
]),
|
|
879
897
|
_: 3
|
|
880
|
-
}, 8, ["count", "components"])
|
|
898
|
+
}, 8, ["count", "components", "size"])
|
|
881
899
|
])
|
|
882
900
|
]);
|
|
883
901
|
};
|
|
884
902
|
}
|
|
885
903
|
}));
|
|
886
|
-
var FuFilterBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
887
|
-
const _hoisted_1$
|
|
888
|
-
const _sfc_main$
|
|
904
|
+
var FuFilterBar = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/FuFilterBar.vue"]]);
|
|
905
|
+
const _hoisted_1$7 = ["onClick"];
|
|
906
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
907
|
+
__name: "FuFilterOption",
|
|
889
908
|
props: {
|
|
890
909
|
value: {
|
|
891
910
|
type: [String, Number],
|
|
@@ -916,18 +935,22 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
916
935
|
return openBlock(), createElementBlock("div", {
|
|
917
936
|
class: normalizeClass(["fu-filter-option", { "is-selected": unref(selected), "is-disabled": __props.disabled }]),
|
|
918
937
|
onClick: withModifiers(click, ["stop"])
|
|
919
|
-
}, toDisplayString(__props.label || __props.value), 11, _hoisted_1$
|
|
938
|
+
}, toDisplayString(__props.label || __props.value), 11, _hoisted_1$7);
|
|
920
939
|
};
|
|
921
940
|
}
|
|
922
941
|
});
|
|
923
|
-
var FuFilterOption = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
924
|
-
const _hoisted_1$
|
|
925
|
-
const _hoisted_2$
|
|
926
|
-
const _hoisted_3$
|
|
927
|
-
const _hoisted_4
|
|
928
|
-
const __default__$
|
|
929
|
-
const _sfc_main$
|
|
942
|
+
var FuFilterOption = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterOption.vue"]]);
|
|
943
|
+
const _hoisted_1$6 = { class: "fu-filter-component" };
|
|
944
|
+
const _hoisted_2$4 = { class: "fu-filter-component__label" };
|
|
945
|
+
const _hoisted_3$2 = { class: "fu-filter-component__content" };
|
|
946
|
+
const _hoisted_4 = { class: "fu-filter-option" };
|
|
947
|
+
const __default__$c = { name: "FuFilterSelect" };
|
|
948
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$c), {
|
|
930
949
|
props: {
|
|
950
|
+
size: {
|
|
951
|
+
type: String,
|
|
952
|
+
validator: validateSize
|
|
953
|
+
},
|
|
931
954
|
multiple: {
|
|
932
955
|
type: Boolean,
|
|
933
956
|
default: false
|
|
@@ -987,8 +1010,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
987
1010
|
return;
|
|
988
1011
|
}
|
|
989
1012
|
if (selected) {
|
|
990
|
-
let
|
|
991
|
-
selection.value.splice(
|
|
1013
|
+
let index = selection.value.indexOf(value);
|
|
1014
|
+
selection.value.splice(index, 1);
|
|
992
1015
|
} else {
|
|
993
1016
|
selection.value.push(value);
|
|
994
1017
|
}
|
|
@@ -1031,9 +1054,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1031
1054
|
const _component_Plus = resolveComponent("Plus");
|
|
1032
1055
|
const _component_el_icon = resolveComponent("el-icon");
|
|
1033
1056
|
const _component_el_popover = resolveComponent("el-popover");
|
|
1034
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1035
|
-
createElementVNode("div", _hoisted_2$
|
|
1036
|
-
createElementVNode("div", _hoisted_3$
|
|
1057
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1058
|
+
createElementVNode("div", _hoisted_2$4, toDisplayString(__props.label), 1),
|
|
1059
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
1037
1060
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(showOptions), (o) => {
|
|
1038
1061
|
return openBlock(), createBlock(FuFilterOption, {
|
|
1039
1062
|
label: o.label,
|
|
@@ -1049,7 +1072,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1049
1072
|
width: "240"
|
|
1050
1073
|
}, {
|
|
1051
1074
|
reference: withCtx(() => [
|
|
1052
|
-
createElementVNode("div", _hoisted_4
|
|
1075
|
+
createElementVNode("div", _hoisted_4, [
|
|
1053
1076
|
createVNode(_component_el_icon, null, {
|
|
1054
1077
|
default: withCtx(() => [
|
|
1055
1078
|
createVNode(_component_Plus)
|
|
@@ -1067,6 +1090,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1067
1090
|
multiple: __props.multiple,
|
|
1068
1091
|
onChange: change,
|
|
1069
1092
|
teleported: false,
|
|
1093
|
+
size: __props.size,
|
|
1070
1094
|
placeholder: unref(t)("fu.search_bar.please_select")
|
|
1071
1095
|
}), {
|
|
1072
1096
|
default: withCtx(() => [
|
|
@@ -1088,7 +1112,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1088
1112
|
}), 128))
|
|
1089
1113
|
]),
|
|
1090
1114
|
_: 1
|
|
1091
|
-
}, 16, ["modelValue", "multiple", "placeholder"])
|
|
1115
|
+
}, 16, ["modelValue", "multiple", "size", "placeholder"])
|
|
1092
1116
|
]),
|
|
1093
1117
|
_: 1
|
|
1094
1118
|
})
|
|
@@ -1097,7 +1121,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1097
1121
|
};
|
|
1098
1122
|
}
|
|
1099
1123
|
}));
|
|
1100
|
-
var FuFilterSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1124
|
+
var FuFilterSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterSelect.vue"]]);
|
|
1101
1125
|
const getCheckDate = (timestamp) => {
|
|
1102
1126
|
if (!timestamp)
|
|
1103
1127
|
return false;
|
|
@@ -1127,12 +1151,16 @@ const dateFormat = (timestamp) => {
|
|
|
1127
1151
|
const d = (dt.getDate() + "").padStart(2, "0");
|
|
1128
1152
|
return `${y}-${m}-${d}`;
|
|
1129
1153
|
};
|
|
1130
|
-
const _hoisted_1$
|
|
1131
|
-
const _hoisted_2$
|
|
1132
|
-
const _hoisted_3$
|
|
1133
|
-
const __default__$
|
|
1134
|
-
const _sfc_main$
|
|
1154
|
+
const _hoisted_1$5 = { class: "fu-filter-component" };
|
|
1155
|
+
const _hoisted_2$3 = { class: "fu-filter-component__label" };
|
|
1156
|
+
const _hoisted_3$1 = { class: "fu-filter-component__content" };
|
|
1157
|
+
const __default__$b = { name: "FuFilterDate" };
|
|
1158
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$b), {
|
|
1135
1159
|
props: {
|
|
1160
|
+
size: {
|
|
1161
|
+
type: String,
|
|
1162
|
+
validator: validateSize
|
|
1163
|
+
},
|
|
1136
1164
|
label: String,
|
|
1137
1165
|
field: {
|
|
1138
1166
|
type: String,
|
|
@@ -1169,33 +1197,38 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1169
1197
|
});
|
|
1170
1198
|
return (_ctx, _cache) => {
|
|
1171
1199
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
1172
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1173
|
-
createElementVNode("div", _hoisted_2$
|
|
1174
|
-
createElementVNode("div", _hoisted_3$
|
|
1175
|
-
createCommentVNode(
|
|
1200
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
1201
|
+
createElementVNode("div", _hoisted_2$3, toDisplayString(__props.label), 1),
|
|
1202
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
1203
|
+
createCommentVNode("configSize"),
|
|
1176
1204
|
createVNode(_component_el_date_picker, mergeProps({
|
|
1177
1205
|
class: "fu-filter-date",
|
|
1178
1206
|
modelValue: value.value,
|
|
1179
1207
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
1180
1208
|
}, _ctx.$attrs, {
|
|
1209
|
+
size: __props.size,
|
|
1181
1210
|
placeholder: unref(t)("fu.search_bar.select_date"),
|
|
1182
1211
|
type: "daterange",
|
|
1183
1212
|
"value-format": __props.valueFormat,
|
|
1184
1213
|
"start-placeholder": unref(t)("fu.search_bar.start_date"),
|
|
1185
1214
|
"end-placeholder": unref(t)("fu.search_bar.end_date")
|
|
1186
|
-
}), null, 16, ["modelValue", "placeholder", "value-format", "start-placeholder", "end-placeholder"])
|
|
1215
|
+
}), null, 16, ["modelValue", "size", "placeholder", "value-format", "start-placeholder", "end-placeholder"])
|
|
1187
1216
|
])
|
|
1188
1217
|
]);
|
|
1189
1218
|
};
|
|
1190
1219
|
}
|
|
1191
1220
|
}));
|
|
1192
|
-
var FuFilterDate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1193
|
-
const _hoisted_1$
|
|
1194
|
-
const _hoisted_2$
|
|
1195
|
-
const _hoisted_3
|
|
1196
|
-
const __default__$
|
|
1197
|
-
const _sfc_main$
|
|
1221
|
+
var FuFilterDate = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterDate.vue"]]);
|
|
1222
|
+
const _hoisted_1$4 = { class: "fu-filter-component" };
|
|
1223
|
+
const _hoisted_2$2 = { class: "fu-filter-component__label" };
|
|
1224
|
+
const _hoisted_3 = { class: "fu-filter-component__content" };
|
|
1225
|
+
const __default__$a = { name: "FuFilterDateTime" };
|
|
1226
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$a), {
|
|
1198
1227
|
props: {
|
|
1228
|
+
size: {
|
|
1229
|
+
type: String,
|
|
1230
|
+
validator: validateSize
|
|
1231
|
+
},
|
|
1199
1232
|
label: String,
|
|
1200
1233
|
field: {
|
|
1201
1234
|
type: String,
|
|
@@ -1232,40 +1265,39 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1232
1265
|
});
|
|
1233
1266
|
return (_ctx, _cache) => {
|
|
1234
1267
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
1235
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1236
|
-
createElementVNode("div", _hoisted_2$
|
|
1237
|
-
createElementVNode("div", _hoisted_3
|
|
1268
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
1269
|
+
createElementVNode("div", _hoisted_2$2, toDisplayString(__props.label), 1),
|
|
1270
|
+
createElementVNode("div", _hoisted_3, [
|
|
1238
1271
|
createCommentVNode(' :size="configSize" '),
|
|
1239
1272
|
createVNode(_component_el_date_picker, mergeProps({
|
|
1240
1273
|
class: "fu-filter-date",
|
|
1241
1274
|
modelValue: value.value,
|
|
1242
1275
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
1243
1276
|
}, _ctx.$attrs, {
|
|
1277
|
+
size: __props.size,
|
|
1244
1278
|
placeholder: unref(t)("fu.search_bar.select_date_time"),
|
|
1245
1279
|
type: "datetimerange",
|
|
1246
1280
|
"value-format": __props.valueFormat,
|
|
1247
1281
|
"start-placeholder": unref(t)("fu.search_bar.start_date_time"),
|
|
1248
1282
|
"end-placeholder": unref(t)("fu.search_bar.end_date_time")
|
|
1249
|
-
}), null, 16, ["modelValue", "placeholder", "value-format", "start-placeholder", "end-placeholder"])
|
|
1283
|
+
}), null, 16, ["modelValue", "size", "placeholder", "value-format", "start-placeholder", "end-placeholder"])
|
|
1250
1284
|
])
|
|
1251
1285
|
]);
|
|
1252
1286
|
};
|
|
1253
1287
|
}
|
|
1254
1288
|
}));
|
|
1255
|
-
var FuFilterDateTime = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
app.component(FuFilterDateTime.name, FuFilterDateTime);
|
|
1264
|
-
}
|
|
1289
|
+
var FuFilterDateTime = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/filter-bar/filter-components/FuFilterDateTime.vue"]]);
|
|
1290
|
+
FuSearchInput.install = (app) => {
|
|
1291
|
+
app.component(FuFilterBar.name, FuFilterBar);
|
|
1292
|
+
app.component(FuFilter.name, FuFilter);
|
|
1293
|
+
app.component(FuSearchInput.name, FuSearchInput);
|
|
1294
|
+
app.component(FuFilterSelect.name, FuFilterSelect);
|
|
1295
|
+
app.component(FuFilterDate.name, FuFilterDate);
|
|
1296
|
+
app.component(FuFilterDateTime.name, FuFilterDateTime);
|
|
1265
1297
|
};
|
|
1266
1298
|
var __glob_1_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1267
1299
|
__proto__: null,
|
|
1268
|
-
"default":
|
|
1300
|
+
"default": FuSearchInput
|
|
1269
1301
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1270
1302
|
const uuid = function() {
|
|
1271
1303
|
let d = new Date().getTime();
|
|
@@ -1282,15 +1314,15 @@ const uuid = function() {
|
|
|
1282
1314
|
return (c === "x" ? r : r & 3 | 8).toString(16);
|
|
1283
1315
|
});
|
|
1284
1316
|
};
|
|
1285
|
-
const TRIGGERS = ["manual", "
|
|
1286
|
-
const _sfc_main$
|
|
1317
|
+
const TRIGGERS = ["manual", "onClick", "onDblclick"];
|
|
1318
|
+
const _sfc_main$d = defineComponent({
|
|
1287
1319
|
name: "FuReadWriteSwitch",
|
|
1288
1320
|
props: {
|
|
1289
|
-
|
|
1321
|
+
modelValue: Boolean,
|
|
1290
1322
|
data: [String, Number, Boolean],
|
|
1291
1323
|
writeTrigger: {
|
|
1292
1324
|
type: String,
|
|
1293
|
-
default: "
|
|
1325
|
+
default: "onClick",
|
|
1294
1326
|
validator: (value) => {
|
|
1295
1327
|
return TRIGGERS.includes(value);
|
|
1296
1328
|
}
|
|
@@ -1298,9 +1330,8 @@ const _sfc_main$m = defineComponent({
|
|
|
1298
1330
|
},
|
|
1299
1331
|
setup(props, { slots, emit }) {
|
|
1300
1332
|
const id = ref(uuid());
|
|
1301
|
-
const write = ref(props.
|
|
1302
|
-
watch(() => props.
|
|
1303
|
-
console.log(v);
|
|
1333
|
+
const write = ref(props.modelValue === void 0 ? false : props.modelValue);
|
|
1334
|
+
watch(() => props.modelValue, (v) => {
|
|
1304
1335
|
if (v === write.value)
|
|
1305
1336
|
return;
|
|
1306
1337
|
if (v) {
|
|
@@ -1310,7 +1341,7 @@ const _sfc_main$m = defineComponent({
|
|
|
1310
1341
|
}
|
|
1311
1342
|
});
|
|
1312
1343
|
function change() {
|
|
1313
|
-
emit("
|
|
1344
|
+
emit("update:modelValue", write.value);
|
|
1314
1345
|
emit("change", [props.data, write.value]);
|
|
1315
1346
|
}
|
|
1316
1347
|
function switchWrite() {
|
|
@@ -1329,46 +1360,47 @@ const _sfc_main$m = defineComponent({
|
|
|
1329
1360
|
write.value = false;
|
|
1330
1361
|
change();
|
|
1331
1362
|
}
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1363
|
+
return () => {
|
|
1364
|
+
const context = {
|
|
1365
|
+
class: "fu-read-write-switch",
|
|
1366
|
+
id: id.value
|
|
1367
|
+
};
|
|
1368
|
+
if (!write.value && props.writeTrigger !== TRIGGERS[0]) {
|
|
1369
|
+
context[props.writeTrigger] = switchWrite;
|
|
1370
|
+
}
|
|
1371
|
+
let children = props.data;
|
|
1372
|
+
if (!write.value && slots.read) {
|
|
1373
|
+
children = slots.read({
|
|
1374
|
+
write: switchWrite
|
|
1375
|
+
});
|
|
1376
|
+
}
|
|
1377
|
+
if (write.value && slots.default) {
|
|
1378
|
+
children = slots.default({
|
|
1379
|
+
read: switchRead
|
|
1380
|
+
});
|
|
1381
|
+
}
|
|
1382
|
+
return h("div", context, children);
|
|
1336
1383
|
};
|
|
1337
|
-
if (!write.value && props.writeTrigger !== TRIGGERS[0]) {
|
|
1338
|
-
context.on[props.writeTrigger] = switchWrite;
|
|
1339
|
-
}
|
|
1340
|
-
let children = props.data;
|
|
1341
|
-
if (!write.value && slots.read) {
|
|
1342
|
-
children = slots.read({
|
|
1343
|
-
write: switchWrite
|
|
1344
|
-
});
|
|
1345
|
-
}
|
|
1346
|
-
if (write.value && slots.default) {
|
|
1347
|
-
children = slots.default({
|
|
1348
|
-
read: switchRead
|
|
1349
|
-
});
|
|
1350
|
-
}
|
|
1351
|
-
return () => h("div", context, children);
|
|
1352
1384
|
}
|
|
1353
1385
|
});
|
|
1354
|
-
var FuReadWriteSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1355
|
-
const __default__$
|
|
1356
|
-
const _sfc_main$
|
|
1386
|
+
var FuReadWriteSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/read-write-switch/FuReadWriteSwitch.vue"]]);
|
|
1387
|
+
const __default__$9 = { name: "FuInputRwSwitch" };
|
|
1388
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$9), {
|
|
1357
1389
|
props: {
|
|
1358
|
-
|
|
1390
|
+
modelValue: [String, Number],
|
|
1359
1391
|
writeTrigger: {
|
|
1360
1392
|
type: String,
|
|
1361
|
-
default: "
|
|
1393
|
+
default: "onClick",
|
|
1362
1394
|
validator: (value) => {
|
|
1363
|
-
return ["
|
|
1395
|
+
return ["onClick", "onDblclick"].includes(value);
|
|
1364
1396
|
}
|
|
1365
1397
|
}
|
|
1366
1398
|
},
|
|
1367
1399
|
emits: ["input", "blur"],
|
|
1368
1400
|
setup(__props, { emit }) {
|
|
1369
1401
|
const props = __props;
|
|
1370
|
-
const data = ref(props.
|
|
1371
|
-
watch(() => props.
|
|
1402
|
+
const data = ref(props.modelValue);
|
|
1403
|
+
watch(() => props.modelValue, (v) => {
|
|
1372
1404
|
data.value = v;
|
|
1373
1405
|
});
|
|
1374
1406
|
function input(e) {
|
|
@@ -1385,8 +1417,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1385
1417
|
}
|
|
1386
1418
|
return (_ctx, _cache) => {
|
|
1387
1419
|
const _component_el_input = resolveComponent("el-input");
|
|
1388
|
-
|
|
1389
|
-
return openBlock(), createBlock(_component_fu_read_write_switch, {
|
|
1420
|
+
return openBlock(), createBlock(FuReadWriteSwitch, {
|
|
1390
1421
|
"write-trigger": __props.writeTrigger,
|
|
1391
1422
|
data: data.value
|
|
1392
1423
|
}, {
|
|
@@ -1405,25 +1436,28 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1405
1436
|
};
|
|
1406
1437
|
}
|
|
1407
1438
|
}));
|
|
1408
|
-
var FuInputRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1409
|
-
const __default__$
|
|
1410
|
-
const _sfc_main$
|
|
1439
|
+
var FuInputRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/read-write-switch/FuInputRwSwitch.vue"]]);
|
|
1440
|
+
const __default__$8 = { name: "FuSelectRwSwitch" };
|
|
1441
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$8), {
|
|
1411
1442
|
props: {
|
|
1412
|
-
|
|
1413
|
-
options:
|
|
1443
|
+
modelValue: [String, Number],
|
|
1444
|
+
options: {
|
|
1445
|
+
type: Array,
|
|
1446
|
+
default: []
|
|
1447
|
+
},
|
|
1414
1448
|
writeTrigger: {
|
|
1415
1449
|
type: String,
|
|
1416
|
-
default: "
|
|
1450
|
+
default: "onClick",
|
|
1417
1451
|
validator: (value) => {
|
|
1418
|
-
return ["
|
|
1452
|
+
return ["onClick", "onDblclick"].includes(value);
|
|
1419
1453
|
}
|
|
1420
1454
|
}
|
|
1421
1455
|
},
|
|
1422
1456
|
emits: ["input", "blur", "change"],
|
|
1423
1457
|
setup(__props, { emit }) {
|
|
1424
1458
|
const props = __props;
|
|
1425
|
-
const data = ref(props.
|
|
1426
|
-
watch(() => props.
|
|
1459
|
+
const data = ref(props.modelValue);
|
|
1460
|
+
watch(() => props.modelValue, (v) => {
|
|
1427
1461
|
data.value = v;
|
|
1428
1462
|
});
|
|
1429
1463
|
function input(e) {
|
|
@@ -1480,7 +1514,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1480
1514
|
};
|
|
1481
1515
|
}
|
|
1482
1516
|
}));
|
|
1483
|
-
var FuSelectRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1517
|
+
var FuSelectRwSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/read-write-switch/FuSelectRwSwitch.vue"]]);
|
|
1484
1518
|
FuReadWriteSwitch.install = (app) => {
|
|
1485
1519
|
app.component(FuReadWriteSwitch.name, FuReadWriteSwitch);
|
|
1486
1520
|
app.component(FuInputRwSwitch.name, FuInputRwSwitch);
|
|
@@ -1490,960 +1524,12 @@ var __glob_1_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
1490
1524
|
__proto__: null,
|
|
1491
1525
|
"default": FuReadWriteSwitch
|
|
1492
1526
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1493
|
-
const _hoisted_1$9 = {
|
|
1494
|
-
class: /* @__PURE__ */ normalizeClass(["fu-quick-search"])
|
|
1495
|
-
};
|
|
1496
|
-
const _hoisted_2$6 = ["placeholder"];
|
|
1497
|
-
const __default__$a = { name: "FuQuickSearch" };
|
|
1498
|
-
const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$a), {
|
|
1499
|
-
props: {
|
|
1500
|
-
value: String,
|
|
1501
|
-
placeholder: String,
|
|
1502
|
-
useIcon: {
|
|
1503
|
-
type: Boolean,
|
|
1504
|
-
default: true
|
|
1505
|
-
}
|
|
1506
|
-
},
|
|
1507
|
-
emits: ["input", "change"],
|
|
1508
|
-
setup(__props, { emit }) {
|
|
1509
|
-
const props = __props;
|
|
1510
|
-
const quick = ref("");
|
|
1511
|
-
watch(() => props.value, (val) => {
|
|
1512
|
-
quick.value = val;
|
|
1513
|
-
});
|
|
1514
|
-
function input(e) {
|
|
1515
|
-
emit("input", quick.value, e);
|
|
1516
|
-
}
|
|
1517
|
-
function blur(e) {
|
|
1518
|
-
emit("change", quick.value, e);
|
|
1519
|
-
}
|
|
1520
|
-
function keydown(e) {
|
|
1521
|
-
const event = e;
|
|
1522
|
-
if (event.key === "Enter") {
|
|
1523
|
-
emit("change", quick.value, e);
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
return (_ctx, _cache) => {
|
|
1527
|
-
const _component_Search = resolveComponent("Search");
|
|
1528
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
1529
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
1530
|
-
createCommentVNode(" , 'fu-quick-search--' + configSize "),
|
|
1531
|
-
createElementVNode("div", _hoisted_1$9, [
|
|
1532
|
-
__props.useIcon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
|
|
1533
|
-
default: withCtx(() => [
|
|
1534
|
-
createVNode(_component_Search)
|
|
1535
|
-
]),
|
|
1536
|
-
_: 1
|
|
1537
|
-
})) : createCommentVNode("v-if", true),
|
|
1538
|
-
createElementVNode("label", null, [
|
|
1539
|
-
withDirectives(createElementVNode("input", {
|
|
1540
|
-
placeholder: __props.placeholder,
|
|
1541
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => quick.value = $event),
|
|
1542
|
-
onInput: input,
|
|
1543
|
-
onBlur: blur,
|
|
1544
|
-
onKeydown: keydown
|
|
1545
|
-
}, null, 40, _hoisted_2$6), [
|
|
1546
|
-
[vModelText, quick.value]
|
|
1547
|
-
])
|
|
1548
|
-
])
|
|
1549
|
-
])
|
|
1550
|
-
], 2112);
|
|
1551
|
-
};
|
|
1552
|
-
}
|
|
1553
|
-
}));
|
|
1554
|
-
var FuQuickSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "/Users/q4speed/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/FuQuickSearch.vue"]]);
|
|
1555
|
-
const __default__$9 = { name: "FuSearchBarButton" };
|
|
1556
|
-
const _sfc_main$i = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$9), {
|
|
1557
|
-
props: {
|
|
1558
|
-
tooltip: String
|
|
1559
|
-
},
|
|
1560
|
-
setup(__props) {
|
|
1561
|
-
return (_ctx, _cache) => {
|
|
1562
|
-
const _component_el_button = resolveComponent("el-button");
|
|
1563
|
-
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
1564
|
-
return openBlock(), createBlock(_component_el_tooltip, {
|
|
1565
|
-
content: __props.tooltip,
|
|
1566
|
-
disabled: !__props.tooltip
|
|
1567
|
-
}, {
|
|
1568
|
-
default: withCtx(() => [
|
|
1569
|
-
createCommentVNode(' :size="configSize" '),
|
|
1570
|
-
createVNode(_component_el_button, mergeProps({
|
|
1571
|
-
class: "fu-search-bar-button",
|
|
1572
|
-
circle: ""
|
|
1573
|
-
}, _ctx.$attrs), null, 16),
|
|
1574
|
-
createCommentVNode(" <slot></slot> "),
|
|
1575
|
-
createCommentVNode(" *****element\u95EE\u9898 \u52A0\u4E0A\u63D2\u69FD \u7A7A\u7684\u60C5\u51B5\u4E0B\u6E32\u67D3\u591A\u51FA\u4E00\u4E2Aspan\u6807\u7B7E\u95EE\u9898 \u5F85\u8003\u8651 ")
|
|
1576
|
-
]),
|
|
1577
|
-
_: 1
|
|
1578
|
-
}, 8, ["content", "disabled"]);
|
|
1579
|
-
};
|
|
1580
|
-
}
|
|
1581
|
-
}));
|
|
1582
|
-
var FuSearchBarButton = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "/Users/q4speed/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/FuSearchBarButton.vue"]]);
|
|
1583
|
-
const _hoisted_1$8 = { class: "fu-complex-search" };
|
|
1584
|
-
const _hoisted_2$5 = { class: "fu-complex-components__body" };
|
|
1585
|
-
const _hoisted_3$2 = { class: "fu-complex-components__footer" };
|
|
1586
|
-
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1587
|
-
props: {
|
|
1588
|
-
components: Array
|
|
1589
|
-
},
|
|
1590
|
-
emits: ["close", "change"],
|
|
1591
|
-
setup(__props, { emit }) {
|
|
1592
|
-
const props = __props;
|
|
1593
|
-
const slots = useSlots();
|
|
1594
|
-
const instance = getCurrentInstance();
|
|
1595
|
-
const { t } = useLocale();
|
|
1596
|
-
const active = ref(false);
|
|
1597
|
-
function closePopover() {
|
|
1598
|
-
emit("close");
|
|
1599
|
-
}
|
|
1600
|
-
function toggle() {
|
|
1601
|
-
active.value = !active.value;
|
|
1602
|
-
refs.value.forEach((r) => {
|
|
1603
|
-
if (r == null ? void 0 : r.init) {
|
|
1604
|
-
r.init();
|
|
1605
|
-
} else {
|
|
1606
|
-
console.warn("init undefined", r);
|
|
1607
|
-
}
|
|
1608
|
-
});
|
|
1609
|
-
}
|
|
1610
|
-
function ok() {
|
|
1611
|
-
active.value = false;
|
|
1612
|
-
let conditions = [];
|
|
1613
|
-
refs.value.forEach((r) => {
|
|
1614
|
-
let condition;
|
|
1615
|
-
if (r.getCondition) {
|
|
1616
|
-
condition = r.getCondition();
|
|
1617
|
-
} else {
|
|
1618
|
-
console.warn("getCondition undefined", r);
|
|
1619
|
-
}
|
|
1620
|
-
if (condition && condition.value !== void 0) {
|
|
1621
|
-
conditions.push(condition);
|
|
1622
|
-
}
|
|
1623
|
-
});
|
|
1624
|
-
emit("change", conditions);
|
|
1625
|
-
}
|
|
1626
|
-
const refs = computed(() => {
|
|
1627
|
-
var _a, _b;
|
|
1628
|
-
let refs2 = [];
|
|
1629
|
-
if ((_a = slots.default) == null ? void 0 : _a.call(slots)[0].children.length) {
|
|
1630
|
-
(_b = slots.default) == null ? void 0 : _b.call(slots).forEach((component) => {
|
|
1631
|
-
refs2.push(component.componentInstance);
|
|
1632
|
-
});
|
|
1633
|
-
} else {
|
|
1634
|
-
props.components.forEach((c) => {
|
|
1635
|
-
refs2.push(instance.refs[c.field][0]);
|
|
1636
|
-
});
|
|
1637
|
-
}
|
|
1638
|
-
return refs2;
|
|
1639
|
-
});
|
|
1640
|
-
return (_ctx, _cache) => {
|
|
1641
|
-
const _component_el_button = resolveComponent("el-button");
|
|
1642
|
-
const _component_el_popover = resolveComponent("el-popover");
|
|
1643
|
-
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
1644
|
-
createVNode(_component_el_popover, {
|
|
1645
|
-
trigger: "manual",
|
|
1646
|
-
modelValue: active.value,
|
|
1647
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => active.value = $event),
|
|
1648
|
-
"show-arrow": false,
|
|
1649
|
-
onHide: closePopover,
|
|
1650
|
-
"popper-class": "fu-complex-components"
|
|
1651
|
-
}, {
|
|
1652
|
-
reference: withCtx(() => [
|
|
1653
|
-
createCommentVNode(' :size="configSize" '),
|
|
1654
|
-
createVNode(FuSearchBarButton, {
|
|
1655
|
-
icon: "ArrowRight",
|
|
1656
|
-
onClick: toggle,
|
|
1657
|
-
class: normalizeClass(["fu-complex-search__trigger", { "is-active": active.value }]),
|
|
1658
|
-
tooltip: unref(t)("fu.search_bar.adv_search")
|
|
1659
|
-
}, null, 8, ["class", "tooltip"])
|
|
1660
|
-
]),
|
|
1661
|
-
default: withCtx(() => [
|
|
1662
|
-
createElementVNode("div", _hoisted_2$5, [
|
|
1663
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1664
|
-
createCommentVNode(' :size="configSize" '),
|
|
1665
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.components, (c, i) => {
|
|
1666
|
-
return openBlock(), createBlock(resolveDynamicComponent(c.component), mergeProps({ key: i }, c, {
|
|
1667
|
-
ref_for: true,
|
|
1668
|
-
ref: c.field
|
|
1669
|
-
}, toHandlers(c)), null, 16);
|
|
1670
|
-
}), 128))
|
|
1671
|
-
])
|
|
1672
|
-
]),
|
|
1673
|
-
createElementVNode("div", _hoisted_3$2, [
|
|
1674
|
-
createCommentVNode(' :size="configSize" '),
|
|
1675
|
-
createVNode(_component_el_button, {
|
|
1676
|
-
onClick: _cache[0] || (_cache[0] = ($event) => active.value = false)
|
|
1677
|
-
}, {
|
|
1678
|
-
default: withCtx(() => [
|
|
1679
|
-
createTextVNode(toDisplayString(unref(t)("fu.search_bar.cancel")), 1)
|
|
1680
|
-
]),
|
|
1681
|
-
_: 1
|
|
1682
|
-
}),
|
|
1683
|
-
createVNode(_component_el_button, {
|
|
1684
|
-
type: "primary",
|
|
1685
|
-
onClick: ok
|
|
1686
|
-
}, {
|
|
1687
|
-
default: withCtx(() => [
|
|
1688
|
-
createTextVNode(toDisplayString(unref(t)("fu.search_bar.ok")), 1)
|
|
1689
|
-
]),
|
|
1690
|
-
_: 1
|
|
1691
|
-
})
|
|
1692
|
-
])
|
|
1693
|
-
]),
|
|
1694
|
-
_: 3
|
|
1695
|
-
}, 8, ["modelValue"])
|
|
1696
|
-
]);
|
|
1697
|
-
};
|
|
1698
|
-
}
|
|
1699
|
-
});
|
|
1700
|
-
var FuComplexSearch = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "/Users/q4speed/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/FuComplexSearch.vue"]]);
|
|
1701
|
-
const _hoisted_1$7 = {
|
|
1702
|
-
class: /* @__PURE__ */ normalizeClass(["fu-search-conditions"])
|
|
1703
|
-
};
|
|
1704
|
-
const _hoisted_2$4 = { key: 0 };
|
|
1705
|
-
const _hoisted_3$1 = { key: 1 };
|
|
1706
|
-
const _hoisted_4 = { class: "condition-value" };
|
|
1707
|
-
const _hoisted_5 = ["onClick"];
|
|
1708
|
-
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1709
|
-
props: {
|
|
1710
|
-
conditions: Array
|
|
1711
|
-
},
|
|
1712
|
-
emits: ["change"],
|
|
1713
|
-
setup(__props, { emit }) {
|
|
1714
|
-
const props = __props;
|
|
1715
|
-
function remove(index2) {
|
|
1716
|
-
props.conditions.splice(index2, 1);
|
|
1717
|
-
emit("change", props.conditions);
|
|
1718
|
-
}
|
|
1719
|
-
return (_ctx, _cache) => {
|
|
1720
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
1721
|
-
createCommentVNode(" , 'fu-search-conditions--' + configSize "),
|
|
1722
|
-
createElementVNode("div", _hoisted_1$7, [
|
|
1723
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.conditions, (condition, index2) => {
|
|
1724
|
-
return openBlock(), createElementBlock("div", {
|
|
1725
|
-
class: "fu-search-conditions__item",
|
|
1726
|
-
key: index2
|
|
1727
|
-
}, [
|
|
1728
|
-
condition.label ? (openBlock(), createElementBlock("div", _hoisted_2$4, toDisplayString(condition.label), 1)) : createCommentVNode("v-if", true),
|
|
1729
|
-
condition.operatorLabel ? (openBlock(), createElementBlock("div", _hoisted_3$1, toDisplayString(condition.operatorLabel), 1)) : createCommentVNode("v-if", true),
|
|
1730
|
-
createElementVNode("div", _hoisted_4, toDisplayString(condition.valueLabel), 1),
|
|
1731
|
-
createElementVNode("i", {
|
|
1732
|
-
class: "el-icon-close condition-remove",
|
|
1733
|
-
onClick: ($event) => remove(index2)
|
|
1734
|
-
}, null, 8, _hoisted_5)
|
|
1735
|
-
]);
|
|
1736
|
-
}), 128))
|
|
1737
|
-
])
|
|
1738
|
-
], 2112);
|
|
1739
|
-
};
|
|
1740
|
-
}
|
|
1741
|
-
});
|
|
1742
|
-
var FuSearchConditions = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "/Users/q4speed/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/FuSearchContions.vue"]]);
|
|
1743
|
-
class ComplexCondition {
|
|
1744
|
-
constructor(options) {
|
|
1745
|
-
__publicField(this, "field");
|
|
1746
|
-
__publicField(this, "label");
|
|
1747
|
-
__publicField(this, "operator");
|
|
1748
|
-
__publicField(this, "operatorLabel");
|
|
1749
|
-
__publicField(this, "value");
|
|
1750
|
-
__publicField(this, "valueLabel");
|
|
1751
|
-
this.field = options.field;
|
|
1752
|
-
this.label = options.label;
|
|
1753
|
-
this.operator = options.operator;
|
|
1754
|
-
this.operatorLabel = options.operatorLabel;
|
|
1755
|
-
this.value = options.value;
|
|
1756
|
-
this.valueLabel = options.valueLabel || options.value;
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
const _hoisted_1$6 = { class: "fu-search-bar" };
|
|
1760
|
-
const _hoisted_2$3 = { class: "fu-search-bar__content" };
|
|
1761
|
-
const _hoisted_3 = { class: "fu-search-bar__buttons" };
|
|
1762
|
-
const __default__$8 = { name: "FuSearchBar" };
|
|
1763
|
-
const _sfc_main$f = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$8), {
|
|
1764
|
-
props: {
|
|
1765
|
-
quickKey: {
|
|
1766
|
-
type: String,
|
|
1767
|
-
default: "quick"
|
|
1768
|
-
},
|
|
1769
|
-
quickPlaceholder: String,
|
|
1770
|
-
useCleanButton: {
|
|
1771
|
-
type: Boolean,
|
|
1772
|
-
default: true
|
|
1773
|
-
},
|
|
1774
|
-
useRefreshButton: {
|
|
1775
|
-
type: Boolean,
|
|
1776
|
-
default: false
|
|
1777
|
-
},
|
|
1778
|
-
useQuickSearch: {
|
|
1779
|
-
type: Boolean,
|
|
1780
|
-
default: true
|
|
1781
|
-
},
|
|
1782
|
-
components: Array
|
|
1783
|
-
},
|
|
1784
|
-
emits: ["close", "exec"],
|
|
1785
|
-
setup(__props, { emit }) {
|
|
1786
|
-
const props = __props;
|
|
1787
|
-
const { t } = useLocale();
|
|
1788
|
-
const slots = useSlots();
|
|
1789
|
-
const quick = ref("");
|
|
1790
|
-
const conditions = ref([]);
|
|
1791
|
-
const complex = ref();
|
|
1792
|
-
function merge(source, target) {
|
|
1793
|
-
let conditions2 = source.concat(target);
|
|
1794
|
-
let conditionMap = /* @__PURE__ */ new Map();
|
|
1795
|
-
for (let condition2 of conditions2) {
|
|
1796
|
-
conditionMap.set(condition2.field, condition2);
|
|
1797
|
-
}
|
|
1798
|
-
let result = [];
|
|
1799
|
-
conditionMap.forEach((c) => {
|
|
1800
|
-
result.push(c);
|
|
1801
|
-
});
|
|
1802
|
-
return result;
|
|
1803
|
-
}
|
|
1804
|
-
function closePopover() {
|
|
1805
|
-
emit("close");
|
|
1806
|
-
}
|
|
1807
|
-
function quickChange(value, e) {
|
|
1808
|
-
if (value) {
|
|
1809
|
-
const field = props.quickKey;
|
|
1810
|
-
const valueLabel = value;
|
|
1811
|
-
conditions.value = merge(conditions.value, [new ComplexCondition({ field, value, valueLabel })]);
|
|
1812
|
-
exec();
|
|
1813
|
-
quick.value = "";
|
|
1814
|
-
}
|
|
1815
|
-
}
|
|
1816
|
-
function change(conditions2) {
|
|
1817
|
-
conditions2.value = merge(conditions2.value, conditions2);
|
|
1818
|
-
exec();
|
|
1819
|
-
}
|
|
1820
|
-
function clean() {
|
|
1821
|
-
quick.value = "";
|
|
1822
|
-
conditions.value = [];
|
|
1823
|
-
emit("exec", conditions.value);
|
|
1824
|
-
}
|
|
1825
|
-
function refresh() {
|
|
1826
|
-
complex.value.close();
|
|
1827
|
-
exec();
|
|
1828
|
-
}
|
|
1829
|
-
function exec() {
|
|
1830
|
-
if (!showComplex) {
|
|
1831
|
-
emit("exec", quick.value);
|
|
1832
|
-
return;
|
|
1833
|
-
}
|
|
1834
|
-
emit("exec", condition.value);
|
|
1835
|
-
}
|
|
1836
|
-
const placeholder = computed(() => {
|
|
1837
|
-
return props.quickPlaceholder ? props.quickPlaceholder : t("fu.search_bar.search");
|
|
1838
|
-
});
|
|
1839
|
-
const showComplex = computed(() => {
|
|
1840
|
-
var _a;
|
|
1841
|
-
if (slots == null ? void 0 : slots.complex)
|
|
1842
|
-
return true;
|
|
1843
|
-
return ((_a = props.components) == null ? void 0 : _a.length) > 0;
|
|
1844
|
-
});
|
|
1845
|
-
const showClean = computed(() => {
|
|
1846
|
-
return props.useCleanButton && showComplex && (conditions.value.length > 0 || quick.value);
|
|
1847
|
-
});
|
|
1848
|
-
const showRefresh = computed(() => {
|
|
1849
|
-
return props.useRefreshButton && showComplex;
|
|
1850
|
-
});
|
|
1851
|
-
const condition = computed(() => {
|
|
1852
|
-
const condition2 = {};
|
|
1853
|
-
if (conditions.value.length > 0) {
|
|
1854
|
-
conditions.value.forEach((c) => {
|
|
1855
|
-
const { field, operator, value } = c;
|
|
1856
|
-
condition2[c.field] = { field, operator, value };
|
|
1857
|
-
});
|
|
1858
|
-
}
|
|
1859
|
-
return condition2;
|
|
1860
|
-
});
|
|
1861
|
-
return (_ctx, _cache) => {
|
|
1862
|
-
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1863
|
-
createElementVNode("div", _hoisted_2$3, [
|
|
1864
|
-
createCommentVNode(' :size="configSize" '),
|
|
1865
|
-
unref(showComplex) ? (openBlock(), createBlock(FuComplexSearch, {
|
|
1866
|
-
key: 0,
|
|
1867
|
-
ref_key: "complex",
|
|
1868
|
-
ref: complex,
|
|
1869
|
-
components: __props.components,
|
|
1870
|
-
onChange: change,
|
|
1871
|
-
onClose: closePopover
|
|
1872
|
-
}, {
|
|
1873
|
-
default: withCtx(() => [
|
|
1874
|
-
renderSlot(_ctx.$slots, "complex")
|
|
1875
|
-
]),
|
|
1876
|
-
_: 3
|
|
1877
|
-
}, 8, ["components"])) : createCommentVNode("v-if", true),
|
|
1878
|
-
createCommentVNode(' :size="configSize" '),
|
|
1879
|
-
unref(showComplex) ? (openBlock(), createBlock(FuSearchConditions, {
|
|
1880
|
-
key: 1,
|
|
1881
|
-
conditions: conditions.value,
|
|
1882
|
-
onChange: change
|
|
1883
|
-
}, null, 8, ["conditions"])) : createCommentVNode("v-if", true),
|
|
1884
|
-
createCommentVNode(' :size="configSize" '),
|
|
1885
|
-
__props.useQuickSearch ? (openBlock(), createBlock(FuQuickSearch, {
|
|
1886
|
-
key: 2,
|
|
1887
|
-
"use-icon": !unref(showComplex),
|
|
1888
|
-
placeholder: unref(placeholder),
|
|
1889
|
-
modelValue: quick.value,
|
|
1890
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => quick.value = $event),
|
|
1891
|
-
onChange: quickChange
|
|
1892
|
-
}, null, 8, ["use-icon", "placeholder", "modelValue"])) : createCommentVNode("v-if", true)
|
|
1893
|
-
]),
|
|
1894
|
-
createElementVNode("div", _hoisted_3, [
|
|
1895
|
-
renderSlot(_ctx.$slots, "buttons", {}, () => [
|
|
1896
|
-
createCommentVNode(' :size="configSize" '),
|
|
1897
|
-
unref(showClean) ? (openBlock(), createBlock(FuSearchBarButton, {
|
|
1898
|
-
key: 0,
|
|
1899
|
-
icon: "Close",
|
|
1900
|
-
onClick: clean,
|
|
1901
|
-
tooltip: unref(t)("fu.search_bar.clean")
|
|
1902
|
-
}, null, 8, ["tooltip"])) : createCommentVNode("v-if", true),
|
|
1903
|
-
createCommentVNode(' :size="configSize" '),
|
|
1904
|
-
unref(showRefresh) ? (openBlock(), createBlock(FuSearchBarButton, {
|
|
1905
|
-
key: 1,
|
|
1906
|
-
icon: "Refresh",
|
|
1907
|
-
onClick: refresh,
|
|
1908
|
-
tooltip: unref(t)("fu.search_bar.refresh")
|
|
1909
|
-
}, null, 8, ["tooltip"])) : createCommentVNode("v-if", true),
|
|
1910
|
-
renderSlot(_ctx.$slots, "default")
|
|
1911
|
-
])
|
|
1912
|
-
])
|
|
1913
|
-
]);
|
|
1914
|
-
};
|
|
1915
|
-
}
|
|
1916
|
-
}));
|
|
1917
|
-
var FuSearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "/Users/q4speed/fit2cloud2.0/fit2cloud-ui-plus/src/components/search-bar/FuSearchBar.vue"]]);
|
|
1918
|
-
FuSearchBar.install = (app) => {
|
|
1919
|
-
app.component(FuSearchBar.name, FuSearchBar);
|
|
1920
|
-
app.component(FuSearchBarButton.name, FuSearchBarButton);
|
|
1921
|
-
app.component(FuQuickSearch.name, FuQuickSearch);
|
|
1922
|
-
};
|
|
1923
|
-
var __glob_1_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1924
|
-
__proto__: null,
|
|
1925
|
-
"default": FuSearchBar
|
|
1926
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1927
|
-
const COMPONENTS_TYPE = ["default", "primary", "success", "warning", "danger", "info"];
|
|
1928
|
-
const validateType = (value) => {
|
|
1929
|
-
if (!value)
|
|
1930
|
-
return true;
|
|
1931
|
-
if (COMPONENTS_TYPE.includes(value)) {
|
|
1932
|
-
return true;
|
|
1933
|
-
}
|
|
1934
|
-
console.error("types is not contains " + value);
|
|
1935
|
-
return false;
|
|
1936
|
-
};
|
|
1937
|
-
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1938
|
-
props: {
|
|
1939
|
-
type: {
|
|
1940
|
-
type: String,
|
|
1941
|
-
default: "default",
|
|
1942
|
-
validator: validateType
|
|
1943
|
-
},
|
|
1944
|
-
rotate: Boolean,
|
|
1945
|
-
disabled: Boolean,
|
|
1946
|
-
active: Boolean,
|
|
1947
|
-
icon: String,
|
|
1948
|
-
size: {
|
|
1949
|
-
type: String,
|
|
1950
|
-
default: "32px"
|
|
1951
|
-
},
|
|
1952
|
-
backgroundColor: String,
|
|
1953
|
-
color: String,
|
|
1954
|
-
fontSize: String
|
|
1955
|
-
},
|
|
1956
|
-
setup(__props) {
|
|
1957
|
-
return (_ctx, _cache) => {
|
|
1958
|
-
return openBlock(), createElementBlock("div", {
|
|
1959
|
-
class: normalizeClass([
|
|
1960
|
-
"fu-speed-dial-button",
|
|
1961
|
-
"fu-speed-dial-button--" + __props.type,
|
|
1962
|
-
{
|
|
1963
|
-
"fu-speed-dial-button--rotate": __props.rotate,
|
|
1964
|
-
"is-disabled": __props.disabled,
|
|
1965
|
-
"is-active": __props.active
|
|
1966
|
-
}
|
|
1967
|
-
]),
|
|
1968
|
-
style: normalizeStyle({
|
|
1969
|
-
width: __props.size,
|
|
1970
|
-
height: __props.size,
|
|
1971
|
-
backgroundColor: __props.backgroundColor,
|
|
1972
|
-
color: __props.color,
|
|
1973
|
-
fontSize: __props.fontSize
|
|
1974
|
-
})
|
|
1975
|
-
}, [
|
|
1976
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1977
|
-
createElementVNode("i", {
|
|
1978
|
-
class: normalizeClass(__props.icon)
|
|
1979
|
-
}, null, 2)
|
|
1980
|
-
])
|
|
1981
|
-
], 6);
|
|
1982
|
-
};
|
|
1983
|
-
}
|
|
1984
|
-
});
|
|
1985
|
-
var FuSpeedDialButton = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "/Users/q4speed/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialButton.vue"]]);
|
|
1986
|
-
const _hoisted_1$5 = { class: "fu-speed-dial-action-button" };
|
|
1987
|
-
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1988
|
-
props: {
|
|
1989
|
-
index: Number,
|
|
1990
|
-
icon: {
|
|
1991
|
-
type: String,
|
|
1992
|
-
default: "el-icon-plus"
|
|
1993
|
-
},
|
|
1994
|
-
titleClass: String,
|
|
1995
|
-
titleBgColor: String,
|
|
1996
|
-
titleColor: String,
|
|
1997
|
-
buttonClass: String,
|
|
1998
|
-
bgColor: String,
|
|
1999
|
-
color: String,
|
|
2000
|
-
title: [String, Number]
|
|
2001
|
-
},
|
|
2002
|
-
emits: ["click"],
|
|
2003
|
-
setup(__props, { emit }) {
|
|
2004
|
-
const props = __props;
|
|
2005
|
-
const FuSpeedDial2 = inject("FuSpeedDial");
|
|
2006
|
-
const config = computed(() => {
|
|
2007
|
-
return FuSpeedDial2.config;
|
|
2008
|
-
});
|
|
2009
|
-
const direction = computed(() => {
|
|
2010
|
-
return FuSpeedDial2.direction;
|
|
2011
|
-
});
|
|
2012
|
-
computed(() => {
|
|
2013
|
-
return FuSpeedDial2.clickClose;
|
|
2014
|
-
});
|
|
2015
|
-
const titleSize = computed(() => {
|
|
2016
|
-
let size = config.value.fab.size + "px";
|
|
2017
|
-
let style = { position: "absolute", height: size };
|
|
2018
|
-
if (["top", "bottom"].includes(direction.value)) {
|
|
2019
|
-
style["text-align"] = "right";
|
|
2020
|
-
style["right"] = size;
|
|
2021
|
-
} else {
|
|
2022
|
-
style["text-align"] = "center";
|
|
2023
|
-
style["min-width"] = size;
|
|
2024
|
-
if (props.index % 2 === 0) {
|
|
2025
|
-
style.top = size;
|
|
2026
|
-
} else {
|
|
2027
|
-
style.top = "-" + size;
|
|
2028
|
-
}
|
|
2029
|
-
}
|
|
2030
|
-
return style;
|
|
2031
|
-
});
|
|
2032
|
-
const titleStyle = computed(() => {
|
|
2033
|
-
let backgroundColor = props.titleBgColor;
|
|
2034
|
-
let color = props.titleColor;
|
|
2035
|
-
let fontSize = config.value.item.titleFontSize;
|
|
2036
|
-
return { backgroundColor, color, fontSize };
|
|
2037
|
-
});
|
|
2038
|
-
const buttonProps = computed(() => {
|
|
2039
|
-
let backgroundColor = props.bgColor;
|
|
2040
|
-
let color = props.color;
|
|
2041
|
-
let fontSize = config.value.item.buttonFontSize;
|
|
2042
|
-
let size = config.value.item.size + "px";
|
|
2043
|
-
return { backgroundColor, color, fontSize, size };
|
|
2044
|
-
});
|
|
2045
|
-
function click(e) {
|
|
2046
|
-
const { index: index2, title } = props;
|
|
2047
|
-
emit("click", { index: index2, title }, e);
|
|
2048
|
-
FuSpeedDial2.close();
|
|
2049
|
-
}
|
|
2050
|
-
return (_ctx, _cache) => {
|
|
2051
|
-
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
2052
|
-
__props.title ? (openBlock(), createElementBlock("div", {
|
|
2053
|
-
key: 0,
|
|
2054
|
-
class: "fu-speed-dial-action-button__title",
|
|
2055
|
-
style: normalizeStyle(unref(titleSize))
|
|
2056
|
-
}, [
|
|
2057
|
-
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2058
|
-
createElementVNode("div", {
|
|
2059
|
-
class: normalizeClass(["fu-speed-dial-action-button__text", __props.titleClass]),
|
|
2060
|
-
style: normalizeStyle(unref(titleStyle)),
|
|
2061
|
-
onClick: click
|
|
2062
|
-
}, toDisplayString(__props.title), 7)
|
|
2063
|
-
])
|
|
2064
|
-
], 4)) : createCommentVNode("v-if", true),
|
|
2065
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2066
|
-
createVNode(FuSpeedDialButton, mergeProps({ class: __props.buttonClass }, unref(buttonProps), {
|
|
2067
|
-
icon: __props.icon,
|
|
2068
|
-
onClick: click
|
|
2069
|
-
}), null, 16, ["class", "icon"])
|
|
2070
|
-
])
|
|
2071
|
-
]);
|
|
2072
|
-
};
|
|
2073
|
-
}
|
|
2074
|
-
});
|
|
2075
|
-
var FuSpeedDialActionButton = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "/Users/q4speed/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialActionButton.vue"]]);
|
|
2076
|
-
const __default__$7 = { name: "FuSpeedDialItem" };
|
|
2077
|
-
const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$7), {
|
|
2078
|
-
props: {
|
|
2079
|
-
index: {
|
|
2080
|
-
type: Number,
|
|
2081
|
-
required: true
|
|
2082
|
-
}
|
|
2083
|
-
},
|
|
2084
|
-
setup(__props) {
|
|
2085
|
-
const props = __props;
|
|
2086
|
-
const FuSpeedDial2 = inject("FuSpeedDial");
|
|
2087
|
-
const config = computed(() => {
|
|
2088
|
-
return FuSpeedDial2.config;
|
|
2089
|
-
});
|
|
2090
|
-
const direction = computed(() => {
|
|
2091
|
-
return FuSpeedDial2.direction;
|
|
2092
|
-
});
|
|
2093
|
-
const isActive = computed(() => {
|
|
2094
|
-
return FuSpeedDial2.active;
|
|
2095
|
-
});
|
|
2096
|
-
computed(() => {
|
|
2097
|
-
return FuSpeedDial2.size;
|
|
2098
|
-
});
|
|
2099
|
-
const spacing = computed(() => {
|
|
2100
|
-
return config.value.item.spacing || 0;
|
|
2101
|
-
});
|
|
2102
|
-
const directionPosition = computed(() => {
|
|
2103
|
-
if (["top", "left"].includes(direction.value)) {
|
|
2104
|
-
return -config.value.fab.size - spacing.value;
|
|
2105
|
-
}
|
|
2106
|
-
return config.value.fab.size + spacing.value;
|
|
2107
|
-
});
|
|
2108
|
-
const itemSize = computed(() => {
|
|
2109
|
-
let size2 = config.value.fab.size + "px";
|
|
2110
|
-
return {
|
|
2111
|
-
width: size2,
|
|
2112
|
-
height: size2
|
|
2113
|
-
};
|
|
2114
|
-
});
|
|
2115
|
-
function setPosition(el, position) {
|
|
2116
|
-
if (["top", "bottom"].includes(direction.value)) {
|
|
2117
|
-
el.style.transform = "translateY(" + position + ")";
|
|
2118
|
-
} else {
|
|
2119
|
-
el.style.transform = "translateX(" + position + ")";
|
|
2120
|
-
}
|
|
2121
|
-
}
|
|
2122
|
-
function beforeEnter(el) {
|
|
2123
|
-
el.style.transition = "all 0.3s";
|
|
2124
|
-
el.style.position = "absolute";
|
|
2125
|
-
setPosition(el, 0);
|
|
2126
|
-
el.style.opacity = "0";
|
|
2127
|
-
}
|
|
2128
|
-
function enter(el, done) {
|
|
2129
|
-
let position = props.index * directionPosition.value + "px";
|
|
2130
|
-
setTimeout(() => {
|
|
2131
|
-
setPosition(el, position);
|
|
2132
|
-
el.style.opacity = "1";
|
|
2133
|
-
done();
|
|
2134
|
-
});
|
|
2135
|
-
}
|
|
2136
|
-
function leave(el, done) {
|
|
2137
|
-
setPosition(el, 0);
|
|
2138
|
-
el.style.opacity = "0";
|
|
2139
|
-
setTimeout(() => {
|
|
2140
|
-
done();
|
|
2141
|
-
}, 200);
|
|
2142
|
-
}
|
|
2143
|
-
return (_ctx, _cache) => {
|
|
2144
|
-
return openBlock(), createBlock(Transition, {
|
|
2145
|
-
css: false,
|
|
2146
|
-
onBeforeEnter: beforeEnter,
|
|
2147
|
-
onEnter: enter,
|
|
2148
|
-
onLeave: leave
|
|
2149
|
-
}, {
|
|
2150
|
-
default: withCtx(() => [
|
|
2151
|
-
unref(isActive) ? (openBlock(), createElementBlock("div", {
|
|
2152
|
-
key: 0,
|
|
2153
|
-
class: "fu-speed-dial-item",
|
|
2154
|
-
style: normalizeStyle(unref(itemSize))
|
|
2155
|
-
}, [
|
|
2156
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2157
|
-
createVNode(FuSpeedDialActionButton, mergeProps({ index: __props.index }, _ctx.$attrs), null, 16, ["index"])
|
|
2158
|
-
])
|
|
2159
|
-
], 4)) : createCommentVNode("v-if", true)
|
|
2160
|
-
]),
|
|
2161
|
-
_: 3
|
|
2162
|
-
});
|
|
2163
|
-
};
|
|
2164
|
-
}
|
|
2165
|
-
}));
|
|
2166
|
-
var FuSpeedDialItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "/Users/q4speed/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDialItem.vue"]]);
|
|
2167
|
-
const _hoisted_1$4 = { class: "fu-speed-dial__content" };
|
|
2168
|
-
const __default__$6 = { name: "FuSpeedDial" };
|
|
2169
|
-
const _sfc_main$b = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$6), {
|
|
2170
|
-
props: {
|
|
2171
|
-
id: String,
|
|
2172
|
-
value: Boolean,
|
|
2173
|
-
type: {
|
|
2174
|
-
type: String,
|
|
2175
|
-
default: "primary"
|
|
2176
|
-
},
|
|
2177
|
-
items: Array,
|
|
2178
|
-
size: {
|
|
2179
|
-
type: String,
|
|
2180
|
-
default: "default",
|
|
2181
|
-
validator: (value) => ["big", "default", "medium", "small"].includes(value)
|
|
2182
|
-
},
|
|
2183
|
-
direction: {
|
|
2184
|
-
type: String,
|
|
2185
|
-
default: "top",
|
|
2186
|
-
validator: (value) => ["top", "bottom", "left", "right"].includes(value)
|
|
2187
|
-
},
|
|
2188
|
-
icon: {
|
|
2189
|
-
type: String,
|
|
2190
|
-
default: "el-icon-plus"
|
|
2191
|
-
},
|
|
2192
|
-
activeIcon: {
|
|
2193
|
-
type: String,
|
|
2194
|
-
default: "el-icon-close"
|
|
2195
|
-
},
|
|
2196
|
-
movable: {
|
|
2197
|
-
type: Boolean,
|
|
2198
|
-
default: false
|
|
2199
|
-
},
|
|
2200
|
-
position: {
|
|
2201
|
-
type: String,
|
|
2202
|
-
validator: (value) => ["absolute", "fixed"].includes(value)
|
|
2203
|
-
},
|
|
2204
|
-
left: String,
|
|
2205
|
-
top: String,
|
|
2206
|
-
right: String,
|
|
2207
|
-
bottom: String,
|
|
2208
|
-
zIndex: {
|
|
2209
|
-
type: [String, Number],
|
|
2210
|
-
default: 99
|
|
2211
|
-
},
|
|
2212
|
-
itemClickClose: {
|
|
2213
|
-
type: Boolean,
|
|
2214
|
-
default: true
|
|
2215
|
-
},
|
|
2216
|
-
outsideClose: {
|
|
2217
|
-
type: Boolean,
|
|
2218
|
-
default: true
|
|
2219
|
-
},
|
|
2220
|
-
manual: {
|
|
2221
|
-
type: Boolean,
|
|
2222
|
-
default: false
|
|
2223
|
-
},
|
|
2224
|
-
localKey: String,
|
|
2225
|
-
sizeOptions: {
|
|
2226
|
-
type: Object,
|
|
2227
|
-
default: () => {
|
|
2228
|
-
return {
|
|
2229
|
-
big: {
|
|
2230
|
-
fab: { size: 56, fontSize: "18px" },
|
|
2231
|
-
item: { size: 40, spacing: 0, titleFontSize: "14px", buttonFontSize: "18px" }
|
|
2232
|
-
},
|
|
2233
|
-
default: {
|
|
2234
|
-
fab: { size: 40, fontSize: "16px" },
|
|
2235
|
-
item: { size: 32, spacing: 0, titleFontSize: "14px", buttonFontSize: "16px" }
|
|
2236
|
-
},
|
|
2237
|
-
medium: {
|
|
2238
|
-
fab: { size: 36, fontSize: "14px" },
|
|
2239
|
-
item: { size: 28, spacing: 0, titleFontSize: "12px", buttonFontSize: "14px" }
|
|
2240
|
-
},
|
|
2241
|
-
small: {
|
|
2242
|
-
fab: { size: 32, fontSize: "12px" },
|
|
2243
|
-
item: { size: 24, spacing: 0, titleFontSize: "12px", buttonFontSize: "12px" }
|
|
2244
|
-
}
|
|
2245
|
-
};
|
|
2246
|
-
}
|
|
2247
|
-
}
|
|
2248
|
-
},
|
|
2249
|
-
emits: ["close", "outside-click", "click"],
|
|
2250
|
-
setup(__props, { expose, emit }) {
|
|
2251
|
-
const props = __props;
|
|
2252
|
-
const slots = useSlots();
|
|
2253
|
-
const instance = getCurrentInstance();
|
|
2254
|
-
const { zIndex, position, left, top, right, bottom } = props;
|
|
2255
|
-
const active = ref(false);
|
|
2256
|
-
const moving = ref(false);
|
|
2257
|
-
const style = reactive({ zIndex, position, left, top, right, bottom });
|
|
2258
|
-
const updateStyle = function() {
|
|
2259
|
-
style.value = { zIndex, position, left, top, right, bottom };
|
|
2260
|
-
};
|
|
2261
|
-
provide("FuSpeedDial", instance);
|
|
2262
|
-
watch(() => props.value, (v) => {
|
|
2263
|
-
active.value = v;
|
|
2264
|
-
});
|
|
2265
|
-
watch(() => props.position, updateStyle);
|
|
2266
|
-
watch(() => props.zIndex, updateStyle);
|
|
2267
|
-
watch(() => props.left, updateStyle);
|
|
2268
|
-
watch(() => props.right, updateStyle);
|
|
2269
|
-
watch(() => props.top, updateStyle);
|
|
2270
|
-
watch(() => props.bottom, updateStyle);
|
|
2271
|
-
const saveKey = computed(() => {
|
|
2272
|
-
return "Fu-SD-" + props.localKey;
|
|
2273
|
-
});
|
|
2274
|
-
const hashChildren = computed(() => {
|
|
2275
|
-
if (props.items && props.items.length > 0) {
|
|
2276
|
-
return true;
|
|
2277
|
-
}
|
|
2278
|
-
return slots && slots.default;
|
|
2279
|
-
});
|
|
2280
|
-
const config = computed(() => {
|
|
2281
|
-
return props.sizeOptions[props.size] || props.sizeOptions["default"];
|
|
2282
|
-
});
|
|
2283
|
-
const buttonProps = computed(() => {
|
|
2284
|
-
let type = props.type;
|
|
2285
|
-
let rotate = true;
|
|
2286
|
-
let activeValue = active.value;
|
|
2287
|
-
let size = config.value.fab.size + "px";
|
|
2288
|
-
let fontSize = config.value.fab.fontSize;
|
|
2289
|
-
let icon = props.activeIcon === props.icon ? props.icon : active.value ? props.activeIcon : props.icon;
|
|
2290
|
-
return { type, rotate, active: activeValue, size, fontSize, icon };
|
|
2291
|
-
});
|
|
2292
|
-
const spacing = computed(() => {
|
|
2293
|
-
let spacing2 = config.value.item.spacing || 0;
|
|
2294
|
-
spacing2 += (config.value.fab.size - config.value.item.size) / 2;
|
|
2295
|
-
return spacing2;
|
|
2296
|
-
});
|
|
2297
|
-
const contentPosition = computed(() => {
|
|
2298
|
-
let position2 = config.value.fab.size + spacing.value;
|
|
2299
|
-
if (["top", "left"].includes(props.direction)) {
|
|
2300
|
-
position2 = -config.value.fab.size - spacing.value;
|
|
2301
|
-
}
|
|
2302
|
-
let style2 = { position: "absolute", zIndex: props.zIndex };
|
|
2303
|
-
if (["top", "bottom"].includes(props.direction)) {
|
|
2304
|
-
style2.top = position2 + "px";
|
|
2305
|
-
} else {
|
|
2306
|
-
style2.top = 0;
|
|
2307
|
-
style2.left = position2 + "px";
|
|
2308
|
-
}
|
|
2309
|
-
return style2;
|
|
2310
|
-
});
|
|
2311
|
-
function toggle(active2) {
|
|
2312
|
-
if (!moving.value && hashChildren.value) {
|
|
2313
|
-
active2.value = active2 === void 0 ? !active2.value : active2;
|
|
2314
|
-
}
|
|
2315
|
-
}
|
|
2316
|
-
function click(e) {
|
|
2317
|
-
if (!props.manual) {
|
|
2318
|
-
toggle();
|
|
2319
|
-
}
|
|
2320
|
-
emit("click", [props.id, active.value], e);
|
|
2321
|
-
}
|
|
2322
|
-
function mousedown() {
|
|
2323
|
-
if (moving.value) {
|
|
2324
|
-
document.addEventListener("mousemove", mousemove);
|
|
2325
|
-
document.addEventListener("mouseup", mouseup);
|
|
2326
|
-
}
|
|
2327
|
-
}
|
|
2328
|
-
function mousemove(e) {
|
|
2329
|
-
moving.value = true;
|
|
2330
|
-
if (props.position === "fixed") {
|
|
2331
|
-
const el = instance.vnode.el;
|
|
2332
|
-
const rect = el.getBoundingClientRect();
|
|
2333
|
-
let left2 = e.clientX - rect.width / 2;
|
|
2334
|
-
let top2 = e.clientY - rect.height / 2;
|
|
2335
|
-
style.value.left = left2 + "px";
|
|
2336
|
-
style.value.top = top2 + "px";
|
|
2337
|
-
delete style.value.right;
|
|
2338
|
-
delete style.value.bottom;
|
|
2339
|
-
}
|
|
2340
|
-
if (props.position === "absolute") {
|
|
2341
|
-
const { offsetLeft, offsetTop, clientWidth, clientHeight, offsetParent } = this.$el;
|
|
2342
|
-
const maxWidth = offsetParent.clientWidth - clientWidth;
|
|
2343
|
-
const maxHeight = offsetParent.clientHeight - clientHeight;
|
|
2344
|
-
let left2 = offsetLeft + e.movementX;
|
|
2345
|
-
let top2 = offsetTop + e.movementY;
|
|
2346
|
-
if (left2 > 0 && left2 < maxWidth) {
|
|
2347
|
-
style.value.left = left2 + "px";
|
|
2348
|
-
delete style.value.right;
|
|
2349
|
-
}
|
|
2350
|
-
if (top2 > 0 && top2 < maxHeight) {
|
|
2351
|
-
style.value.top = top2 + "px";
|
|
2352
|
-
delete style.value.bottom;
|
|
2353
|
-
}
|
|
2354
|
-
}
|
|
2355
|
-
}
|
|
2356
|
-
function mouseup() {
|
|
2357
|
-
writePosition();
|
|
2358
|
-
document.removeEventListener("mousemove", mousemove);
|
|
2359
|
-
document.removeEventListener("mouseup", mouseup);
|
|
2360
|
-
setTimeout(() => moving.value = false);
|
|
2361
|
-
}
|
|
2362
|
-
function writePosition() {
|
|
2363
|
-
if (props.localKey) {
|
|
2364
|
-
localStorage.setItem(saveKey.value, JSON.stringify(style.value));
|
|
2365
|
-
}
|
|
2366
|
-
}
|
|
2367
|
-
function readPosition() {
|
|
2368
|
-
let position2 = localStorage.getItem(saveKey.value);
|
|
2369
|
-
try {
|
|
2370
|
-
localStorage.getItem(saveKey.value);
|
|
2371
|
-
if (position2) {
|
|
2372
|
-
style.value = JSON.parse(position2);
|
|
2373
|
-
}
|
|
2374
|
-
} catch (e) {
|
|
2375
|
-
console.warn(saveKey.value + " error", e);
|
|
2376
|
-
}
|
|
2377
|
-
}
|
|
2378
|
-
function itemClick(arg, e) {
|
|
2379
|
-
console.log(arg);
|
|
2380
|
-
const { index: index2 } = arg;
|
|
2381
|
-
if (index2 !== void 0) {
|
|
2382
|
-
const item = props.items[index2];
|
|
2383
|
-
if (item.click && typeof item.click === "function")
|
|
2384
|
-
return item.click(arg, e);
|
|
2385
|
-
}
|
|
2386
|
-
}
|
|
2387
|
-
function close() {
|
|
2388
|
-
if (props.itemClickClose && !props.manual) {
|
|
2389
|
-
toggle(false);
|
|
2390
|
-
}
|
|
2391
|
-
emit("close", [props.id, active.value]);
|
|
2392
|
-
}
|
|
2393
|
-
onMounted(() => {
|
|
2394
|
-
readPosition();
|
|
2395
|
-
});
|
|
2396
|
-
expose({
|
|
2397
|
-
close
|
|
2398
|
-
});
|
|
2399
|
-
return (_ctx, _cache) => {
|
|
2400
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
2401
|
-
createCommentVNode(' v-outside-click="outsideClickClose" '),
|
|
2402
|
-
createElementVNode("div", {
|
|
2403
|
-
class: "fu-speed-dial",
|
|
2404
|
-
style: normalizeStyle(unref(style))
|
|
2405
|
-
}, [
|
|
2406
|
-
createElementVNode("div", _hoisted_1$4, [
|
|
2407
|
-
renderSlot(_ctx.$slots, "fab", {}, () => [
|
|
2408
|
-
createVNode(FuSpeedDialButton, mergeProps(unref(buttonProps), {
|
|
2409
|
-
onClick: click,
|
|
2410
|
-
onMousedown: mousedown
|
|
2411
|
-
}), null, 16)
|
|
2412
|
-
]),
|
|
2413
|
-
createElementVNode("div", {
|
|
2414
|
-
style: normalizeStyle(unref(contentPosition))
|
|
2415
|
-
}, [
|
|
2416
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2417
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index2) => {
|
|
2418
|
-
return openBlock(), createBlock(FuSpeedDialItem, mergeProps({
|
|
2419
|
-
index: index2,
|
|
2420
|
-
key: index2
|
|
2421
|
-
}, item, { onClick: itemClick }), null, 16, ["index"]);
|
|
2422
|
-
}), 128))
|
|
2423
|
-
])
|
|
2424
|
-
], 4)
|
|
2425
|
-
])
|
|
2426
|
-
], 4)
|
|
2427
|
-
], 2112);
|
|
2428
|
-
};
|
|
2429
|
-
}
|
|
2430
|
-
}));
|
|
2431
|
-
var FuSpeedDial = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "/Users/q4speed/fit2cloud2.0/fit2cloud-ui-plus/src/components/speed-dial/FuSpeedDial.vue"]]);
|
|
2432
|
-
FuSpeedDial.install = (app) => {
|
|
2433
|
-
app.component(FuSpeedDial.name, FuSpeedDial);
|
|
2434
|
-
app.component(FuSpeedDialItem.name, FuSpeedDialItem);
|
|
2435
|
-
};
|
|
2436
|
-
var __glob_1_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2437
|
-
__proto__: null,
|
|
2438
|
-
"default": FuSpeedDial
|
|
2439
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2440
1527
|
const _hoisted_1$3 = {
|
|
2441
1528
|
key: 0,
|
|
2442
1529
|
class: "icon"
|
|
2443
1530
|
};
|
|
2444
|
-
const
|
|
2445
|
-
const
|
|
2446
|
-
const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$5), {
|
|
1531
|
+
const __default__$7 = { name: "FuSplitPane" };
|
|
1532
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$7), {
|
|
2447
1533
|
props: {
|
|
2448
1534
|
min: {
|
|
2449
1535
|
type: [Number, String],
|
|
@@ -2604,6 +1690,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2604
1690
|
readValue();
|
|
2605
1691
|
});
|
|
2606
1692
|
return (_ctx, _cache) => {
|
|
1693
|
+
const _component_MoreFilled = resolveComponent("MoreFilled");
|
|
1694
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
2607
1695
|
return openBlock(), createElementBlock("div", {
|
|
2608
1696
|
style: normalizeStyle({ cursor: unref(cursor), userSelect: unref(userSelect) }),
|
|
2609
1697
|
class: "fu-split-pane",
|
|
@@ -2624,7 +1712,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2624
1712
|
}, [
|
|
2625
1713
|
__props.resizerType === "resizer" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
2626
1714
|
renderSlot(_ctx.$slots, "resizer", {}, () => [
|
|
2627
|
-
|
|
1715
|
+
createVNode(_component_el_icon, { size: 10 }, {
|
|
1716
|
+
default: withCtx(() => [
|
|
1717
|
+
createVNode(_component_MoreFilled)
|
|
1718
|
+
]),
|
|
1719
|
+
_: 1
|
|
1720
|
+
})
|
|
2628
1721
|
])
|
|
2629
1722
|
])) : createCommentVNode("v-if", true)
|
|
2630
1723
|
], 38),
|
|
@@ -2638,22 +1731,42 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2638
1731
|
};
|
|
2639
1732
|
}
|
|
2640
1733
|
}));
|
|
2641
|
-
var FuSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "/Users/
|
|
1734
|
+
var FuSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/split-pane/FuSplitPane.vue"]]);
|
|
2642
1735
|
FuSplitPane.install = (app) => {
|
|
2643
1736
|
app.component(FuSplitPane.name, FuSplitPane);
|
|
2644
1737
|
};
|
|
2645
|
-
var
|
|
1738
|
+
var __glob_1_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2646
1739
|
__proto__: null,
|
|
2647
1740
|
"default": FuSplitPane
|
|
2648
1741
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2649
|
-
|
|
2650
|
-
|
|
1742
|
+
Object.freeze({});
|
|
1743
|
+
Object.freeze([]);
|
|
1744
|
+
const isArray = Array.isArray;
|
|
1745
|
+
function isFragment(node) {
|
|
1746
|
+
return isVNode(node) && node.type === Fragment;
|
|
1747
|
+
}
|
|
1748
|
+
function isComment(node) {
|
|
1749
|
+
return isVNode(node) && node.type === Comment;
|
|
1750
|
+
}
|
|
1751
|
+
function isValidElementNode(node) {
|
|
1752
|
+
return isVNode(node) && !isFragment(node) && !isComment(node);
|
|
1753
|
+
}
|
|
1754
|
+
function isValidChildren(children) {
|
|
1755
|
+
return Array.isArray(children) ? isValidElementNode(children[0]) : false;
|
|
1756
|
+
}
|
|
1757
|
+
function getChildren(nodes, depth = 5) {
|
|
1758
|
+
let node = isArray(nodes) ? nodes[0] : nodes;
|
|
1759
|
+
if (isFragment(node)) {
|
|
1760
|
+
if (isValidChildren(node.children))
|
|
1761
|
+
return node.children;
|
|
1762
|
+
if (depth > 0) {
|
|
1763
|
+
return getChildren(node.children[0], depth - 1);
|
|
1764
|
+
}
|
|
2651
1765
|
}
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1766
|
+
if (isValidChildren(nodes))
|
|
1767
|
+
return nodes;
|
|
1768
|
+
return [];
|
|
1769
|
+
}
|
|
2657
1770
|
const isFix = (node) => {
|
|
2658
1771
|
const includeTag = node.type.name.indexOf("FuTableColumnDropdown") >= 0;
|
|
2659
1772
|
const { fix } = node.props;
|
|
@@ -2673,26 +1786,29 @@ const getLabel = (node) => {
|
|
|
2673
1786
|
return label;
|
|
2674
1787
|
};
|
|
2675
1788
|
const FuTableBody = (props, context) => {
|
|
2676
|
-
|
|
1789
|
+
let slots = context.slots.default();
|
|
2677
1790
|
const nodes = [];
|
|
2678
1791
|
let { columns } = props;
|
|
2679
|
-
|
|
1792
|
+
let children = getChildren(slots);
|
|
2680
1793
|
if (!children)
|
|
2681
1794
|
return nodes;
|
|
2682
1795
|
if (!columns || (columns == null ? void 0 : columns.length) === 0)
|
|
2683
1796
|
return children;
|
|
2684
1797
|
columns.forEach((col) => {
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
1798
|
+
if (isArray(children)) {
|
|
1799
|
+
let node = children.find((child) => {
|
|
1800
|
+
return col.label === getLabel(child) && child.type.name !== void 0;
|
|
1801
|
+
});
|
|
1802
|
+
if (node && (isFix(node) || col.show !== false)) {
|
|
1803
|
+
nodes.push(node);
|
|
1804
|
+
}
|
|
2690
1805
|
}
|
|
2691
1806
|
});
|
|
2692
1807
|
return nodes;
|
|
2693
1808
|
};
|
|
2694
|
-
const
|
|
2695
|
-
const
|
|
1809
|
+
const LocalKey = Symbol("LocalKey");
|
|
1810
|
+
const __default__$6 = { name: "FuTable" };
|
|
1811
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$6), {
|
|
2696
1812
|
props: {
|
|
2697
1813
|
columns: Array,
|
|
2698
1814
|
refresh: {
|
|
@@ -2702,42 +1818,25 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2702
1818
|
localKey: String
|
|
2703
1819
|
},
|
|
2704
1820
|
setup(__props) {
|
|
2705
|
-
var _a;
|
|
1821
|
+
var _a, _b;
|
|
2706
1822
|
const props = __props;
|
|
2707
|
-
const slots = useSlots();
|
|
1823
|
+
const slots = (_b = (_a = useSlots()).default) == null ? void 0 : _b.call(_a);
|
|
2708
1824
|
const key = ref(0);
|
|
2709
1825
|
const prefix = "FU-T-";
|
|
2710
|
-
const isFix2 = (node) => {
|
|
2711
|
-
const includeTag = node.type.name.indexOf("FuTableColumnDropdown") >= 0;
|
|
2712
|
-
const { fix } = node.props;
|
|
2713
|
-
let { type } = node.props;
|
|
2714
|
-
return fix !== void 0 && fix !== false || ["selection", "index", "expand"].includes(type) || includeTag;
|
|
2715
|
-
};
|
|
2716
|
-
const getLabel2 = (node) => {
|
|
2717
|
-
if (node.props.label)
|
|
2718
|
-
return node.props.label;
|
|
2719
|
-
const includeTag = node.type.name.indexOf("FuTableColumnDropdown") >= 0;
|
|
2720
|
-
let { label, type } = node.props;
|
|
2721
|
-
if (includeTag)
|
|
2722
|
-
label = prefix + "dropdown";
|
|
2723
|
-
label != null ? label : label = node.props.label;
|
|
2724
|
-
label != null ? label : label = prefix + type;
|
|
2725
|
-
return label;
|
|
2726
|
-
};
|
|
2727
1826
|
const cleanColumns = (columns) => {
|
|
2728
1827
|
columns.splice(0, columns.length);
|
|
2729
1828
|
};
|
|
2730
1829
|
const updateNodes = (nodes) => {
|
|
2731
1830
|
nodes.forEach((node) => {
|
|
2732
1831
|
if (!node.type.key) {
|
|
2733
|
-
node.type.key =
|
|
1832
|
+
node.type.key = getLabel(node);
|
|
2734
1833
|
}
|
|
2735
1834
|
});
|
|
2736
1835
|
};
|
|
2737
1836
|
const initColumns = (nodes, columns) => {
|
|
2738
1837
|
nodes.forEach((node) => {
|
|
2739
|
-
const label =
|
|
2740
|
-
const fix =
|
|
1838
|
+
const label = getLabel(node);
|
|
1839
|
+
const fix = isFix(node);
|
|
2741
1840
|
const { show } = node.props;
|
|
2742
1841
|
if (!label && !fix) {
|
|
2743
1842
|
throw new Error("unfixed column's label is required.");
|
|
@@ -2760,14 +1859,20 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2760
1859
|
if (columns.some((col) => col.label === void 0)) {
|
|
2761
1860
|
columns.forEach((col, i) => {
|
|
2762
1861
|
var _a2;
|
|
2763
|
-
(_a2 = col.label) != null ? _a2 : col.label =
|
|
1862
|
+
(_a2 = col.label) != null ? _a2 : col.label = getLabel(nodes[i]);
|
|
2764
1863
|
});
|
|
2765
1864
|
}
|
|
2766
1865
|
};
|
|
2767
1866
|
const columnsKey = computed(() => {
|
|
2768
1867
|
return prefix + props.localKey;
|
|
2769
1868
|
});
|
|
2770
|
-
|
|
1869
|
+
let children;
|
|
1870
|
+
if (slots) {
|
|
1871
|
+
if (isValidChildren(slots)) {
|
|
1872
|
+
children = slots;
|
|
1873
|
+
}
|
|
1874
|
+
children = getChildren(slots);
|
|
1875
|
+
}
|
|
2771
1876
|
watch(() => props.columns, () => {
|
|
2772
1877
|
if (props.refresh) {
|
|
2773
1878
|
key.value++;
|
|
@@ -2798,7 +1903,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2798
1903
|
initColumns(children, props.columns);
|
|
2799
1904
|
}
|
|
2800
1905
|
});
|
|
2801
|
-
provide(
|
|
1906
|
+
provide(LocalKey, props.localKey);
|
|
2802
1907
|
onUpdated(() => {
|
|
2803
1908
|
updateNodes(children);
|
|
2804
1909
|
updateColumns(children, props.columns);
|
|
@@ -2825,27 +1930,29 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
2825
1930
|
};
|
|
2826
1931
|
}
|
|
2827
1932
|
}));
|
|
2828
|
-
var FuTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "/Users/
|
|
1933
|
+
var FuTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/FuTable.vue"]]);
|
|
2829
1934
|
const tableColumnSelect = (localKey) => {
|
|
2830
1935
|
const columnsKey = computed(() => {
|
|
2831
1936
|
return localKey ? "FU-T-" + localKey : "";
|
|
2832
1937
|
});
|
|
2833
|
-
function dragstart(event,
|
|
1938
|
+
function dragstart(event, index) {
|
|
2834
1939
|
if (event.dataTransfer) {
|
|
2835
1940
|
event.dataTransfer.effectAllowed = "move";
|
|
2836
|
-
event.dataTransfer.setData("source_index",
|
|
1941
|
+
event.dataTransfer.setData("source_index", index);
|
|
2837
1942
|
}
|
|
2838
1943
|
}
|
|
2839
1944
|
function dragenter(event) {
|
|
2840
1945
|
event.preventDefault();
|
|
2841
|
-
|
|
2842
|
-
|
|
1946
|
+
let target = event.target;
|
|
1947
|
+
if (target) {
|
|
1948
|
+
target.style.opacity = ".2";
|
|
2843
1949
|
}
|
|
2844
1950
|
}
|
|
2845
1951
|
function dragleave(event) {
|
|
2846
1952
|
event.preventDefault();
|
|
2847
|
-
|
|
2848
|
-
|
|
1953
|
+
let target = event.target;
|
|
1954
|
+
if (target) {
|
|
1955
|
+
target.style.opacity = "";
|
|
2849
1956
|
}
|
|
2850
1957
|
}
|
|
2851
1958
|
function dragend(event) {
|
|
@@ -2853,10 +1960,11 @@ const tableColumnSelect = (localKey) => {
|
|
|
2853
1960
|
event.dataTransfer.clearData();
|
|
2854
1961
|
}
|
|
2855
1962
|
}
|
|
2856
|
-
function drop(event, list,
|
|
1963
|
+
function drop(event, list, index) {
|
|
2857
1964
|
var _a;
|
|
1965
|
+
let target = event.target;
|
|
2858
1966
|
let source_index = Number((_a = event.dataTransfer) == null ? void 0 : _a.getData("source_index"));
|
|
2859
|
-
let target_index =
|
|
1967
|
+
let target_index = index;
|
|
2860
1968
|
if (target_index > source_index) {
|
|
2861
1969
|
list.splice(target_index + 1, 0, list[source_index]);
|
|
2862
1970
|
list.splice(source_index, 1);
|
|
@@ -2864,8 +1972,8 @@ const tableColumnSelect = (localKey) => {
|
|
|
2864
1972
|
list.splice(target_index, 0, list[source_index]);
|
|
2865
1973
|
list.splice(source_index + 1, 1);
|
|
2866
1974
|
}
|
|
2867
|
-
if (
|
|
2868
|
-
|
|
1975
|
+
if (target) {
|
|
1976
|
+
target.style.opacity = "";
|
|
2869
1977
|
}
|
|
2870
1978
|
}
|
|
2871
1979
|
return {
|
|
@@ -2880,6 +1988,7 @@ const tableColumnSelect = (localKey) => {
|
|
|
2880
1988
|
const _hoisted_1$2 = { class: "fu-table-column-select-popper__body" };
|
|
2881
1989
|
const _hoisted_2$1 = { class: "fu-table-column-select-popper__footer" };
|
|
2882
1990
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1991
|
+
__name: "FuTableColumnSelectPopover",
|
|
2883
1992
|
props: {
|
|
2884
1993
|
icon: {
|
|
2885
1994
|
type: String,
|
|
@@ -2898,7 +2007,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2898
2007
|
setup(__props) {
|
|
2899
2008
|
const props = __props;
|
|
2900
2009
|
const { t } = useLocale();
|
|
2901
|
-
const localKey = inject(
|
|
2010
|
+
const localKey = inject(LocalKey, void 0);
|
|
2902
2011
|
const {
|
|
2903
2012
|
columnsKey,
|
|
2904
2013
|
dragstart,
|
|
@@ -2927,11 +2036,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2927
2036
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
2928
2037
|
const _component_el_button = resolveComponent("el-button");
|
|
2929
2038
|
const _component_el_popover = resolveComponent("el-popover");
|
|
2930
|
-
return
|
|
2039
|
+
return openBlock(), createBlock(_component_el_popover, {
|
|
2931
2040
|
class: "fu-table-column-select",
|
|
2932
2041
|
"popper-class": "fu-table-column-select-popper",
|
|
2933
2042
|
trigger: __props.trigger,
|
|
2934
|
-
"show-arrow": false
|
|
2043
|
+
"show-arrow": false,
|
|
2044
|
+
style: normalizeStyle({ "visibility": unref(hasSelect) ? "visible" : "hidden" })
|
|
2935
2045
|
}, {
|
|
2936
2046
|
reference: withCtx(() => [
|
|
2937
2047
|
createVNode(_component_el_button, {
|
|
@@ -2988,25 +2098,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2988
2098
|
])
|
|
2989
2099
|
]),
|
|
2990
2100
|
_: 1
|
|
2991
|
-
}, 8, ["trigger"])
|
|
2992
|
-
[vShow, unref(hasSelect)]
|
|
2993
|
-
]);
|
|
2101
|
+
}, 8, ["trigger", "style"]);
|
|
2994
2102
|
};
|
|
2995
2103
|
}
|
|
2996
2104
|
});
|
|
2997
|
-
var FuTableColumnSelectPopover = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "/Users/
|
|
2105
|
+
var FuTableColumnSelectPopover = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelectPopover.vue"]]);
|
|
2998
2106
|
const _hoisted_1$1 = { style: { "display": "inline-block" } };
|
|
2999
2107
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2108
|
+
__name: "FuTableColumnSelectDialog",
|
|
3000
2109
|
props: {
|
|
3001
2110
|
icon: {
|
|
3002
2111
|
type: String,
|
|
3003
2112
|
default: "Setting"
|
|
3004
2113
|
},
|
|
3005
|
-
trigger: {
|
|
3006
|
-
type: String,
|
|
3007
|
-
default: "hover",
|
|
3008
|
-
validator: (value) => ["click", "hover"].includes(value)
|
|
3009
|
-
},
|
|
3010
2114
|
columns: {
|
|
3011
2115
|
type: Array,
|
|
3012
2116
|
default: () => []
|
|
@@ -3014,7 +2118,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3014
2118
|
},
|
|
3015
2119
|
setup(__props) {
|
|
3016
2120
|
const props = __props;
|
|
3017
|
-
const localKey = inject(
|
|
2121
|
+
const localKey = inject(LocalKey, void 0);
|
|
3018
2122
|
const { t } = useLocale();
|
|
3019
2123
|
const cloneColumn = (source, target) => {
|
|
3020
2124
|
source.forEach((col) => {
|
|
@@ -3044,7 +2148,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3044
2148
|
visible.value = false;
|
|
3045
2149
|
}
|
|
3046
2150
|
function reset() {
|
|
3047
|
-
if (columnsKey) {
|
|
2151
|
+
if (columnsKey.value) {
|
|
3048
2152
|
localStorage.removeItem(columnsKey.value);
|
|
3049
2153
|
}
|
|
3050
2154
|
props.columns.splice(0, props.columns.length);
|
|
@@ -3056,7 +2160,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3056
2160
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
3057
2161
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
3058
2162
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
3059
|
-
createCommentVNode(' :size="configSize" '),
|
|
3060
2163
|
createVNode(_component_el_button, {
|
|
3061
2164
|
class: "fu-search-bar-button",
|
|
3062
2165
|
icon: __props.icon,
|
|
@@ -3074,7 +2177,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3074
2177
|
onOpen: open,
|
|
3075
2178
|
"append-to-body": ""
|
|
3076
2179
|
}, {
|
|
3077
|
-
|
|
2180
|
+
header: withCtx(() => [
|
|
3078
2181
|
createElementVNode("h3", null, toDisplayString(unref(t)("fu.table.custom_table_fields")), 1),
|
|
3079
2182
|
createVNode(_component_el_alert, {
|
|
3080
2183
|
title: unref(t)("fu.table.custom_table_fields_desc"),
|
|
@@ -3103,7 +2206,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3103
2206
|
})
|
|
3104
2207
|
]),
|
|
3105
2208
|
default: withCtx(() => [
|
|
3106
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(cloneColumns
|
|
2209
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(cloneColumns), (c, i) => {
|
|
3107
2210
|
return withDirectives((openBlock(), createBlock(_component_el_checkbox, {
|
|
3108
2211
|
key: i,
|
|
3109
2212
|
modelValue: c.show,
|
|
@@ -3116,7 +2219,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3116
2219
|
onDragover: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
3117
2220
|
}, ["prevent"])),
|
|
3118
2221
|
onDragend: unref(dragend),
|
|
3119
|
-
onDrop: ($event) => unref(drop)($event, cloneColumns
|
|
2222
|
+
onDrop: ($event) => unref(drop)($event, unref(cloneColumns), i)
|
|
3120
2223
|
}, {
|
|
3121
2224
|
default: withCtx(() => [
|
|
3122
2225
|
createTextVNode(toDisplayString(c.label), 1)
|
|
@@ -3133,7 +2236,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3133
2236
|
};
|
|
3134
2237
|
}
|
|
3135
2238
|
});
|
|
3136
|
-
var FuTableColumnSelectDialog = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "/Users/
|
|
2239
|
+
var FuTableColumnSelectDialog = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelectDialog.vue"]]);
|
|
3137
2240
|
const _sfc_main$6 = defineComponent({
|
|
3138
2241
|
name: "FuTableColumnSelect",
|
|
3139
2242
|
props: ["type"],
|
|
@@ -3148,12 +2251,9 @@ const _sfc_main$6 = defineComponent({
|
|
|
3148
2251
|
};
|
|
3149
2252
|
}
|
|
3150
2253
|
});
|
|
3151
|
-
var FuTableColumnSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__file", "/Users/
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
};
|
|
3155
|
-
const __default__$3 = { name: "FuTablePagination" };
|
|
3156
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
|
|
2254
|
+
var FuTableColumnSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-column-select/FuTableColumnSelect.vue"]]);
|
|
2255
|
+
const __default__$5 = { name: "FuTablePagination" };
|
|
2256
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$5), {
|
|
3157
2257
|
props: {
|
|
3158
2258
|
currentPage: {
|
|
3159
2259
|
type: Number,
|
|
@@ -3200,13 +2300,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
3200
2300
|
};
|
|
3201
2301
|
}
|
|
3202
2302
|
}));
|
|
3203
|
-
var FuTablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__file", "/Users/
|
|
3204
|
-
const
|
|
2303
|
+
var FuTablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/FuTablePagination.vue"]]);
|
|
2304
|
+
const __default__$4 = { name: "FuTableButton" };
|
|
2305
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
|
|
3205
2306
|
props: {
|
|
3206
|
-
size: {
|
|
3207
|
-
type: String,
|
|
3208
|
-
default: "default"
|
|
3209
|
-
},
|
|
3210
2307
|
label: String,
|
|
3211
2308
|
disabled: Boolean,
|
|
3212
2309
|
icon: Boolean
|
|
@@ -3231,9 +2328,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3231
2328
|
}, 8, ["content", "disabled"]);
|
|
3232
2329
|
};
|
|
3233
2330
|
}
|
|
3234
|
-
});
|
|
3235
|
-
var FuTableButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "/Users/
|
|
3236
|
-
const
|
|
2331
|
+
}));
|
|
2332
|
+
var FuTableButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-operations/FuTableButton.vue"]]);
|
|
2333
|
+
const __default__$3 = { name: "FuTableMoreButton" };
|
|
2334
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
|
|
3237
2335
|
props: {
|
|
3238
2336
|
row: Object,
|
|
3239
2337
|
buttons: {
|
|
@@ -3278,7 +2376,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3278
2376
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.buttons, (btn, i) => {
|
|
3279
2377
|
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
3280
2378
|
key: i,
|
|
3281
|
-
icon: __props.type === "icon"
|
|
2379
|
+
icon: __props.type === "icon" ? btn.icon : "",
|
|
3282
2380
|
disabled: unref(disabled)(btn),
|
|
3283
2381
|
command: btn
|
|
3284
2382
|
}, {
|
|
@@ -3307,7 +2405,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3307
2405
|
_: 1
|
|
3308
2406
|
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3309
2407
|
createTextVNode(toDisplayString(unref(t)("fu.table.more")), 1)
|
|
3310
|
-
],
|
|
2408
|
+
], 64))
|
|
3311
2409
|
]),
|
|
3312
2410
|
_: 1
|
|
3313
2411
|
})
|
|
@@ -3316,8 +2414,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3316
2414
|
});
|
|
3317
2415
|
};
|
|
3318
2416
|
}
|
|
3319
|
-
});
|
|
3320
|
-
var FuTableMoreButton = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "/Users/
|
|
2417
|
+
}));
|
|
2418
|
+
var FuTableMoreButton = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-operations/FuTableMoreButton.vue"]]);
|
|
3321
2419
|
const __default__$2 = { name: "FuTableOperations" };
|
|
3322
2420
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
|
|
3323
2421
|
props: {
|
|
@@ -3329,7 +2427,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
3329
2427
|
minWidth: [String, Number],
|
|
3330
2428
|
ellipsis: {
|
|
3331
2429
|
type: Number,
|
|
3332
|
-
default:
|
|
2430
|
+
default: 2
|
|
3333
2431
|
},
|
|
3334
2432
|
buttons: {
|
|
3335
2433
|
type: Array,
|
|
@@ -3407,7 +2505,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
3407
2505
|
_: 2
|
|
3408
2506
|
}, 1024)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3409
2507
|
createTextVNode(toDisplayString(btn.label), 1)
|
|
3410
|
-
],
|
|
2508
|
+
], 64))
|
|
3411
2509
|
]),
|
|
3412
2510
|
_: 2
|
|
3413
2511
|
}, 1032, ["icon", "onClick", "disabled", "label", "type"]);
|
|
@@ -3424,12 +2522,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
3424
2522
|
};
|
|
3425
2523
|
}
|
|
3426
2524
|
}));
|
|
3427
|
-
var FuTableOperations = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/Users/
|
|
3428
|
-
FuTableOperations.install = (app) => {
|
|
3429
|
-
app.component(FuTableOperations.name, FuTableOperations);
|
|
3430
|
-
app.component(FuTableButton.name, FuTableButton);
|
|
3431
|
-
app.component(FuTableMoreButton.name, FuTableMoreButton);
|
|
3432
|
-
};
|
|
2525
|
+
var FuTableOperations = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/table-operations/FuTableOperations.vue"]]);
|
|
3433
2526
|
const _hoisted_1 = { class: "fu-dropdown-link" };
|
|
3434
2527
|
const _hoisted_2 = {
|
|
3435
2528
|
key: 0,
|
|
@@ -3485,11 +2578,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
3485
2578
|
row
|
|
3486
2579
|
};
|
|
3487
2580
|
}
|
|
3488
|
-
function show(
|
|
3489
|
-
instance.refs[`dropdown${
|
|
2581
|
+
function show(index) {
|
|
2582
|
+
instance.refs[`dropdown${index}`].handleOpen();
|
|
3490
2583
|
}
|
|
3491
|
-
function hide(
|
|
3492
|
-
instance.refs[`dropdown${
|
|
2584
|
+
function hide(index) {
|
|
2585
|
+
instance.refs[`dropdown${index}`].handleClose();
|
|
3493
2586
|
}
|
|
3494
2587
|
expose({
|
|
3495
2588
|
show,
|
|
@@ -3563,18 +2656,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
3563
2656
|
};
|
|
3564
2657
|
}
|
|
3565
2658
|
}));
|
|
3566
|
-
var FuTableColumnDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/Users/
|
|
3567
|
-
FuTableColumnDropdown.install = (app) => {
|
|
3568
|
-
app.component(FuTableColumnDropdown.name, FuTableColumnDropdown);
|
|
3569
|
-
};
|
|
2659
|
+
var FuTableColumnDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/table/FuTableColumnDropdown.vue"]]);
|
|
3570
2660
|
FuTable.install = (app) => {
|
|
3571
2661
|
app.component(FuTable.name, FuTable);
|
|
3572
2662
|
app.component(FuTablePagination.name, FuTablePagination);
|
|
3573
|
-
app.
|
|
3574
|
-
app.
|
|
3575
|
-
app.
|
|
2663
|
+
app.component(FuTableColumnSelect.name, FuTableColumnSelect);
|
|
2664
|
+
app.component(FuTableColumnDropdown.name, FuTableColumnDropdown);
|
|
2665
|
+
app.component(FuTableOperations.name, FuTableOperations);
|
|
2666
|
+
app.component(FuTableButton.name, FuTableButton);
|
|
2667
|
+
app.component(FuTableMoreButton.name, FuTableMoreButton);
|
|
3576
2668
|
};
|
|
3577
|
-
var
|
|
2669
|
+
var __glob_1_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3578
2670
|
__proto__: null,
|
|
3579
2671
|
"default": FuTable
|
|
3580
2672
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -3682,7 +2774,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
3682
2774
|
}),
|
|
3683
2775
|
__props.addButtonLabel ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3684
2776
|
createTextVNode(toDisplayString(__props.addButtonLabel), 1)
|
|
3685
|
-
],
|
|
2777
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
3686
2778
|
]),
|
|
3687
2779
|
_: 1
|
|
3688
2780
|
})
|
|
@@ -3705,7 +2797,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
3705
2797
|
}),
|
|
3706
2798
|
__props.addButtonLabel ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3707
2799
|
createTextVNode(toDisplayString(__props.addButtonLabel), 1)
|
|
3708
|
-
],
|
|
2800
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
3709
2801
|
]),
|
|
3710
2802
|
_: 1
|
|
3711
2803
|
})
|
|
@@ -3720,24 +2812,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
3720
2812
|
};
|
|
3721
2813
|
}
|
|
3722
2814
|
}));
|
|
3723
|
-
var FuTabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/
|
|
2815
|
+
var FuTabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/wangdan/\u5DE5\u4F5C/fit2cloud-ui-plus/src/components/tabs/FuTabs.vue"]]);
|
|
3724
2816
|
FuTabs.install = (app) => {
|
|
3725
2817
|
app.component(FuTabs.name, FuTabs);
|
|
3726
2818
|
};
|
|
3727
|
-
var
|
|
2819
|
+
var __glob_1_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3728
2820
|
__proto__: null,
|
|
3729
2821
|
"default": FuTabs
|
|
3730
2822
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3731
2823
|
const name = "fit2cloud-ui-plus";
|
|
3732
|
-
const version = "0.0.1-beta.
|
|
3733
|
-
const main = "./lib/fit2cloud-ui-plus.
|
|
3734
|
-
const module = "./lib/fit2cloud-ui-plus.es.js";
|
|
3735
|
-
const exports = {
|
|
3736
|
-
".": {
|
|
3737
|
-
"import": "./lib/fit2cloud-ui-plus.es.js",
|
|
3738
|
-
require: "./lib/fit2cloud-ui-plus.umd.js"
|
|
3739
|
-
}
|
|
3740
|
-
};
|
|
2824
|
+
const version = "0.0.1-beta.10";
|
|
2825
|
+
const main = "./lib/fit2cloud-ui-plus.es.js";
|
|
3741
2826
|
const files = [
|
|
3742
2827
|
"lib",
|
|
3743
2828
|
"src"
|
|
@@ -3758,9 +2843,11 @@ const dependencies = {
|
|
|
3758
2843
|
"@element-plus/icons-vue": "^1.1.4",
|
|
3759
2844
|
"element-plus": "^2.2.2",
|
|
3760
2845
|
"github-markdown-css": "^5.1.0",
|
|
2846
|
+
"prism-theme-vars": "^0.2.3",
|
|
3761
2847
|
prismjs: "^1.28.0",
|
|
3762
2848
|
"vite-plugin-markdown": "^2.0.2",
|
|
3763
|
-
vue: "^3.2.
|
|
2849
|
+
vue: "^3.2.37",
|
|
2850
|
+
"vue-clipboard3": "^2.0.0",
|
|
3764
2851
|
"vue-router": "^4.0.14"
|
|
3765
2852
|
};
|
|
3766
2853
|
const devDependencies = {
|
|
@@ -3778,8 +2865,6 @@ var PackageJSON = {
|
|
|
3778
2865
|
version,
|
|
3779
2866
|
"private": false,
|
|
3780
2867
|
main,
|
|
3781
|
-
module,
|
|
3782
|
-
exports,
|
|
3783
2868
|
files,
|
|
3784
2869
|
author,
|
|
3785
2870
|
license,
|
|
@@ -3788,7 +2873,7 @@ var PackageJSON = {
|
|
|
3788
2873
|
dependencies,
|
|
3789
2874
|
devDependencies
|
|
3790
2875
|
};
|
|
3791
|
-
const components = { "./components/filter-bar/index.ts": __glob_1_0, "./components/read-write-switch/index.ts": __glob_1_1, "./components/
|
|
2876
|
+
const components = { "./components/filter-bar/index.ts": __glob_1_0, "./components/read-write-switch/index.ts": __glob_1_1, "./components/split-pane/index.ts": __glob_1_2, "./components/table/index.ts": __glob_1_3, "./components/tabs/index.ts": __glob_1_4 };
|
|
3792
2877
|
const install = (app) => {
|
|
3793
2878
|
Object.keys(components).forEach((key) => {
|
|
3794
2879
|
let component = components[key].default;
|