@fangzhongya/fang-ui 0.0.98 → 0.0.99
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/alert/src/index2.cjs +11 -11
- package/dist/components/array/src/index2.cjs +45 -45
- package/dist/components/audios/src/index2.cjs +54 -54
- package/dist/components/autocomplete/src/index2.cjs +11 -11
- package/dist/components/box/src/index2.cjs +21 -21
- package/dist/components/box-adjust/index.css +17 -0
- package/dist/components/box-adjust/index.scss +18 -0
- package/dist/components/box-adjust/src/data.cjs +17 -1
- package/dist/components/box-adjust/src/data.d.ts +16 -0
- package/dist/components/box-adjust/src/data.js +17 -1
- package/dist/components/box-adjust/src/index2.cjs +69 -35
- package/dist/components/box-adjust/src/index2.js +37 -3
- package/dist/components/box-local/src/index2.cjs +20 -20
- package/dist/components/box-mask/src/index2.cjs +5 -5
- package/dist/components/box-teleport/src/index2.cjs +5 -5
- package/dist/components/box-title/src/index2.cjs +15 -15
- package/dist/components/button/src/index2.cjs +11 -11
- package/dist/components/buttons/src/index2.cjs +20 -20
- package/dist/components/card/src/index2.cjs +11 -11
- package/dist/components/cascader/src/index2.cjs +11 -11
- package/dist/components/cascader-panel/src/index2.cjs +11 -11
- package/dist/components/cascaders/src/index2.cjs +17 -17
- package/dist/components/checkbox/src/index2.cjs +11 -11
- package/dist/components/checkbox-button/src/index2.cjs +11 -11
- package/dist/components/checkbox-group/src/index2.cjs +11 -11
- package/dist/components/checks/src/index2.cjs +31 -31
- package/dist/components/choice-select/src/index2.cjs +5 -5
- package/dist/components/collapse/src/index2.cjs +11 -11
- package/dist/components/collapse-item/src/index2.cjs +11 -11
- package/dist/components/color-picker/src/index2.cjs +11 -11
- package/dist/components/common/list.cjs +5 -5
- package/dist/components/common/use.cjs +5 -5
- package/dist/components/company-select/src/index2.cjs +19 -19
- package/dist/components/config-provider/src/index2.cjs +11 -11
- package/dist/components/date-picker/src/index2.cjs +11 -11
- package/dist/components/date-picker/style/element.scss +1 -1
- package/dist/components/date-picker-panel/src/index2.cjs +11 -11
- package/dist/components/dates/src/index2.cjs +12 -12
- package/dist/components/dates-divide/src/index2.cjs +20 -20
- package/dist/components/dates-picker/src/index2.cjs +15 -15
- package/dist/components/dates2/src/index2.cjs +26 -26
- package/dist/components/department-select/src/index2.cjs +10 -10
- package/dist/components/dialog/src/index2.cjs +11 -11
- package/dist/components/dialogs/src/index2.cjs +23 -23
- package/dist/components/divider/src/index2.cjs +11 -11
- package/dist/components/drawer/src/index2.cjs +11 -11
- package/dist/components/dropdown/src/index2.cjs +11 -11
- package/dist/components/dropdown-item/src/index2.cjs +11 -11
- package/dist/components/dropdown-menu/src/index2.cjs +11 -11
- package/dist/components/edit/src/index2.cjs +24 -24
- package/dist/components/edit-float/src/index2.cjs +40 -40
- package/dist/components/form/src/index2.cjs +11 -11
- package/dist/components/form-item/src/index2.cjs +11 -11
- package/dist/components/forms/index.css +22 -0
- package/dist/components/forms/src/index2.cjs +65 -65
- package/dist/components/forms/src/setup.cjs +12 -12
- package/dist/components/forms-div/src/index2.cjs +11 -11
- package/dist/components/forms-drag/src/index2.cjs +73 -73
- package/dist/components/forms-item/src/index2.cjs +45 -45
- package/dist/components/forms-item/src/label.cjs +4 -4
- package/dist/components/forms-items/src/index2.cjs +23 -23
- package/dist/components/full-screen/src/index2.cjs +11 -11
- package/dist/components/global-config/src/index.cjs +5 -5
- package/dist/components/history/src/index2.cjs +26 -26
- package/dist/components/icon/src/index2.cjs +23 -23
- package/dist/components/icon-picker/src/index2.cjs +52 -52
- package/dist/components/iframe/src/data.cjs +1 -1
- package/dist/components/iframe/src/data.js +1 -1
- package/dist/components/iframe/src/index2.cjs +15 -10
- package/dist/components/iframe/src/index2.js +5 -0
- package/dist/components/image/src/index2.cjs +11 -11
- package/dist/components/image-viewer/src/index2.cjs +11 -11
- package/dist/components/images/src/index2.cjs +17 -17
- package/dist/components/input/src/index2.cjs +11 -11
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +47 -47
- package/dist/components/input-history/src/util.cjs +4 -4
- package/dist/components/input-num/src/index2.cjs +17 -17
- package/dist/components/input-number/src/index2.cjs +11 -11
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +11 -11
- package/dist/components/inputs/src/index2.cjs +17 -17
- package/dist/components/keep-com/src/index2.cjs +16 -16
- package/dist/components/labels/src/index2.cjs +13 -13
- package/dist/components/list/src/index2.cjs +24 -24
- package/dist/components/lists/src/index2.cjs +51 -51
- package/dist/components/listsp/src/index2.cjs +35 -35
- package/dist/components/mention/src/index2.cjs +11 -11
- package/dist/components/menu/src/index2.cjs +11 -11
- package/dist/components/menu-item/src/index2.cjs +11 -11
- package/dist/components/menu-item-group/src/index2.cjs +11 -11
- package/dist/components/menus/src/index2.cjs +16 -16
- package/dist/components/menus/src/menu-ll2.cjs +11 -11
- package/dist/components/no-data/src/index2.cjs +5 -5
- package/dist/components/option/src/index2.cjs +10 -10
- package/dist/components/option-group/src/index2.cjs +11 -11
- package/dist/components/page/index.css +22 -0
- package/dist/components/page/src/index2.cjs +77 -77
- package/dist/components/page/src/set-column2.cjs +54 -54
- package/dist/components/pagination/src/index2.cjs +11 -11
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +11 -11
- package/dist/components/popover/src/index2.cjs +11 -11
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +11 -11
- package/dist/components/radio-button/src/index2.cjs +11 -11
- package/dist/components/radio-group/src/index2.cjs +11 -11
- package/dist/components/retract/src/index2.cjs +14 -14
- package/dist/components/right-key/src/index2.cjs +30 -30
- package/dist/components/role-select/src/index2.cjs +38 -38
- package/dist/components/scrollbar/src/index2.cjs +11 -11
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +11 -11
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +41 -41
- package/dist/components/select-scroll/src/index2.cjs +30 -30
- package/dist/components/selector/src/index2.cjs +39 -39
- package/dist/components/selects/src/index2.cjs +20 -20
- package/dist/components/slider/src/index2.cjs +11 -11
- package/dist/components/sliders/src/index2.cjs +13 -13
- package/dist/components/stick-div/src/index2.cjs +17 -17
- package/dist/components/stick-edge/src/index2.cjs +10 -10
- package/dist/components/stick-window/src/index2.cjs +22 -22
- package/dist/components/sub-menu/src/index2.cjs +10 -10
- package/dist/components/switch/src/index2.cjs +11 -11
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +11 -11
- package/dist/components/table/src/index2.cjs +11 -11
- package/dist/components/table-column/src/index2.cjs +11 -11
- package/dist/components/tables/common/img2.cjs +7 -7
- package/dist/components/tables/common/pagin.cjs +16 -16
- package/dist/components/tables/common/table-but2.cjs +10 -10
- package/dist/components/tables/common/table-color2.cjs +7 -7
- package/dist/components/tables/common/table-list2.cjs +9 -9
- package/dist/components/tables/common/util.cjs +2 -2
- package/dist/components/tables/src/column.cjs +5 -5
- package/dist/components/tables/src/columns2.cjs +2 -2
- package/dist/components/tables/src/columns3.cjs +2 -2
- package/dist/components/tables/src/index2.cjs +29 -29
- package/dist/components/tablesp/src/index2.cjs +36 -36
- package/dist/components/tabless/src/index2.cjs +49 -49
- package/dist/components/tablesv/src/column.cjs +16 -16
- package/dist/components/tablesv/src/columns2.cjs +2 -2
- package/dist/components/tablesv/src/columns3.cjs +2 -2
- package/dist/components/tablesv/src/index2.cjs +30 -30
- package/dist/components/tablesvp/src/index2.cjs +30 -30
- package/dist/components/tabs/src/index2.cjs +11 -11
- package/dist/components/tag/src/index2.cjs +11 -11
- package/dist/components/text/src/index2.cjs +11 -11
- package/dist/components/text/style/element.scss +1 -1
- package/dist/components/texts/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +11 -11
- package/dist/components/time-select/src/index2.cjs +11 -11
- package/dist/components/tooltip/src/index2.cjs +11 -11
- package/dist/components/transfer/src/index2.cjs +11 -11
- package/dist/components/tree/src/index2.cjs +11 -11
- package/dist/components/tree-select/src/index2.cjs +11 -11
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +11 -11
- package/dist/components/uploads/index.css +22 -0
- package/dist/components/uploads/index.scss +23 -0
- package/dist/components/uploads/src/index2.cjs +128 -138
- package/dist/components/uploads/src/index2.js +61 -71
- package/dist/components/uploads/src/util.cjs +80 -0
- package/dist/components/uploads/src/util.d.ts +10 -0
- package/dist/components/uploads/src/util.js +80 -0
- package/dist/components/uploads/src/views.cjs +4 -0
- package/dist/components/uploads/src/views.js +4 -0
- package/dist/components/uploads/src/views2.cjs +77 -0
- package/dist/components/uploads/src/views2.js +77 -0
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/videos/src/index2.cjs +97 -97
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/css/box-adjust.css +17 -0
- package/dist/css/forms.css +22 -0
- package/dist/css/index.css +39 -0
- package/dist/css/page.css +22 -0
- package/dist/css/uploads.css +22 -0
- package/dist/directives/scroll/index.cjs +6 -24
- package/dist/directives/scroll/index.js +1 -3
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/full-screen/index.cjs +5 -5
- package/dist/hooks/global-config/index.cjs +8 -8
- package/dist/hooks/inherit/index.cjs +2 -2
- package/dist/hooks/locale/index.cjs +7 -7
- package/dist/icons/iconify.cjs +3 -3
- package/dist/icons/index.css +79 -79
- package/dist/icons/index.json +35 -35
- package/dist/icons/vue/bar.cjs +3 -3
- package/dist/icons/vue/below.cjs +3 -3
- package/dist/icons/vue/bicycle.cjs +3 -3
- package/dist/icons/vue/bottom-left.cjs +4 -4
- package/dist/icons/vue/bottom-right.cjs +4 -4
- package/dist/icons/vue/bottom.cjs +3 -3
- package/dist/icons/vue/catalogue.cjs +5 -5
- package/dist/icons/vue/clear.cjs +5 -5
- package/dist/icons/vue/close.cjs +3 -3
- package/dist/icons/vue/delete.cjs +3 -3
- package/dist/icons/vue/document.cjs +5 -5
- package/dist/icons/vue/down.cjs +3 -3
- package/dist/icons/vue/download.cjs +3 -3
- package/dist/icons/vue/edit.cjs +5 -5
- package/dist/icons/vue/enter.cjs +3 -3
- package/dist/icons/vue/frame.cjs +3 -3
- package/dist/icons/vue/left.cjs +3 -3
- package/dist/icons/vue/mute.cjs +3 -3
- package/dist/icons/vue/pause.cjs +4 -4
- package/dist/icons/vue/play.cjs +3 -3
- package/dist/icons/vue/plus.cjs +3 -3
- package/dist/icons/vue/retreat.cjs +3 -3
- package/dist/icons/vue/right.cjs +3 -3
- package/dist/icons/vue/sound.cjs +4 -4
- package/dist/icons/vue/star.cjs +4 -4
- package/dist/icons/vue/up.cjs +3 -3
- package/dist/icons/vue/views.cjs +5 -5
- package/dist/icons/vue/views.js +2 -2
- package/dist/index.css +39 -0
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +3 -3
- /package/dist/components/{alert → divider}/index.css +0 -0
- /package/dist/css/{alert.css → divider.css} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("../../../hooks/locale/index.cjs");
|
|
7
7
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: data.dataProps,
|
|
11
11
|
emits: data.dataEmits,
|
|
12
12
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
-
const attrs = index.useInherit(
|
|
13
|
+
const attrs = index.useInherit(vue.useAttrs());
|
|
14
14
|
const { getLocale } = index$1.useLocale();
|
|
15
15
|
const cs = index$2.useCssName("keep-com");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const hideComs =
|
|
19
|
-
const value =
|
|
18
|
+
const hideComs = vue.reactive([]);
|
|
19
|
+
const value = vue.computed(() => {
|
|
20
20
|
return props.is;
|
|
21
21
|
});
|
|
22
22
|
const sethideComs = () => {
|
|
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
25
25
|
if (!hideComs.map((o) => o.name).includes(name)) {
|
|
26
26
|
hideComs.push({
|
|
27
27
|
name,
|
|
28
|
-
component:
|
|
28
|
+
component: vue.h(vue.resolveComponent(name), {
|
|
29
29
|
...attrs.assem,
|
|
30
30
|
style: {
|
|
31
31
|
display: value.value != name ? "block" : "none"
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
vue.watch(
|
|
39
39
|
[
|
|
40
40
|
() => props.is,
|
|
41
41
|
() => props.hides,
|
|
@@ -51,24 +51,24 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
51
51
|
deep: true
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
|
-
const HideComponent =
|
|
54
|
+
const HideComponent = vue.defineComponent({
|
|
55
55
|
props: {},
|
|
56
56
|
setup() {
|
|
57
|
-
return
|
|
57
|
+
return vue.h("div", {}, hideComs);
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
__expose({
|
|
61
61
|
...data.dataExpose
|
|
62
62
|
});
|
|
63
63
|
return (_ctx, _cache) => {
|
|
64
|
-
return
|
|
65
|
-
class:
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
[
|
|
64
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
65
|
+
class: vue.unref(cs).z()
|
|
66
|
+
}, vue.unref(attrs).root), [
|
|
67
|
+
vue.withDirectives(vue.createVNode(vue.unref(HideComponent), null, null, 512), [
|
|
68
|
+
[vue.vShow, props.hides.includes(props.is)]
|
|
69
69
|
]),
|
|
70
|
-
|
|
71
|
-
[
|
|
70
|
+
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(props.is), vue.normalizeProps(vue.guardReactiveProps(vue.unref(attrs).assem)), null, 16)), [
|
|
71
|
+
[vue.vShow, !props.hides.includes(props.is)]
|
|
72
72
|
])
|
|
73
73
|
], 16);
|
|
74
74
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const index$2 = require("../../checks/index.cjs");
|
|
5
5
|
const index$1 = require("../../selects/index.cjs");
|
|
6
6
|
const use = require("../../common/use.cjs");
|
|
7
7
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const data = require("./data.cjs");
|
|
9
9
|
const wholeClass = "labels-li-whole";
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: data.dataProps,
|
|
13
13
|
emits: data.dataEmits,
|
|
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
15
15
|
const cs = index.useCssName("labels");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const comps =
|
|
18
|
+
const comps = vue.computed(() => {
|
|
19
19
|
if (props.select) {
|
|
20
20
|
return index$1.Selects;
|
|
21
21
|
} else {
|
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
const wholeValue = "__Symbol('whole')__" + (/* @__PURE__ */ new Date()).valueOf();
|
|
39
|
-
const options =
|
|
39
|
+
const options = vue.computed(() => {
|
|
40
40
|
const opts = [...props.options];
|
|
41
41
|
if (!props.nowhole) {
|
|
42
42
|
const obj = {
|
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
52
52
|
}
|
|
53
53
|
return opts;
|
|
54
54
|
});
|
|
55
|
-
const valueMultiple =
|
|
55
|
+
const valueMultiple = vue.computed({
|
|
56
56
|
get() {
|
|
57
57
|
if (value.value !== void 0) {
|
|
58
58
|
if (value.value.length === props.options.filter((item) => !item.disabled).length) {
|
|
@@ -95,20 +95,20 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
return (_ctx, _cache) => {
|
|
98
|
-
return
|
|
99
|
-
class:
|
|
98
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
99
|
+
class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(cs).is("compact", props.compact)])
|
|
100
100
|
}, [
|
|
101
|
-
|
|
102
|
-
class: [
|
|
101
|
+
vue.unref(multiple) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(comps.value), vue.mergeProps({ key: 0 }, props, {
|
|
102
|
+
class: [vue.unref(cs).z("whole")],
|
|
103
103
|
options: options.value,
|
|
104
104
|
modelValue: valueMultiple.value,
|
|
105
105
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueMultiple.value = $event),
|
|
106
|
-
multiple:
|
|
106
|
+
multiple: vue.unref(multiple),
|
|
107
107
|
onClickMultiple: onClickWholes
|
|
108
|
-
}), null, 16, ["class", "options", "modelValue", "multiple"])) : (
|
|
108
|
+
}), null, 16, ["class", "options", "modelValue", "multiple"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(comps.value), vue.mergeProps({ key: 1 }, props, {
|
|
109
109
|
options: options.value,
|
|
110
|
-
modelValue:
|
|
111
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
110
|
+
modelValue: vue.unref(value),
|
|
111
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(value) ? value.value = $event : null)
|
|
112
112
|
}), null, 16, ["options", "modelValue"]))
|
|
113
113
|
], 2);
|
|
114
114
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const util = require("./util.cjs");
|
|
5
5
|
const css = require("../../common/css.cjs");
|
|
6
6
|
const use = require("../../common/use.cjs");
|
|
@@ -12,7 +12,7 @@ const img_vue_vue_type_script_setup_true_lang = require("../../tables/common/img
|
|
|
12
12
|
const Components = {
|
|
13
13
|
Img: img_vue_vue_type_script_setup_true_lang.default
|
|
14
14
|
};
|
|
15
|
-
const _sfc_main =
|
|
15
|
+
const _sfc_main = vue.defineComponent({
|
|
16
16
|
emits: data.dataEmits,
|
|
17
17
|
components: Components,
|
|
18
18
|
expose: data.dataExpose,
|
|
@@ -20,9 +20,9 @@ const _sfc_main = vues.defineComponent({
|
|
|
20
20
|
setup(props, { emit, slots }) {
|
|
21
21
|
const compons$1 = compons.getCompons(props.compons);
|
|
22
22
|
const cs = index.useCssName("list");
|
|
23
|
-
const isfocus =
|
|
24
|
-
const rowObj =
|
|
25
|
-
const borderColor =
|
|
23
|
+
const isfocus = vue.ref(false);
|
|
24
|
+
const rowObj = vue.ref();
|
|
25
|
+
const borderColor = vue.computed(() => {
|
|
26
26
|
const d = "#ccc";
|
|
27
27
|
if (typeof props.border === "boolean") {
|
|
28
28
|
return d;
|
|
@@ -67,19 +67,19 @@ const _sfc_main = vues.defineComponent({
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
if (is) {
|
|
70
|
-
arr.push(
|
|
70
|
+
arr.push(vue.h("tr", {}, trs));
|
|
71
71
|
trs = [];
|
|
72
72
|
}
|
|
73
73
|
trs.push(...getTd(obj, index2));
|
|
74
74
|
if (lin >= props.column) {
|
|
75
|
-
arr.push(
|
|
75
|
+
arr.push(vue.h("tr", {}, trs));
|
|
76
76
|
trs = [];
|
|
77
77
|
lin = 0;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
if (trs.length > 0) {
|
|
82
|
-
arr.push(
|
|
82
|
+
arr.push(vue.h("tr", {}, trs));
|
|
83
83
|
}
|
|
84
84
|
return arr;
|
|
85
85
|
};
|
|
@@ -105,9 +105,9 @@ const _sfc_main = vues.defineComponent({
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
if (is) {
|
|
108
|
-
arr.push(
|
|
108
|
+
arr.push(vue.h("tr", {}, trls));
|
|
109
109
|
trls = [];
|
|
110
|
-
arr.push(
|
|
110
|
+
arr.push(vue.h("tr", {}, trvs));
|
|
111
111
|
trvs = [];
|
|
112
112
|
}
|
|
113
113
|
if (obj.isdiv) {
|
|
@@ -117,8 +117,8 @@ const _sfc_main = vues.defineComponent({
|
|
|
117
117
|
trvs.push(getValue(obj, index2));
|
|
118
118
|
}
|
|
119
119
|
if (lin >= props.column) {
|
|
120
|
-
arr.push(
|
|
121
|
-
arr.push(
|
|
120
|
+
arr.push(vue.h("tr", {}, trls));
|
|
121
|
+
arr.push(vue.h("tr", {}, trvs));
|
|
122
122
|
trls = [];
|
|
123
123
|
trvs = [];
|
|
124
124
|
lin = 0;
|
|
@@ -126,13 +126,13 @@ const _sfc_main = vues.defineComponent({
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
if (trls.length > 0) {
|
|
129
|
-
arr.push(
|
|
130
|
-
arr.push(
|
|
129
|
+
arr.push(vue.h("tr", {}, trls));
|
|
130
|
+
arr.push(vue.h("tr", {}, trvs));
|
|
131
131
|
}
|
|
132
132
|
return arr;
|
|
133
133
|
};
|
|
134
134
|
const getlabel = (obj, index2) => {
|
|
135
|
-
return
|
|
135
|
+
return vue.h(
|
|
136
136
|
"th",
|
|
137
137
|
{
|
|
138
138
|
style: {
|
|
@@ -152,7 +152,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
[
|
|
155
|
-
|
|
155
|
+
vue.h(
|
|
156
156
|
"span",
|
|
157
157
|
{
|
|
158
158
|
class: cs.z("table-label")
|
|
@@ -175,7 +175,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
175
175
|
const getChildrenValue = (obj, index2) => {
|
|
176
176
|
if (obj.children) {
|
|
177
177
|
return [
|
|
178
|
-
|
|
178
|
+
vue.h(
|
|
179
179
|
"div",
|
|
180
180
|
{
|
|
181
181
|
class: cs.z("table-children")
|
|
@@ -187,7 +187,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
187
187
|
];
|
|
188
188
|
} else {
|
|
189
189
|
return [
|
|
190
|
-
|
|
190
|
+
vue.h(
|
|
191
191
|
"span",
|
|
192
192
|
{
|
|
193
193
|
class: cs.z("table-value")
|
|
@@ -209,7 +209,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
const getValue = (obj, index2, isRow) => {
|
|
212
|
-
return
|
|
212
|
+
return vue.h(
|
|
213
213
|
"td",
|
|
214
214
|
{
|
|
215
215
|
style: css.setStyles(obj, props.value, props),
|
|
@@ -237,14 +237,14 @@ const _sfc_main = vues.defineComponent({
|
|
|
237
237
|
}
|
|
238
238
|
if (props.labelPosition == "auto") {
|
|
239
239
|
return [
|
|
240
|
-
|
|
240
|
+
vue.h(
|
|
241
241
|
"td",
|
|
242
242
|
{
|
|
243
243
|
colspan: setColspan(obj),
|
|
244
244
|
class: cs.is("whole", obj.whole)
|
|
245
245
|
},
|
|
246
246
|
[
|
|
247
|
-
|
|
247
|
+
vue.h(
|
|
248
248
|
"div",
|
|
249
249
|
{
|
|
250
250
|
class: cs.z("table-auto")
|
|
@@ -280,7 +280,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
280
280
|
};
|
|
281
281
|
const renderValue = () => {
|
|
282
282
|
if (props.list && props.list.length > 0) {
|
|
283
|
-
return
|
|
283
|
+
return vue.h(
|
|
284
284
|
"div",
|
|
285
285
|
{
|
|
286
286
|
class: cs.z("div"),
|
|
@@ -294,7 +294,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
294
294
|
// },
|
|
295
295
|
},
|
|
296
296
|
[
|
|
297
|
-
|
|
297
|
+
vue.h(
|
|
298
298
|
"table",
|
|
299
299
|
{
|
|
300
300
|
class: [
|
|
@@ -318,7 +318,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
|
-
|
|
321
|
+
vue.onMounted(() => {
|
|
322
322
|
if (window) {
|
|
323
323
|
window.addEventListener("click", () => {
|
|
324
324
|
isfocus.value = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index$3 = require("../../card/index.cjs");
|
|
6
6
|
require("../../loading/index.cjs");
|
|
@@ -13,20 +13,20 @@ require("../../../utils/css.cjs");
|
|
|
13
13
|
const setObjStyle = require("@fangzhongya/utils/css/setObjStyle");
|
|
14
14
|
const index$6 = require("../../loading/src/index.cjs");
|
|
15
15
|
const _hoisted_1 = ["onClick"];
|
|
16
|
-
const _sfc_main = /* @__PURE__ */
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: data.dataProps,
|
|
19
19
|
emits: data.dataEmits,
|
|
20
20
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
|
-
const slots =
|
|
22
|
-
const attrs = index.useInherit(
|
|
21
|
+
const slots = vue.useSlots();
|
|
22
|
+
const attrs = index.useInherit(vue.useAttrs());
|
|
23
23
|
const { getLocale } = index$1.useLocale();
|
|
24
24
|
const cs = index$2.useCssName("lists");
|
|
25
25
|
const props = __props;
|
|
26
26
|
const emit = __emit;
|
|
27
|
-
const header =
|
|
28
|
-
const footer =
|
|
29
|
-
const dataList =
|
|
27
|
+
const header = vue.ref([]);
|
|
28
|
+
const footer = vue.ref([]);
|
|
29
|
+
const dataList = vue.ref([]);
|
|
30
30
|
const setList = () => {
|
|
31
31
|
const list = props.list || [];
|
|
32
32
|
list.forEach((obj) => {
|
|
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
vue.watch(
|
|
48
48
|
[() => props.list, () => {
|
|
49
49
|
var _a;
|
|
50
50
|
return (_a = props.list) == null ? void 0 : _a.length;
|
|
@@ -80,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
80
80
|
}
|
|
81
81
|
return arr;
|
|
82
82
|
};
|
|
83
|
-
const rows =
|
|
83
|
+
const rows = vue.ref();
|
|
84
84
|
const onClick = (item, index2) => {
|
|
85
85
|
if (attrs.assem.ischecked) {
|
|
86
86
|
const i = selections.value.indexOf(item);
|
|
@@ -122,7 +122,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
122
122
|
}
|
|
123
123
|
return setObjStyle.setObjStyle(vst, obj);
|
|
124
124
|
}
|
|
125
|
-
const selections =
|
|
125
|
+
const selections = vue.ref([]);
|
|
126
126
|
function toggleRowSelection(item, is) {
|
|
127
127
|
if (is) {
|
|
128
128
|
selections.value.push(item);
|
|
@@ -146,34 +146,34 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
146
146
|
toggleRowSelection
|
|
147
147
|
});
|
|
148
148
|
return (_ctx, _cache) => {
|
|
149
|
-
return
|
|
150
|
-
class:
|
|
151
|
-
style:
|
|
149
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
150
|
+
class: vue.unref(cs).z(),
|
|
151
|
+
style: vue.unref(cs).vdo({
|
|
152
152
|
interval: props.interval
|
|
153
153
|
})
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
class:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
}, vue.unref(attrs).root), [
|
|
155
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
156
|
+
class: vue.normalizeClass([
|
|
157
|
+
vue.unref(cs).z("list"),
|
|
158
|
+
vue.unref(cs).is("absolute", props.adaptive),
|
|
159
|
+
vue.unref(cs).zis("list", "column", props.rowColumn > 1)
|
|
160
160
|
]),
|
|
161
|
-
style:
|
|
161
|
+
style: vue.normalizeStyle({
|
|
162
162
|
height: props.height
|
|
163
163
|
})
|
|
164
164
|
}, [
|
|
165
|
-
props.value && props.value.length > 0 ? (
|
|
166
|
-
return
|
|
167
|
-
class:
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
165
|
+
props.value && props.value.length > 0 ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(props.value, (item, index2) => {
|
|
166
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
167
|
+
class: vue.normalizeClass([
|
|
168
|
+
vue.unref(cs).z("list-item"),
|
|
169
|
+
vue.unref(cs).is("active", rows.value === item),
|
|
170
|
+
vue.unref(cs).is("selected", selections.value.includes(item))
|
|
171
171
|
]),
|
|
172
|
-
style:
|
|
172
|
+
style: vue.normalizeStyle(setStyles(item)),
|
|
173
173
|
onClick: ($event) => onClick(item, index2)
|
|
174
174
|
}, [
|
|
175
|
-
|
|
176
|
-
config:
|
|
175
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default, {
|
|
176
|
+
config: vue.unref(attrs).assem,
|
|
177
177
|
value: item,
|
|
178
178
|
index: index2,
|
|
179
179
|
list: props.list,
|
|
@@ -182,21 +182,21 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
182
182
|
options: props.options,
|
|
183
183
|
compons: props.compons
|
|
184
184
|
}, () => [
|
|
185
|
-
|
|
186
|
-
default:
|
|
187
|
-
|
|
185
|
+
vue.createVNode(vue.unref(index$3.Card), null, vue.createSlots({
|
|
186
|
+
default: vue.withCtx(() => [
|
|
187
|
+
vue.createVNode(vue.unref(index$4.List), vue.mergeProps({ ref_for: true }, vue.unref(attrs).assem, {
|
|
188
188
|
value: item,
|
|
189
189
|
list: setListValue(dataList.value, index2),
|
|
190
190
|
options: props.options,
|
|
191
191
|
compons: props.compons
|
|
192
|
-
}),
|
|
193
|
-
|
|
192
|
+
}), vue.createSlots({ _: 2 }, [
|
|
193
|
+
vue.renderList(Object.keys(vue.unref(slots)).filter(
|
|
194
194
|
(v) => !["no-data"].includes(v)
|
|
195
195
|
), (k) => {
|
|
196
196
|
return {
|
|
197
197
|
name: k,
|
|
198
|
-
fn:
|
|
199
|
-
|
|
198
|
+
fn: vue.withCtx((scope) => [
|
|
199
|
+
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
|
|
200
200
|
])
|
|
201
201
|
};
|
|
202
202
|
})
|
|
@@ -206,20 +206,20 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
206
206
|
}, [
|
|
207
207
|
header.value.length > 0 ? {
|
|
208
208
|
name: "header",
|
|
209
|
-
fn:
|
|
210
|
-
|
|
209
|
+
fn: vue.withCtx(() => [
|
|
210
|
+
vue.createVNode(vue.unref(index$4.List), vue.mergeProps({ ref_for: true }, vue.unref(attrs).assem, {
|
|
211
211
|
value: item,
|
|
212
212
|
list: setListValue(header.value, index2),
|
|
213
213
|
options: props.options,
|
|
214
214
|
compons: props.compons
|
|
215
|
-
}),
|
|
216
|
-
|
|
215
|
+
}), vue.createSlots({ _: 2 }, [
|
|
216
|
+
vue.renderList(Object.keys(vue.unref(slots)).filter(
|
|
217
217
|
(v) => !["no-data"].includes(v)
|
|
218
218
|
), (k) => {
|
|
219
219
|
return {
|
|
220
220
|
name: k,
|
|
221
|
-
fn:
|
|
222
|
-
|
|
221
|
+
fn: vue.withCtx((scope) => [
|
|
222
|
+
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
|
|
223
223
|
])
|
|
224
224
|
};
|
|
225
225
|
})
|
|
@@ -229,20 +229,20 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
229
229
|
} : void 0,
|
|
230
230
|
footer.value.length > 0 ? {
|
|
231
231
|
name: "footer",
|
|
232
|
-
fn:
|
|
233
|
-
|
|
232
|
+
fn: vue.withCtx(() => [
|
|
233
|
+
vue.createVNode(vue.unref(index$4.List), vue.mergeProps({ ref_for: true }, vue.unref(attrs).assem, {
|
|
234
234
|
value: item,
|
|
235
235
|
list: setListValue(footer.value, index2),
|
|
236
236
|
options: props.options,
|
|
237
237
|
compons: props.compons
|
|
238
|
-
}),
|
|
239
|
-
|
|
238
|
+
}), vue.createSlots({ _: 2 }, [
|
|
239
|
+
vue.renderList(Object.keys(vue.unref(slots)).filter(
|
|
240
240
|
(v) => !["no-data"].includes(v)
|
|
241
241
|
), (k) => {
|
|
242
242
|
return {
|
|
243
243
|
name: k,
|
|
244
|
-
fn:
|
|
245
|
-
|
|
244
|
+
fn: vue.withCtx((scope) => [
|
|
245
|
+
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
|
|
246
246
|
])
|
|
247
247
|
};
|
|
248
248
|
})
|
|
@@ -253,11 +253,11 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
253
253
|
]), 1024)
|
|
254
254
|
])
|
|
255
255
|
], 14, _hoisted_1);
|
|
256
|
-
}), 256)) :
|
|
257
|
-
|
|
256
|
+
}), 256)) : vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).noData, { key: 1 }, () => [
|
|
257
|
+
vue.createVNode(vue.unref(index$5.NoData))
|
|
258
258
|
])
|
|
259
259
|
], 6)), [
|
|
260
|
-
[
|
|
260
|
+
[vue.unref(index$6.vLoading), props.loading]
|
|
261
261
|
])
|
|
262
262
|
], 16);
|
|
263
263
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const index$2 = require("../../lists/index.cjs");
|
|
5
5
|
const index$4 = require("../../paging/index.cjs");
|
|
6
6
|
const index$3 = require("../../../directives/scroll/index.cjs");
|
|
7
7
|
const pagin = require("../../tables/common/pagin.cjs");
|
|
8
8
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: pagin.dataProps,
|
|
13
13
|
emits: pagin.dataEmit,
|
|
14
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
15
|
const { getLocale } = index.useLocale();
|
|
16
16
|
const cs = index$1.useCssName("listsp");
|
|
17
|
-
const slots =
|
|
17
|
+
const slots = vue.useSlots();
|
|
18
18
|
const props = __props;
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const refTable =
|
|
20
|
+
const refTable = vue.ref();
|
|
21
21
|
const {
|
|
22
22
|
height,
|
|
23
23
|
getSelection,
|
|
@@ -49,52 +49,52 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
49
49
|
});
|
|
50
50
|
return (_ctx, _cache) => {
|
|
51
51
|
var _a, _b, _c;
|
|
52
|
-
return
|
|
53
|
-
class:
|
|
54
|
-
style:
|
|
55
|
-
height:
|
|
52
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
53
|
+
class: vue.normalizeClass(vue.unref(cs).z()),
|
|
54
|
+
style: vue.normalizeStyle({
|
|
55
|
+
height: vue.unref(height) == "100%" ? vue.unref(height) : ""
|
|
56
56
|
})
|
|
57
57
|
}, [
|
|
58
|
-
|
|
59
|
-
height:
|
|
58
|
+
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.Lists), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
|
|
59
|
+
height: vue.unref(height),
|
|
60
60
|
ref_key: "refTable",
|
|
61
61
|
ref: refTable,
|
|
62
62
|
class: [
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
vue.unref(cs).z("main"),
|
|
64
|
+
vue.unref(cs).is("scroll", vue.unref(paginat).is && vue.unref(paginat).scroll)
|
|
65
65
|
],
|
|
66
|
-
"scroll-selector": "." +
|
|
67
|
-
size: (_a =
|
|
68
|
-
paginat:
|
|
69
|
-
value:
|
|
70
|
-
list:
|
|
71
|
-
loading: ((_b =
|
|
66
|
+
"scroll-selector": "." + vue.unref(cs).c("lists", "list"),
|
|
67
|
+
size: (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.size,
|
|
68
|
+
paginat: vue.unref(paginat),
|
|
69
|
+
value: vue.unref(data).list,
|
|
70
|
+
list: vue.unref(tableList),
|
|
71
|
+
loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.noloading) || vue.unref(paginat).scroll && vue.unref(paginat).current > 1 ? false : vue.unref(loading),
|
|
72
72
|
options: props.options,
|
|
73
73
|
compons: props.compons,
|
|
74
|
-
onSortChange:
|
|
75
|
-
onListEvents:
|
|
76
|
-
onSelect:
|
|
77
|
-
onRowClick:
|
|
78
|
-
onSelectionChange:
|
|
79
|
-
}),
|
|
80
|
-
|
|
74
|
+
onSortChange: vue.unref(onSortChange),
|
|
75
|
+
onListEvents: vue.unref(onListEvents),
|
|
76
|
+
onSelect: vue.unref(onSelect),
|
|
77
|
+
onRowClick: vue.unref(onRowClick),
|
|
78
|
+
onSelectionChange: vue.unref(onChange)
|
|
79
|
+
}), vue.createSlots({ _: 2 }, [
|
|
80
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
81
81
|
return {
|
|
82
82
|
name: k,
|
|
83
|
-
fn:
|
|
84
|
-
|
|
83
|
+
fn: vue.withCtx((scope) => [
|
|
84
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
85
85
|
])
|
|
86
86
|
};
|
|
87
87
|
})
|
|
88
88
|
]), 1040, ["height", "class", "scroll-selector", "size", "paginat", "value", "list", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])), [
|
|
89
|
-
[
|
|
89
|
+
[vue.unref(index$3.default), vue.unref(scroll)]
|
|
90
90
|
]),
|
|
91
|
-
((_c =
|
|
92
|
-
class:
|
|
93
|
-
paginat:
|
|
94
|
-
total:
|
|
95
|
-
onSizeChange:
|
|
96
|
-
onCurrentChange:
|
|
97
|
-
}), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) :
|
|
91
|
+
((_c = vue.unref(paginat)) == null ? void 0 : _c.is) && !vue.unref(paginat).scroll ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
|
|
92
|
+
class: vue.unref(cs).z("paginat"),
|
|
93
|
+
paginat: vue.unref(paginat),
|
|
94
|
+
total: vue.unref(data).total,
|
|
95
|
+
onSizeChange: vue.unref(onSizeChange),
|
|
96
|
+
onCurrentChange: vue.unref(onCurrentChange)
|
|
97
|
+
}), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : vue.createCommentVNode("", true)
|
|
98
98
|
], 6);
|
|
99
99
|
};
|
|
100
100
|
}
|