@fangzhongya/fang-ui 0.1.34 → 0.1.35
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/dist/components/buttons/src/data.cjs +1 -1
- package/dist/components/buttons/src/data.d.ts +1 -1
- package/dist/components/buttons/src/data.js +1 -1
- package/dist/components/buttons/src/index2.cjs +1 -1
- package/dist/components/buttons/src/index2.js +1 -1
- package/dist/components/common/config.d.ts +42 -40
- package/dist/components/dates-picker/src/index2.cjs +1 -1
- package/dist/components/dates-picker/src/index2.js +1 -1
- package/dist/components/dates2/src/index2.cjs +1 -1
- package/dist/components/dates2/src/index2.js +1 -1
- package/dist/components/dialogs/src/data.cjs +2 -2
- package/dist/components/dialogs/src/data.d.ts +5 -2
- package/dist/components/dialogs/src/data.js +2 -2
- package/dist/components/dialogs/src/index2.cjs +1 -1
- package/dist/components/dialogs/src/index2.js +1 -1
- package/dist/components/edit/src/data.cjs +1 -1
- package/dist/components/edit/src/data.d.ts +1 -1
- package/dist/components/edit/src/data.js +1 -1
- package/dist/components/edit/src/index2.cjs +3 -3
- package/dist/components/edit/src/index2.js +3 -3
- package/dist/components/edit/style/index2.scss +2 -0
- package/dist/components/edit-float/src/data.cjs +2 -2
- package/dist/components/edit-float/src/data.d.ts +2 -2
- package/dist/components/edit-float/src/data.js +2 -2
- package/dist/components/edit-float/src/index2.cjs +2 -2
- package/dist/components/edit-float/src/index2.js +2 -2
- package/dist/components/edit-float/style/index2.scss +4 -0
- package/dist/components/forms/index.css +3 -0
- package/dist/components/forms/index.scss +3 -0
- package/dist/components/forms/src/index2.cjs +2 -2
- package/dist/components/forms/src/index2.js +2 -2
- package/dist/components/forms-drag/src/index2.cjs +2 -2
- package/dist/components/forms-drag/src/index2.js +2 -2
- package/dist/components/forms-item/src/index2.cjs +2 -2
- package/dist/components/forms-item/src/index2.js +2 -2
- package/dist/components/forms-items/src/index2.cjs +2 -2
- package/dist/components/forms-items/src/index2.js +2 -2
- package/dist/components/index.scss +2 -1
- package/dist/components/input-history/src/index2.cjs +1 -1
- package/dist/components/input-history/src/index2.js +1 -1
- package/dist/components/input-history/style/index2.scss +3 -0
- package/dist/components/listsp/src/index2.cjs +2 -2
- package/dist/components/listsp/src/index2.js +2 -2
- package/dist/components/listspd/src/index2.cjs +2 -2
- package/dist/components/listspd/src/index2.js +2 -2
- package/dist/components/menus/src/index2.cjs +1 -1
- package/dist/components/menus/src/index2.js +1 -1
- package/dist/components/page/index.css +3 -0
- package/dist/components/page/src/index2.cjs +6 -6
- package/dist/components/page/src/index2.js +6 -6
- package/dist/components/switchs/src/data.cjs +5 -1
- package/dist/components/switchs/src/data.d.ts +4 -0
- package/dist/components/switchs/src/data.js +5 -1
- package/dist/components/switchs/src/index2.cjs +19 -2
- package/dist/components/switchs/src/index2.js +19 -2
- package/dist/components/tablesp/src/index2.cjs +1 -1
- package/dist/components/tablesp/src/index2.js +1 -1
- package/dist/components/tablespd/src/index2.cjs +2 -2
- package/dist/components/tablespd/src/index2.js +2 -2
- package/dist/components/tabless/src/index2.cjs +3 -3
- package/dist/components/tabless/src/index2.js +3 -3
- package/dist/components/tablesv/src/index2.cjs +1 -1
- package/dist/components/tablesv/src/index2.js +1 -1
- package/dist/components/tablesvp/src/index2.cjs +2 -2
- package/dist/components/tablesvp/src/index2.js +2 -2
- package/dist/components/tablesvpd/src/index2.cjs +2 -2
- package/dist/components/tablesvpd/src/index2.js +2 -2
- package/dist/components/videos/index.css +11 -2
- package/dist/components/videos/index.scss +13 -2
- package/dist/components/videos/src/index2.cjs +49 -5
- package/dist/components/videos/src/index2.js +49 -5
- package/dist/components/window/src/data.cjs +3 -3
- package/dist/components/window/src/data.d.ts +2 -2
- package/dist/components/window/src/data.js +3 -3
- package/dist/components/window/src/index2.cjs +1 -1
- package/dist/components/window/src/index2.js +1 -1
- package/dist/css/forms.css +3 -0
- package/dist/css/index.css +42 -2
- package/dist/css/page.css +3 -0
- package/dist/css/videos.css +11 -2
- package/dist/icons/index.json +1 -1
- package/dist/index.css +42 -2
- package/package.json +2 -2
- /package/dist/components/{forms-items → forms-item}/index.css +0 -0
- /package/dist/components/{slider → popover}/index.css +0 -0
- /package/dist/css/{forms-items.css → forms-item.css} +0 -0
- /package/dist/css/{slider.css → popover.css} +0 -0
|
@@ -72,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
paginat: unref(paginat),
|
|
73
73
|
value: unref(data).list,
|
|
74
74
|
list: unref(tableList),
|
|
75
|
-
loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.
|
|
75
|
+
loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.isloading) === false || unref(paginat).scroll && unref(paginat).current > 1 ? false : unref(loading),
|
|
76
76
|
options: unref(props).options,
|
|
77
77
|
compons: unref(props).compons,
|
|
78
78
|
onSortChange: unref(onSortChange),
|
|
@@ -85,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
85
85
|
return {
|
|
86
86
|
name: k,
|
|
87
87
|
fn: withCtx((scope) => [
|
|
88
|
-
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
88
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope || {})))
|
|
89
89
|
])
|
|
90
90
|
};
|
|
91
91
|
})
|
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
83
|
paginat: vue.unref(paginat),
|
|
84
84
|
value: vue.unref(data$2).list,
|
|
85
85
|
list: vue.unref(tableList),
|
|
86
|
-
loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.
|
|
86
|
+
loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.isloading) === false || vue.unref(paginat).scroll && vue.unref(paginat).current > 1 ? false : vue.unref(loading),
|
|
87
87
|
options: vue.unref(props).options,
|
|
88
88
|
compons: vue.unref(props).compons,
|
|
89
89
|
onSortChange: vue.unref(onSortChange),
|
|
@@ -96,7 +96,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
96
96
|
return {
|
|
97
97
|
name: k,
|
|
98
98
|
fn: vue.withCtx((scope) => [
|
|
99
|
-
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
99
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
100
100
|
])
|
|
101
101
|
};
|
|
102
102
|
})
|
|
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
paginat: unref(paginat),
|
|
82
82
|
value: unref(data).list,
|
|
83
83
|
list: unref(tableList),
|
|
84
|
-
loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.
|
|
84
|
+
loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.isloading) === false || unref(paginat).scroll && unref(paginat).current > 1 ? false : unref(loading),
|
|
85
85
|
options: unref(props).options,
|
|
86
86
|
compons: unref(props).compons,
|
|
87
87
|
onSortChange: unref(onSortChange),
|
|
@@ -94,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
return {
|
|
95
95
|
name: k,
|
|
96
96
|
fn: withCtx((scope) => [
|
|
97
|
-
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
97
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope || {})))
|
|
98
98
|
])
|
|
99
99
|
};
|
|
100
100
|
})
|
|
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
81
81
|
return {
|
|
82
82
|
name: k,
|
|
83
83
|
fn: vue.withCtx((scope) => [
|
|
84
|
-
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
84
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
85
85
|
])
|
|
86
86
|
};
|
|
87
87
|
})
|
|
@@ -79,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
return {
|
|
80
80
|
name: k,
|
|
81
81
|
fn: withCtx((scope) => [
|
|
82
|
-
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
82
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope || {})))
|
|
83
83
|
])
|
|
84
84
|
};
|
|
85
85
|
})
|
|
@@ -488,7 +488,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
488
488
|
return getColumnList(v);
|
|
489
489
|
} else {
|
|
490
490
|
return getColumnList(props.list, (obj) => {
|
|
491
|
-
return obj.form && obj.
|
|
491
|
+
return obj.form && obj.isedit === false;
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
494
|
} else {
|
|
@@ -597,7 +597,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
597
597
|
return {
|
|
598
598
|
name: k,
|
|
599
599
|
fn: vue.withCtx((scope) => [
|
|
600
|
-
vue.unref(slots)["form-" + k] ? vue.renderSlot(_ctx.$slots, "form-" + k, vue.normalizeProps(vue.mergeProps({ key: 0 }, scope))) : vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.mergeProps({ key: 1 }, scope)))
|
|
600
|
+
vue.unref(slots)["form-" + k] ? vue.renderSlot(_ctx.$slots, "form-" + k, vue.normalizeProps(vue.mergeProps({ key: 0 }, scope || {}))) : vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.mergeProps({ key: 1 }, scope || {})))
|
|
601
601
|
])
|
|
602
602
|
};
|
|
603
603
|
})
|
|
@@ -609,7 +609,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
609
609
|
title: vue.unref(props).config.name + vue.unref(getLocale)("page.details"),
|
|
610
610
|
modelValue: details.visible,
|
|
611
611
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => details.visible = $event),
|
|
612
|
-
|
|
612
|
+
isFooter: false
|
|
613
613
|
}, {
|
|
614
614
|
default: vue.withCtx(() => {
|
|
615
615
|
var _a2;
|
|
@@ -624,7 +624,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
624
624
|
return {
|
|
625
625
|
name: k,
|
|
626
626
|
fn: vue.withCtx((scope) => [
|
|
627
|
-
vue.unref(slots)["list-" + k] ? vue.renderSlot(_ctx.$slots, "list-" + k, vue.normalizeProps(vue.mergeProps({ key: 0 }, scope))) : vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.mergeProps({ key: 1 }, scope)))
|
|
627
|
+
vue.unref(slots)["list-" + k] ? vue.renderSlot(_ctx.$slots, "list-" + k, vue.normalizeProps(vue.mergeProps({ key: 0 }, scope || {}))) : vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.mergeProps({ key: 1 }, scope || {})))
|
|
628
628
|
])
|
|
629
629
|
};
|
|
630
630
|
})
|
|
@@ -656,7 +656,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
656
656
|
return {
|
|
657
657
|
name: k,
|
|
658
658
|
fn: vue.withCtx((scope) => [
|
|
659
|
-
vue.unref(slots)["query-" + k] ? vue.renderSlot(_ctx.$slots, "query-" + k, vue.normalizeProps(vue.mergeProps({ key: 0 }, scope))) : vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.mergeProps({ key: 1 }, scope)))
|
|
659
|
+
vue.unref(slots)["query-" + k] ? vue.renderSlot(_ctx.$slots, "query-" + k, vue.normalizeProps(vue.mergeProps({ key: 0 }, scope || {}))) : vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.mergeProps({ key: 1 }, scope || {})))
|
|
660
660
|
])
|
|
661
661
|
};
|
|
662
662
|
})
|
|
@@ -719,7 +719,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
719
719
|
return {
|
|
720
720
|
name: k,
|
|
721
721
|
fn: vue.withCtx((scope) => [
|
|
722
|
-
vue.unref(slots)["table-" + k] ? vue.renderSlot(_ctx.$slots, "table-" + k, vue.normalizeProps(vue.mergeProps({ key: 0 }, scope))) : vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.mergeProps({ key: 1 }, scope)))
|
|
722
|
+
vue.unref(slots)["table-" + k] ? vue.renderSlot(_ctx.$slots, "table-" + k, vue.normalizeProps(vue.mergeProps({ key: 0 }, scope || {}))) : vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.mergeProps({ key: 1 }, scope || {})))
|
|
723
723
|
])
|
|
724
724
|
};
|
|
725
725
|
})
|
|
@@ -486,7 +486,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
486
486
|
return getColumnList(v);
|
|
487
487
|
} else {
|
|
488
488
|
return getColumnList(props.list, (obj) => {
|
|
489
|
-
return obj.form && obj.
|
|
489
|
+
return obj.form && obj.isedit === false;
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
492
|
} else {
|
|
@@ -595,7 +595,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
595
595
|
return {
|
|
596
596
|
name: k,
|
|
597
597
|
fn: withCtx((scope) => [
|
|
598
|
-
unref(slots)["form-" + k] ? renderSlot(_ctx.$slots, "form-" + k, normalizeProps(mergeProps({ key: 0 }, scope))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope)))
|
|
598
|
+
unref(slots)["form-" + k] ? renderSlot(_ctx.$slots, "form-" + k, normalizeProps(mergeProps({ key: 0 }, scope || {}))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope || {})))
|
|
599
599
|
])
|
|
600
600
|
};
|
|
601
601
|
})
|
|
@@ -607,7 +607,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
607
607
|
title: unref(props).config.name + unref(getLocale)("page.details"),
|
|
608
608
|
modelValue: details.visible,
|
|
609
609
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => details.visible = $event),
|
|
610
|
-
|
|
610
|
+
isFooter: false
|
|
611
611
|
}, {
|
|
612
612
|
default: withCtx(() => {
|
|
613
613
|
var _a2;
|
|
@@ -622,7 +622,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
622
622
|
return {
|
|
623
623
|
name: k,
|
|
624
624
|
fn: withCtx((scope) => [
|
|
625
|
-
unref(slots)["list-" + k] ? renderSlot(_ctx.$slots, "list-" + k, normalizeProps(mergeProps({ key: 0 }, scope))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope)))
|
|
625
|
+
unref(slots)["list-" + k] ? renderSlot(_ctx.$slots, "list-" + k, normalizeProps(mergeProps({ key: 0 }, scope || {}))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope || {})))
|
|
626
626
|
])
|
|
627
627
|
};
|
|
628
628
|
})
|
|
@@ -654,7 +654,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
654
654
|
return {
|
|
655
655
|
name: k,
|
|
656
656
|
fn: withCtx((scope) => [
|
|
657
|
-
unref(slots)["query-" + k] ? renderSlot(_ctx.$slots, "query-" + k, normalizeProps(mergeProps({ key: 0 }, scope))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope)))
|
|
657
|
+
unref(slots)["query-" + k] ? renderSlot(_ctx.$slots, "query-" + k, normalizeProps(mergeProps({ key: 0 }, scope || {}))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope || {})))
|
|
658
658
|
])
|
|
659
659
|
};
|
|
660
660
|
})
|
|
@@ -717,7 +717,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
717
717
|
return {
|
|
718
718
|
name: k,
|
|
719
719
|
fn: withCtx((scope) => [
|
|
720
|
-
unref(slots)["table-" + k] ? renderSlot(_ctx.$slots, "table-" + k, normalizeProps(mergeProps({ key: 0 }, scope))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope)))
|
|
720
|
+
unref(slots)["table-" + k] ? renderSlot(_ctx.$slots, "table-" + k, normalizeProps(mergeProps({ key: 0 }, scope || {}))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope || {})))
|
|
721
721
|
])
|
|
722
722
|
};
|
|
723
723
|
})
|
|
@@ -3,7 +3,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const list = require("../../common/list.cjs");
|
|
4
4
|
const name = "switchs";
|
|
5
5
|
const dataProps = {
|
|
6
|
-
...list.props
|
|
6
|
+
...list.props,
|
|
7
|
+
isEmpty: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: true
|
|
10
|
+
}
|
|
7
11
|
};
|
|
8
12
|
const dataEmits = [...list.emits];
|
|
9
13
|
exports.dataEmits = dataEmits;
|
|
@@ -31,18 +31,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
31
|
const elRef = vue.ref();
|
|
32
32
|
const active = vue.ref({});
|
|
33
33
|
const inactive = vue.ref({});
|
|
34
|
+
const emptyValue = "__Symbol('empty')__" + (/* @__PURE__ */ new Date()).valueOf();
|
|
34
35
|
vue.watch(
|
|
35
36
|
() => props.options,
|
|
36
37
|
() => {
|
|
37
38
|
if (props.options && props.options.length > 1) {
|
|
38
39
|
const i = props.options[0];
|
|
39
40
|
inactive.value.text = use.useVueValue(i, props.label);
|
|
40
|
-
|
|
41
|
+
const v = use.useVueValue(i, props.prop);
|
|
42
|
+
if (props.isEmpty && v === "") {
|
|
43
|
+
inactive.value.value = emptyValue;
|
|
44
|
+
} else {
|
|
45
|
+
inactive.value.value = v;
|
|
46
|
+
}
|
|
41
47
|
inactive.value.icon = i == null ? void 0 : i.icon;
|
|
42
48
|
inactive.value.color = i == null ? void 0 : i.color;
|
|
43
49
|
const a = props.options[1];
|
|
44
50
|
active.value.text = use.useVueValue(a, props.label);
|
|
45
|
-
|
|
51
|
+
const va = use.useVueValue(a, props.prop);
|
|
52
|
+
if (props.isEmpty && va === "") {
|
|
53
|
+
active.value.value = emptyValue;
|
|
54
|
+
} else {
|
|
55
|
+
active.value.value = va;
|
|
56
|
+
}
|
|
46
57
|
active.value.icon = a == null ? void 0 : a.icon;
|
|
47
58
|
active.value.color = a == null ? void 0 : a.color;
|
|
48
59
|
}
|
|
@@ -63,9 +74,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
63
74
|
const value = vue.computed({
|
|
64
75
|
get() {
|
|
65
76
|
let v = props.modelValue;
|
|
77
|
+
if (props.isEmpty && v === "") {
|
|
78
|
+
return emptyValue;
|
|
79
|
+
}
|
|
66
80
|
return v;
|
|
67
81
|
},
|
|
68
82
|
set(value2) {
|
|
83
|
+
if (props.isEmpty && value2 === emptyValue) {
|
|
84
|
+
value2 = "";
|
|
85
|
+
}
|
|
69
86
|
emit("update:modelValue", value2);
|
|
70
87
|
if (props.optobj) {
|
|
71
88
|
const obj = props.options.filter((o) => {
|
|
@@ -29,18 +29,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
const elRef = ref();
|
|
30
30
|
const active = ref({});
|
|
31
31
|
const inactive = ref({});
|
|
32
|
+
const emptyValue = "__Symbol('empty')__" + (/* @__PURE__ */ new Date()).valueOf();
|
|
32
33
|
watch(
|
|
33
34
|
() => props.options,
|
|
34
35
|
() => {
|
|
35
36
|
if (props.options && props.options.length > 1) {
|
|
36
37
|
const i = props.options[0];
|
|
37
38
|
inactive.value.text = useVueValue(i, props.label);
|
|
38
|
-
|
|
39
|
+
const v = useVueValue(i, props.prop);
|
|
40
|
+
if (props.isEmpty && v === "") {
|
|
41
|
+
inactive.value.value = emptyValue;
|
|
42
|
+
} else {
|
|
43
|
+
inactive.value.value = v;
|
|
44
|
+
}
|
|
39
45
|
inactive.value.icon = i == null ? void 0 : i.icon;
|
|
40
46
|
inactive.value.color = i == null ? void 0 : i.color;
|
|
41
47
|
const a = props.options[1];
|
|
42
48
|
active.value.text = useVueValue(a, props.label);
|
|
43
|
-
|
|
49
|
+
const va = useVueValue(a, props.prop);
|
|
50
|
+
if (props.isEmpty && va === "") {
|
|
51
|
+
active.value.value = emptyValue;
|
|
52
|
+
} else {
|
|
53
|
+
active.value.value = va;
|
|
54
|
+
}
|
|
44
55
|
active.value.icon = a == null ? void 0 : a.icon;
|
|
45
56
|
active.value.color = a == null ? void 0 : a.color;
|
|
46
57
|
}
|
|
@@ -61,9 +72,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
72
|
const value = computed({
|
|
62
73
|
get() {
|
|
63
74
|
let v = props.modelValue;
|
|
75
|
+
if (props.isEmpty && v === "") {
|
|
76
|
+
return emptyValue;
|
|
77
|
+
}
|
|
64
78
|
return v;
|
|
65
79
|
},
|
|
66
80
|
set(value2) {
|
|
81
|
+
if (props.isEmpty && value2 === emptyValue) {
|
|
82
|
+
value2 = "";
|
|
83
|
+
}
|
|
67
84
|
emit("update:modelValue", value2);
|
|
68
85
|
if (props.optobj) {
|
|
69
86
|
const obj = props.options.filter((o) => {
|
|
@@ -79,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
79
|
prop: vue.unref(paginat).prop
|
|
80
80
|
} : void 0,
|
|
81
81
|
paginat: vue.unref(paginat),
|
|
82
|
-
loading: ((_d = vue.unref(tableConfig).config) == null ? void 0 : _d.
|
|
82
|
+
loading: ((_d = vue.unref(tableConfig).config) == null ? void 0 : _d.isloading) === false || vue.unref(paginat).scroll && vue.unref(paginat).current > 1 ? false : vue.unref(loading),
|
|
83
83
|
options: vue.unref(props).options,
|
|
84
84
|
compons: vue.unref(props).compons,
|
|
85
85
|
onSortChange: vue.unref(onSortChange),
|
|
@@ -77,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
prop: unref(paginat).prop
|
|
78
78
|
} : void 0,
|
|
79
79
|
paginat: unref(paginat),
|
|
80
|
-
loading: ((_d = unref(tableConfig).config) == null ? void 0 : _d.
|
|
80
|
+
loading: ((_d = unref(tableConfig).config) == null ? void 0 : _d.isloading) === false || unref(paginat).scroll && unref(paginat).current > 1 ? false : unref(loading),
|
|
81
81
|
options: unref(props).options,
|
|
82
82
|
compons: unref(props).compons,
|
|
83
83
|
onSortChange: unref(onSortChange),
|
|
@@ -82,7 +82,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
82
82
|
list: vue.unref(tableList),
|
|
83
83
|
size: (_b = vue.unref(tableConfig).config) == null ? void 0 : _b.size,
|
|
84
84
|
paginat: vue.unref(paginat),
|
|
85
|
-
loading: ((_c = vue.unref(tableConfig).config) == null ? void 0 : _c.
|
|
85
|
+
loading: ((_c = vue.unref(tableConfig).config) == null ? void 0 : _c.isloading) === false || vue.unref(paginat).scroll && vue.unref(paginat).current > 1 ? false : vue.unref(loading),
|
|
86
86
|
options: vue.unref(props).options,
|
|
87
87
|
compons: vue.unref(props).compons,
|
|
88
88
|
onSortChange: vue.unref(onSortChange),
|
|
@@ -95,7 +95,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
95
95
|
return {
|
|
96
96
|
name: k,
|
|
97
97
|
fn: vue.withCtx((scope) => [
|
|
98
|
-
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
98
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
99
99
|
])
|
|
100
100
|
};
|
|
101
101
|
})
|
|
@@ -80,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
list: unref(tableList),
|
|
81
81
|
size: (_b = unref(tableConfig).config) == null ? void 0 : _b.size,
|
|
82
82
|
paginat: unref(paginat),
|
|
83
|
-
loading: ((_c = unref(tableConfig).config) == null ? void 0 : _c.
|
|
83
|
+
loading: ((_c = unref(tableConfig).config) == null ? void 0 : _c.isloading) === false || unref(paginat).scroll && unref(paginat).current > 1 ? false : unref(loading),
|
|
84
84
|
options: unref(props).options,
|
|
85
85
|
compons: unref(props).compons,
|
|
86
86
|
onSortChange: unref(onSortChange),
|
|
@@ -93,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
93
|
return {
|
|
94
94
|
name: k,
|
|
95
95
|
fn: withCtx((scope) => [
|
|
96
|
-
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
96
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope || {})))
|
|
97
97
|
])
|
|
98
98
|
};
|
|
99
99
|
})
|
|
@@ -69,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
69
69
|
value: vue.unref(data).list,
|
|
70
70
|
list: vue.unref(tableList),
|
|
71
71
|
paginat: vue.unref(paginat),
|
|
72
|
-
loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.
|
|
72
|
+
loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.isloading) === false ? false : vue.unref(loading),
|
|
73
73
|
options: vue.unref(props).options,
|
|
74
74
|
compons: vue.unref(props).compons,
|
|
75
75
|
onSortChange: vue.unref(onSortChange),
|
|
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
81
81
|
return {
|
|
82
82
|
name: k,
|
|
83
83
|
fn: vue.withCtx((scope) => [
|
|
84
|
-
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
84
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
85
85
|
])
|
|
86
86
|
};
|
|
87
87
|
})
|
|
@@ -110,7 +110,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
110
110
|
return {
|
|
111
111
|
name: k,
|
|
112
112
|
fn: vue.withCtx((scope) => [
|
|
113
|
-
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
113
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
114
114
|
])
|
|
115
115
|
};
|
|
116
116
|
})
|
|
@@ -67,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
value: unref(data).list,
|
|
68
68
|
list: unref(tableList),
|
|
69
69
|
paginat: unref(paginat),
|
|
70
|
-
loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.
|
|
70
|
+
loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.isloading) === false ? false : unref(loading),
|
|
71
71
|
options: unref(props).options,
|
|
72
72
|
compons: unref(props).compons,
|
|
73
73
|
onSortChange: unref(onSortChange),
|
|
@@ -79,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
return {
|
|
80
80
|
name: k,
|
|
81
81
|
fn: withCtx((scope) => [
|
|
82
|
-
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
82
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope || {})))
|
|
83
83
|
])
|
|
84
84
|
};
|
|
85
85
|
})
|
|
@@ -108,7 +108,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
108
108
|
return {
|
|
109
109
|
name: k,
|
|
110
110
|
fn: withCtx((scope) => [
|
|
111
|
-
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
111
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope || {})))
|
|
112
112
|
])
|
|
113
113
|
};
|
|
114
114
|
})
|
|
@@ -260,7 +260,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
260
260
|
return {
|
|
261
261
|
name: k,
|
|
262
262
|
fn: vue.withCtx((scope) => [
|
|
263
|
-
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
263
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
264
264
|
])
|
|
265
265
|
};
|
|
266
266
|
})
|
|
@@ -258,7 +258,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
258
258
|
return {
|
|
259
259
|
name: k,
|
|
260
260
|
fn: withCtx((scope) => [
|
|
261
|
-
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
261
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope || {})))
|
|
262
262
|
])
|
|
263
263
|
};
|
|
264
264
|
})
|
|
@@ -73,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
73
73
|
value: vue.unref(data$1).list,
|
|
74
74
|
list: vue.unref(tableList),
|
|
75
75
|
paginat: vue.unref(paginat),
|
|
76
|
-
loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.
|
|
76
|
+
loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.isloading) === false ? false : vue.unref(loading),
|
|
77
77
|
options: vue.unref(props).options,
|
|
78
78
|
compons: vue.unref(props).compons,
|
|
79
79
|
onSortChange: vue.unref(onSortChange),
|
|
@@ -86,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
86
|
return {
|
|
87
87
|
name: k,
|
|
88
88
|
fn: vue.withCtx((scope) => [
|
|
89
|
-
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
89
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
90
90
|
])
|
|
91
91
|
};
|
|
92
92
|
})
|
|
@@ -71,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
value: unref(data).list,
|
|
72
72
|
list: unref(tableList),
|
|
73
73
|
paginat: unref(paginat),
|
|
74
|
-
loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.
|
|
74
|
+
loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.isloading) === false ? false : unref(loading),
|
|
75
75
|
options: unref(props).options,
|
|
76
76
|
compons: unref(props).compons,
|
|
77
77
|
onSortChange: unref(onSortChange),
|
|
@@ -84,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
84
|
return {
|
|
85
85
|
name: k,
|
|
86
86
|
fn: withCtx((scope) => [
|
|
87
|
-
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
87
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope || {})))
|
|
88
88
|
])
|
|
89
89
|
};
|
|
90
90
|
})
|
|
@@ -79,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
79
|
value: vue.unref(data$1).list,
|
|
80
80
|
list: vue.unref(tableList),
|
|
81
81
|
paginat: vue.unref(paginat),
|
|
82
|
-
loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.
|
|
82
|
+
loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.isloading) === false ? false : vue.unref(loading),
|
|
83
83
|
options: vue.unref(props).options,
|
|
84
84
|
compons: vue.unref(props).compons,
|
|
85
85
|
onSortChange: vue.unref(onSortChange),
|
|
@@ -92,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
92
92
|
return {
|
|
93
93
|
name: k,
|
|
94
94
|
fn: vue.withCtx((scope) => [
|
|
95
|
-
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
95
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
96
96
|
])
|
|
97
97
|
};
|
|
98
98
|
})
|
|
@@ -77,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
value: unref(data).list,
|
|
78
78
|
list: unref(tableList),
|
|
79
79
|
paginat: unref(paginat),
|
|
80
|
-
loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.
|
|
80
|
+
loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.isloading) === false ? false : unref(loading),
|
|
81
81
|
options: unref(props).options,
|
|
82
82
|
compons: unref(props).compons,
|
|
83
83
|
onSortChange: unref(onSortChange),
|
|
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
90
|
return {
|
|
91
91
|
name: k,
|
|
92
92
|
fn: withCtx((scope) => [
|
|
93
|
-
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
93
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope || {})))
|
|
94
94
|
])
|
|
95
95
|
};
|
|
96
96
|
})
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
bottom: 0;
|
|
41
41
|
width: 100%;
|
|
42
42
|
}
|
|
43
|
-
.videos.is-fullscreen .videos-list {
|
|
43
|
+
.videos.is-fullscreen .videos-controls-list {
|
|
44
44
|
background-color: rgba(238, 238, 238, 0.5);
|
|
45
45
|
position: absolute;
|
|
46
46
|
top: 0;
|
|
@@ -50,6 +50,15 @@
|
|
|
50
50
|
.videos.is-list .videos-controls-bottom {
|
|
51
51
|
width: calc(100% - var(--videos-list-width));
|
|
52
52
|
}
|
|
53
|
+
.videos.is-controls .videos-controls-top {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
.videos.is-controls .videos-controls-bottom {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
.videos.is-controls .videos-controls-list {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
53
62
|
.videos-videos {
|
|
54
63
|
flex: 1;
|
|
55
64
|
height: 100%;
|
|
@@ -124,7 +133,7 @@
|
|
|
124
133
|
width: 60px;
|
|
125
134
|
margin: 0 10px;
|
|
126
135
|
}
|
|
127
|
-
.videos-list {
|
|
136
|
+
.videos-controls-list {
|
|
128
137
|
width: var(--videos-list-width);
|
|
129
138
|
height: 100%;
|
|
130
139
|
box-sizing: border-box;
|
|
@@ -17,7 +17,7 @@ $videos: 'videos';
|
|
|
17
17
|
bottom: 0;
|
|
18
18
|
width: 100%;
|
|
19
19
|
}
|
|
20
|
-
.#{z($videos, 'list')} {
|
|
20
|
+
.#{z($videos, 'controls-list')} {
|
|
21
21
|
background-color: rgba(238, 238, 238, 0.5);
|
|
22
22
|
position: absolute;
|
|
23
23
|
top: 0;
|
|
@@ -30,6 +30,17 @@ $videos: 'videos';
|
|
|
30
30
|
width: calc(100% - var(#{vdm('list-width', $videos)}));
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
&.#{is('controls')} {
|
|
34
|
+
.#{z($videos, 'controls-top')} {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
.#{z($videos, 'controls-bottom')} {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
.#{z($videos, 'controls-list')} {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
33
44
|
&-videos {
|
|
34
45
|
flex: 1;
|
|
35
46
|
height: 100%;
|
|
@@ -106,7 +117,7 @@ $videos: 'videos';
|
|
|
106
117
|
}
|
|
107
118
|
}
|
|
108
119
|
}
|
|
109
|
-
&-list {
|
|
120
|
+
&-controls-list {
|
|
110
121
|
width: var(#{vdm('list-width', $videos)});
|
|
111
122
|
height: 100%;
|
|
112
123
|
box-sizing: border-box;
|