@fangzhongya/fang-ui 0.1.27 → 0.1.28
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/index.css +4 -0
- package/dist/components/array/src/index2.cjs +5 -5
- package/dist/components/array/src/index2.js +2 -2
- package/dist/components/audios/index.css +4 -0
- package/dist/components/box/index.css +4 -0
- package/dist/components/box-adjust/index.css +4 -0
- package/dist/components/box-local/index.css +4 -0
- package/dist/components/box-mask/index.css +4 -0
- package/dist/components/box-title/index.css +4 -0
- package/dist/components/buttons/index.css +4 -0
- package/dist/components/cascaders/index.css +4 -0
- package/dist/components/checks/index.css +4 -0
- package/dist/components/common/compons/components.cjs +52 -0
- package/dist/components/common/compons/components.d.ts +27 -0
- package/dist/components/common/compons/components.js +52 -0
- package/dist/components/common/compons/index.scss +23 -0
- package/dist/components/common/compons/index2.scss +23 -0
- package/dist/components/common/use.cjs +29 -3
- package/dist/components/common/use.d.ts +2 -2
- package/dist/components/common/use.js +29 -3
- package/dist/components/dates/index.css +4 -0
- package/dist/components/dates-divide/index.css +4 -0
- package/dist/components/dates-picker/index.css +4 -0
- package/dist/components/dates2/index.css +4 -0
- package/dist/components/dialogs/index.css +4 -0
- package/dist/components/edit/index.css +4 -0
- package/dist/components/edit-float/index.css +4 -0
- package/dist/components/forms/common/config.cjs +11 -1
- package/dist/components/forms/common/config.d.ts +1 -0
- package/dist/components/forms/common/config.js +11 -1
- package/dist/components/forms/index.css +10 -6
- package/dist/components/forms/index.scss +2 -1
- package/dist/components/forms/src/data.cjs +7 -0
- package/dist/components/forms/src/data.d.ts +7 -0
- package/dist/components/forms/src/data.js +7 -0
- package/dist/components/forms/src/setup.cjs +3 -12
- package/dist/components/forms/src/setup.d.ts +1 -1
- package/dist/components/forms/src/setup.js +4 -13
- package/dist/components/forms/style/index2.scss +3 -1
- package/dist/components/forms-div/index.css +4 -0
- package/dist/components/forms-div/src/index2.cjs +4 -4
- package/dist/components/forms-div/src/index2.js +2 -2
- package/dist/components/forms-item/index.css +4 -0
- package/dist/components/forms-item/src/indexts.d.ts +1 -1
- package/dist/components/forms-item/src/label.cjs +15 -28
- package/dist/components/forms-item/src/label.js +16 -29
- package/dist/components/full-screen/index.css +4 -0
- package/dist/components/history/index.css +4 -0
- package/dist/components/icon/index.css +4 -0
- package/dist/components/icon-picker/index.css +4 -0
- package/dist/components/iframe/index.css +4 -0
- package/dist/components/images/index.css +4 -0
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.scss +2 -1
- package/dist/components/index2.scss +2 -1
- package/dist/components/input-array/index.css +4 -0
- package/dist/components/input-history/index.css +4 -0
- package/dist/components/input-num/index.css +4 -0
- package/dist/components/input-select/index.css +4 -0
- package/dist/components/inputs/index.css +4 -0
- package/dist/components/{global-config → keep-com}/index.css +4 -0
- package/dist/components/labels/index.css +4 -0
- package/dist/components/list/index.css +4 -0
- package/dist/components/list/src/data.cjs +6 -0
- package/dist/components/list/src/data.d.ts +6 -0
- package/dist/components/list/src/data.js +6 -0
- package/dist/components/list/src/index2.cjs +6 -6
- package/dist/components/list/src/index2.js +2 -2
- package/dist/components/lists/index.css +4 -0
- package/dist/components/listsp/index.css +4 -0
- package/dist/components/listspd/index.css +4 -0
- package/dist/components/menus/index.css +4 -0
- package/dist/components/no-data/index.css +4 -0
- package/dist/components/page/index.css +10 -6
- package/dist/components/paging/index.css +4 -0
- package/dist/components/popup/index.css +4 -0
- package/dist/components/retract/index.css +4 -0
- package/dist/components/right-key/index.css +4 -0
- package/dist/components/scss/common.scss +4 -0
- package/dist/components/seamless-scroll/index.css +4 -0
- package/dist/components/select-scroll/index.css +4 -0
- package/dist/components/selector/index.css +4 -0
- package/dist/components/selects/index.css +4 -0
- package/dist/components/sliders/index.css +4 -0
- package/dist/components/switchs/index.css +4 -0
- package/dist/components/tables/common/config.cjs +1 -1
- package/dist/components/tables/common/config.js +1 -1
- package/dist/components/tables/common/pagin.cjs +74 -32
- package/dist/components/tables/common/pagin.d.ts +8 -1
- package/dist/components/tables/common/pagin.js +74 -32
- package/dist/components/tables/index.css +4 -0
- package/dist/components/tables/src/column.cjs +22 -20
- package/dist/components/tables/src/column.d.ts +3 -0
- package/dist/components/tables/src/column.js +14 -12
- package/dist/components/tables/src/data.cjs +15 -0
- package/dist/components/tables/src/data.d.ts +13 -0
- package/dist/components/tables/src/data.js +15 -0
- package/dist/components/tables/src/index2.cjs +17 -9
- package/dist/components/tables/src/index2.js +11 -3
- package/dist/components/tablesp/index.css +4 -0
- package/dist/components/tablespd/index.css +4 -0
- package/dist/components/tabless/index.css +4 -0
- package/dist/components/tablesv/index.css +4 -0
- package/dist/components/tablesv/src/column.cjs +116 -112
- package/dist/components/tablesv/src/column.d.ts +3 -1
- package/dist/components/tablesv/src/column.js +110 -106
- package/dist/components/tablesv/src/data.cjs +44 -0
- package/dist/components/tablesv/src/data.d.ts +43 -1
- package/dist/components/tablesv/src/data.js +44 -0
- package/dist/components/tablesv/src/index2.cjs +37 -14
- package/dist/components/tablesv/src/index2.js +36 -13
- package/dist/components/tablesv/style/index2.scss +3 -1
- package/dist/components/tablesvp/index.css +10 -0
- package/dist/components/tablesvp/index.scss +8 -0
- package/dist/components/tablesvp/src/index2.cjs +15 -5
- package/dist/components/tablesvp/src/index2.js +15 -5
- package/dist/components/tablesvpd/index.cjs +9 -0
- package/dist/components/tablesvpd/index.css +157 -0
- package/dist/components/tablesvpd/index.d.ts +4 -0
- package/dist/components/tablesvpd/index.js +9 -0
- package/dist/components/tablesvpd/index.scss +41 -0
- package/dist/components/tablesvpd/src/data.cjs +13 -0
- package/dist/components/tablesvpd/src/data.d.ts +18 -0
- package/dist/components/tablesvpd/src/data.js +13 -0
- package/dist/components/tablesvpd/src/index.cjs +4 -0
- package/dist/components/tablesvpd/src/index.js +4 -0
- package/dist/components/tablesvpd/src/index2.cjs +107 -0
- package/dist/components/tablesvpd/src/index2.js +107 -0
- package/dist/components/tablesvpd/style/index2.scss +4 -0
- package/dist/components/uploads/index.css +4 -0
- package/dist/components/videos/index.css +4 -0
- package/dist/components/window/index.css +4 -0
- package/dist/css/array.css +4 -0
- package/dist/css/audios.css +4 -0
- package/dist/css/box-adjust.css +4 -0
- package/dist/css/box-local.css +4 -0
- package/dist/css/box-mask.css +4 -0
- package/dist/css/box-title.css +4 -0
- package/dist/css/box.css +4 -0
- package/dist/css/buttons.css +4 -0
- package/dist/css/cascaders.css +4 -0
- package/dist/css/checks.css +4 -0
- package/dist/css/dates-divide.css +4 -0
- package/dist/css/dates-picker.css +4 -0
- package/dist/css/dates.css +4 -0
- package/dist/css/dates2.css +4 -0
- package/dist/css/dialogs.css +4 -0
- package/dist/css/edit-float.css +4 -0
- package/dist/css/edit.css +4 -0
- package/dist/css/forms-div.css +4 -0
- package/dist/css/forms-item.css +4 -0
- package/dist/css/forms.css +10 -6
- package/dist/css/full-screen.css +4 -0
- package/dist/css/history.css +4 -0
- package/dist/css/icon-picker.css +4 -0
- package/dist/css/icon.css +4 -0
- package/dist/css/iframe.css +4 -0
- package/dist/css/images.css +4 -0
- package/dist/css/index.css +44 -6
- package/dist/css/input-array.css +4 -0
- package/dist/css/input-history.css +4 -0
- package/dist/css/input-num.css +4 -0
- package/dist/css/input-select.css +4 -0
- package/dist/css/inputs.css +4 -0
- package/dist/css/{global-config.css → keep-com.css} +4 -0
- package/dist/css/labels.css +4 -0
- package/dist/css/list.css +4 -0
- package/dist/css/lists.css +4 -0
- package/dist/css/listsp.css +4 -0
- package/dist/css/listspd.css +4 -0
- package/dist/css/menus.css +4 -0
- package/dist/css/no-data.css +4 -0
- package/dist/css/page.css +10 -6
- package/dist/css/paging.css +4 -0
- package/dist/css/popup.css +4 -0
- package/dist/css/retract.css +4 -0
- package/dist/css/right-key.css +4 -0
- package/dist/css/seamless-scroll.css +4 -0
- package/dist/css/select-scroll.css +4 -0
- package/dist/css/selector.css +4 -0
- package/dist/css/selects.css +4 -0
- package/dist/css/sliders.css +4 -0
- package/dist/css/switchs.css +4 -0
- package/dist/css/tables.css +4 -0
- package/dist/css/tablesp.css +4 -0
- package/dist/css/tablespd.css +4 -0
- package/dist/css/tabless.css +4 -0
- package/dist/css/tablesv.css +4 -0
- package/dist/css/tablesvp.css +10 -0
- package/dist/css/tablesvpd.css +157 -0
- package/dist/css/uploads.css +4 -0
- package/dist/css/videos.css +4 -0
- package/dist/css/window.css +4 -0
- package/dist/expand/{chunk-MC76Q3TQ.cjs → chunk-3HP2ZDNG.cjs} +3 -1
- package/dist/expand/{chunk-CV4O5V2F.js → chunk-7C25SBCF.js} +3 -1
- 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/compons/index.cjs +44 -0
- package/dist/hooks/compons/index.d.ts +7 -0
- package/dist/hooks/compons/index.js +44 -0
- package/dist/icons/index.json +1 -1
- package/dist/index.cjs +24 -22
- package/dist/index.css +44 -6
- package/dist/index.js +2 -0
- package/package.json +12 -12
- package/dist/components/common/compons.cjs +0 -76
- package/dist/components/common/compons.d.ts +0 -9
- package/dist/components/common/compons.js +0 -76
- package/dist/components/common/compons.scss +0 -26
- package/dist/components/common/compons2.scss +0 -26
|
@@ -54,6 +54,13 @@ export declare const dataProps: {
|
|
|
54
54
|
type: ObjectConstructor;
|
|
55
55
|
default(): {};
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* @props { Boolean } isCompons=true 是否使用默认的配置
|
|
59
|
+
*/
|
|
60
|
+
isCompons: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
57
64
|
/**
|
|
58
65
|
* @props { Object } compons
|
|
59
66
|
* 外部组件集合
|
|
@@ -7,22 +7,13 @@ require("../../../utils/css.cjs");
|
|
|
7
7
|
const use = require("../../common/use.cjs");
|
|
8
8
|
require("../../../utils/index.cjs");
|
|
9
9
|
const vue = require("vue");
|
|
10
|
-
const
|
|
10
|
+
const index$1 = require("../../../hooks/compons/index.cjs");
|
|
11
11
|
const index = require("../../forms-items/index.cjs");
|
|
12
12
|
const setObjStyle = require("@fangzhongya/utils/css/setObjStyle");
|
|
13
13
|
const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
|
|
14
14
|
const Components = {
|
|
15
15
|
Items: index.FormsItems
|
|
16
16
|
};
|
|
17
|
-
const Changes = [
|
|
18
|
-
"Select",
|
|
19
|
-
"Date",
|
|
20
|
-
"Array",
|
|
21
|
-
"Check",
|
|
22
|
-
"Labels",
|
|
23
|
-
"Switch",
|
|
24
|
-
"Cascader"
|
|
25
|
-
];
|
|
26
17
|
function setUp(props, emit, cs, refForm, getLocale) {
|
|
27
18
|
const buts = vue.computed(() => {
|
|
28
19
|
if (typeof props.buts == "undefined") {
|
|
@@ -41,7 +32,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
|
|
|
41
32
|
return props.buts || [];
|
|
42
33
|
}
|
|
43
34
|
});
|
|
44
|
-
|
|
35
|
+
index$1.useCompons(config.provides.compons, props, Components);
|
|
45
36
|
vue.provide(config.provides.form, props);
|
|
46
37
|
const defaultValue = {};
|
|
47
38
|
const getDataForm = () => {
|
|
@@ -124,7 +115,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
|
|
|
124
115
|
use.setFormDefaultValue(obj, dataForm.value);
|
|
125
116
|
let trigger = 1;
|
|
126
117
|
if (typeof obj.compon == "string") {
|
|
127
|
-
if (
|
|
118
|
+
if (config.changes.includes(lineToLargeHump.lineToLargeHump(obj.compon))) {
|
|
128
119
|
trigger = 2;
|
|
129
120
|
}
|
|
130
121
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataProps } from './data';
|
|
2
2
|
import { UseCssNameReturn } from '../../../hooks/cssname';
|
|
3
|
-
import {
|
|
3
|
+
import { CSSProperties, Ref, WritableComputedRef, ComputedRef } from 'vue';
|
|
4
4
|
type Emit = (...args: any[]) => void;
|
|
5
5
|
export declare function setUp(props: DataProps, emit: Emit, cs: UseCssNameReturn, refForm: any, getLocale: Function): {
|
|
6
6
|
dataRules: Ref<ObjAny, ObjAny>;
|
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
import { dataHandle } from "./data.js";
|
|
2
|
-
import { provides } from "../common/config.js";
|
|
2
|
+
import { provides, changes } from "../common/config.js";
|
|
3
3
|
import { getRule } from "./util.js";
|
|
4
4
|
import "../../../utils/css.js";
|
|
5
5
|
import { setFormDefaultValue, getFormRule } from "../../common/use.js";
|
|
6
6
|
import "../../../utils/index.js";
|
|
7
7
|
import { computed, provide, isProxy, ref, watch } from "vue";
|
|
8
|
-
import { useCompons } from "
|
|
8
|
+
import { useCompons } from "../../../hooks/compons/index.js";
|
|
9
9
|
import { FormsItems } from "../../forms-items/index.js";
|
|
10
10
|
import { setObjStyle } from "@fangzhongya/utils/css/setObjStyle";
|
|
11
11
|
import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
|
|
12
12
|
const Components = {
|
|
13
13
|
Items: FormsItems
|
|
14
14
|
};
|
|
15
|
-
const Changes = [
|
|
16
|
-
"Select",
|
|
17
|
-
"Date",
|
|
18
|
-
"Array",
|
|
19
|
-
"Check",
|
|
20
|
-
"Labels",
|
|
21
|
-
"Switch",
|
|
22
|
-
"Cascader"
|
|
23
|
-
];
|
|
24
15
|
function setUp(props, emit, cs, refForm, getLocale) {
|
|
25
16
|
const buts = computed(() => {
|
|
26
17
|
if (typeof props.buts == "undefined") {
|
|
@@ -39,7 +30,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
|
|
|
39
30
|
return props.buts || [];
|
|
40
31
|
}
|
|
41
32
|
});
|
|
42
|
-
useCompons(provides.compons,
|
|
33
|
+
useCompons(provides.compons, props, Components);
|
|
43
34
|
provide(provides.form, props);
|
|
44
35
|
const defaultValue = {};
|
|
45
36
|
const getDataForm = () => {
|
|
@@ -122,7 +113,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
|
|
|
122
113
|
setFormDefaultValue(obj, dataForm.value);
|
|
123
114
|
let trigger = 1;
|
|
124
115
|
if (typeof obj.compon == "string") {
|
|
125
|
-
if (
|
|
116
|
+
if (changes.includes(lineToLargeHump(obj.compon))) {
|
|
126
117
|
trigger = 2;
|
|
127
118
|
}
|
|
128
119
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
@use '../../forms-div/style/index2.scss' as *;
|
|
6
6
|
@use '../../forms-item/style/index2.scss' as *;
|
|
7
|
-
@use '../../
|
|
7
|
+
@use '../../forms-items/style/index2.scss' as *;
|
|
8
|
+
|
|
9
|
+
@use '../../common/compons/index2.scss' as *;
|
|
8
10
|
|
|
9
11
|
@use '../index.scss' as *;
|
|
@@ -7,7 +7,7 @@ const index = require("../../../hooks/cssname/index.cjs");
|
|
|
7
7
|
const use = require("../../common/use.cjs");
|
|
8
8
|
const isEqual = require("@fangzhongya/utils/basic/object/isEqual");
|
|
9
9
|
const index$1 = require("../../../hooks/props-default/index.cjs");
|
|
10
|
-
const
|
|
10
|
+
const index$2 = require("../../../hooks/compons/index.cjs");
|
|
11
11
|
const config = require("../../forms/common/config.cjs");
|
|
12
12
|
const objValue = require("@fangzhongya/utils/basic/object/objValue");
|
|
13
13
|
const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
|
|
@@ -22,7 +22,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
22
22
|
const prs = index$1.usePropsDefault(data.name, p, data.dataProps);
|
|
23
23
|
index$1.viewProps(prs, data.name);
|
|
24
24
|
const props = prs.listobj;
|
|
25
|
-
const compons
|
|
25
|
+
const compons = index$2.useComponsGet(config.provides.compons);
|
|
26
26
|
const formvalue = vue.computed(() => {
|
|
27
27
|
const o = {};
|
|
28
28
|
if (typeof props.formvalue === "object") {
|
|
@@ -174,8 +174,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
174
174
|
};
|
|
175
175
|
if (typeof compon == "string") {
|
|
176
176
|
const tcom = lineToLargeHump.lineToLargeHump(compon);
|
|
177
|
-
if (Object.keys(compons
|
|
178
|
-
return vue.h(compons
|
|
177
|
+
if (Object.keys(compons).includes(tcom)) {
|
|
178
|
+
return vue.h(compons[tcom], componObj, slots);
|
|
179
179
|
} else {
|
|
180
180
|
return vue.h(vue.resolveComponent(compon), componObj, slots);
|
|
181
181
|
}
|
|
@@ -5,7 +5,7 @@ import { useCssName } from "../../../hooks/cssname/index.js";
|
|
|
5
5
|
import { getOnObjs } from "../../common/use.js";
|
|
6
6
|
import { isEqual } from "@fangzhongya/utils/basic/object/isEqual";
|
|
7
7
|
import { usePropsDefault, viewProps, getProps } from "../../../hooks/props-default/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponsGet } from "../../../hooks/compons/index.js";
|
|
9
9
|
import { provides } from "../../forms/common/config.js";
|
|
10
10
|
import { setObjValue, getObjValue } from "@fangzhongya/utils/basic/object/objValue";
|
|
11
11
|
import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
|
|
@@ -20,7 +20,7 @@ const _sfc_main = defineComponent({
|
|
|
20
20
|
const prs = usePropsDefault(name, p, dataProps);
|
|
21
21
|
viewProps(prs, name);
|
|
22
22
|
const props = prs.listobj;
|
|
23
|
-
const compons =
|
|
23
|
+
const compons = useComponsGet(provides.compons);
|
|
24
24
|
const formvalue = computed(() => {
|
|
25
25
|
const o = {};
|
|
26
26
|
if (typeof props.formvalue === "object") {
|
|
@@ -52,7 +52,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
52
52
|
}>, {
|
|
53
53
|
modelValue: Record<string, any>;
|
|
54
54
|
listobj: ListObj;
|
|
55
|
-
optionss: ObjAny;
|
|
56
55
|
hideLabel: boolean;
|
|
56
|
+
optionss: ObjAny;
|
|
57
57
|
}, {}, {}, {}, never, ComponentProvideOptions, true, {}, any>;
|
|
58
58
|
export default _default;
|
|
@@ -2,38 +2,25 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const use = require("../../common/use.cjs");
|
|
5
|
-
const isObject = require("@fangzhongya/utils/basic/object/isObject");
|
|
6
5
|
const config = require("../../forms/common/config.cjs");
|
|
7
|
-
const
|
|
6
|
+
const index = require("../../../hooks/compons/index.cjs");
|
|
8
7
|
function render(props, emit, slots, form) {
|
|
9
|
-
const compons$1 = compons.useGetCompons(config.provides.compons);
|
|
10
8
|
let label = props.label ?? "";
|
|
11
|
-
const index = 0;
|
|
12
9
|
if (label) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
compons$1,
|
|
28
|
-
emit,
|
|
29
|
-
index
|
|
30
|
-
);
|
|
31
|
-
if (column) {
|
|
32
|
-
return column;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
label = use.useGetDomValue(label, data, optionss, index);
|
|
36
|
-
}
|
|
10
|
+
const index$1 = 0;
|
|
11
|
+
const compons = index.useComponsGet(config.provides.compons);
|
|
12
|
+
const data = props.valueobj;
|
|
13
|
+
const optionss = props.options || {};
|
|
14
|
+
label = use.useGetDomLabel(
|
|
15
|
+
label,
|
|
16
|
+
props,
|
|
17
|
+
data,
|
|
18
|
+
slots,
|
|
19
|
+
optionss,
|
|
20
|
+
compons,
|
|
21
|
+
emit,
|
|
22
|
+
index$1
|
|
23
|
+
);
|
|
37
24
|
}
|
|
38
25
|
let colon = form.colon;
|
|
39
26
|
if (colon) {
|
|
@@ -1,37 +1,24 @@
|
|
|
1
1
|
import { defineComponent, inject } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { isObject } from "@fangzhongya/utils/basic/object/isObject";
|
|
2
|
+
import { useGetDomLabel } from "../../common/use.js";
|
|
4
3
|
import { provides } from "../../forms/common/config.js";
|
|
5
|
-
import {
|
|
4
|
+
import { useComponsGet } from "../../../hooks/compons/index.js";
|
|
6
5
|
function render(props, emit, slots, form) {
|
|
7
|
-
const compons = useGetCompons(provides.compons);
|
|
8
6
|
let label = props.label ?? "";
|
|
9
|
-
const index = 0;
|
|
10
7
|
if (label) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
compons,
|
|
26
|
-
emit,
|
|
27
|
-
index
|
|
28
|
-
);
|
|
29
|
-
if (column) {
|
|
30
|
-
return column;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
label = useGetDomValue(label, data, optionss, index);
|
|
34
|
-
}
|
|
8
|
+
const index = 0;
|
|
9
|
+
const compons = useComponsGet(provides.compons);
|
|
10
|
+
const data = props.valueobj;
|
|
11
|
+
const optionss = props.options || {};
|
|
12
|
+
label = useGetDomLabel(
|
|
13
|
+
label,
|
|
14
|
+
props,
|
|
15
|
+
data,
|
|
16
|
+
slots,
|
|
17
|
+
optionss,
|
|
18
|
+
compons,
|
|
19
|
+
emit,
|
|
20
|
+
index
|
|
21
|
+
);
|
|
35
22
|
}
|
|
36
23
|
let colon = form.colon;
|
|
37
24
|
if (colon) {
|
|
@@ -139,6 +139,7 @@ const index$2P = require("./tablespd/index.cjs");
|
|
|
139
139
|
const index$2Q = require("./tabless/index.cjs");
|
|
140
140
|
const index$2R = require("./tablesv/index.cjs");
|
|
141
141
|
const index$2S = require("./tablesvp/index.cjs");
|
|
142
|
+
const index$2T = require("./tablesvpd/index.cjs");
|
|
142
143
|
const index$2 = require("element-plus/es/components/button/index");
|
|
143
144
|
const index$4 = require("element-plus/es/components/card/index");
|
|
144
145
|
const index$6 = require("element-plus/es/components/color-picker/index");
|
|
@@ -322,6 +323,7 @@ exports.Tablespd = index$2P.Tablespd;
|
|
|
322
323
|
exports.Tabless = index$2Q.Tabless;
|
|
323
324
|
exports.Tablesv = index$2R.Tablesv;
|
|
324
325
|
exports.Tablesvp = index$2S.Tablesvp;
|
|
326
|
+
exports.Tablesvpd = index$2T.Tablesvpd;
|
|
325
327
|
Object.keys(index$2).forEach((k) => {
|
|
326
328
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
327
329
|
enumerable: true,
|
package/dist/components/index.js
CHANGED
|
@@ -137,6 +137,7 @@ import { Tablespd } from "./tablespd/index.js";
|
|
|
137
137
|
import { Tabless } from "./tabless/index.js";
|
|
138
138
|
import { Tablesv } from "./tablesv/index.js";
|
|
139
139
|
import { Tablesvp } from "./tablesvp/index.js";
|
|
140
|
+
import { Tablesvpd } from "./tablesvpd/index.js";
|
|
140
141
|
export * from "element-plus/es/components/button/index";
|
|
141
142
|
export * from "element-plus/es/components/card/index";
|
|
142
143
|
export * from "element-plus/es/components/color-picker/index";
|
|
@@ -305,6 +306,7 @@ export {
|
|
|
305
306
|
Tabless,
|
|
306
307
|
Tablesv,
|
|
307
308
|
Tablesvp,
|
|
309
|
+
Tablesvpd,
|
|
308
310
|
Tabs,
|
|
309
311
|
Tag,
|
|
310
312
|
Text,
|
|
@@ -121,4 +121,5 @@
|
|
|
121
121
|
@use './tablespd/style/index2.scss' as *;
|
|
122
122
|
@use './tabless/style/index2.scss' as *;
|
|
123
123
|
@use './tablesv/style/index2.scss' as *;
|
|
124
|
-
@use './tablesvp/style/index2.scss' as *;
|
|
124
|
+
@use './tablesvp/style/index2.scss' as *;
|
|
125
|
+
@use './tablesvpd/style/index2.scss' as *;
|
|
@@ -4,8 +4,8 @@ const vue = require("vue");
|
|
|
4
4
|
const util = require("./util.cjs");
|
|
5
5
|
const css = require("../../common/css.cjs");
|
|
6
6
|
const use = require("../../common/use.cjs");
|
|
7
|
-
const
|
|
8
|
-
const index$
|
|
7
|
+
const index$1 = require("../../../hooks/compons/index.cjs");
|
|
8
|
+
const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
9
9
|
const tooltip = require("../../tables/common/tooltip.cjs");
|
|
10
10
|
const index = require("../../../hooks/props-default/index.cjs");
|
|
11
11
|
const data = require("./data.cjs");
|
|
@@ -23,8 +23,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
23
23
|
setup(prs, { emit, slots }) {
|
|
24
24
|
const props = index.usePropsDefault(data.name, prs, data.dataProps);
|
|
25
25
|
index.viewProps(props, data.name);
|
|
26
|
-
const compons
|
|
27
|
-
const cs = index$
|
|
26
|
+
const compons = index$1.useCompons(data.name, props);
|
|
27
|
+
const cs = index$2.useCssName(data.name);
|
|
28
28
|
const refDom = vue.ref();
|
|
29
29
|
const isfocus = vue.ref(false);
|
|
30
30
|
const rowObj = vue.shallowRef();
|
|
@@ -179,7 +179,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
179
179
|
util.setLabel(
|
|
180
180
|
obj,
|
|
181
181
|
props,
|
|
182
|
-
compons
|
|
182
|
+
compons,
|
|
183
183
|
emit,
|
|
184
184
|
slots,
|
|
185
185
|
isComponSelected,
|
|
@@ -235,7 +235,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
235
235
|
obj,
|
|
236
236
|
props.value,
|
|
237
237
|
props,
|
|
238
|
-
compons
|
|
238
|
+
compons,
|
|
239
239
|
emit,
|
|
240
240
|
slots,
|
|
241
241
|
isComponSelected,
|