@fangzhongya/fang-ui 0.0.67 → 0.0.69
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/box-adjust/src/data.cjs +2 -2
- package/dist/components/box-adjust/src/data.d.ts +2 -2
- package/dist/components/box-adjust/src/data.js +2 -2
- package/dist/components/box-adjust/src/index2.cjs +0 -1
- package/dist/components/box-adjust/src/index2.js +0 -1
- package/dist/components/global-config/src/data.cjs +1 -1
- package/dist/components/global-config/src/data.d.ts +1 -0
- package/dist/components/global-config/src/data.js +1 -1
- package/dist/components/index.scss +2 -2
- package/dist/components/index2.scss +2 -2
- package/dist/components/page/index.css +64 -1
- package/dist/components/page/index.scss +66 -1
- package/dist/components/page/src/index2.cjs +4 -3
- package/dist/components/page/src/index2.js +4 -3
- package/dist/components/page/src/set-column.cjs +1 -4
- package/dist/components/page/src/set-column.js +1 -4
- package/dist/components/page/src/set-column2.cjs +74 -34
- package/dist/components/page/src/set-column2.js +69 -29
- package/dist/components/popup/src/data.cjs +2 -2
- package/dist/components/popup/src/data.d.ts +2 -2
- package/dist/components/popup/src/data.js +2 -2
- package/dist/components/selects/src/data.cjs +1 -1
- package/dist/components/selects/src/data.js +1 -1
- package/dist/components/stick-edge/src/data.cjs +2 -4
- package/dist/components/stick-edge/src/data.d.ts +2 -3
- package/dist/components/stick-edge/src/data.js +2 -4
- package/dist/components/stick-window/src/data.cjs +2 -2
- package/dist/components/stick-window/src/data.d.ts +2 -2
- package/dist/components/stick-window/src/data.js +2 -2
- package/dist/components/window/src/data.cjs +2 -2
- package/dist/components/window/src/data.d.ts +2 -2
- package/dist/components/window/src/data.js +2 -2
- package/dist/css/index.css +68 -23
- package/dist/css/page.css +64 -1
- package/dist/directives/drag/index.cjs +8 -3
- package/dist/directives/drag/index.js +8 -3
- package/dist/icons/index.css +38 -38
- package/dist/icons/index.json +11 -11
- package/dist/index.css +68 -23
- package/dist/locale/en.cjs +9 -0
- package/dist/locale/en.d.ts +9 -0
- package/dist/locale/en.js +9 -0
- package/dist/locale/zh-cn.cjs +9 -0
- package/dist/locale/zh-cn.d.ts +9 -0
- package/dist/locale/zh-cn.js +9 -0
- package/package.json +5 -5
- package/dist/components/page/set-column.css +0 -38
- package/dist/css/page/set-column.css +0 -38
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/components/{keep-com → global-config}/index.css +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
- /package/dist/css/{keep-com.css → global-config.css} +0 -0
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, createElementVNode, createBlock, Fragment, renderList, mergeProps,
|
|
1
|
+
import { defineComponent, ref, watch, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, createBlock, Fragment, renderList, mergeProps, withModifiers } from "vue";
|
|
2
2
|
import Draggable from "vuedraggable";
|
|
3
3
|
import { Dialogs } from "../../dialogs/index.js";
|
|
4
4
|
import { NoData } from "../../no-data/index.js";
|
|
5
|
+
import { Checkbox } from "../../checkbox/index.js";
|
|
6
|
+
import { Button } from "../../button/index.js";
|
|
5
7
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import { ElButton } from "element-plus/es/components/button/index";
|
|
8
|
-
const _hoisted_1 = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "no-data"
|
|
11
|
-
};
|
|
8
|
+
import { useLocale } from "../../../hooks/locale/index.js";
|
|
12
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
10
|
__name: "set-column",
|
|
14
11
|
props: {
|
|
@@ -19,15 +16,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
16
|
}
|
|
20
17
|
},
|
|
21
18
|
list: {
|
|
22
|
-
type: Array
|
|
19
|
+
type: Array,
|
|
20
|
+
default() {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:modelValue"],
|
|
26
26
|
setup(__props, { emit: __emit }) {
|
|
27
|
+
const { getLocale } = useLocale();
|
|
27
28
|
const props = __props;
|
|
28
29
|
const emit = __emit;
|
|
29
30
|
const cs = useCssName("set-column");
|
|
30
31
|
const dialogVisible = ref(false);
|
|
32
|
+
const isall = ref(false);
|
|
31
33
|
const value = ref([...props.modelValue]);
|
|
32
34
|
watch(
|
|
33
35
|
() => props.modelValue,
|
|
@@ -36,8 +38,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
38
|
}
|
|
37
39
|
);
|
|
38
40
|
const onOpen = () => {
|
|
41
|
+
var _a;
|
|
39
42
|
value.value = [...props.modelValue];
|
|
40
43
|
dialogVisible.value = true;
|
|
44
|
+
if (value.value.length == ((_a = props.list) == null ? void 0 : _a.length)) {
|
|
45
|
+
isall.value = true;
|
|
46
|
+
}
|
|
41
47
|
};
|
|
42
48
|
const isChecked = (item) => {
|
|
43
49
|
return value.value.map((o) => o.prop).includes(item.prop);
|
|
@@ -54,31 +60,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
60
|
};
|
|
55
61
|
const drag = ref(false);
|
|
56
62
|
const onChange = (item, is) => {
|
|
63
|
+
var _a;
|
|
57
64
|
if (is) {
|
|
58
65
|
value.value.push(item);
|
|
66
|
+
if (value.value.length == ((_a = props.list) == null ? void 0 : _a.length)) {
|
|
67
|
+
isall.value = true;
|
|
68
|
+
}
|
|
59
69
|
} else {
|
|
60
70
|
const v = value.value.map((o) => o.prop);
|
|
61
71
|
value.value.splice(v.indexOf(item.prop), 1);
|
|
72
|
+
isall.value = false;
|
|
62
73
|
}
|
|
63
74
|
};
|
|
64
75
|
const onDelete = (item, index) => {
|
|
65
76
|
value.value.splice(index, 1);
|
|
77
|
+
isall.value = false;
|
|
78
|
+
};
|
|
79
|
+
const onAllChange = (is) => {
|
|
80
|
+
if (is) {
|
|
81
|
+
value.value = [...props.list];
|
|
82
|
+
} else {
|
|
83
|
+
value.value = [];
|
|
84
|
+
}
|
|
66
85
|
};
|
|
67
86
|
return (_ctx, _cache) => {
|
|
68
87
|
return openBlock(), createElementBlock("div", {
|
|
69
88
|
class: normalizeClass(unref(cs).z())
|
|
70
89
|
}, [
|
|
71
|
-
createVNode(unref(
|
|
72
|
-
default: withCtx(() => [
|
|
73
|
-
createTextVNode("
|
|
74
|
-
])
|
|
90
|
+
createVNode(unref(Button), { onClick: onOpen }, {
|
|
91
|
+
default: withCtx(() => [
|
|
92
|
+
createTextVNode(toDisplayString(unref(getLocale)("setColumn.name")), 1)
|
|
93
|
+
]),
|
|
75
94
|
_: 1
|
|
76
95
|
}),
|
|
77
96
|
createVNode(unref(Dialogs), {
|
|
78
97
|
class: normalizeClass(unref(cs).z("dialog")),
|
|
79
98
|
modelValue: dialogVisible.value,
|
|
80
|
-
"onUpdate:modelValue": _cache[
|
|
81
|
-
|
|
99
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => dialogVisible.value = $event),
|
|
100
|
+
width: 900,
|
|
101
|
+
title: unref(getLocale)("setColumn.title"),
|
|
82
102
|
onConfirm: onSubmit
|
|
83
103
|
}, {
|
|
84
104
|
default: withCtx(() => [
|
|
@@ -90,13 +110,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
110
|
}, [
|
|
91
111
|
createElementVNode("div", {
|
|
92
112
|
class: normalizeClass(unref(cs).z("title"))
|
|
93
|
-
},
|
|
113
|
+
}, [
|
|
114
|
+
createElementVNode("span", null, toDisplayString(unref(getLocale)("setColumn.optional")), 1),
|
|
115
|
+
createElementVNode("span", {
|
|
116
|
+
class: normalizeClass(unref(cs).z("title-all"))
|
|
117
|
+
}, [
|
|
118
|
+
createVNode(unref(Checkbox), {
|
|
119
|
+
modelValue: isall.value,
|
|
120
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isall.value = $event),
|
|
121
|
+
onChange: onAllChange
|
|
122
|
+
}, {
|
|
123
|
+
default: withCtx(() => [
|
|
124
|
+
createTextVNode(toDisplayString(unref(getLocale)("setColumn.all")), 1)
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
}, 8, ["modelValue"])
|
|
128
|
+
], 2)
|
|
129
|
+
], 2),
|
|
94
130
|
(openBlock(), createElementBlock("div", {
|
|
95
131
|
class: normalizeClass(unref(cs).z("check-list")),
|
|
96
132
|
key: value.value.length
|
|
97
133
|
}, [
|
|
98
|
-
props.list
|
|
99
|
-
return openBlock(), createBlock(unref(
|
|
134
|
+
props.list.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.list, (item, index) => {
|
|
135
|
+
return openBlock(), createBlock(unref(Checkbox), {
|
|
100
136
|
class: normalizeClass(unref(cs).z("check-list-li")),
|
|
101
137
|
key: index,
|
|
102
138
|
label: item.label,
|
|
@@ -112,46 +148,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
148
|
}, [
|
|
113
149
|
createElementVNode("div", {
|
|
114
150
|
class: normalizeClass(unref(cs).z("title"))
|
|
115
|
-
}, "
|
|
151
|
+
}, toDisplayString(unref(getLocale)("setColumn.selected")), 3),
|
|
116
152
|
createElementVNode("div", {
|
|
117
153
|
class: normalizeClass(unref(cs).z("already-list"))
|
|
118
154
|
}, [
|
|
119
155
|
value.value && value.value.length > 0 ? (openBlock(), createBlock(unref(Draggable), mergeProps({ key: 0 }, dragOptions, {
|
|
120
|
-
onStart: _cache[
|
|
121
|
-
onEnd: _cache[
|
|
156
|
+
onStart: _cache[1] || (_cache[1] = ($event) => drag.value = true),
|
|
157
|
+
onEnd: _cache[2] || (_cache[2] = ($event) => drag.value = false),
|
|
122
158
|
modelValue: value.value,
|
|
123
|
-
"onUpdate:modelValue": _cache[
|
|
159
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => value.value = $event),
|
|
124
160
|
"item-key": (value2) => value2,
|
|
125
161
|
handle: ".handle"
|
|
126
162
|
}), {
|
|
127
163
|
item: withCtx(({ element, index }) => [
|
|
128
164
|
createElementVNode("div", {
|
|
129
|
-
class: normalizeClass(unref(cs).z("already-li"))
|
|
165
|
+
class: normalizeClass(["handle", unref(cs).z("already-li")])
|
|
130
166
|
}, [
|
|
131
167
|
createElementVNode("div", {
|
|
132
|
-
class: normalizeClass(
|
|
168
|
+
class: normalizeClass(unref(cs).z("already-li-v"))
|
|
133
169
|
}, [
|
|
134
170
|
createElementVNode("div", null, toDisplayString(element.label), 1)
|
|
135
171
|
], 2),
|
|
136
|
-
createVNode(unref(
|
|
172
|
+
createVNode(unref(Button), {
|
|
137
173
|
text: "",
|
|
174
|
+
type: "danger",
|
|
138
175
|
onClick: withModifiers(($event) => onDelete(element, index), ["stop"])
|
|
139
176
|
}, {
|
|
140
|
-
default: withCtx(() => [
|
|
141
|
-
createTextVNode("
|
|
142
|
-
])
|
|
177
|
+
default: withCtx(() => [
|
|
178
|
+
createTextVNode(toDisplayString(unref(getLocale)("setColumn.delete")), 1)
|
|
179
|
+
]),
|
|
143
180
|
_: 1
|
|
144
181
|
}, 8, ["onClick"])
|
|
145
182
|
], 2)
|
|
146
183
|
]),
|
|
147
184
|
_: 1
|
|
148
|
-
}, 16, ["modelValue", "item-key"])) : (openBlock(),
|
|
185
|
+
}, 16, ["modelValue", "item-key"])) : (openBlock(), createBlock(unref(NoData), {
|
|
186
|
+
key: 1,
|
|
187
|
+
text: unref(getLocale)("setColumn.nodata")
|
|
188
|
+
}, null, 8, ["text"]))
|
|
149
189
|
], 2)
|
|
150
190
|
], 2)
|
|
151
191
|
], 2)
|
|
152
192
|
]),
|
|
153
193
|
_: 1
|
|
154
|
-
}, 8, ["class", "modelValue"])
|
|
194
|
+
}, 8, ["class", "modelValue", "title"])
|
|
155
195
|
], 2);
|
|
156
196
|
};
|
|
157
197
|
}
|
|
@@ -5,11 +5,11 @@ const data = require("../../box/src/data.cjs");
|
|
|
5
5
|
const dataProps = buildProps.buildProps({
|
|
6
6
|
...data.dataProps,
|
|
7
7
|
/**
|
|
8
|
-
* @props { String
|
|
8
|
+
* @props { String } drag='.box-title-name' ( )
|
|
9
9
|
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
10
10
|
*/
|
|
11
11
|
drag: {
|
|
12
|
-
type:
|
|
12
|
+
type: String
|
|
13
13
|
},
|
|
14
14
|
/**
|
|
15
15
|
* @props { Boolean } drag= ( )
|
|
@@ -2,11 +2,11 @@ import { ExtractPublicPropTypes } from 'vue';
|
|
|
2
2
|
import { FunctConfig } from '../../../utils/enums';
|
|
3
3
|
export declare const dataProps: {
|
|
4
4
|
/**
|
|
5
|
-
* @props { String
|
|
5
|
+
* @props { String } drag='.box-title-name' ( )
|
|
6
6
|
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
7
7
|
*/
|
|
8
8
|
drag: {
|
|
9
|
-
type:
|
|
9
|
+
type: StringConstructor;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* @props { Boolean } drag= ( )
|
|
@@ -3,11 +3,11 @@ import { dataProps as dataProps$1, dataEmits as dataEmits$1, dataSlot as dataSlo
|
|
|
3
3
|
const dataProps = buildProps({
|
|
4
4
|
...dataProps$1,
|
|
5
5
|
/**
|
|
6
|
-
* @props { String
|
|
6
|
+
* @props { String } drag='.box-title-name' ( )
|
|
7
7
|
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
8
8
|
*/
|
|
9
9
|
drag: {
|
|
10
|
-
type:
|
|
10
|
+
type: String
|
|
11
11
|
},
|
|
12
12
|
/**
|
|
13
13
|
* @props { Boolean } drag= ( )
|
|
@@ -12,7 +12,7 @@ const dataProps = {
|
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
const dataHandle = list.comHandle;
|
|
15
|
-
const dataEmits = [...list.emits];
|
|
15
|
+
const dataEmits = [...list.emits, "click-multiple"];
|
|
16
16
|
exports.dataEmits = dataEmits;
|
|
17
17
|
exports.dataHandle = dataHandle;
|
|
18
18
|
exports.dataProps = dataProps;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
4
|
-
require("../../../utils/vues/definePropType.cjs");
|
|
5
4
|
const dataProps = buildProps.buildProps({
|
|
6
5
|
/**
|
|
7
|
-
* @props { String
|
|
6
|
+
* @props { String } drag= ( )
|
|
8
7
|
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
9
8
|
*/
|
|
10
9
|
drag: {
|
|
11
|
-
type:
|
|
12
|
-
default: true
|
|
10
|
+
type: String
|
|
13
11
|
},
|
|
14
12
|
/**
|
|
15
13
|
* @props { String, Array<Direction> } direction='' ( )
|
|
@@ -2,12 +2,11 @@ import { ExtractPublicPropTypes } from 'vue';
|
|
|
2
2
|
type Direction = '' | 'left' | 'right' | 'top' | 'bottom';
|
|
3
3
|
export declare const dataProps: {
|
|
4
4
|
/**
|
|
5
|
-
* @props { String
|
|
5
|
+
* @props { String } drag= ( )
|
|
6
6
|
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
7
7
|
*/
|
|
8
8
|
drag: {
|
|
9
|
-
type:
|
|
10
|
-
default: boolean;
|
|
9
|
+
type: StringConstructor;
|
|
11
10
|
};
|
|
12
11
|
/**
|
|
13
12
|
* @props { String, Array<Direction> } direction='' ( )
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
2
|
-
import "../../../utils/vues/definePropType.js";
|
|
3
2
|
const dataProps = buildProps({
|
|
4
3
|
/**
|
|
5
|
-
* @props { String
|
|
4
|
+
* @props { String } drag= ( )
|
|
6
5
|
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
7
6
|
*/
|
|
8
7
|
drag: {
|
|
9
|
-
type:
|
|
10
|
-
default: true
|
|
8
|
+
type: String
|
|
11
9
|
},
|
|
12
10
|
/**
|
|
13
11
|
* @props { String, Array<Direction> } direction='' ( )
|
|
@@ -7,11 +7,11 @@ const dataProps = buildProps.buildProps({
|
|
|
7
7
|
...data$1.dataProps,
|
|
8
8
|
...data.dataProps,
|
|
9
9
|
/**
|
|
10
|
-
* @props { String
|
|
10
|
+
* @props { String} drag= ( )
|
|
11
11
|
* 可拖拽的元素样式
|
|
12
12
|
*/
|
|
13
13
|
drag: {
|
|
14
|
-
type:
|
|
14
|
+
type: String
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
const dataEmits = {};
|
|
@@ -3,11 +3,11 @@ import { Direction } from '../../stick-div/src/data';
|
|
|
3
3
|
import { FunctConfig } from '../../../utils/enums';
|
|
4
4
|
export declare const dataProps: {
|
|
5
5
|
/**
|
|
6
|
-
* @props { String
|
|
6
|
+
* @props { String} drag= ( )
|
|
7
7
|
* 可拖拽的元素样式
|
|
8
8
|
*/
|
|
9
9
|
drag: {
|
|
10
|
-
type:
|
|
10
|
+
type: StringConstructor;
|
|
11
11
|
};
|
|
12
12
|
direction: {
|
|
13
13
|
type: PropType<Direction>;
|
|
@@ -5,11 +5,11 @@ const dataProps = buildProps({
|
|
|
5
5
|
...dataProps$2,
|
|
6
6
|
...dataProps$1,
|
|
7
7
|
/**
|
|
8
|
-
* @props { String
|
|
8
|
+
* @props { String} drag= ( )
|
|
9
9
|
* 可拖拽的元素样式
|
|
10
10
|
*/
|
|
11
11
|
drag: {
|
|
12
|
-
type:
|
|
12
|
+
type: String
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
const dataEmits = {};
|
|
@@ -6,11 +6,11 @@ const data = require("../../box/src/data.cjs");
|
|
|
6
6
|
const dataProps = buildProps.buildProps({
|
|
7
7
|
...data.dataProps,
|
|
8
8
|
/**
|
|
9
|
-
* @props { String
|
|
9
|
+
* @props { String } drag='.box-title-name' ( )
|
|
10
10
|
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
11
11
|
*/
|
|
12
12
|
drag: {
|
|
13
|
-
type:
|
|
13
|
+
type: String
|
|
14
14
|
},
|
|
15
15
|
/**
|
|
16
16
|
* @props { Boolean } adjust=true ( )
|
|
@@ -7,11 +7,11 @@ type Pallet = {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const dataProps: {
|
|
9
9
|
/**
|
|
10
|
-
* @props { String
|
|
10
|
+
* @props { String } drag='.box-title-name' ( )
|
|
11
11
|
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
12
12
|
*/
|
|
13
13
|
drag: {
|
|
14
|
-
type:
|
|
14
|
+
type: StringConstructor;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* @props { Boolean } adjust=true ( )
|
|
@@ -4,11 +4,11 @@ import { dataProps as dataProps$1, dataEmits as dataEmits$1, dataSlot as dataSlo
|
|
|
4
4
|
const dataProps = buildProps({
|
|
5
5
|
...dataProps$1,
|
|
6
6
|
/**
|
|
7
|
-
* @props { String
|
|
7
|
+
* @props { String } drag='.box-title-name' ( )
|
|
8
8
|
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
9
9
|
*/
|
|
10
10
|
drag: {
|
|
11
|
-
type:
|
|
11
|
+
type: String
|
|
12
12
|
},
|
|
13
13
|
/**
|
|
14
14
|
* @props { Boolean } adjust=true ( )
|
package/dist/css/index.css
CHANGED
|
@@ -668,17 +668,80 @@
|
|
|
668
668
|
display: flex;
|
|
669
669
|
margin-right: 20px;
|
|
670
670
|
}
|
|
671
|
-
.page-operations
|
|
671
|
+
.page-operations .el-button {
|
|
672
672
|
margin-left: 2px;
|
|
673
673
|
margin-right: 2px;
|
|
674
674
|
padding-left: 5px;
|
|
675
675
|
padding-right: 5px;
|
|
676
676
|
}
|
|
677
|
+
.page-operations .el-button:first-child {
|
|
678
|
+
margin-left: 0;
|
|
679
|
+
}
|
|
680
|
+
.page-operations .el-button:last-child {
|
|
681
|
+
margin-right: 0;
|
|
682
|
+
}
|
|
677
683
|
.page-footer {
|
|
678
684
|
padding: 10px;
|
|
679
685
|
text-align: right;
|
|
680
686
|
background-color: #f5f5f5;
|
|
681
687
|
}
|
|
688
|
+
.page .set-column {
|
|
689
|
+
margin-left: 10px;
|
|
690
|
+
}
|
|
691
|
+
.page .set-column .set-column-dialog-main {
|
|
692
|
+
font-size: 16px;
|
|
693
|
+
display: flex;
|
|
694
|
+
}
|
|
695
|
+
.page .set-column .set-column-dialog-main .set-column-title {
|
|
696
|
+
height: 40px;
|
|
697
|
+
width: 100%;
|
|
698
|
+
display: flex;
|
|
699
|
+
align-items: center;
|
|
700
|
+
justify-content: space-between;
|
|
701
|
+
}
|
|
702
|
+
.page .set-column .set-column-dialog-main .set-column-title .set-column-title-all {
|
|
703
|
+
margin-right: 20px;
|
|
704
|
+
}
|
|
705
|
+
.page .set-column .set-column-dialog-main .set-column-check {
|
|
706
|
+
flex: 1;
|
|
707
|
+
}
|
|
708
|
+
.page .set-column .set-column-dialog-main .set-column-check .set-column-check-list {
|
|
709
|
+
padding: 10px;
|
|
710
|
+
box-sizing: border-box;
|
|
711
|
+
display: flex;
|
|
712
|
+
flex-direction: row;
|
|
713
|
+
flex-wrap: wrap;
|
|
714
|
+
overflow-y: auto;
|
|
715
|
+
}
|
|
716
|
+
.page .set-column .set-column-dialog-main .set-column-check .set-column-check-list .set-column-check-list-li {
|
|
717
|
+
margin-right: 0;
|
|
718
|
+
width: 33%;
|
|
719
|
+
height: 40px;
|
|
720
|
+
}
|
|
721
|
+
.page .set-column .set-column-dialog-main .set-column-already {
|
|
722
|
+
border-left: 1px solid #999;
|
|
723
|
+
padding-left: 20px;
|
|
724
|
+
width: 240px;
|
|
725
|
+
}
|
|
726
|
+
.page .set-column .set-column-dialog-main .set-column-already .set-column-already-list {
|
|
727
|
+
padding: 10px 10px 10px 0;
|
|
728
|
+
}
|
|
729
|
+
.page .set-column .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li {
|
|
730
|
+
height: 40px;
|
|
731
|
+
line-height: 40px;
|
|
732
|
+
display: flex;
|
|
733
|
+
align-items: center;
|
|
734
|
+
justify-content: space-between;
|
|
735
|
+
border-bottom: 1px solid #ccc;
|
|
736
|
+
}
|
|
737
|
+
.page .set-column .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li:first-child {
|
|
738
|
+
border-top: 1px solid #ccc;
|
|
739
|
+
}
|
|
740
|
+
.page .set-column .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li .set-column-already-li-v {
|
|
741
|
+
display: flex;
|
|
742
|
+
flex: 1;
|
|
743
|
+
align-items: center;
|
|
744
|
+
}
|
|
682
745
|
|
|
683
746
|
.retract {
|
|
684
747
|
position: relative;
|
|
@@ -1162,6 +1225,10 @@
|
|
|
1162
1225
|
height: 100%;
|
|
1163
1226
|
}
|
|
1164
1227
|
|
|
1228
|
+
.switchs-switch {
|
|
1229
|
+
height: 100%;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1165
1232
|
.lists {
|
|
1166
1233
|
width: 100%;
|
|
1167
1234
|
min-height: 100px;
|
|
@@ -1328,26 +1395,4 @@
|
|
|
1328
1395
|
left: 0;
|
|
1329
1396
|
z-index: 1;
|
|
1330
1397
|
opacity: 0;
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
.tablesvp {
|
|
1334
|
-
width: 100%;
|
|
1335
|
-
height: var(--tablesvp-height);
|
|
1336
|
-
display: flex;
|
|
1337
|
-
flex-direction: column;
|
|
1338
|
-
}
|
|
1339
|
-
.tablesvp-main {
|
|
1340
|
-
display: flex;
|
|
1341
|
-
flex-direction: column;
|
|
1342
|
-
flex: 1;
|
|
1343
|
-
width: 100%;
|
|
1344
|
-
}
|
|
1345
|
-
.tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1346
|
-
display: none;
|
|
1347
|
-
}
|
|
1348
|
-
.tablesvp-paginat {
|
|
1349
|
-
overflow: hidden;
|
|
1350
|
-
}
|
|
1351
|
-
.tablesvp-paginat .el-pagination {
|
|
1352
|
-
justify-content: flex-end;
|
|
1353
1398
|
}
|
package/dist/css/page.css
CHANGED
|
@@ -290,14 +290,77 @@
|
|
|
290
290
|
display: flex;
|
|
291
291
|
margin-right: 20px;
|
|
292
292
|
}
|
|
293
|
-
.page-operations
|
|
293
|
+
.page-operations .el-button {
|
|
294
294
|
margin-left: 2px;
|
|
295
295
|
margin-right: 2px;
|
|
296
296
|
padding-left: 5px;
|
|
297
297
|
padding-right: 5px;
|
|
298
298
|
}
|
|
299
|
+
.page-operations .el-button:first-child {
|
|
300
|
+
margin-left: 0;
|
|
301
|
+
}
|
|
302
|
+
.page-operations .el-button:last-child {
|
|
303
|
+
margin-right: 0;
|
|
304
|
+
}
|
|
299
305
|
.page-footer {
|
|
300
306
|
padding: 10px;
|
|
301
307
|
text-align: right;
|
|
302
308
|
background-color: #f5f5f5;
|
|
309
|
+
}
|
|
310
|
+
.page .set-column {
|
|
311
|
+
margin-left: 10px;
|
|
312
|
+
}
|
|
313
|
+
.page .set-column .set-column-dialog-main {
|
|
314
|
+
font-size: 16px;
|
|
315
|
+
display: flex;
|
|
316
|
+
}
|
|
317
|
+
.page .set-column .set-column-dialog-main .set-column-title {
|
|
318
|
+
height: 40px;
|
|
319
|
+
width: 100%;
|
|
320
|
+
display: flex;
|
|
321
|
+
align-items: center;
|
|
322
|
+
justify-content: space-between;
|
|
323
|
+
}
|
|
324
|
+
.page .set-column .set-column-dialog-main .set-column-title .set-column-title-all {
|
|
325
|
+
margin-right: 20px;
|
|
326
|
+
}
|
|
327
|
+
.page .set-column .set-column-dialog-main .set-column-check {
|
|
328
|
+
flex: 1;
|
|
329
|
+
}
|
|
330
|
+
.page .set-column .set-column-dialog-main .set-column-check .set-column-check-list {
|
|
331
|
+
padding: 10px;
|
|
332
|
+
box-sizing: border-box;
|
|
333
|
+
display: flex;
|
|
334
|
+
flex-direction: row;
|
|
335
|
+
flex-wrap: wrap;
|
|
336
|
+
overflow-y: auto;
|
|
337
|
+
}
|
|
338
|
+
.page .set-column .set-column-dialog-main .set-column-check .set-column-check-list .set-column-check-list-li {
|
|
339
|
+
margin-right: 0;
|
|
340
|
+
width: 33%;
|
|
341
|
+
height: 40px;
|
|
342
|
+
}
|
|
343
|
+
.page .set-column .set-column-dialog-main .set-column-already {
|
|
344
|
+
border-left: 1px solid #999;
|
|
345
|
+
padding-left: 20px;
|
|
346
|
+
width: 240px;
|
|
347
|
+
}
|
|
348
|
+
.page .set-column .set-column-dialog-main .set-column-already .set-column-already-list {
|
|
349
|
+
padding: 10px 10px 10px 0;
|
|
350
|
+
}
|
|
351
|
+
.page .set-column .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li {
|
|
352
|
+
height: 40px;
|
|
353
|
+
line-height: 40px;
|
|
354
|
+
display: flex;
|
|
355
|
+
align-items: center;
|
|
356
|
+
justify-content: space-between;
|
|
357
|
+
border-bottom: 1px solid #ccc;
|
|
358
|
+
}
|
|
359
|
+
.page .set-column .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li:first-child {
|
|
360
|
+
border-top: 1px solid #ccc;
|
|
361
|
+
}
|
|
362
|
+
.page .set-column .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li .set-column-already-li-v {
|
|
363
|
+
display: flex;
|
|
364
|
+
flex: 1;
|
|
365
|
+
align-items: center;
|
|
303
366
|
}
|
|
@@ -61,7 +61,14 @@ function setDom(dom, el, value) {
|
|
|
61
61
|
dom.style.cursor = "grabbing";
|
|
62
62
|
return true;
|
|
63
63
|
};
|
|
64
|
-
getShiftEvent.pressEvent(
|
|
64
|
+
getShiftEvent.pressEvent(
|
|
65
|
+
dom,
|
|
66
|
+
mousedown,
|
|
67
|
+
handleMouseMove,
|
|
68
|
+
handleMouseUp,
|
|
69
|
+
void 0,
|
|
70
|
+
"mouse"
|
|
71
|
+
);
|
|
65
72
|
setCss.setCss(dom, "cursor", "grab");
|
|
66
73
|
}
|
|
67
74
|
}
|
|
@@ -73,8 +80,6 @@ const vDrag = {
|
|
|
73
80
|
if (value.dom) {
|
|
74
81
|
if (typeof value.dom == "string") {
|
|
75
82
|
dom = el.querySelector(value.dom);
|
|
76
|
-
} else if (typeof value.dom == "boolean") {
|
|
77
|
-
dom = el;
|
|
78
83
|
} else {
|
|
79
84
|
dom = value.dom;
|
|
80
85
|
}
|
|
@@ -59,7 +59,14 @@ function setDom(dom, el, value) {
|
|
|
59
59
|
dom.style.cursor = "grabbing";
|
|
60
60
|
return true;
|
|
61
61
|
};
|
|
62
|
-
pressEvent(
|
|
62
|
+
pressEvent(
|
|
63
|
+
dom,
|
|
64
|
+
mousedown,
|
|
65
|
+
handleMouseMove,
|
|
66
|
+
handleMouseUp,
|
|
67
|
+
void 0,
|
|
68
|
+
"mouse"
|
|
69
|
+
);
|
|
63
70
|
setCss(dom, "cursor", "grab");
|
|
64
71
|
}
|
|
65
72
|
}
|
|
@@ -71,8 +78,6 @@ const vDrag = {
|
|
|
71
78
|
if (value.dom) {
|
|
72
79
|
if (typeof value.dom == "string") {
|
|
73
80
|
dom = el.querySelector(value.dom);
|
|
74
|
-
} else if (typeof value.dom == "boolean") {
|
|
75
|
-
dom = el;
|
|
76
81
|
} else {
|
|
77
82
|
dom = value.dom;
|
|
78
83
|
}
|