@fangzhongya/fang-ui 0.1.37 → 0.1.38
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/common/use.cjs +4 -2
- package/dist/components/common/use.js +4 -2
- package/dist/components/dates2/src/data.cjs +1 -1
- package/dist/components/dates2/src/data.d.ts +1 -1
- package/dist/components/dates2/src/data.js +1 -1
- package/dist/components/forms/src/setup.cjs +8 -23
- package/dist/components/forms/src/setup.d.ts +1 -1
- package/dist/components/forms/src/setup.js +11 -26
- package/dist/components/forms/src/util.cjs +85 -17
- package/dist/components/forms/src/util.d.ts +2 -1
- package/dist/components/forms/src/util.js +87 -19
- package/dist/components/list/index.css +1 -1
- package/dist/components/list/index.scss +1 -1
- package/dist/components/list/src/data.cjs +3 -0
- package/dist/components/list/src/data.d.ts +3 -0
- package/dist/components/list/src/data.js +3 -0
- package/dist/components/list/src/index2.cjs +18 -13
- package/dist/components/list/src/index2.js +16 -11
- package/dist/components/list/src/util.cjs +12 -2
- package/dist/components/list/src/util.d.ts +1 -0
- package/dist/components/list/src/util.js +12 -2
- package/dist/components/list/style/index2.scss +1 -0
- package/dist/components/lists/index.css +1 -1
- package/dist/components/lists/src/data.d.ts +3 -3
- package/dist/components/lists/src/index2.cjs +9 -9
- package/dist/components/lists/src/index2.js +9 -9
- package/dist/components/listsp/index.css +1 -1
- package/dist/components/listspd/index.css +1 -1
- package/dist/components/no-data/src/data.cjs +2 -2
- package/dist/components/no-data/src/data.d.ts +2 -2
- package/dist/components/no-data/src/data.js +2 -2
- package/dist/components/no-data/src/index2.cjs +2 -2
- package/dist/components/no-data/src/index2.js +2 -2
- package/dist/components/page/index.css +1 -1
- package/dist/components/tables/common/com-but.cjs +4 -0
- package/dist/components/tables/common/com-but.js +4 -0
- package/dist/components/tables/common/{table-but2.cjs → com-but2.cjs} +17 -13
- package/dist/components/tables/common/{table-but2.js → com-but2.js} +14 -10
- package/dist/components/tables/common/com-color.cjs +4 -0
- package/dist/components/tables/common/com-color.js +4 -0
- package/dist/components/tables/common/{table-color2.cjs → com-color2.cjs} +21 -8
- package/dist/components/tables/common/{table-color2.js → com-color2.js} +23 -10
- package/dist/components/tables/common/com-fig.cjs +4 -0
- package/dist/components/tables/common/com-fig.js +4 -0
- package/dist/components/tables/common/com-fig2.cjs +92 -0
- package/dist/components/tables/common/com-fig2.js +92 -0
- package/dist/components/tables/common/com-lis.cjs +4 -0
- package/dist/components/tables/common/com-lis.js +4 -0
- package/dist/components/tables/common/com-lis2.cjs +151 -0
- package/dist/components/tables/common/com-lis2.js +151 -0
- package/dist/components/tables/common/pagin.d.ts +14 -6
- package/dist/components/tables/common/util.cjs +12 -0
- package/dist/components/tables/common/util.d.ts +1 -0
- package/dist/components/tables/common/util.js +12 -0
- package/dist/components/tables/src/column.cjs +5 -2
- package/dist/components/tables/src/column.js +6 -3
- package/dist/components/tables/src/columns2.cjs +9 -7
- package/dist/components/tables/src/columns2.js +9 -7
- package/dist/components/tables/src/data.d.ts +3 -3
- package/dist/components/tables/style/index2.scss +1 -0
- package/dist/components/tablesv/src/column.cjs +5 -2
- package/dist/components/tablesv/src/column.js +6 -3
- package/dist/components/tablesv/src/columns2.cjs +9 -7
- package/dist/components/tablesv/src/columns2.js +9 -7
- package/dist/components/tablesv/src/data.d.ts +3 -3
- package/dist/components/window/src/data.cjs +1 -1
- package/dist/components/window/src/data.d.ts +1 -1
- package/dist/components/window/src/data.js +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/list.css +1 -1
- package/dist/css/lists.css +1 -1
- package/dist/css/listsp.css +1 -1
- package/dist/css/listspd.css +1 -1
- package/dist/css/page.css +1 -1
- package/dist/icons/index.json +1 -1
- package/dist/index.css +1 -1
- package/dist/type.d.ts +12 -3
- package/package.json +2 -2
- package/dist/components/tables/common/img.cjs +0 -4
- package/dist/components/tables/common/img.js +0 -4
- package/dist/components/tables/common/img2.cjs +0 -37
- package/dist/components/tables/common/img2.js +0 -37
- package/dist/components/tables/common/table-but.cjs +0 -4
- package/dist/components/tables/common/table-but.js +0 -4
- package/dist/components/tables/common/table-color.cjs +0 -4
- package/dist/components/tables/common/table-color.js +0 -4
- package/dist/components/tables/common/table-list.cjs +0 -4
- package/dist/components/tables/common/table-list.js +0 -4
- package/dist/components/tables/common/table-list2.cjs +0 -125
- package/dist/components/tables/common/table-list2.js +0 -125
- /package/dist/components/{global-config → keep-com}/index.css +0 -0
- /package/dist/css/{global-config.css → keep-com.css} +0 -0
|
@@ -110,7 +110,19 @@ function eventAliass(callback, arr, obj, $event) {
|
|
|
110
110
|
}
|
|
111
111
|
return is;
|
|
112
112
|
}
|
|
113
|
+
function setEmptyDisplay(value, emptyDisplay, isStr) {
|
|
114
|
+
if (isStr) {
|
|
115
|
+
if (value === "" || value === void 0 || value === null) {
|
|
116
|
+
return emptyDisplay;
|
|
117
|
+
}
|
|
118
|
+
} else {
|
|
119
|
+
if (value === void 0 || value === null) {
|
|
120
|
+
return emptyDisplay;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
113
124
|
export {
|
|
114
125
|
eventAliass,
|
|
126
|
+
setEmptyDisplay,
|
|
115
127
|
setMinWidth
|
|
116
128
|
};
|
|
@@ -55,7 +55,7 @@ function setSslot(obj, scope, emit, slots, props, index$12) {
|
|
|
55
55
|
index.useComponsGet(config.provides.compons),
|
|
56
56
|
emit,
|
|
57
57
|
index$12,
|
|
58
|
-
scope
|
|
58
|
+
{ ...scope, options: props.options, config: props.table }
|
|
59
59
|
);
|
|
60
60
|
if (column) {
|
|
61
61
|
return column;
|
|
@@ -91,9 +91,12 @@ function defaultDom(obj, scope, props, index2) {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
domValue
|
|
94
|
+
setDomValue(domValue, table)
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
|
+
function setDomValue(domValue, table) {
|
|
98
|
+
return (util.setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
|
|
99
|
+
}
|
|
97
100
|
function setHeader(obj, scope, slots, emit, props, index$12) {
|
|
98
101
|
const optionss = props.options || {};
|
|
99
102
|
return use.useGetDomLabel(
|
|
@@ -3,7 +3,7 @@ import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel } from "../../
|
|
|
3
3
|
import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
|
|
4
4
|
import { useComponsGet } from "../../../hooks/compons/index.js";
|
|
5
5
|
import { provides } from "../common/config.js";
|
|
6
|
-
import { setMinWidth } from "../common/util.js";
|
|
6
|
+
import { setEmptyDisplay, setMinWidth } from "../common/util.js";
|
|
7
7
|
import { lineToSmallHump } from "@fangzhongya/utils/name/lineToSmallHump";
|
|
8
8
|
import { TableColumn } from "../../table-column/index.js";
|
|
9
9
|
const noProps = /* @__PURE__ */ new Set(["children", "class", "minWidth", "label"]);
|
|
@@ -53,7 +53,7 @@ function setSslot(obj, scope, emit, slots, props, index) {
|
|
|
53
53
|
useComponsGet(provides.compons),
|
|
54
54
|
emit,
|
|
55
55
|
index,
|
|
56
|
-
scope
|
|
56
|
+
{ ...scope, options: props.options, config: props.table }
|
|
57
57
|
);
|
|
58
58
|
if (column) {
|
|
59
59
|
return column;
|
|
@@ -89,9 +89,12 @@ function defaultDom(obj, scope, props, index) {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
-
domValue
|
|
92
|
+
setDomValue(domValue, table)
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
|
+
function setDomValue(domValue, table) {
|
|
96
|
+
return (setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
|
|
97
|
+
}
|
|
95
98
|
function setHeader(obj, scope, slots, emit, props, index) {
|
|
96
99
|
const optionss = props.options || {};
|
|
97
100
|
return useGetDomLabel(
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const columns = require("./columns3.cjs");
|
|
5
|
-
require("../common/
|
|
6
|
-
require("../common/
|
|
7
|
-
require("../common/
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
5
|
+
require("../common/com-but.cjs");
|
|
6
|
+
require("../common/com-color.cjs");
|
|
7
|
+
require("../common/com-lis.cjs");
|
|
8
|
+
require("../common/com-fig.cjs");
|
|
9
|
+
const comFig_vue_vue_type_script_setup_true_lang = require("../common/com-fig2.cjs");
|
|
10
|
+
const comLis_vue_vue_type_script_setup_true_lang = require("../common/com-lis2.cjs");
|
|
11
|
+
const comColor_vue_vue_type_script_setup_true_lang = require("../common/com-color2.cjs");
|
|
12
|
+
const comBut_vue_vue_type_script_setup_true_lang = require("../common/com-but2.cjs");
|
|
11
13
|
const _sfc_main = vue.defineComponent({
|
|
12
14
|
emits: ["list-events"],
|
|
13
|
-
components: { But:
|
|
15
|
+
components: { But: comBut_vue_vue_type_script_setup_true_lang.default, Color: comColor_vue_vue_type_script_setup_true_lang.default, Lis: comLis_vue_vue_type_script_setup_true_lang.default, Fig: comFig_vue_vue_type_script_setup_true_lang.default },
|
|
14
16
|
expose: [],
|
|
15
17
|
props: {
|
|
16
18
|
list: Array,
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { defineComponent } from "vue";
|
|
2
2
|
import { render } from "./columns3.js";
|
|
3
|
-
import "../common/
|
|
4
|
-
import "../common/
|
|
5
|
-
import "../common/
|
|
6
|
-
import
|
|
7
|
-
import _sfc_main$
|
|
8
|
-
import _sfc_main$
|
|
3
|
+
import "../common/com-but.js";
|
|
4
|
+
import "../common/com-color.js";
|
|
5
|
+
import "../common/com-lis.js";
|
|
6
|
+
import "../common/com-fig.js";
|
|
7
|
+
import _sfc_main$1 from "../common/com-fig2.js";
|
|
8
|
+
import _sfc_main$2 from "../common/com-lis2.js";
|
|
9
|
+
import _sfc_main$3 from "../common/com-color2.js";
|
|
10
|
+
import _sfc_main$4 from "../common/com-but2.js";
|
|
9
11
|
const _sfc_main = defineComponent({
|
|
10
12
|
emits: ["list-events"],
|
|
11
|
-
components: { But: _sfc_main$
|
|
13
|
+
components: { But: _sfc_main$4, Color: _sfc_main$3, Lis: _sfc_main$2, Fig: _sfc_main$1 },
|
|
12
14
|
expose: [],
|
|
13
15
|
props: {
|
|
14
16
|
list: Array,
|
|
@@ -166,10 +166,10 @@ export declare const dataEmits: string[];
|
|
|
166
166
|
export type DataEmits = typeof dataEmits;
|
|
167
167
|
/**
|
|
168
168
|
* @expose clearSelection ( ) 清除多选
|
|
169
|
-
* @expose
|
|
170
|
-
* @expose
|
|
169
|
+
* @expose toggleRowSelection (row, selected, key ) 切换选择
|
|
170
|
+
* @expose clearCurrentRow ( ) 清空选中
|
|
171
171
|
* @expose { Object: { value: 值,
|
|
172
172
|
list: 当前列,
|
|
173
|
-
key: key的名称,} }
|
|
173
|
+
key: key的名称,} } getSelections (row, key ) 获取选中的值
|
|
174
174
|
*/
|
|
175
175
|
export declare const dataExpose: {};
|
|
@@ -86,7 +86,7 @@ function setSslot(obj, scope, emit, slots, props, index$12) {
|
|
|
86
86
|
index.useComponsGet(config.provides.compons),
|
|
87
87
|
emit,
|
|
88
88
|
index$12,
|
|
89
|
-
scope
|
|
89
|
+
{ ...scope, options: props.options, config: props.table }
|
|
90
90
|
);
|
|
91
91
|
if (column2) {
|
|
92
92
|
return column2;
|
|
@@ -122,9 +122,12 @@ function defaultDom(obj, scope, props, index2) {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
|
-
domValue
|
|
125
|
+
setDomValue(domValue, table)
|
|
126
126
|
);
|
|
127
127
|
}
|
|
128
|
+
function setDomValue(domValue, table) {
|
|
129
|
+
return (util.setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
|
|
130
|
+
}
|
|
128
131
|
function setHeader(obj, scope, slots, emit, props, index$12) {
|
|
129
132
|
const optionss = props.options || {};
|
|
130
133
|
return use.useGetDomLabel(
|
|
@@ -3,7 +3,7 @@ import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel } from "../../
|
|
|
3
3
|
import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
|
|
4
4
|
import { useComponsGet } from "../../../hooks/compons/index.js";
|
|
5
5
|
import { provides } from "../../tables/common/config.js";
|
|
6
|
-
import { setMinWidth } from "../../tables/common/util.js";
|
|
6
|
+
import { setEmptyDisplay, setMinWidth } from "../../tables/common/util.js";
|
|
7
7
|
import { lineToSmallHump } from "@fangzhongya/utils/name/lineToSmallHump";
|
|
8
8
|
import { VxeColumn } from "vxe-table/es/column";
|
|
9
9
|
import { Radio } from "../../radio/index.js";
|
|
@@ -84,7 +84,7 @@ function setSslot(obj, scope, emit, slots, props, index) {
|
|
|
84
84
|
useComponsGet(provides.compons),
|
|
85
85
|
emit,
|
|
86
86
|
index,
|
|
87
|
-
scope
|
|
87
|
+
{ ...scope, options: props.options, config: props.table }
|
|
88
88
|
);
|
|
89
89
|
if (column) {
|
|
90
90
|
return column;
|
|
@@ -120,9 +120,12 @@ function defaultDom(obj, scope, props, index) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
domValue
|
|
123
|
+
setDomValue(domValue, table)
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
|
+
function setDomValue(domValue, table) {
|
|
127
|
+
return (setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
|
|
128
|
+
}
|
|
126
129
|
function setHeader(obj, scope, slots, emit, props, index) {
|
|
127
130
|
const optionss = props.options || {};
|
|
128
131
|
return useGetDomLabel(
|
|
@@ -3,15 +3,17 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const columns = require("./columns3.cjs");
|
|
5
5
|
const index = require("../../tooltip/index.cjs");
|
|
6
|
-
require("../../tables/common/
|
|
7
|
-
require("../../tables/common/
|
|
8
|
-
require("../../tables/common/
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
6
|
+
require("../../tables/common/com-but.cjs");
|
|
7
|
+
require("../../tables/common/com-color.cjs");
|
|
8
|
+
require("../../tables/common/com-lis.cjs");
|
|
9
|
+
require("../../tables/common/com-fig.cjs");
|
|
10
|
+
const comFig_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-fig2.cjs");
|
|
11
|
+
const comLis_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-lis2.cjs");
|
|
12
|
+
const comColor_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-color2.cjs");
|
|
13
|
+
const comBut_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-but2.cjs");
|
|
12
14
|
const _sfc_main = vue.defineComponent({
|
|
13
15
|
emits: ["list-events"],
|
|
14
|
-
components: { VxeTooltip: index.Tooltip, But:
|
|
16
|
+
components: { VxeTooltip: index.Tooltip, But: comBut_vue_vue_type_script_setup_true_lang.default, Color: comColor_vue_vue_type_script_setup_true_lang.default, Lis: comLis_vue_vue_type_script_setup_true_lang.default, Fig: comFig_vue_vue_type_script_setup_true_lang.default },
|
|
15
17
|
expose: [],
|
|
16
18
|
props: {
|
|
17
19
|
list: Array,
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { defineComponent } from "vue";
|
|
2
2
|
import { render } from "./columns3.js";
|
|
3
3
|
import { Tooltip } from "../../tooltip/index.js";
|
|
4
|
-
import "../../tables/common/
|
|
5
|
-
import "../../tables/common/
|
|
6
|
-
import "../../tables/common/
|
|
7
|
-
import
|
|
8
|
-
import _sfc_main$
|
|
9
|
-
import _sfc_main$
|
|
4
|
+
import "../../tables/common/com-but.js";
|
|
5
|
+
import "../../tables/common/com-color.js";
|
|
6
|
+
import "../../tables/common/com-lis.js";
|
|
7
|
+
import "../../tables/common/com-fig.js";
|
|
8
|
+
import _sfc_main$1 from "../../tables/common/com-fig2.js";
|
|
9
|
+
import _sfc_main$2 from "../../tables/common/com-lis2.js";
|
|
10
|
+
import _sfc_main$3 from "../../tables/common/com-color2.js";
|
|
11
|
+
import _sfc_main$4 from "../../tables/common/com-but2.js";
|
|
10
12
|
const _sfc_main = defineComponent({
|
|
11
13
|
emits: ["list-events"],
|
|
12
|
-
components: { VxeTooltip: Tooltip, But: _sfc_main$
|
|
14
|
+
components: { VxeTooltip: Tooltip, But: _sfc_main$4, Color: _sfc_main$3, Lis: _sfc_main$2, Fig: _sfc_main$1 },
|
|
13
15
|
expose: [],
|
|
14
16
|
props: {
|
|
15
17
|
list: Array,
|
|
@@ -166,10 +166,10 @@ export declare const dataEmits: string[];
|
|
|
166
166
|
export type DataEmits = typeof dataEmits;
|
|
167
167
|
/**
|
|
168
168
|
* @expose clearSelection ( ) 清除多选
|
|
169
|
-
* @expose
|
|
170
|
-
* @expose
|
|
169
|
+
* @expose toggleRowSelection (row, selected, key ) 切换选择
|
|
170
|
+
* @expose clearCurrentRow ( ) 清空选中
|
|
171
171
|
* @expose { Object: { value: 值,
|
|
172
172
|
list: 当前列,
|
|
173
|
-
key: key的名称,} }
|
|
173
|
+
key: key的名称,} } getSelections (row, key ) 获取选中的值
|
|
174
174
|
*/
|
|
175
175
|
export declare const dataExpose: {};
|
package/dist/css/index.css
CHANGED
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
}
|
|
1132
1132
|
.list-div .list-table .list-table-value {
|
|
1133
1133
|
word-break: break-all;
|
|
1134
|
-
white-space:
|
|
1134
|
+
white-space: pre-wrap;
|
|
1135
1135
|
max-height: var(--list-row-max-height);
|
|
1136
1136
|
display: -webkit-box;
|
|
1137
1137
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/css/list.css
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
|
-
white-space:
|
|
104
|
+
white-space: pre-wrap;
|
|
105
105
|
max-height: var(--list-row-max-height);
|
|
106
106
|
display: -webkit-box;
|
|
107
107
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/css/lists.css
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
|
-
white-space:
|
|
104
|
+
white-space: pre-wrap;
|
|
105
105
|
max-height: var(--list-row-max-height);
|
|
106
106
|
display: -webkit-box;
|
|
107
107
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/css/listsp.css
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
|
-
white-space:
|
|
104
|
+
white-space: pre-wrap;
|
|
105
105
|
max-height: var(--list-row-max-height);
|
|
106
106
|
display: -webkit-box;
|
|
107
107
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/css/listspd.css
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
|
-
white-space:
|
|
104
|
+
white-space: pre-wrap;
|
|
105
105
|
max-height: var(--list-row-max-height);
|
|
106
106
|
display: -webkit-box;
|
|
107
107
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/css/page.css
CHANGED
|
@@ -719,7 +719,7 @@
|
|
|
719
719
|
}
|
|
720
720
|
.list-div .list-table .list-table-value {
|
|
721
721
|
word-break: break-all;
|
|
722
|
-
white-space:
|
|
722
|
+
white-space: pre-wrap;
|
|
723
723
|
max-height: var(--list-row-max-height);
|
|
724
724
|
display: -webkit-box;
|
|
725
725
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/icons/index.json
CHANGED
package/dist/index.css
CHANGED
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
}
|
|
1132
1132
|
.list-div .list-table .list-table-value {
|
|
1133
1133
|
word-break: break-all;
|
|
1134
|
-
white-space:
|
|
1134
|
+
white-space: pre-wrap;
|
|
1135
1135
|
max-height: var(--list-row-max-height);
|
|
1136
1136
|
display: -webkit-box;
|
|
1137
1137
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/type.d.ts
CHANGED
|
@@ -29,19 +29,28 @@ type Rule = {
|
|
|
29
29
|
/**
|
|
30
30
|
* 类型
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
trigger?: string | string[] | number;
|
|
33
33
|
/**
|
|
34
34
|
* 是否必传
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
required?: boolean;
|
|
37
37
|
/**
|
|
38
38
|
* 校验方法
|
|
39
39
|
*/
|
|
40
|
-
judge
|
|
40
|
+
judge?: string | Function;
|
|
41
41
|
/**
|
|
42
42
|
* 校验失败提示
|
|
43
43
|
*/
|
|
44
44
|
error?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 校验联动配置
|
|
47
|
+
*/
|
|
48
|
+
linkage?:
|
|
49
|
+
| string
|
|
50
|
+
| {
|
|
51
|
+
prop?: string;
|
|
52
|
+
judge?: Function;
|
|
53
|
+
};
|
|
45
54
|
};
|
|
46
55
|
|
|
47
56
|
type ListObj = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/fang-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.38",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "fang-ui",
|
|
7
7
|
"keywords": [
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"vxe-table": "4.6.20",
|
|
53
53
|
"@fang-ui/components": "0.0.1-0",
|
|
54
54
|
"@fang-ui/directives": "0.0.1-0",
|
|
55
|
-
"@fang-ui/icons": "0.0.1-0",
|
|
56
55
|
"@fang-ui/hooks": "0.0.1-0",
|
|
56
|
+
"@fang-ui/icons": "0.0.1-0",
|
|
57
57
|
"@fang-ui/locale": "0.0.1-0",
|
|
58
58
|
"@fang-ui/theme": "0.0.1-0",
|
|
59
59
|
"@fang-ui/types": "0.0.1-0",
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const index$1 = require("../../image/index.cjs");
|
|
5
|
-
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
|
-
__name: "img",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: String,
|
|
10
|
-
prefix: String
|
|
11
|
-
},
|
|
12
|
-
setup(__props, { expose: __expose }) {
|
|
13
|
-
const cs = index.useCssName("lists-com");
|
|
14
|
-
const props = __props;
|
|
15
|
-
const value = vue.computed(() => {
|
|
16
|
-
if (props.modelValue) {
|
|
17
|
-
return props.prefix + "/" + props.modelValue;
|
|
18
|
-
} else {
|
|
19
|
-
return "";
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
__expose({});
|
|
23
|
-
return (_ctx, _cache) => {
|
|
24
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
25
|
-
class: vue.normalizeClass(vue.unref(cs).z())
|
|
26
|
-
}, [
|
|
27
|
-
vue.createVNode(vue.unref(index$1.Image), {
|
|
28
|
-
fit: "contain",
|
|
29
|
-
class: vue.normalizeClass(vue.unref(cs).z("img")),
|
|
30
|
-
src: value.value,
|
|
31
|
-
"preview-src-list": [value.value]
|
|
32
|
-
}, null, 8, ["class", "src", "preview-src-list"])
|
|
33
|
-
], 2);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
exports.default = _sfc_main;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
2
|
-
import { Image } from "../../image/index.js";
|
|
3
|
-
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "img",
|
|
6
|
-
props: {
|
|
7
|
-
modelValue: String,
|
|
8
|
-
prefix: String
|
|
9
|
-
},
|
|
10
|
-
setup(__props, { expose: __expose }) {
|
|
11
|
-
const cs = useCssName("lists-com");
|
|
12
|
-
const props = __props;
|
|
13
|
-
const value = computed(() => {
|
|
14
|
-
if (props.modelValue) {
|
|
15
|
-
return props.prefix + "/" + props.modelValue;
|
|
16
|
-
} else {
|
|
17
|
-
return "";
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
__expose({});
|
|
21
|
-
return (_ctx, _cache) => {
|
|
22
|
-
return openBlock(), createElementBlock("div", {
|
|
23
|
-
class: normalizeClass(unref(cs).z())
|
|
24
|
-
}, [
|
|
25
|
-
createVNode(unref(Image), {
|
|
26
|
-
fit: "contain",
|
|
27
|
-
class: normalizeClass(unref(cs).z("img")),
|
|
28
|
-
src: value.value,
|
|
29
|
-
"preview-src-list": [value.value]
|
|
30
|
-
}, null, 8, ["class", "src", "preview-src-list"])
|
|
31
|
-
], 2);
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
export {
|
|
36
|
-
_sfc_main as default
|
|
37
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const tableBut_vue_vue_type_script_setup_true_lang = require("./table-but2.cjs");
|
|
4
|
-
exports.default = tableBut_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const tableColor_vue_vue_type_script_setup_true_lang = require("./table-color2.cjs");
|
|
4
|
-
exports.default = tableColor_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const tableList_vue_vue_type_script_setup_true_lang = require("./table-list2.cjs");
|
|
4
|
-
exports.default = tableList_vue_vue_type_script_setup_true_lang.default;
|