@fangzhongya/fang-ui 0.0.47 → 0.0.49
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/array/src/index2.cjs +9 -6
- package/dist/components/array/src/index2.js +9 -6
- package/dist/components/box-teleport/src/index2.cjs +1 -1
- package/dist/components/box-teleport/src/index2.js +1 -1
- package/dist/components/checks/src/index2.cjs +4 -4
- package/dist/components/checks/src/index2.js +4 -4
- package/dist/components/common/list.cjs +3 -2
- package/dist/components/common/list.js +3 -2
- package/dist/components/common/use.cjs +11 -11
- package/dist/components/common/use.js +11 -11
- package/dist/components/forms/src/index2.cjs +2 -2
- package/dist/components/forms/src/index2.js +2 -2
- package/dist/components/forms/src/setup.cjs +8 -5
- package/dist/components/forms/src/setup.js +8 -5
- package/dist/components/forms/src/util.cjs +2 -1
- package/dist/components/forms/src/util.js +2 -1
- package/dist/components/forms-drag/src/index2.cjs +2 -2
- package/dist/components/forms-drag/src/index2.js +2 -2
- package/dist/components/forms-item/src/index2.cjs +1 -1
- package/dist/components/forms-item/src/index2.js +1 -1
- package/dist/components/forms-items/src/index2.cjs +2 -2
- package/dist/components/forms-items/src/index2.js +2 -2
- package/dist/components/global-config/src/index.cjs +1 -1
- package/dist/components/global-config/src/index.js +1 -1
- package/dist/components/icon-picker/src/index2.cjs +6 -4
- package/dist/components/icon-picker/src/index2.js +6 -4
- package/dist/components/iframe/index.cjs +1 -0
- package/dist/components/iframe/index.css +18 -0
- package/dist/components/iframe/index.js +1 -0
- package/dist/components/iframe/index.scss +7 -0
- package/dist/components/index.cjs +82 -80
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.scss +2 -0
- package/dist/components/index2.scss +2 -0
- package/dist/components/input-select/src/index2.cjs +1 -1
- package/dist/components/input-select/src/index2.js +1 -1
- package/dist/components/keep-com/index.cjs +9 -0
- package/dist/components/keep-com/index.d.ts +2 -0
- package/dist/components/keep-com/index.js +9 -0
- package/dist/components/keep-com/index.scss +5 -0
- package/dist/components/keep-com/src/data.cjs +42 -0
- package/dist/components/keep-com/src/data.d.ts +71 -0
- package/dist/components/keep-com/src/data.js +42 -0
- package/dist/components/keep-com/src/index.cjs +4 -0
- package/dist/components/keep-com/src/index.js +4 -0
- package/dist/components/keep-com/src/index2.cjs +77 -0
- package/dist/components/keep-com/src/index2.js +77 -0
- package/dist/components/labels/src/index2.cjs +2 -1
- package/dist/components/labels/src/index2.js +2 -1
- package/dist/components/menus/src/menu-ll2.cjs +1 -1
- package/dist/components/menus/src/menu-ll2.js +1 -1
- package/dist/components/page/src/index2.cjs +85 -65
- package/dist/components/page/src/index2.js +85 -65
- package/dist/components/paging/src/index2.cjs +8 -4
- package/dist/components/paging/src/index2.js +8 -4
- package/dist/components/seamless-scroll/src/index2.cjs +2 -2
- package/dist/components/seamless-scroll/src/index2.js +2 -2
- package/dist/components/selects/src/index2.cjs +1 -1
- package/dist/components/selects/src/index2.js +1 -1
- package/dist/components/stick-window/src/index2.cjs +1 -1
- package/dist/components/stick-window/src/index2.js +1 -1
- package/dist/components/switchs/src/index2.cjs +4 -4
- package/dist/components/switchs/src/index2.js +4 -4
- package/dist/components/tables/common/pagin.cjs +57 -40
- package/dist/components/tables/common/pagin.js +57 -40
- package/dist/components/tables/common/table-but2.cjs +2 -1
- package/dist/components/tables/common/table-but2.js +2 -1
- package/dist/components/tables/common/table-color2.cjs +5 -4
- package/dist/components/tables/common/table-color2.js +5 -4
- package/dist/components/tables/common/table-list2.cjs +2 -1
- package/dist/components/tables/common/table-list2.js +2 -1
- package/dist/components/tables/common/util.cjs +3 -2
- package/dist/components/tables/common/util.js +3 -2
- package/dist/components/tables/src/columns3.cjs +1 -1
- package/dist/components/tables/src/columns3.js +1 -1
- package/dist/components/tables/src/index2.cjs +3 -2
- package/dist/components/tables/src/index2.js +3 -2
- package/dist/components/tablesp/src/index2.cjs +4 -3
- package/dist/components/tablesp/src/index2.js +4 -3
- package/dist/components/tabless/src/index2.cjs +5 -4
- package/dist/components/tabless/src/index2.js +5 -4
- package/dist/components/tablesv/src/columns3.cjs +1 -1
- package/dist/components/tablesv/src/columns3.js +1 -1
- package/dist/components/tablesv/src/index2.cjs +3 -2
- package/dist/components/tablesv/src/index2.js +3 -2
- package/dist/components/tablesvp/src/index2.cjs +3 -2
- package/dist/components/tablesvp/src/index2.js +3 -2
- package/dist/css/iframe.css +18 -0
- package/dist/css/index.css +5 -0
- package/dist/directives/adjust/index.cjs +2 -1
- package/dist/directives/adjust/index.js +2 -1
- package/dist/expand/{chunk-SJZOTUWF.cjs → chunk-LSKJOV4K.cjs} +3 -0
- package/dist/expand/{chunk-QTEP33RI.js → chunk-ZS2GF6MH.js} +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/event-aliass/index.cjs +2 -1
- package/dist/hooks/event-aliass/index.js +2 -1
- package/dist/hooks/global-config/index.cjs +6 -3
- package/dist/hooks/global-config/index.js +6 -3
- package/dist/icons/index.css +7 -7
- package/dist/icons/index.json +3 -3
- package/dist/index.cjs +100 -98
- package/dist/index.css +5 -0
- package/dist/index.js +2 -0
- package/dist/utils/vues/common.cjs +2 -1
- package/dist/utils/vues/common.js +2 -1
- package/package.json +5 -5
- /package/dist/components/{input → transfer}/index.css +0 -0
- /package/dist/css/{input.css → transfer.css} +0 -0
|
@@ -5,7 +5,7 @@ import { firstUpper } from "@fangzhongya/utils/basic/string/firstUpper";
|
|
|
5
5
|
import { splitUpper } from "@fangzhongya/utils/basic/string/splitUpper";
|
|
6
6
|
import { isArray } from "@fangzhongya/utils/basic/array/isArray";
|
|
7
7
|
function setMinWidth(obj, props) {
|
|
8
|
-
const config = props
|
|
8
|
+
const config = (props == null ? void 0 : props.table) ?? {};
|
|
9
9
|
if (obj.width) {
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
@@ -44,7 +44,8 @@ const eventAliasObj = {
|
|
|
44
44
|
},
|
|
45
45
|
// .once - 最多触发一次处理函数。
|
|
46
46
|
once(event) {
|
|
47
|
-
|
|
47
|
+
var _a;
|
|
48
|
+
if ((_a = event.currentTarget) == null ? void 0 : _a.__once__) {
|
|
48
49
|
return false;
|
|
49
50
|
} else {
|
|
50
51
|
if (event.currentTarget) {
|
|
@@ -7,7 +7,7 @@ const index = require("element-plus/es/components/table/index");
|
|
|
7
7
|
const column = require("./column.cjs");
|
|
8
8
|
function getLists(arrs, emit, props, slots, listobj) {
|
|
9
9
|
let arr = [];
|
|
10
|
-
arrs
|
|
10
|
+
arrs == null ? void 0 : arrs.forEach((obj, index$1) => {
|
|
11
11
|
if (listobj) {
|
|
12
12
|
obj.father = obj.father ?? listobj;
|
|
13
13
|
}
|
|
@@ -5,7 +5,7 @@ import { ElTableColumn } from "element-plus/es/components/table/index";
|
|
|
5
5
|
import { setProps, setHeader, columnRender } from "./column.js";
|
|
6
6
|
function getLists(arrs, emit, props, slots, listobj) {
|
|
7
7
|
let arr = [];
|
|
8
|
-
arrs
|
|
8
|
+
arrs == null ? void 0 : arrs.forEach((obj, index) => {
|
|
9
9
|
if (listobj) {
|
|
10
10
|
obj.father = obj.father ?? listobj;
|
|
11
11
|
}
|
|
@@ -44,9 +44,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
44
|
}
|
|
45
45
|
let isSort = false;
|
|
46
46
|
const tableDefaultSort = vue.computed(() => {
|
|
47
|
+
var _a, _b;
|
|
47
48
|
return {
|
|
48
|
-
prop: props.defaultSort
|
|
49
|
-
order: props.defaultSort
|
|
49
|
+
prop: (_a = props.defaultSort) == null ? void 0 : _a.prop,
|
|
50
|
+
order: (_b = props.defaultSort) == null ? void 0 : _b.order
|
|
50
51
|
};
|
|
51
52
|
});
|
|
52
53
|
const rowStyle = vue.computed(() => {
|
|
@@ -42,9 +42,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
}
|
|
43
43
|
let isSort = false;
|
|
44
44
|
const tableDefaultSort = computed(() => {
|
|
45
|
+
var _a, _b;
|
|
45
46
|
return {
|
|
46
|
-
prop: props.defaultSort
|
|
47
|
-
order: props.defaultSort
|
|
47
|
+
prop: (_a = props.defaultSort) == null ? void 0 : _a.prop,
|
|
48
|
+
order: (_b = props.defaultSort) == null ? void 0 : _b.order
|
|
48
49
|
};
|
|
49
50
|
});
|
|
50
51
|
const rowStyle = computed(() => {
|
|
@@ -44,6 +44,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
44
|
empty
|
|
45
45
|
});
|
|
46
46
|
return (_ctx, _cache) => {
|
|
47
|
+
var _a, _b, _c;
|
|
47
48
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
48
49
|
class: vue.normalizeClass(vue.unref(cs).z()),
|
|
49
50
|
style: vue.normalizeStyle(vue.unref(cs).vdo({ height: vue.unref(height) }))
|
|
@@ -52,10 +53,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
52
53
|
height: vue.unref(height),
|
|
53
54
|
ref_key: "refTable",
|
|
54
55
|
ref: refTable,
|
|
55
|
-
class: [vue.unref(cs).z("main"), vue.unref(cs).is("radio", vue.unref(tableConfig).config
|
|
56
|
+
class: [vue.unref(cs).z("main"), vue.unref(cs).is("radio", (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.isradio)],
|
|
56
57
|
value: vue.unref(data).list,
|
|
57
58
|
list: vue.unref(tableList),
|
|
58
|
-
size: vue.unref(tableConfig).config
|
|
59
|
+
size: (_b = vue.unref(tableConfig).config) == null ? void 0 : _b.size,
|
|
59
60
|
paginat: vue.unref(paginat),
|
|
60
61
|
loading: vue.unref(loading),
|
|
61
62
|
options: props.options,
|
|
@@ -75,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
75
76
|
};
|
|
76
77
|
})
|
|
77
78
|
]), 1040, ["height", "class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"]),
|
|
78
|
-
vue.unref(tableConfig).paginat
|
|
79
|
+
((_c = vue.unref(tableConfig).paginat) == null ? void 0 : _c.is) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
|
|
79
80
|
class: vue.unref(cs).z("paginat"),
|
|
80
81
|
paginat: vue.unref(paginat),
|
|
81
82
|
total: vue.unref(data).total,
|
|
@@ -42,6 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
empty
|
|
43
43
|
});
|
|
44
44
|
return (_ctx, _cache) => {
|
|
45
|
+
var _a, _b, _c;
|
|
45
46
|
return openBlock(), createElementBlock("div", {
|
|
46
47
|
class: normalizeClass(unref(cs).z()),
|
|
47
48
|
style: normalizeStyle(unref(cs).vdo({ height: unref(height) }))
|
|
@@ -50,10 +51,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
51
|
height: unref(height),
|
|
51
52
|
ref_key: "refTable",
|
|
52
53
|
ref: refTable,
|
|
53
|
-
class: [unref(cs).z("main"), unref(cs).is("radio", unref(tableConfig).config
|
|
54
|
+
class: [unref(cs).z("main"), unref(cs).is("radio", (_a = unref(tableConfig).config) == null ? void 0 : _a.isradio)],
|
|
54
55
|
value: unref(data).list,
|
|
55
56
|
list: unref(tableList),
|
|
56
|
-
size: unref(tableConfig).config
|
|
57
|
+
size: (_b = unref(tableConfig).config) == null ? void 0 : _b.size,
|
|
57
58
|
paginat: unref(paginat),
|
|
58
59
|
loading: unref(loading),
|
|
59
60
|
options: props.options,
|
|
@@ -73,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
74
|
};
|
|
74
75
|
})
|
|
75
76
|
]), 1040, ["height", "class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"]),
|
|
76
|
-
unref(tableConfig).paginat
|
|
77
|
+
((_c = unref(tableConfig).paginat) == null ? void 0 : _c.is) ? (openBlock(), createBlock(unref(Paging), mergeProps({ key: 0 }, unref(pagconfig), {
|
|
77
78
|
class: unref(cs).z("paginat"),
|
|
78
79
|
paginat: unref(paginat),
|
|
79
80
|
total: unref(data).total,
|
|
@@ -45,6 +45,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
45
45
|
empty
|
|
46
46
|
});
|
|
47
47
|
return (_ctx, _cache) => {
|
|
48
|
+
var _a, _b, _c, _d;
|
|
48
49
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
49
50
|
class: vue.normalizeClass(vue.unref(cs).z()),
|
|
50
51
|
style: vue.normalizeStyle(vue.unref(cs).vdo({ height: vue.unref(height) }))
|
|
@@ -54,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
55
|
ref_key: "refTable",
|
|
55
56
|
ref: refTable,
|
|
56
57
|
class: [vue.unref(cs).z("main")],
|
|
57
|
-
size: vue.unref(tableConfig).config
|
|
58
|
+
size: (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.size,
|
|
58
59
|
value: vue.unref(data).list,
|
|
59
60
|
list: vue.unref(tableList),
|
|
60
61
|
paginat: vue.unref(paginat),
|
|
@@ -80,11 +81,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
80
81
|
ref: refTable,
|
|
81
82
|
class: [
|
|
82
83
|
vue.unref(cs).z("main"),
|
|
83
|
-
vue.unref(cs).is("radio", vue.unref(tableConfig).config
|
|
84
|
+
vue.unref(cs).is("radio", (_b = vue.unref(tableConfig).config) == null ? void 0 : _b.isradio)
|
|
84
85
|
],
|
|
85
86
|
value: vue.unref(data).list,
|
|
86
87
|
list: vue.unref(tableList),
|
|
87
|
-
size: vue.unref(tableConfig).config
|
|
88
|
+
size: (_c = vue.unref(tableConfig).config) == null ? void 0 : _c.size,
|
|
88
89
|
paginat: vue.unref(paginat),
|
|
89
90
|
loading: vue.unref(loading),
|
|
90
91
|
options: props.options,
|
|
@@ -104,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
104
105
|
};
|
|
105
106
|
})
|
|
106
107
|
]), 1040, ["height", "class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])),
|
|
107
|
-
vue.unref(tableConfig).paginat
|
|
108
|
+
((_d = vue.unref(tableConfig).paginat) == null ? void 0 : _d.is) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Paging), vue.mergeProps({ key: 2 }, vue.unref(pagconfig), {
|
|
108
109
|
class: vue.unref(cs).z("paginat"),
|
|
109
110
|
paginat: vue.unref(paginat),
|
|
110
111
|
total: vue.unref(data).total,
|
|
@@ -43,6 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
empty
|
|
44
44
|
});
|
|
45
45
|
return (_ctx, _cache) => {
|
|
46
|
+
var _a, _b, _c, _d;
|
|
46
47
|
return openBlock(), createElementBlock("div", {
|
|
47
48
|
class: normalizeClass(unref(cs).z()),
|
|
48
49
|
style: normalizeStyle(unref(cs).vdo({ height: unref(height) }))
|
|
@@ -52,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
53
|
ref_key: "refTable",
|
|
53
54
|
ref: refTable,
|
|
54
55
|
class: [unref(cs).z("main")],
|
|
55
|
-
size: unref(tableConfig).config
|
|
56
|
+
size: (_a = unref(tableConfig).config) == null ? void 0 : _a.size,
|
|
56
57
|
value: unref(data).list,
|
|
57
58
|
list: unref(tableList),
|
|
58
59
|
paginat: unref(paginat),
|
|
@@ -78,11 +79,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
79
|
ref: refTable,
|
|
79
80
|
class: [
|
|
80
81
|
unref(cs).z("main"),
|
|
81
|
-
unref(cs).is("radio", unref(tableConfig).config
|
|
82
|
+
unref(cs).is("radio", (_b = unref(tableConfig).config) == null ? void 0 : _b.isradio)
|
|
82
83
|
],
|
|
83
84
|
value: unref(data).list,
|
|
84
85
|
list: unref(tableList),
|
|
85
|
-
size: unref(tableConfig).config
|
|
86
|
+
size: (_c = unref(tableConfig).config) == null ? void 0 : _c.size,
|
|
86
87
|
paginat: unref(paginat),
|
|
87
88
|
loading: unref(loading),
|
|
88
89
|
options: props.options,
|
|
@@ -102,7 +103,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
103
|
};
|
|
103
104
|
})
|
|
104
105
|
]), 1040, ["height", "class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])),
|
|
105
|
-
unref(tableConfig).paginat
|
|
106
|
+
((_d = unref(tableConfig).paginat) == null ? void 0 : _d.is) ? (openBlock(), createBlock(unref(Paging), mergeProps({ key: 2 }, unref(pagconfig), {
|
|
106
107
|
class: unref(cs).z("paginat"),
|
|
107
108
|
paginat: unref(paginat),
|
|
108
109
|
total: unref(data).total,
|
|
@@ -7,7 +7,7 @@ const colgroup = require("vxe-table/es/colgroup");
|
|
|
7
7
|
const column = require("./column.cjs");
|
|
8
8
|
function getLists(arrs, emit, props, slots, listobj) {
|
|
9
9
|
let arr = [];
|
|
10
|
-
arrs
|
|
10
|
+
arrs == null ? void 0 : arrs.forEach((obj, index) => {
|
|
11
11
|
if (listobj) {
|
|
12
12
|
obj.father = obj.father ?? {
|
|
13
13
|
...listobj,
|
|
@@ -5,7 +5,7 @@ import { VxeColgroup } from "vxe-table/es/colgroup";
|
|
|
5
5
|
import { setHeader, setProps, columnRender } from "./column.js";
|
|
6
6
|
function getLists(arrs, emit, props, slots, listobj) {
|
|
7
7
|
let arr = [];
|
|
8
|
-
arrs
|
|
8
|
+
arrs == null ? void 0 : arrs.forEach((obj, index) => {
|
|
9
9
|
if (listobj) {
|
|
10
10
|
obj.father = obj.father ?? {
|
|
11
11
|
...listobj,
|
|
@@ -57,9 +57,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
57
57
|
return sizeMap[props.size] || "";
|
|
58
58
|
});
|
|
59
59
|
const tableDefaultSort = vue.computed(() => {
|
|
60
|
+
var _a, _b;
|
|
60
61
|
return {
|
|
61
|
-
prop: props.defaultSort
|
|
62
|
-
order: orderMap[props.defaultSort
|
|
62
|
+
prop: (_a = props.defaultSort) == null ? void 0 : _a.prop,
|
|
63
|
+
order: orderMap[(_b = props.defaultSort) == null ? void 0 : _b.order] || ""
|
|
63
64
|
};
|
|
64
65
|
});
|
|
65
66
|
const setHover = () => {
|
|
@@ -55,9 +55,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
return sizeMap[props.size] || "";
|
|
56
56
|
});
|
|
57
57
|
const tableDefaultSort = computed(() => {
|
|
58
|
+
var _a, _b;
|
|
58
59
|
return {
|
|
59
|
-
prop: props.defaultSort
|
|
60
|
-
order: orderMap[props.defaultSort
|
|
60
|
+
prop: (_a = props.defaultSort) == null ? void 0 : _a.prop,
|
|
61
|
+
order: orderMap[(_b = props.defaultSort) == null ? void 0 : _b.order] || ""
|
|
61
62
|
};
|
|
62
63
|
});
|
|
63
64
|
const setHover = () => {
|
|
@@ -42,6 +42,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
42
|
empty
|
|
43
43
|
});
|
|
44
44
|
return (_ctx, _cache) => {
|
|
45
|
+
var _a, _b;
|
|
45
46
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
46
47
|
class: vue.normalizeClass(vue.unref(cs).z()),
|
|
47
48
|
style: vue.normalizeStyle(vue.unref(cs).vdo({ height: vue.unref(height) }))
|
|
@@ -51,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
51
52
|
ref_key: "refTable",
|
|
52
53
|
ref: refTable,
|
|
53
54
|
class: [vue.unref(cs).z("main")],
|
|
54
|
-
size: vue.unref(tableConfig).config
|
|
55
|
+
size: (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.size,
|
|
55
56
|
value: vue.unref(data).list,
|
|
56
57
|
list: vue.unref(tableList),
|
|
57
58
|
paginat: vue.unref(paginat),
|
|
@@ -72,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
72
73
|
};
|
|
73
74
|
})
|
|
74
75
|
]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"]),
|
|
75
|
-
vue.unref(tableConfig).paginat
|
|
76
|
+
((_b = vue.unref(tableConfig).paginat) == null ? void 0 : _b.is) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
|
|
76
77
|
class: vue.unref(cs).z("paginat"),
|
|
77
78
|
paginat: vue.unref(paginat),
|
|
78
79
|
total: vue.unref(data).total,
|
|
@@ -40,6 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
empty
|
|
41
41
|
});
|
|
42
42
|
return (_ctx, _cache) => {
|
|
43
|
+
var _a, _b;
|
|
43
44
|
return openBlock(), createElementBlock("div", {
|
|
44
45
|
class: normalizeClass(unref(cs).z()),
|
|
45
46
|
style: normalizeStyle(unref(cs).vdo({ height: unref(height) }))
|
|
@@ -49,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
50
|
ref_key: "refTable",
|
|
50
51
|
ref: refTable,
|
|
51
52
|
class: [unref(cs).z("main")],
|
|
52
|
-
size: unref(tableConfig).config
|
|
53
|
+
size: (_a = unref(tableConfig).config) == null ? void 0 : _a.size,
|
|
53
54
|
value: unref(data).list,
|
|
54
55
|
list: unref(tableList),
|
|
55
56
|
paginat: unref(paginat),
|
|
@@ -70,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
71
|
};
|
|
71
72
|
})
|
|
72
73
|
]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"]),
|
|
73
|
-
unref(tableConfig).paginat
|
|
74
|
+
((_b = unref(tableConfig).paginat) == null ? void 0 : _b.is) ? (openBlock(), createBlock(unref(Paging), mergeProps({ key: 0 }, unref(pagconfig), {
|
|
74
75
|
class: unref(cs).z("paginat"),
|
|
75
76
|
paginat: unref(paginat),
|
|
76
77
|
total: unref(data).total,
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
.iframe {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
package/dist/css/index.css
CHANGED
|
@@ -409,6 +409,7 @@ const types = [
|
|
|
409
409
|
"bottomLeft"
|
|
410
410
|
];
|
|
411
411
|
function getAdjustObj(el, key, param) {
|
|
412
|
+
var _a;
|
|
412
413
|
key = lineToSmallHump.lineToSmallHump(key);
|
|
413
414
|
let obj = {
|
|
414
415
|
key,
|
|
@@ -420,7 +421,7 @@ function getAdjustObj(el, key, param) {
|
|
|
420
421
|
if (typeof param.adjoin == "boolean") {
|
|
421
422
|
obj.adjoin = getAdjoin(el, key);
|
|
422
423
|
} else if (typeof param.adjoin == "string") {
|
|
423
|
-
obj.adjoin = el.parentElement
|
|
424
|
+
obj.adjoin = (_a = el.parentElement) == null ? void 0 : _a.querySelector(param.adjoin);
|
|
424
425
|
} else {
|
|
425
426
|
obj.adjoin = param.adjoin;
|
|
426
427
|
}
|
|
@@ -407,6 +407,7 @@ const types = [
|
|
|
407
407
|
"bottomLeft"
|
|
408
408
|
];
|
|
409
409
|
function getAdjustObj(el, key, param) {
|
|
410
|
+
var _a;
|
|
410
411
|
key = lineToSmallHump(key);
|
|
411
412
|
let obj = {
|
|
412
413
|
key,
|
|
@@ -418,7 +419,7 @@ function getAdjustObj(el, key, param) {
|
|
|
418
419
|
if (typeof param.adjoin == "boolean") {
|
|
419
420
|
obj.adjoin = getAdjoin(el, key);
|
|
420
421
|
} else if (typeof param.adjoin == "string") {
|
|
421
|
-
obj.adjoin = el.parentElement
|
|
422
|
+
obj.adjoin = (_a = el.parentElement) == null ? void 0 : _a.querySelector(param.adjoin);
|
|
422
423
|
} else {
|
|
423
424
|
obj.adjoin = param.adjoin;
|
|
424
425
|
}
|
|
@@ -72,6 +72,7 @@ var config_default = {
|
|
|
72
72
|
"icon",
|
|
73
73
|
"icon-picker",
|
|
74
74
|
"iframe",
|
|
75
|
+
"keep-com",
|
|
75
76
|
"lists",
|
|
76
77
|
"menus",
|
|
77
78
|
"page",
|
|
@@ -124,6 +125,8 @@ var config_default = {
|
|
|
124
125
|
],
|
|
125
126
|
"sideEffects": [
|
|
126
127
|
"global-config",
|
|
128
|
+
"iframe",
|
|
129
|
+
"keep-com",
|
|
127
130
|
"lists",
|
|
128
131
|
"menus",
|
|
129
132
|
"page",
|
|
@@ -72,6 +72,7 @@ var config_default = {
|
|
|
72
72
|
"icon",
|
|
73
73
|
"icon-picker",
|
|
74
74
|
"iframe",
|
|
75
|
+
"keep-com",
|
|
75
76
|
"lists",
|
|
76
77
|
"menus",
|
|
77
78
|
"page",
|
|
@@ -124,6 +125,8 @@ var config_default = {
|
|
|
124
125
|
],
|
|
125
126
|
"sideEffects": [
|
|
126
127
|
"global-config",
|
|
128
|
+
"iframe",
|
|
129
|
+
"keep-com",
|
|
127
130
|
"lists",
|
|
128
131
|
"menus",
|
|
129
132
|
"page",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLSKJOV4Kcjs = require('./chunk-LSKJOV4K.cjs');
|
|
4
4
|
|
|
5
5
|
// expand/components.ts
|
|
6
6
|
var _humpToLine = require('@fangzhongya/utils/name/humpToLine');
|
|
@@ -29,11 +29,11 @@ function namefilter(c, name) {
|
|
|
29
29
|
function getFrom(mc, type, conf) {
|
|
30
30
|
const filename = mc.replace(new RegExp("^" + config.prefix + "-"), "");
|
|
31
31
|
if (type == 1) {
|
|
32
|
-
if (
|
|
32
|
+
if (_chunkLSKJOV4Kcjs.config_default.components.includes(filename)) {
|
|
33
33
|
const name = _lineToLargeHump.lineToLargeHump.call(void 0, mc);
|
|
34
34
|
const from = `${config.name}/components/${filename}/index`;
|
|
35
35
|
let sideEffects;
|
|
36
|
-
if (
|
|
36
|
+
if (_chunkLSKJOV4Kcjs.config_default.sideEffects.includes(filename)) {
|
|
37
37
|
if (conf.css) {
|
|
38
38
|
sideEffects = `${config.name}/components/${filename}/style/index2/.scss`;
|
|
39
39
|
} else {
|
|
@@ -49,14 +49,14 @@ function getFrom(mc, type, conf) {
|
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
51
|
} else {
|
|
52
|
-
if (
|
|
52
|
+
if (_chunkLSKJOV4Kcjs.config_default.directives.includes(filename)) {
|
|
53
53
|
const name = "default";
|
|
54
54
|
const from = `${config.name}/directives/${filename}/index`;
|
|
55
55
|
return {
|
|
56
56
|
name,
|
|
57
57
|
from
|
|
58
58
|
};
|
|
59
|
-
} else if (
|
|
59
|
+
} else if (_chunkLSKJOV4Kcjs.config_default.directives.includes("v-" + filename)) {
|
|
60
60
|
const name = "default";
|
|
61
61
|
const from = `${config.name}/directives/${"v-" + filename}/index`;
|
|
62
62
|
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 _chunkLSKJOV4Kcjs = require('./chunk-LSKJOV4K.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = _chunkLSKJOV4Kcjs.config_default;
|
package/dist/expand/config.js
CHANGED
|
@@ -8,7 +8,10 @@ const { GlobalConfig } = enums.SymbolKey;
|
|
|
8
8
|
function useGlobalConfig(key, defaultValue) {
|
|
9
9
|
const config = vue.getCurrentInstance() ? vue.inject(getOnlyKey.getOnlyKey(GlobalConfig), globalConfig) : globalConfig;
|
|
10
10
|
if (key) {
|
|
11
|
-
return vue.computed(() =>
|
|
11
|
+
return vue.computed(() => {
|
|
12
|
+
var _a;
|
|
13
|
+
return ((_a = config.value) == null ? void 0 : _a[key]) ?? defaultValue;
|
|
14
|
+
});
|
|
12
15
|
} else {
|
|
13
16
|
return config;
|
|
14
17
|
}
|
|
@@ -31,10 +34,10 @@ function setGlobalConfig(obj, key) {
|
|
|
31
34
|
function provideGlobalConfig(config, app, global = false) {
|
|
32
35
|
const inSetup = !!vue.getCurrentInstance();
|
|
33
36
|
const oldConfig = inSetup ? useGlobalConfig() : void 0;
|
|
34
|
-
const provideFn = app
|
|
37
|
+
const provideFn = (app == null ? void 0 : app.provide) ?? (inSetup ? vue.provide : void 0);
|
|
35
38
|
const context = vue.computed(() => {
|
|
36
39
|
const cfg = vue.unref(config);
|
|
37
|
-
if (!oldConfig
|
|
40
|
+
if (!(oldConfig == null ? void 0 : oldConfig.value)) return cfg;
|
|
38
41
|
return mergeConfig(oldConfig.value, cfg);
|
|
39
42
|
});
|
|
40
43
|
if (provideFn) {
|
|
@@ -6,7 +6,10 @@ const { GlobalConfig } = SymbolKey;
|
|
|
6
6
|
function useGlobalConfig(key, defaultValue) {
|
|
7
7
|
const config = getCurrentInstance() ? inject(getOnlyKey(GlobalConfig), globalConfig) : globalConfig;
|
|
8
8
|
if (key) {
|
|
9
|
-
return computed(() =>
|
|
9
|
+
return computed(() => {
|
|
10
|
+
var _a;
|
|
11
|
+
return ((_a = config.value) == null ? void 0 : _a[key]) ?? defaultValue;
|
|
12
|
+
});
|
|
10
13
|
} else {
|
|
11
14
|
return config;
|
|
12
15
|
}
|
|
@@ -29,10 +32,10 @@ function setGlobalConfig(obj, key) {
|
|
|
29
32
|
function provideGlobalConfig(config, app, global = false) {
|
|
30
33
|
const inSetup = !!getCurrentInstance();
|
|
31
34
|
const oldConfig = inSetup ? useGlobalConfig() : void 0;
|
|
32
|
-
const provideFn = app
|
|
35
|
+
const provideFn = (app == null ? void 0 : app.provide) ?? (inSetup ? provide : void 0);
|
|
33
36
|
const context = computed(() => {
|
|
34
37
|
const cfg = unref(config);
|
|
35
|
-
if (!oldConfig
|
|
38
|
+
if (!(oldConfig == null ? void 0 : oldConfig.value)) return cfg;
|
|
36
39
|
return mergeConfig(oldConfig.value, cfg);
|
|
37
40
|
});
|
|
38
41
|
if (provideFn) {
|
package/dist/icons/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--icon-svg-bar: url("data:image/svg+xml;utf8,%3Csvg id='icon-bar' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' %3E %3Cpath fill='currentColor' d='M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z' %3E%3C/path%3E %3C/svg%3E");
|
|
3
3
|
--icon-svg-below: url("data:image/svg+xml;utf8,%3Csvg id='icon-below' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z' %3E%3C/path%3E %3C/svg%3E");
|
|
4
|
-
--icon-svg-bicycle: url("data:image/svg+xml;utf8,%3Csvg id='icon-bicycle' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z'/%3E%3Cpath fill='currentColor' d='M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z'/%3E%3Cpath fill='currentColor' d='M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z'/%3E%3Cpath fill='currentColor' d='M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z'/%3E%3Cpath fill='currentColor' d='m373.376 599.808-42.752-47.616 320-288 42.752 47.616z'/%3E%3C/svg%3E");
|
|
5
4
|
--icon-svg-bottom-left: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom-left' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z'/%3E%3Cpath fill='currentColor' d='M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z'/%3E%3C/svg%3E");
|
|
5
|
+
--icon-svg-bicycle: url("data:image/svg+xml;utf8,%3Csvg id='icon-bicycle' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z'/%3E%3Cpath fill='currentColor' d='M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z'/%3E%3Cpath fill='currentColor' d='M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z'/%3E%3Cpath fill='currentColor' d='M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z'/%3E%3Cpath fill='currentColor' d='m373.376 599.808-42.752-47.616 320-288 42.752 47.616z'/%3E%3C/svg%3E");
|
|
6
6
|
--icon-svg-bottom-right: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom-right' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z'/%3E%3Cpath fill='currentColor' d='M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z'/%3E%3C/svg%3E");
|
|
7
7
|
--icon-svg-bottom: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z'/%3E%3C/svg%3E");
|
|
8
8
|
--icon-svg-clear: url("data:image/svg+xml;utf8,%3Csvg id='icon-clear' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z' %3E%3C/path%3E %3Cpath fill='currentColor' d='M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z' %3E%3C/path%3E %3C/svg%3E");
|
|
@@ -33,22 +33,22 @@
|
|
|
33
33
|
mask-size: 100% 100%;
|
|
34
34
|
color: inherit;
|
|
35
35
|
}
|
|
36
|
-
.icon-
|
|
36
|
+
.icon-bottom-left {
|
|
37
37
|
height: 1em;
|
|
38
38
|
width: 1em;
|
|
39
39
|
background-color: currentColor;
|
|
40
|
-
-webkit-mask: var(--icon-svg-
|
|
41
|
-
mask: var(--icon-svg-
|
|
40
|
+
-webkit-mask: var(--icon-svg-bottom-left) no-repeat;
|
|
41
|
+
mask: var(--icon-svg-bottom-left) no-repeat;
|
|
42
42
|
-webkit-mask-size: 100% 100%;
|
|
43
43
|
mask-size: 100% 100%;
|
|
44
44
|
color: inherit;
|
|
45
45
|
}
|
|
46
|
-
.icon-
|
|
46
|
+
.icon-bicycle {
|
|
47
47
|
height: 1em;
|
|
48
48
|
width: 1em;
|
|
49
49
|
background-color: currentColor;
|
|
50
|
-
-webkit-mask: var(--icon-svg-
|
|
51
|
-
mask: var(--icon-svg-
|
|
50
|
+
-webkit-mask: var(--icon-svg-bicycle) no-repeat;
|
|
51
|
+
mask: var(--icon-svg-bicycle) no-repeat;
|
|
52
52
|
-webkit-mask-size: 100% 100%;
|
|
53
53
|
mask-size: 100% 100%;
|
|
54
54
|
color: inherit;
|
package/dist/icons/index.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"prefix": "fang-ui",
|
|
3
3
|
"info": {},
|
|
4
|
-
"lastModified":
|
|
4
|
+
"lastModified": 1756175063574,
|
|
5
5
|
"icons": {
|
|
6
6
|
"bar": {
|
|
7
7
|
"body": " <path fill=\"currentColor\" d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\" ></path> "
|
|
8
8
|
},
|
|
9
|
-
"
|
|
10
|
-
"body": "<path fill=\"currentColor\" d=\"M256
|
|
9
|
+
"bottom-left": {
|
|
10
|
+
"body": "<path fill=\"currentColor\" d=\"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z\"/><path fill=\"currentColor\" d=\"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z\"/>"
|
|
11
11
|
},
|
|
12
12
|
"bottom-right": {
|
|
13
13
|
"body": "<path fill=\"currentColor\" d=\"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z\"/><path fill=\"currentColor\" d=\"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z\"/>"
|