@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
|
@@ -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 } often= ( )
|
|
@@ -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 } often= ( )
|
|
@@ -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 } often= ( )
|
|
@@ -3,7 +3,6 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
|
-
require("../../../hooks/locale/index.cjs");
|
|
7
6
|
const index$3 = require("../../box-title/index.cjs");
|
|
8
7
|
const index$2 = require("../../box-mask/index.cjs");
|
|
9
8
|
const index$1 = require("../../box-teleport/index.cjs");
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent, shallowRef, watch, createBlock, openBlock, unref, withCtx, withDirectives, createCommentVNode, createElementBlock, normalizeClass, createVNode, renderSlot, createElementVNode, vShow } from "vue";
|
|
2
2
|
import { dataExpose, dataSlot, dataEmits, dataProps } from "./data.js";
|
|
3
3
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
4
|
-
import "../../../hooks/locale/index.js";
|
|
5
4
|
import { BoxTitle } from "../../box-title/index.js";
|
|
6
5
|
import { BoxMask } from "../../box-mask/index.js";
|
|
7
6
|
import { BoxTeleport } from "../../box-teleport/index.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
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 enums = require("../../../utils/enums.cjs");
|
|
6
5
|
const dataProps = buildProps.buildProps({
|
|
7
6
|
/**
|
|
@@ -16,6 +15,7 @@ const dataProps = buildProps.buildProps({
|
|
|
16
15
|
},
|
|
17
16
|
/**
|
|
18
17
|
* @props { Number } size='default' ('large' | 'default' | 'small')
|
|
18
|
+
* 大小
|
|
19
19
|
*/
|
|
20
20
|
size: {
|
|
21
21
|
type: String,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
2
|
-
import "../../../utils/vues/definePropType.js";
|
|
3
2
|
import { DefaultConfig } from "../../../utils/enums.js";
|
|
4
3
|
const dataProps = buildProps({
|
|
5
4
|
/**
|
|
@@ -14,6 +13,7 @@ const dataProps = buildProps({
|
|
|
14
13
|
},
|
|
15
14
|
/**
|
|
16
15
|
* @props { Number } size='default' ('large' | 'default' | 'small')
|
|
16
|
+
* 大小
|
|
17
17
|
*/
|
|
18
18
|
size: {
|
|
19
19
|
type: String,
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
@use './select-scroll/index.scss' as *;
|
|
87
87
|
@use './selector/index.scss' as *;
|
|
88
88
|
@use './selects/index.scss' as *;
|
|
89
|
+
@use './switchs/index.scss' as *;
|
|
89
90
|
@use './text/index.scss' as *;
|
|
90
91
|
@use './list/index.scss' as *;
|
|
91
92
|
@use './lists/index.scss' as *;
|
|
@@ -94,5 +95,4 @@
|
|
|
94
95
|
@use './tables/index.scss' as *;
|
|
95
96
|
@use './tablesp/index.scss' as *;
|
|
96
97
|
@use './tabless/index.scss' as *;
|
|
97
|
-
@use './tablesv/index.scss' as *;
|
|
98
|
-
@use './tablesvp/index.scss' as *;
|
|
98
|
+
@use './tablesv/index.scss' as *;
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
@use './select-scroll/style/index.scss' as *;
|
|
87
87
|
@use './selector/style/index.scss' as *;
|
|
88
88
|
@use './selects/style/index2.scss' as *;
|
|
89
|
+
@use './switchs/style/index2.scss' as *;
|
|
89
90
|
@use './text/style/index.scss' as *;
|
|
90
91
|
@use './list/style/index.scss' as *;
|
|
91
92
|
@use './lists/style/index.scss' as *;
|
|
@@ -94,5 +95,4 @@
|
|
|
94
95
|
@use './tables/style/index2.scss' as *;
|
|
95
96
|
@use './tablesp/style/index2.scss' as *;
|
|
96
97
|
@use './tabless/style/index2.scss' as *;
|
|
97
|
-
@use './tablesv/style/index2.scss' as *;
|
|
98
|
-
@use './tablesvp/style/index2.scss' as *;
|
|
98
|
+
@use './tablesv/style/index2.scss' as *;
|
|
@@ -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
|
}
|
|
@@ -46,11 +46,17 @@ $page: 'page';
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
&-operations {
|
|
49
|
-
|
|
49
|
+
.#{el('button')} {
|
|
50
50
|
margin-left: 2px;
|
|
51
51
|
margin-right: 2px;
|
|
52
52
|
padding-left: 5px;
|
|
53
53
|
padding-right: 5px;
|
|
54
|
+
&:first-child {
|
|
55
|
+
margin-left: 0;
|
|
56
|
+
}
|
|
57
|
+
&:last-child {
|
|
58
|
+
margin-right: 0;
|
|
59
|
+
}
|
|
54
60
|
}
|
|
55
61
|
}
|
|
56
62
|
|
|
@@ -59,4 +65,63 @@ $page: 'page';
|
|
|
59
65
|
text-align: right;
|
|
60
66
|
background-color: #f5f5f5;
|
|
61
67
|
}
|
|
68
|
+
|
|
69
|
+
$set-column: 'set-column';
|
|
70
|
+
.#{$set-column} {
|
|
71
|
+
margin-left: 10px;
|
|
72
|
+
.#{$set-column}-dialog-main {
|
|
73
|
+
font-size: 16px;
|
|
74
|
+
display: flex;
|
|
75
|
+
.#{$set-column}-title {
|
|
76
|
+
height: 40px;
|
|
77
|
+
width: 100%;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: space-between;
|
|
81
|
+
.#{$set-column}-title-all {
|
|
82
|
+
margin-right: 20px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.#{$set-column}-check {
|
|
86
|
+
flex: 1;
|
|
87
|
+
.#{$set-column}-check-list {
|
|
88
|
+
padding: 10px;
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
overflow-y: auto;
|
|
94
|
+
.#{$set-column}-check-list-li {
|
|
95
|
+
margin-right: 0;
|
|
96
|
+
width: 33%;
|
|
97
|
+
height: 40px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
.#{$set-column}-already {
|
|
102
|
+
border-left: 1px solid #999;
|
|
103
|
+
padding-left: 20px;
|
|
104
|
+
width: 240px;
|
|
105
|
+
.#{$set-column}-already-list {
|
|
106
|
+
padding: 10px 10px 10px 0;
|
|
107
|
+
.#{$set-column}-already-li {
|
|
108
|
+
height: 40px;
|
|
109
|
+
line-height: 40px;
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
border-bottom: 1px solid #ccc;
|
|
114
|
+
&:first-child {
|
|
115
|
+
border-top: 1px solid #ccc;
|
|
116
|
+
}
|
|
117
|
+
.#{$set-column}-already-li-v {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex: 1;
|
|
120
|
+
align-items: center;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
62
127
|
}
|
|
@@ -10,9 +10,10 @@ const index$7 = require("../../buttons/index.cjs");
|
|
|
10
10
|
const index$3 = require("../../message/index.cjs");
|
|
11
11
|
const index$2 = require("../../message-box/index.cjs");
|
|
12
12
|
const data = require("./data.cjs");
|
|
13
|
-
|
|
13
|
+
require("./set-column.cjs");
|
|
14
14
|
const urls = require("../../common/urls.cjs");
|
|
15
15
|
const index = require("../../../hooks/locale/index.cjs");
|
|
16
|
+
const setColumn_vue_vue_type_script_setup_true_lang = require("./set-column2.cjs");
|
|
16
17
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
18
|
__name: "index",
|
|
18
19
|
props: data.dataProps,
|
|
@@ -193,7 +194,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
193
194
|
arr.push({
|
|
194
195
|
prop: "operation",
|
|
195
196
|
label: getLocale("page.operation"),
|
|
196
|
-
width:
|
|
197
|
+
width: 150,
|
|
197
198
|
fixed: true
|
|
198
199
|
});
|
|
199
200
|
}
|
|
@@ -678,7 +679,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
678
679
|
}, null, 8, ["options"]),
|
|
679
680
|
vue.renderSlot(_ctx.$slots, dataSlot.top)
|
|
680
681
|
], 2),
|
|
681
|
-
props.config.setColumn ? (vue.openBlock(), vue.createBlock(
|
|
682
|
+
props.config.setColumn ? (vue.openBlock(), vue.createBlock(setColumn_vue_vue_type_script_setup_true_lang.default, {
|
|
682
683
|
key: 0,
|
|
683
684
|
modelValue: setList.value,
|
|
684
685
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => setList.value = $event),
|
|
@@ -8,9 +8,10 @@ import { Buttons } from "../../buttons/index.js";
|
|
|
8
8
|
import { Message } from "../../message/index.js";
|
|
9
9
|
import { MessageBox } from "../../message-box/index.js";
|
|
10
10
|
import { dataEmits, dataProps } from "./data.js";
|
|
11
|
-
import
|
|
11
|
+
import "./set-column.js";
|
|
12
12
|
import { comHandle } from "../../common/urls.js";
|
|
13
13
|
import { useLocale } from "../../../hooks/locale/index.js";
|
|
14
|
+
import _sfc_main$1 from "./set-column2.js";
|
|
14
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
16
|
__name: "index",
|
|
16
17
|
props: dataProps,
|
|
@@ -191,7 +192,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
191
192
|
arr.push({
|
|
192
193
|
prop: "operation",
|
|
193
194
|
label: getLocale("page.operation"),
|
|
194
|
-
width:
|
|
195
|
+
width: 150,
|
|
195
196
|
fixed: true
|
|
196
197
|
});
|
|
197
198
|
}
|
|
@@ -676,7 +677,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
676
677
|
}, null, 8, ["options"]),
|
|
677
678
|
renderSlot(_ctx.$slots, dataSlot.top)
|
|
678
679
|
], 2),
|
|
679
|
-
props.config.setColumn ? (openBlock(), createBlock(
|
|
680
|
+
props.config.setColumn ? (openBlock(), createBlock(_sfc_main$1, {
|
|
680
681
|
key: 0,
|
|
681
682
|
modelValue: setList.value,
|
|
682
683
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => setList.value = $event),
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const setColumn_vue_vue_type_script_setup_true_lang = require("./set-column2.cjs");
|
|
4
|
-
|
|
5
|
-
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.cjs");
|
|
6
|
-
const SetColumn = /* @__PURE__ */ _pluginVue_exportHelper.default(setColumn_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-ad509651"]]);
|
|
7
|
-
exports.default = SetColumn;
|
|
4
|
+
exports.default = setColumn_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import _sfc_main from "./set-column2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SetColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ad509651"]]);
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
_sfc_main as default
|
|
7
4
|
};
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const Draggable = require("vuedraggable");
|
|
5
|
-
const index$
|
|
6
|
-
const index$
|
|
7
|
-
const index = require("
|
|
8
|
-
const index$
|
|
9
|
-
const index$1 = require("
|
|
10
|
-
const
|
|
11
|
-
key: 1,
|
|
12
|
-
class: "no-data"
|
|
13
|
-
};
|
|
5
|
+
const index$3 = require("../../dialogs/index.cjs");
|
|
6
|
+
const index$5 = require("../../no-data/index.cjs");
|
|
7
|
+
const index$4 = require("../../checkbox/index.cjs");
|
|
8
|
+
const index$2 = require("../../button/index.cjs");
|
|
9
|
+
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
10
|
+
const index = require("../../../hooks/locale/index.cjs");
|
|
14
11
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
15
12
|
__name: "set-column",
|
|
16
13
|
props: {
|
|
@@ -21,15 +18,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
18
|
}
|
|
22
19
|
},
|
|
23
20
|
list: {
|
|
24
|
-
type: Array
|
|
21
|
+
type: Array,
|
|
22
|
+
default() {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
emits: ["update:modelValue"],
|
|
28
28
|
setup(__props, { emit: __emit }) {
|
|
29
|
+
const { getLocale } = index.useLocale();
|
|
29
30
|
const props = __props;
|
|
30
31
|
const emit = __emit;
|
|
31
|
-
const cs = index.useCssName("set-column");
|
|
32
|
+
const cs = index$1.useCssName("set-column");
|
|
32
33
|
const dialogVisible = vue.ref(false);
|
|
34
|
+
const isall = vue.ref(false);
|
|
33
35
|
const value = vue.ref([...props.modelValue]);
|
|
34
36
|
vue.watch(
|
|
35
37
|
() => props.modelValue,
|
|
@@ -38,8 +40,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
38
40
|
}
|
|
39
41
|
);
|
|
40
42
|
const onOpen = () => {
|
|
43
|
+
var _a;
|
|
41
44
|
value.value = [...props.modelValue];
|
|
42
45
|
dialogVisible.value = true;
|
|
46
|
+
if (value.value.length == ((_a = props.list) == null ? void 0 : _a.length)) {
|
|
47
|
+
isall.value = true;
|
|
48
|
+
}
|
|
43
49
|
};
|
|
44
50
|
const isChecked = (item) => {
|
|
45
51
|
return value.value.map((o) => o.prop).includes(item.prop);
|
|
@@ -56,31 +62,45 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
56
62
|
};
|
|
57
63
|
const drag = vue.ref(false);
|
|
58
64
|
const onChange = (item, is) => {
|
|
65
|
+
var _a;
|
|
59
66
|
if (is) {
|
|
60
67
|
value.value.push(item);
|
|
68
|
+
if (value.value.length == ((_a = props.list) == null ? void 0 : _a.length)) {
|
|
69
|
+
isall.value = true;
|
|
70
|
+
}
|
|
61
71
|
} else {
|
|
62
72
|
const v = value.value.map((o) => o.prop);
|
|
63
73
|
value.value.splice(v.indexOf(item.prop), 1);
|
|
74
|
+
isall.value = false;
|
|
64
75
|
}
|
|
65
76
|
};
|
|
66
77
|
const onDelete = (item, index2) => {
|
|
67
78
|
value.value.splice(index2, 1);
|
|
79
|
+
isall.value = false;
|
|
80
|
+
};
|
|
81
|
+
const onAllChange = (is) => {
|
|
82
|
+
if (is) {
|
|
83
|
+
value.value = [...props.list];
|
|
84
|
+
} else {
|
|
85
|
+
value.value = [];
|
|
86
|
+
}
|
|
68
87
|
};
|
|
69
88
|
return (_ctx, _cache) => {
|
|
70
89
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
71
90
|
class: vue.normalizeClass(vue.unref(cs).z())
|
|
72
91
|
}, [
|
|
73
|
-
vue.createVNode(vue.unref(index$
|
|
74
|
-
default: vue.withCtx(() => [
|
|
75
|
-
vue.createTextVNode("
|
|
76
|
-
])
|
|
92
|
+
vue.createVNode(vue.unref(index$2.Button), { onClick: onOpen }, {
|
|
93
|
+
default: vue.withCtx(() => [
|
|
94
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("setColumn.name")), 1)
|
|
95
|
+
]),
|
|
77
96
|
_: 1
|
|
78
97
|
}),
|
|
79
|
-
vue.createVNode(vue.unref(index$
|
|
98
|
+
vue.createVNode(vue.unref(index$3.Dialogs), {
|
|
80
99
|
class: vue.normalizeClass(vue.unref(cs).z("dialog")),
|
|
81
100
|
modelValue: dialogVisible.value,
|
|
82
|
-
"onUpdate:modelValue": _cache[
|
|
83
|
-
|
|
101
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => dialogVisible.value = $event),
|
|
102
|
+
width: 900,
|
|
103
|
+
title: vue.unref(getLocale)("setColumn.title"),
|
|
84
104
|
onConfirm: onSubmit
|
|
85
105
|
}, {
|
|
86
106
|
default: vue.withCtx(() => [
|
|
@@ -92,13 +112,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
92
112
|
}, [
|
|
93
113
|
vue.createElementVNode("div", {
|
|
94
114
|
class: vue.normalizeClass(vue.unref(cs).z("title"))
|
|
95
|
-
},
|
|
115
|
+
}, [
|
|
116
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(getLocale)("setColumn.optional")), 1),
|
|
117
|
+
vue.createElementVNode("span", {
|
|
118
|
+
class: vue.normalizeClass(vue.unref(cs).z("title-all"))
|
|
119
|
+
}, [
|
|
120
|
+
vue.createVNode(vue.unref(index$4.Checkbox), {
|
|
121
|
+
modelValue: isall.value,
|
|
122
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isall.value = $event),
|
|
123
|
+
onChange: onAllChange
|
|
124
|
+
}, {
|
|
125
|
+
default: vue.withCtx(() => [
|
|
126
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("setColumn.all")), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 8, ["modelValue"])
|
|
130
|
+
], 2)
|
|
131
|
+
], 2),
|
|
96
132
|
(vue.openBlock(), vue.createElementBlock("div", {
|
|
97
133
|
class: vue.normalizeClass(vue.unref(cs).z("check-list")),
|
|
98
134
|
key: value.value.length
|
|
99
135
|
}, [
|
|
100
|
-
props.list
|
|
101
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
136
|
+
props.list.length > 0 ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(props.list, (item, index2) => {
|
|
137
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$4.Checkbox), {
|
|
102
138
|
class: vue.normalizeClass(vue.unref(cs).z("check-list-li")),
|
|
103
139
|
key: index2,
|
|
104
140
|
label: item.label,
|
|
@@ -106,7 +142,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
106
142
|
checked: isChecked(item),
|
|
107
143
|
onChange: (is) => onChange(item, Boolean(is))
|
|
108
144
|
}, null, 8, ["class", "label", "value", "checked", "onChange"]);
|
|
109
|
-
}), 128)) : (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
145
|
+
}), 128)) : (vue.openBlock(), vue.createBlock(vue.unref(index$5.NoData), { key: 1 }))
|
|
110
146
|
], 2))
|
|
111
147
|
], 2),
|
|
112
148
|
vue.createElementVNode("div", {
|
|
@@ -114,46 +150,50 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
114
150
|
}, [
|
|
115
151
|
vue.createElementVNode("div", {
|
|
116
152
|
class: vue.normalizeClass(vue.unref(cs).z("title"))
|
|
117
|
-
}, "
|
|
153
|
+
}, vue.toDisplayString(vue.unref(getLocale)("setColumn.selected")), 3),
|
|
118
154
|
vue.createElementVNode("div", {
|
|
119
155
|
class: vue.normalizeClass(vue.unref(cs).z("already-list"))
|
|
120
156
|
}, [
|
|
121
157
|
value.value && value.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(Draggable), vue.mergeProps({ key: 0 }, dragOptions, {
|
|
122
|
-
onStart: _cache[
|
|
123
|
-
onEnd: _cache[
|
|
158
|
+
onStart: _cache[1] || (_cache[1] = ($event) => drag.value = true),
|
|
159
|
+
onEnd: _cache[2] || (_cache[2] = ($event) => drag.value = false),
|
|
124
160
|
modelValue: value.value,
|
|
125
|
-
"onUpdate:modelValue": _cache[
|
|
161
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => value.value = $event),
|
|
126
162
|
"item-key": (value2) => value2,
|
|
127
163
|
handle: ".handle"
|
|
128
164
|
}), {
|
|
129
165
|
item: vue.withCtx(({ element, index: index2 }) => [
|
|
130
166
|
vue.createElementVNode("div", {
|
|
131
|
-
class: vue.normalizeClass(vue.unref(cs).z("already-li"))
|
|
167
|
+
class: vue.normalizeClass(["handle", vue.unref(cs).z("already-li")])
|
|
132
168
|
}, [
|
|
133
169
|
vue.createElementVNode("div", {
|
|
134
|
-
class: vue.normalizeClass(
|
|
170
|
+
class: vue.normalizeClass(vue.unref(cs).z("already-li-v"))
|
|
135
171
|
}, [
|
|
136
172
|
vue.createElementVNode("div", null, vue.toDisplayString(element.label), 1)
|
|
137
173
|
], 2),
|
|
138
|
-
vue.createVNode(vue.unref(index$
|
|
174
|
+
vue.createVNode(vue.unref(index$2.Button), {
|
|
139
175
|
text: "",
|
|
176
|
+
type: "danger",
|
|
140
177
|
onClick: vue.withModifiers(($event) => onDelete(element, index2), ["stop"])
|
|
141
178
|
}, {
|
|
142
|
-
default: vue.withCtx(() => [
|
|
143
|
-
vue.createTextVNode("
|
|
144
|
-
])
|
|
179
|
+
default: vue.withCtx(() => [
|
|
180
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("setColumn.delete")), 1)
|
|
181
|
+
]),
|
|
145
182
|
_: 1
|
|
146
183
|
}, 8, ["onClick"])
|
|
147
184
|
], 2)
|
|
148
185
|
]),
|
|
149
186
|
_: 1
|
|
150
|
-
}, 16, ["modelValue", "item-key"])) : (vue.openBlock(), vue.
|
|
187
|
+
}, 16, ["modelValue", "item-key"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$5.NoData), {
|
|
188
|
+
key: 1,
|
|
189
|
+
text: vue.unref(getLocale)("setColumn.nodata")
|
|
190
|
+
}, null, 8, ["text"]))
|
|
151
191
|
], 2)
|
|
152
192
|
], 2)
|
|
153
193
|
], 2)
|
|
154
194
|
]),
|
|
155
195
|
_: 1
|
|
156
|
-
}, 8, ["class", "modelValue"])
|
|
196
|
+
}, 8, ["class", "modelValue", "title"])
|
|
157
197
|
], 2);
|
|
158
198
|
};
|
|
159
199
|
}
|