@fangzhongya/fang-ui 0.1.18 → 0.1.20
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/forms/src/data.cjs +3 -3
- package/dist/components/forms/src/data.d.ts +1 -1
- package/dist/components/forms/src/data.js +3 -3
- package/dist/components/forms/src/index2.cjs +5 -3
- package/dist/components/forms/src/index2.js +5 -3
- package/dist/components/forms/src/setup.cjs +0 -7
- package/dist/components/forms/src/setup.js +0 -7
- package/dist/components/forms-div/src/data.cjs +7 -1
- package/dist/components/forms-div/src/data.d.ts +6 -0
- package/dist/components/forms-div/src/data.js +7 -1
- package/dist/components/forms-div/src/index2.cjs +35 -10
- package/dist/components/forms-div/src/index2.js +36 -11
- package/dist/components/forms-item/src/data.cjs +1 -1
- package/dist/components/forms-item/src/data.js +1 -1
- package/dist/components/forms-item/src/index2.cjs +4 -2
- package/dist/components/forms-item/src/index2.js +4 -2
- package/dist/components/forms-items/src/data.cjs +1 -1
- package/dist/components/forms-items/src/data.js +1 -1
- package/dist/components/forms-items/src/index2.cjs +4 -2
- package/dist/components/forms-items/src/index2.js +4 -2
- package/dist/components/global-config/src/data.cjs +12 -0
- package/dist/components/global-config/src/data.d.ts +12 -0
- package/dist/components/global-config/src/data.js +12 -0
- package/dist/components/index.cjs +8 -6
- package/dist/{index.css → components/index.css} +39 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.scss +1 -0
- package/dist/components/index2.scss +2 -2
- package/dist/components/list/index.css +12 -0
- package/dist/components/list/index.scss +15 -0
- package/dist/components/list/src/data.cjs +21 -2
- package/dist/components/list/src/data.d.ts +22 -1
- package/dist/components/list/src/data.js +21 -2
- package/dist/components/list/src/index2.cjs +61 -10
- package/dist/components/list/src/index2.js +61 -10
- package/dist/components/list/style/index2.scss +1 -0
- package/dist/components/page/index.css +11 -0
- package/dist/components/tables/common/pagin.cjs +60 -16
- package/dist/components/tables/common/pagin.d.ts +8 -0
- package/dist/components/tables/common/pagin.js +60 -16
- package/dist/components/tables/common/tooltip.cjs +101 -0
- package/dist/components/tables/common/tooltip.d.ts +6 -0
- package/dist/components/tables/common/tooltip.js +101 -0
- package/dist/components/tables/common/util.cjs +3 -3
- package/dist/components/tables/common/util.js +3 -3
- package/dist/components/tables/src/column.cjs +19 -15
- package/dist/components/tables/src/column.d.ts +3 -2
- package/dist/components/tables/src/column.js +17 -13
- package/dist/components/tables/src/columns3.cjs +16 -32
- package/dist/components/tables/src/columns3.js +15 -31
- package/dist/components/tables/src/data.cjs +3 -2
- package/dist/components/tables/src/data.d.ts +1 -0
- package/dist/components/tables/src/data.js +3 -2
- package/dist/components/tablespd/index.cjs +9 -0
- package/dist/components/tablespd/index.css +88 -0
- package/dist/components/tablespd/index.d.ts +4 -0
- package/dist/components/tablespd/index.js +9 -0
- package/dist/components/tablespd/index.scss +40 -0
- package/dist/components/tablespd/src/data.cjs +13 -0
- package/dist/components/tablespd/src/data.d.ts +18 -0
- package/dist/components/tablespd/src/data.js +13 -0
- package/dist/components/tablespd/src/index.cjs +4 -0
- package/dist/components/tablespd/src/index.js +4 -0
- package/dist/components/tablespd/src/index2.cjs +111 -0
- package/dist/components/tablespd/src/index2.js +111 -0
- package/dist/components/tablespd/style/index2.scss +4 -0
- package/dist/components/tablesv/src/column.cjs +4 -4
- package/dist/components/tablesv/src/column.js +3 -3
- package/dist/css/index.css +39 -0
- package/dist/css/list.css +12 -0
- package/dist/css/page.css +11 -0
- package/dist/css/tablespd.css +88 -0
- package/dist/directives/index.cjs +6 -4
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/index.js +4 -2
- package/dist/directives/sortable/index.cjs +45 -0
- package/dist/directives/sortable/index.d.ts +6 -0
- package/dist/directives/sortable/index.js +45 -0
- package/dist/expand/{chunk-XY53LCPN.js → chunk-2BLP2ANQ.js} +3 -0
- package/dist/expand/{chunk-IEODUGVJ.cjs → chunk-OT6GISSR.cjs} +3 -0
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/hooks/cssname/index.d.ts +2 -2
- package/dist/hooks/index.cjs +0 -1
- package/dist/hooks/index.js +1 -2
- package/dist/hooks/inherit/index.cjs +0 -8
- package/dist/hooks/inherit/index.d.ts +0 -1
- package/dist/hooks/inherit/index.js +0 -8
- package/dist/icons/index.json +1 -1
- package/dist/index.cjs +30 -26
- package/dist/index.js +6 -2
- package/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs +2758 -0
- package/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.js +2758 -0
- package/dist/utils/vues/getAttrValue.cjs +11 -0
- package/dist/utils/vues/getAttrValue.d.ts +3 -0
- package/dist/utils/vues/getAttrValue.js +11 -0
- package/dist/utils/vues/index.cjs +2 -0
- package/dist/utils/vues/index.d.ts +1 -0
- package/dist/utils/vues/index.js +2 -0
- package/package.json +7 -5
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeStyle, unref, normalizeClass, withDirectives, createBlock, createCommentVNode, mergeProps, toHandlers, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
+
import { Tables } from "../../tables/index.js";
|
|
3
|
+
import { Paging } from "../../paging/index.js";
|
|
4
|
+
import vScroll from "../../../directives/scroll/index.js";
|
|
5
|
+
import vSortable from "../../../directives/sortable/index.js";
|
|
6
|
+
import { name } from "./data.js";
|
|
7
|
+
import { dataProps, useInit, dataEmit } from "../../tables/common/pagin.js";
|
|
8
|
+
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
9
|
+
import { usePropsDefault, viewProps, getProps } from "../../../hooks/props-default/index.js";
|
|
10
|
+
import { useLocale } from "../../../hooks/locale/index.js";
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "index",
|
|
13
|
+
props: getProps(dataProps),
|
|
14
|
+
emits: dataEmit,
|
|
15
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
|
+
const { getLocale } = useLocale();
|
|
17
|
+
const cs = useCssName(name);
|
|
18
|
+
const slots = useSlots();
|
|
19
|
+
const prs = __props;
|
|
20
|
+
const props = usePropsDefault(name, prs, dataProps);
|
|
21
|
+
viewProps(props, name);
|
|
22
|
+
const emit = __emit;
|
|
23
|
+
const refTable = ref();
|
|
24
|
+
const {
|
|
25
|
+
height,
|
|
26
|
+
getSelection,
|
|
27
|
+
initData,
|
|
28
|
+
getData,
|
|
29
|
+
empty,
|
|
30
|
+
loading,
|
|
31
|
+
tableList,
|
|
32
|
+
tableConfig,
|
|
33
|
+
scroll,
|
|
34
|
+
sortable,
|
|
35
|
+
onSortChange,
|
|
36
|
+
onListEvents,
|
|
37
|
+
onSelect,
|
|
38
|
+
onRowClick,
|
|
39
|
+
onChange,
|
|
40
|
+
pagconfig,
|
|
41
|
+
formEvent,
|
|
42
|
+
onSizeChange,
|
|
43
|
+
onCurrentChange,
|
|
44
|
+
paginat,
|
|
45
|
+
data
|
|
46
|
+
} = useInit(props, emit, refTable, getLocale, true);
|
|
47
|
+
__expose({
|
|
48
|
+
getSelection,
|
|
49
|
+
initData,
|
|
50
|
+
getData,
|
|
51
|
+
getList: initData,
|
|
52
|
+
empty
|
|
53
|
+
});
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
var _a, _b, _c, _d;
|
|
56
|
+
return openBlock(), createElementBlock("div", {
|
|
57
|
+
class: normalizeClass(unref(cs).z()),
|
|
58
|
+
style: normalizeStyle({
|
|
59
|
+
height: unref(height) == "100%" ? unref(height) : ""
|
|
60
|
+
})
|
|
61
|
+
}, [
|
|
62
|
+
withDirectives((openBlock(), createBlock(unref(Tables), mergeProps(unref(tableConfig).config, toHandlers(unref(formEvent)), {
|
|
63
|
+
height: unref(height),
|
|
64
|
+
ref_key: "refTable",
|
|
65
|
+
ref: refTable,
|
|
66
|
+
class: [
|
|
67
|
+
unref(cs).z("main"),
|
|
68
|
+
unref(cs).is("radio", (_a = unref(tableConfig).config) == null ? void 0 : _a.isradio),
|
|
69
|
+
unref(cs).is("scroll", unref(paginat).is && unref(paginat).scroll)
|
|
70
|
+
],
|
|
71
|
+
"scroll-selector": "." + unref(cs).ec("scrollbar") + " ." + unref(cs).ec("scrollbar", "", "wrap"),
|
|
72
|
+
"sortable-selector": "." + unref(cs).ec("table", "", "body-wrapper") + " tbody",
|
|
73
|
+
value: unref(data).list,
|
|
74
|
+
list: unref(tableList),
|
|
75
|
+
size: (_b = unref(tableConfig).config) == null ? void 0 : _b.size,
|
|
76
|
+
paginat: unref(paginat),
|
|
77
|
+
loading: ((_c = unref(tableConfig).config) == null ? void 0 : _c.noloading) || unref(paginat).scroll && unref(paginat).current > 1 ? false : unref(loading),
|
|
78
|
+
options: unref(props).options,
|
|
79
|
+
compons: unref(props).compons,
|
|
80
|
+
onSortChange: unref(onSortChange),
|
|
81
|
+
onListEvents: unref(onListEvents),
|
|
82
|
+
onSelect: unref(onSelect),
|
|
83
|
+
onRowClick: unref(onRowClick),
|
|
84
|
+
onSelectionChange: unref(onChange)
|
|
85
|
+
}), createSlots({ _: 2 }, [
|
|
86
|
+
renderList(Object.keys(unref(slots)), (k) => {
|
|
87
|
+
return {
|
|
88
|
+
name: k,
|
|
89
|
+
fn: withCtx((scope) => [
|
|
90
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
91
|
+
])
|
|
92
|
+
};
|
|
93
|
+
})
|
|
94
|
+
]), 1040, ["height", "class", "scroll-selector", "sortable-selector", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])), [
|
|
95
|
+
[unref(vScroll), unref(scroll)],
|
|
96
|
+
[unref(vSortable), unref(sortable)]
|
|
97
|
+
]),
|
|
98
|
+
((_d = unref(paginat)) == null ? void 0 : _d.is) && !unref(paginat).scroll ? (openBlock(), createBlock(unref(Paging), mergeProps({ key: 0 }, unref(pagconfig), {
|
|
99
|
+
class: unref(cs).z("paginat"),
|
|
100
|
+
paginat: unref(paginat),
|
|
101
|
+
total: unref(data).total,
|
|
102
|
+
onSizeChange: unref(onSizeChange),
|
|
103
|
+
onCurrentChange: unref(onCurrentChange)
|
|
104
|
+
}), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : createCommentVNode("", true)
|
|
105
|
+
], 6);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
export {
|
|
110
|
+
_sfc_main as default
|
|
111
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const use = require("../../common/use.cjs");
|
|
5
|
-
const
|
|
5
|
+
const getAttrValue = require("../../../utils/vues/getAttrValue.cjs");
|
|
6
6
|
const compons = require("../../common/compons.cjs");
|
|
7
7
|
const config = require("../../tables/common/config.cjs");
|
|
8
8
|
const util = require("../../tables/common/util.cjs");
|
|
@@ -11,7 +11,7 @@ const column = require("vxe-table/es/column");
|
|
|
11
11
|
const index = require("../../radio/index.cjs");
|
|
12
12
|
const index$1 = require("../../checkbox/index.cjs");
|
|
13
13
|
const lineToSmallHump = require("@fangzhongya/utils/name/lineToSmallHump");
|
|
14
|
-
function setBox(props, obj, emit, propss, slots, index$
|
|
14
|
+
function setBox(props, obj, emit, propss, slots, index$2) {
|
|
15
15
|
if (props.type == "radio") {
|
|
16
16
|
return vue.h(
|
|
17
17
|
column.VxeColumn,
|
|
@@ -117,8 +117,8 @@ function setProps(obj, props) {
|
|
|
117
117
|
const vxeconfig = props.vxeconfig;
|
|
118
118
|
const robj = {};
|
|
119
119
|
robj["header-align"] = table["align"];
|
|
120
|
-
robj["align"] =
|
|
121
|
-
const tooltip =
|
|
120
|
+
robj["align"] = getAttrValue.getAttrValue(obj, "headerAlign") || table["align"];
|
|
121
|
+
const tooltip = getAttrValue.getAttrValue(table, "showOverflowTooltip");
|
|
122
122
|
if (tooltip === "" || tooltip === true) {
|
|
123
123
|
robj["show-overflow"] = "tooltip";
|
|
124
124
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel } from "../../common/use.js";
|
|
3
|
-
import {
|
|
3
|
+
import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
|
|
4
4
|
import { useGetCompons } from "../../common/compons.js";
|
|
5
5
|
import { provides } from "../../tables/common/config.js";
|
|
6
6
|
import { setMinWidth } from "../../tables/common/util.js";
|
|
@@ -115,8 +115,8 @@ function setProps(obj, props) {
|
|
|
115
115
|
const vxeconfig = props.vxeconfig;
|
|
116
116
|
const robj = {};
|
|
117
117
|
robj["header-align"] = table["align"];
|
|
118
|
-
robj["align"] =
|
|
119
|
-
const tooltip =
|
|
118
|
+
robj["align"] = getAttrValue(obj, "headerAlign") || table["align"];
|
|
119
|
+
const tooltip = getAttrValue(table, "showOverflowTooltip");
|
|
120
120
|
if (tooltip === "" || tooltip === true) {
|
|
121
121
|
robj["show-overflow"] = "tooltip";
|
|
122
122
|
}
|
package/dist/css/index.css
CHANGED
|
@@ -1109,6 +1109,17 @@
|
|
|
1109
1109
|
.list-div .list-table .list-table-th {
|
|
1110
1110
|
text-align: left;
|
|
1111
1111
|
}
|
|
1112
|
+
.list-div .list-table .list-table-value {
|
|
1113
|
+
word-break: break-all;
|
|
1114
|
+
white-space: normal;
|
|
1115
|
+
display: block;
|
|
1116
|
+
max-height: var(--list-row-max-height);
|
|
1117
|
+
display: -webkit-box;
|
|
1118
|
+
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
|
1119
|
+
-webkit-box-orient: vertical;
|
|
1120
|
+
overflow: hidden;
|
|
1121
|
+
text-overflow: ellipsis;
|
|
1122
|
+
}
|
|
1112
1123
|
.list-div .list-table.right .list-table-th {
|
|
1113
1124
|
text-align: right;
|
|
1114
1125
|
}
|
|
@@ -1669,6 +1680,34 @@
|
|
|
1669
1680
|
justify-content: flex-end;
|
|
1670
1681
|
}
|
|
1671
1682
|
|
|
1683
|
+
.tablespd {
|
|
1684
|
+
width: 100%;
|
|
1685
|
+
flex: 1;
|
|
1686
|
+
display: flex;
|
|
1687
|
+
flex-direction: column;
|
|
1688
|
+
}
|
|
1689
|
+
.tablespd-main {
|
|
1690
|
+
display: flex;
|
|
1691
|
+
flex-direction: column;
|
|
1692
|
+
flex: 1;
|
|
1693
|
+
width: 100%;
|
|
1694
|
+
}
|
|
1695
|
+
.tablespd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1696
|
+
display: none;
|
|
1697
|
+
}
|
|
1698
|
+
.tablespd-main.is-scroll .v-scroll-add {
|
|
1699
|
+
text-align: center;
|
|
1700
|
+
padding: 10px;
|
|
1701
|
+
color: #999;
|
|
1702
|
+
background-color: #eee;
|
|
1703
|
+
}
|
|
1704
|
+
.tablespd-paginat {
|
|
1705
|
+
overflow: hidden;
|
|
1706
|
+
}
|
|
1707
|
+
.tablespd-paginat .el-pagination {
|
|
1708
|
+
justify-content: flex-end;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1672
1711
|
.tabless {
|
|
1673
1712
|
width: 100%;
|
|
1674
1713
|
flex: 1;
|
package/dist/css/list.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
:root {
|
|
2
3
|
--on: rgb(91, 189, 246);
|
|
3
4
|
--color-primary: #409eff;
|
|
@@ -85,6 +86,17 @@
|
|
|
85
86
|
.list-div .list-table .list-table-th {
|
|
86
87
|
text-align: left;
|
|
87
88
|
}
|
|
89
|
+
.list-div .list-table .list-table-value {
|
|
90
|
+
word-break: break-all;
|
|
91
|
+
white-space: normal;
|
|
92
|
+
display: block;
|
|
93
|
+
max-height: var(--list-row-max-height);
|
|
94
|
+
display: -webkit-box;
|
|
95
|
+
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
|
96
|
+
-webkit-box-orient: vertical;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
text-overflow: ellipsis;
|
|
99
|
+
}
|
|
88
100
|
.list-div .list-table.right .list-table-th {
|
|
89
101
|
text-align: right;
|
|
90
102
|
}
|
package/dist/css/page.css
CHANGED
|
@@ -697,6 +697,17 @@
|
|
|
697
697
|
.list-div .list-table .list-table-th {
|
|
698
698
|
text-align: left;
|
|
699
699
|
}
|
|
700
|
+
.list-div .list-table .list-table-value {
|
|
701
|
+
word-break: break-all;
|
|
702
|
+
white-space: normal;
|
|
703
|
+
display: block;
|
|
704
|
+
max-height: var(--list-row-max-height);
|
|
705
|
+
display: -webkit-box;
|
|
706
|
+
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
|
707
|
+
-webkit-box-orient: vertical;
|
|
708
|
+
overflow: hidden;
|
|
709
|
+
text-overflow: ellipsis;
|
|
710
|
+
}
|
|
700
711
|
.list-div .list-table.right .list-table-th {
|
|
701
712
|
text-align: right;
|
|
702
713
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--on: rgb(91, 189, 246);
|
|
3
|
+
--color-primary: #409eff;
|
|
4
|
+
--bag-primary: #409eff;
|
|
5
|
+
--bag-primary-text: #fff;
|
|
6
|
+
--border: #eee;
|
|
7
|
+
--layout-panel-gap: 10px;
|
|
8
|
+
--layout-panel-padding: 20px;
|
|
9
|
+
--layout-form-item-padding-right: var(
|
|
10
|
+
--layout-panel-gap
|
|
11
|
+
);
|
|
12
|
+
--g-main-bg: var(--bg-color-page);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.tables {
|
|
16
|
+
width: 100%;
|
|
17
|
+
min-height: var(--tables-min-height, 70px);
|
|
18
|
+
position: relative;
|
|
19
|
+
flex: 1;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
}
|
|
23
|
+
.tables-table.is-absolute {
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset: 0;
|
|
26
|
+
}
|
|
27
|
+
.tables-table {
|
|
28
|
+
background-color: transparent;
|
|
29
|
+
--el-table-header-bg-color: rgb(248, 248, 249);
|
|
30
|
+
}
|
|
31
|
+
.tables-table.el-table--default .el-table__cell {
|
|
32
|
+
padding: var(--tables-interval) 0;
|
|
33
|
+
}
|
|
34
|
+
.tables-table.el-table--default .cell {
|
|
35
|
+
padding: 0 var(--tables-interval-horizon, var(--tables-interval));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.paging {
|
|
39
|
+
width: 100%;
|
|
40
|
+
padding: 10px;
|
|
41
|
+
}
|
|
42
|
+
.paging-pagination {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
.paging-slot {
|
|
46
|
+
padding-left: 10px;
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
color: #9b9b9b;
|
|
50
|
+
white-space: pre-wrap;
|
|
51
|
+
}
|
|
52
|
+
.paging-slot > span {
|
|
53
|
+
margin-right: 10px;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
}
|
|
56
|
+
.paging .el-pagination__total {
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
font-weight: 400;
|
|
59
|
+
color: #9b9b9b;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tablespd {
|
|
63
|
+
width: 100%;
|
|
64
|
+
flex: 1;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
}
|
|
68
|
+
.tablespd-main {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
flex: 1;
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
74
|
+
.tablespd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
.tablespd-main.is-scroll .v-scroll-add {
|
|
78
|
+
text-align: center;
|
|
79
|
+
padding: 10px;
|
|
80
|
+
color: #999;
|
|
81
|
+
background-color: #eee;
|
|
82
|
+
}
|
|
83
|
+
.tablespd-paginat {
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
}
|
|
86
|
+
.tablespd-paginat .el-pagination {
|
|
87
|
+
justify-content: flex-end;
|
|
88
|
+
}
|
|
@@ -6,17 +6,19 @@ const index$2 = require("./expose/index.cjs");
|
|
|
6
6
|
const index$3 = require("./inserted/index.cjs");
|
|
7
7
|
const index$4 = require("./locus/index.cjs");
|
|
8
8
|
const index$5 = require("./scroll/index.cjs");
|
|
9
|
-
const index$6 = require("./
|
|
9
|
+
const index$6 = require("./sortable/index.cjs");
|
|
10
|
+
const index$7 = require("./stick/index.cjs");
|
|
10
11
|
require("./v-loading/index.cjs");
|
|
11
|
-
const index$
|
|
12
|
+
const index$8 = require("element-plus/es/components/loading/index");
|
|
12
13
|
exports.Adjust = index.default;
|
|
13
14
|
exports.Drag = index$1.default;
|
|
14
15
|
exports.Expose = index$2.default;
|
|
15
16
|
exports.Inserted = index$3.default;
|
|
16
17
|
exports.Locus = index$4.default;
|
|
17
18
|
exports.Scroll = index$5.default;
|
|
18
|
-
exports.
|
|
19
|
+
exports.Sortable = index$6.default;
|
|
20
|
+
exports.Stick = index$7.default;
|
|
19
21
|
Object.defineProperty(exports, "VLoading", {
|
|
20
22
|
enumerable: true,
|
|
21
|
-
get: () => index$
|
|
23
|
+
get: () => index$8.vLoading
|
|
22
24
|
});
|
|
@@ -4,5 +4,6 @@ export { default as Expose } from './expose';
|
|
|
4
4
|
export { default as Inserted } from './inserted';
|
|
5
5
|
export { default as Locus } from './locus';
|
|
6
6
|
export { default as Scroll } from './scroll';
|
|
7
|
+
export { default as Sortable } from './sortable';
|
|
7
8
|
export { default as Stick } from './stick';
|
|
8
9
|
export { default as VLoading } from './v-loading';
|
package/dist/directives/index.js
CHANGED
|
@@ -4,7 +4,8 @@ import { default as default4 } from "./expose/index.js";
|
|
|
4
4
|
import { default as default5 } from "./inserted/index.js";
|
|
5
5
|
import { default as default6 } from "./locus/index.js";
|
|
6
6
|
import { default as default7 } from "./scroll/index.js";
|
|
7
|
-
import { default as default8 } from "./
|
|
7
|
+
import { default as default8 } from "./sortable/index.js";
|
|
8
|
+
import { default as default9 } from "./stick/index.js";
|
|
8
9
|
import "./v-loading/index.js";
|
|
9
10
|
import { vLoading } from "element-plus/es/components/loading/index";
|
|
10
11
|
export {
|
|
@@ -14,6 +15,7 @@ export {
|
|
|
14
15
|
default5 as Inserted,
|
|
15
16
|
default6 as Locus,
|
|
16
17
|
default7 as Scroll,
|
|
17
|
-
default8 as
|
|
18
|
+
default8 as Sortable,
|
|
19
|
+
default9 as Stick,
|
|
18
20
|
vLoading as VLoading
|
|
19
21
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const sortable_esm = require("../../node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs");
|
|
4
|
+
const vSortable = {
|
|
5
|
+
name: "Sortable",
|
|
6
|
+
mounted(el, binding) {
|
|
7
|
+
const value = binding.value;
|
|
8
|
+
let selector = el.getAttribute(`sortable-selector`);
|
|
9
|
+
let dom;
|
|
10
|
+
if (value.dom) {
|
|
11
|
+
if (typeof value.dom == "string") {
|
|
12
|
+
dom = el.querySelector(value.dom);
|
|
13
|
+
} else {
|
|
14
|
+
dom = value.dom;
|
|
15
|
+
}
|
|
16
|
+
} else {
|
|
17
|
+
if (selector) {
|
|
18
|
+
dom = el.querySelector(selector);
|
|
19
|
+
} else {
|
|
20
|
+
dom = el;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (dom && value.is !== false) {
|
|
24
|
+
const options = Object.assign(
|
|
25
|
+
{
|
|
26
|
+
animation: 150,
|
|
27
|
+
// 动画时长
|
|
28
|
+
ghostClass: "sortable-ghost",
|
|
29
|
+
// 拖拽时占位元素的样式
|
|
30
|
+
chosenClass: "sortable-chosen",
|
|
31
|
+
// 被选中元素的样式
|
|
32
|
+
dragClass: "sortable-drag"
|
|
33
|
+
// 拖拽元素的样式
|
|
34
|
+
},
|
|
35
|
+
value.options || {
|
|
36
|
+
...value,
|
|
37
|
+
dom: void 0,
|
|
38
|
+
is: void 0
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
sortable_esm.default.create(dom, options);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.default = vSortable;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Sortable from "../../node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.js";
|
|
2
|
+
const vSortable = {
|
|
3
|
+
name: "Sortable",
|
|
4
|
+
mounted(el, binding) {
|
|
5
|
+
const value = binding.value;
|
|
6
|
+
let selector = el.getAttribute(`sortable-selector`);
|
|
7
|
+
let dom;
|
|
8
|
+
if (value.dom) {
|
|
9
|
+
if (typeof value.dom == "string") {
|
|
10
|
+
dom = el.querySelector(value.dom);
|
|
11
|
+
} else {
|
|
12
|
+
dom = value.dom;
|
|
13
|
+
}
|
|
14
|
+
} else {
|
|
15
|
+
if (selector) {
|
|
16
|
+
dom = el.querySelector(selector);
|
|
17
|
+
} else {
|
|
18
|
+
dom = el;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
if (dom && value.is !== false) {
|
|
22
|
+
const options = Object.assign(
|
|
23
|
+
{
|
|
24
|
+
animation: 150,
|
|
25
|
+
// 动画时长
|
|
26
|
+
ghostClass: "sortable-ghost",
|
|
27
|
+
// 拖拽时占位元素的样式
|
|
28
|
+
chosenClass: "sortable-chosen",
|
|
29
|
+
// 被选中元素的样式
|
|
30
|
+
dragClass: "sortable-drag"
|
|
31
|
+
// 拖拽元素的样式
|
|
32
|
+
},
|
|
33
|
+
value.options || {
|
|
34
|
+
...value,
|
|
35
|
+
dom: void 0,
|
|
36
|
+
is: void 0
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
Sortable.create(dom, options);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
vSortable as default
|
|
45
|
+
};
|
|
@@ -132,6 +132,7 @@ var config_default = {
|
|
|
132
132
|
"paging",
|
|
133
133
|
"tables",
|
|
134
134
|
"tablesp",
|
|
135
|
+
"tablespd",
|
|
135
136
|
"tabless",
|
|
136
137
|
"tablesv",
|
|
137
138
|
"tablesvp"
|
|
@@ -143,6 +144,7 @@ var config_default = {
|
|
|
143
144
|
"inserted",
|
|
144
145
|
"locus",
|
|
145
146
|
"scroll",
|
|
147
|
+
"sortable",
|
|
146
148
|
"stick",
|
|
147
149
|
"v-loading"
|
|
148
150
|
],
|
|
@@ -199,6 +201,7 @@ var config_default = {
|
|
|
199
201
|
"paging",
|
|
200
202
|
"tables",
|
|
201
203
|
"tablesp",
|
|
204
|
+
"tablespd",
|
|
202
205
|
"tabless",
|
|
203
206
|
"tablesv",
|
|
204
207
|
"tablesvp",
|
|
@@ -132,6 +132,7 @@ var config_default = {
|
|
|
132
132
|
"paging",
|
|
133
133
|
"tables",
|
|
134
134
|
"tablesp",
|
|
135
|
+
"tablespd",
|
|
135
136
|
"tabless",
|
|
136
137
|
"tablesv",
|
|
137
138
|
"tablesvp"
|
|
@@ -143,6 +144,7 @@ var config_default = {
|
|
|
143
144
|
"inserted",
|
|
144
145
|
"locus",
|
|
145
146
|
"scroll",
|
|
147
|
+
"sortable",
|
|
146
148
|
"stick",
|
|
147
149
|
"v-loading"
|
|
148
150
|
],
|
|
@@ -199,6 +201,7 @@ var config_default = {
|
|
|
199
201
|
"paging",
|
|
200
202
|
"tables",
|
|
201
203
|
"tablesp",
|
|
204
|
+
"tablespd",
|
|
202
205
|
"tabless",
|
|
203
206
|
"tablesv",
|
|
204
207
|
"tablesvp",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOT6GISSRcjs = require('./chunk-OT6GISSR.cjs');
|
|
4
4
|
|
|
5
5
|
// expand/components.ts
|
|
6
6
|
var _humpToLine = require('@fangzhongya/utils/name/humpToLine');
|
|
@@ -35,11 +35,11 @@ function getFrom(mc, type, conf) {
|
|
|
35
35
|
const p = config.prefix ? config.prefix + "-" : "";
|
|
36
36
|
const filename = p ? mc.replace(new RegExp("^" + p), "") : mc;
|
|
37
37
|
if (type == 1) {
|
|
38
|
-
if (
|
|
38
|
+
if (_chunkOT6GISSRcjs.config_default.components.includes(filename)) {
|
|
39
39
|
const name = _lineToLargeHump.lineToLargeHump.call(void 0, mc);
|
|
40
40
|
const from = `${config.name}/components/${filename}/index`;
|
|
41
41
|
let sideEffects;
|
|
42
|
-
if (
|
|
42
|
+
if (_chunkOT6GISSRcjs.config_default.sideEffects.includes(filename)) {
|
|
43
43
|
if (conf.css) {
|
|
44
44
|
sideEffects = `${config.name}/components/${filename}/style/index${conf.css || 2}.scss`;
|
|
45
45
|
} else {
|
|
@@ -55,14 +55,14 @@ function getFrom(mc, type, conf) {
|
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
} else {
|
|
58
|
-
if (
|
|
58
|
+
if (_chunkOT6GISSRcjs.config_default.directives.includes(filename)) {
|
|
59
59
|
const name = "default";
|
|
60
60
|
const from = `${config.name}/directives/${filename}/index`;
|
|
61
61
|
return {
|
|
62
62
|
name,
|
|
63
63
|
from
|
|
64
64
|
};
|
|
65
|
-
} else if (
|
|
65
|
+
} else if (_chunkOT6GISSRcjs.config_default.directives.includes("v-" + filename)) {
|
|
66
66
|
const name = "default";
|
|
67
67
|
const from = `${config.name}/directives/${"v-" + filename}/index`;
|
|
68
68
|
return {
|
package/dist/expand/config.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOT6GISSRcjs = require('./chunk-OT6GISSR.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = _chunkOT6GISSRcjs.config_default;
|
package/dist/expand/config.js
CHANGED
|
@@ -12,9 +12,9 @@ export declare const useCssName: (block: string) => {
|
|
|
12
12
|
ec: (name?: string, blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
13
13
|
is: (name: string, state?: boolean) => string;
|
|
14
14
|
zis: (blockSuffix?: string, modifier?: string, state?: boolean) => string;
|
|
15
|
-
vo: (object: Record<string, string>) => Record<string, string>;
|
|
15
|
+
vo: (object: Record<string, string | number>) => Record<string, string | number>;
|
|
16
16
|
vm: (name: string) => string;
|
|
17
|
-
vdo: (object: Record<string, string | undefined>) => Record<string, string>;
|
|
17
|
+
vdo: (object: Record<string, string | number | undefined>) => Record<string, string | number>;
|
|
18
18
|
vdm: (name: string) => string;
|
|
19
19
|
};
|
|
20
20
|
export type UseCssNameReturn = ReturnType<typeof useCssName>;
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -19,7 +19,6 @@ exports.provideGlobalConfig = index$5.provideGlobalConfig;
|
|
|
19
19
|
exports.setGlobalConfig = index$5.setGlobalConfig;
|
|
20
20
|
exports.setGlobalConfigs = index$5.setGlobalConfigs;
|
|
21
21
|
exports.useGlobalConfig = index$5.useGlobalConfig;
|
|
22
|
-
exports.useAttrValue = index$6.useAttrValue;
|
|
23
22
|
exports.useInherit = index$6.useInherit;
|
|
24
23
|
exports.buildLocaleAdd = index$7.buildLocaleAdd;
|
|
25
24
|
exports.buildLocaleContext = index$7.buildLocaleContext;
|
package/dist/hooks/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { eventAliass } from "./event-aliass/index.js";
|
|
|
4
4
|
import { useExpose } from "./expose/index.js";
|
|
5
5
|
import { useFullscreen } from "./full-screen/index.js";
|
|
6
6
|
import { provideGlobalConfig, setGlobalConfig, setGlobalConfigs, useGlobalConfig } from "./global-config/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { useInherit } from "./inherit/index.js";
|
|
8
8
|
import { buildLocaleAdd, buildLocaleContext, buildTranslator, useLocale } from "./locale/index.js";
|
|
9
9
|
import { getProps, usePropsDefault, viewProps } from "./props-default/index.js";
|
|
10
10
|
export {
|
|
@@ -16,7 +16,6 @@ export {
|
|
|
16
16
|
provideGlobalConfig,
|
|
17
17
|
setGlobalConfig,
|
|
18
18
|
setGlobalConfigs,
|
|
19
|
-
useAttrValue,
|
|
20
19
|
useCssName,
|
|
21
20
|
useDefaultConfig,
|
|
22
21
|
useDefaultConfigs,
|
|
@@ -45,12 +45,4 @@ const useInherit = (attrs = vue.useAttrs(), name) => {
|
|
|
45
45
|
})
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
function useAttrValue(attrs, k) {
|
|
49
|
-
if (typeof k === "string") {
|
|
50
|
-
return attrs[k] ?? attrs[humpToLine.humpToLine(k)];
|
|
51
|
-
} else {
|
|
52
|
-
return attrs[k];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.useAttrValue = useAttrValue;
|
|
56
48
|
exports.useInherit = useInherit;
|