@fangzhongya/fang-ui 0.0.98 → 0.0.99
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/alert/src/index2.cjs +11 -11
- package/dist/components/array/src/index2.cjs +45 -45
- package/dist/components/audios/src/index2.cjs +54 -54
- package/dist/components/autocomplete/src/index2.cjs +11 -11
- package/dist/components/box/src/index2.cjs +21 -21
- package/dist/components/box-adjust/index.css +17 -0
- package/dist/components/box-adjust/index.scss +18 -0
- package/dist/components/box-adjust/src/data.cjs +17 -1
- package/dist/components/box-adjust/src/data.d.ts +16 -0
- package/dist/components/box-adjust/src/data.js +17 -1
- package/dist/components/box-adjust/src/index2.cjs +69 -35
- package/dist/components/box-adjust/src/index2.js +37 -3
- package/dist/components/box-local/src/index2.cjs +20 -20
- package/dist/components/box-mask/src/index2.cjs +5 -5
- package/dist/components/box-teleport/src/index2.cjs +5 -5
- package/dist/components/box-title/src/index2.cjs +15 -15
- package/dist/components/button/src/index2.cjs +11 -11
- package/dist/components/buttons/src/index2.cjs +20 -20
- package/dist/components/card/src/index2.cjs +11 -11
- package/dist/components/cascader/src/index2.cjs +11 -11
- package/dist/components/cascader-panel/src/index2.cjs +11 -11
- package/dist/components/cascaders/src/index2.cjs +17 -17
- package/dist/components/checkbox/src/index2.cjs +11 -11
- package/dist/components/checkbox-button/src/index2.cjs +11 -11
- package/dist/components/checkbox-group/src/index2.cjs +11 -11
- package/dist/components/checks/src/index2.cjs +31 -31
- package/dist/components/choice-select/src/index2.cjs +5 -5
- package/dist/components/collapse/src/index2.cjs +11 -11
- package/dist/components/collapse-item/src/index2.cjs +11 -11
- package/dist/components/color-picker/src/index2.cjs +11 -11
- package/dist/components/common/list.cjs +5 -5
- package/dist/components/common/use.cjs +5 -5
- package/dist/components/company-select/src/index2.cjs +19 -19
- package/dist/components/config-provider/src/index2.cjs +11 -11
- package/dist/components/date-picker/src/index2.cjs +11 -11
- package/dist/components/date-picker/style/element.scss +1 -1
- package/dist/components/date-picker-panel/src/index2.cjs +11 -11
- package/dist/components/dates/src/index2.cjs +12 -12
- package/dist/components/dates-divide/src/index2.cjs +20 -20
- package/dist/components/dates-picker/src/index2.cjs +15 -15
- package/dist/components/dates2/src/index2.cjs +26 -26
- package/dist/components/department-select/src/index2.cjs +10 -10
- package/dist/components/dialog/src/index2.cjs +11 -11
- package/dist/components/dialogs/src/index2.cjs +23 -23
- package/dist/components/divider/src/index2.cjs +11 -11
- package/dist/components/drawer/src/index2.cjs +11 -11
- package/dist/components/dropdown/src/index2.cjs +11 -11
- package/dist/components/dropdown-item/src/index2.cjs +11 -11
- package/dist/components/dropdown-menu/src/index2.cjs +11 -11
- package/dist/components/edit/src/index2.cjs +24 -24
- package/dist/components/edit-float/src/index2.cjs +40 -40
- package/dist/components/form/src/index2.cjs +11 -11
- package/dist/components/form-item/src/index2.cjs +11 -11
- package/dist/components/forms/index.css +22 -0
- package/dist/components/forms/src/index2.cjs +65 -65
- package/dist/components/forms/src/setup.cjs +12 -12
- package/dist/components/forms-div/src/index2.cjs +11 -11
- package/dist/components/forms-drag/src/index2.cjs +73 -73
- package/dist/components/forms-item/src/index2.cjs +45 -45
- package/dist/components/forms-item/src/label.cjs +4 -4
- package/dist/components/forms-items/src/index2.cjs +23 -23
- package/dist/components/full-screen/src/index2.cjs +11 -11
- package/dist/components/global-config/src/index.cjs +5 -5
- package/dist/components/history/src/index2.cjs +26 -26
- package/dist/components/icon/src/index2.cjs +23 -23
- package/dist/components/icon-picker/src/index2.cjs +52 -52
- package/dist/components/iframe/src/data.cjs +1 -1
- package/dist/components/iframe/src/data.js +1 -1
- package/dist/components/iframe/src/index2.cjs +15 -10
- package/dist/components/iframe/src/index2.js +5 -0
- package/dist/components/image/src/index2.cjs +11 -11
- package/dist/components/image-viewer/src/index2.cjs +11 -11
- package/dist/components/images/src/index2.cjs +17 -17
- package/dist/components/input/src/index2.cjs +11 -11
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +47 -47
- package/dist/components/input-history/src/util.cjs +4 -4
- package/dist/components/input-num/src/index2.cjs +17 -17
- package/dist/components/input-number/src/index2.cjs +11 -11
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +11 -11
- package/dist/components/inputs/src/index2.cjs +17 -17
- package/dist/components/keep-com/src/index2.cjs +16 -16
- package/dist/components/labels/src/index2.cjs +13 -13
- package/dist/components/list/src/index2.cjs +24 -24
- package/dist/components/lists/src/index2.cjs +51 -51
- package/dist/components/listsp/src/index2.cjs +35 -35
- package/dist/components/mention/src/index2.cjs +11 -11
- package/dist/components/menu/src/index2.cjs +11 -11
- package/dist/components/menu-item/src/index2.cjs +11 -11
- package/dist/components/menu-item-group/src/index2.cjs +11 -11
- package/dist/components/menus/src/index2.cjs +16 -16
- package/dist/components/menus/src/menu-ll2.cjs +11 -11
- package/dist/components/no-data/src/index2.cjs +5 -5
- package/dist/components/option/src/index2.cjs +10 -10
- package/dist/components/option-group/src/index2.cjs +11 -11
- package/dist/components/page/index.css +22 -0
- package/dist/components/page/src/index2.cjs +77 -77
- package/dist/components/page/src/set-column2.cjs +54 -54
- package/dist/components/pagination/src/index2.cjs +11 -11
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +11 -11
- package/dist/components/popover/src/index2.cjs +11 -11
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +11 -11
- package/dist/components/radio-button/src/index2.cjs +11 -11
- package/dist/components/radio-group/src/index2.cjs +11 -11
- package/dist/components/retract/src/index2.cjs +14 -14
- package/dist/components/right-key/src/index2.cjs +30 -30
- package/dist/components/role-select/src/index2.cjs +38 -38
- package/dist/components/scrollbar/src/index2.cjs +11 -11
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +11 -11
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +41 -41
- package/dist/components/select-scroll/src/index2.cjs +30 -30
- package/dist/components/selector/src/index2.cjs +39 -39
- package/dist/components/selects/src/index2.cjs +20 -20
- package/dist/components/slider/src/index2.cjs +11 -11
- package/dist/components/sliders/src/index2.cjs +13 -13
- package/dist/components/stick-div/src/index2.cjs +17 -17
- package/dist/components/stick-edge/src/index2.cjs +10 -10
- package/dist/components/stick-window/src/index2.cjs +22 -22
- package/dist/components/sub-menu/src/index2.cjs +10 -10
- package/dist/components/switch/src/index2.cjs +11 -11
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +11 -11
- package/dist/components/table/src/index2.cjs +11 -11
- package/dist/components/table-column/src/index2.cjs +11 -11
- package/dist/components/tables/common/img2.cjs +7 -7
- package/dist/components/tables/common/pagin.cjs +16 -16
- package/dist/components/tables/common/table-but2.cjs +10 -10
- package/dist/components/tables/common/table-color2.cjs +7 -7
- package/dist/components/tables/common/table-list2.cjs +9 -9
- package/dist/components/tables/common/util.cjs +2 -2
- package/dist/components/tables/src/column.cjs +5 -5
- package/dist/components/tables/src/columns2.cjs +2 -2
- package/dist/components/tables/src/columns3.cjs +2 -2
- package/dist/components/tables/src/index2.cjs +29 -29
- package/dist/components/tablesp/src/index2.cjs +36 -36
- package/dist/components/tabless/src/index2.cjs +49 -49
- package/dist/components/tablesv/src/column.cjs +16 -16
- package/dist/components/tablesv/src/columns2.cjs +2 -2
- package/dist/components/tablesv/src/columns3.cjs +2 -2
- package/dist/components/tablesv/src/index2.cjs +30 -30
- package/dist/components/tablesvp/src/index2.cjs +30 -30
- package/dist/components/tabs/src/index2.cjs +11 -11
- package/dist/components/tag/src/index2.cjs +11 -11
- package/dist/components/text/src/index2.cjs +11 -11
- package/dist/components/text/style/element.scss +1 -1
- package/dist/components/texts/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +11 -11
- package/dist/components/time-select/src/index2.cjs +11 -11
- package/dist/components/tooltip/src/index2.cjs +11 -11
- package/dist/components/transfer/src/index2.cjs +11 -11
- package/dist/components/tree/src/index2.cjs +11 -11
- package/dist/components/tree-select/src/index2.cjs +11 -11
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +11 -11
- package/dist/components/uploads/index.css +22 -0
- package/dist/components/uploads/index.scss +23 -0
- package/dist/components/uploads/src/index2.cjs +128 -138
- package/dist/components/uploads/src/index2.js +61 -71
- package/dist/components/uploads/src/util.cjs +80 -0
- package/dist/components/uploads/src/util.d.ts +10 -0
- package/dist/components/uploads/src/util.js +80 -0
- package/dist/components/uploads/src/views.cjs +4 -0
- package/dist/components/uploads/src/views.js +4 -0
- package/dist/components/uploads/src/views2.cjs +77 -0
- package/dist/components/uploads/src/views2.js +77 -0
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/videos/src/index2.cjs +97 -97
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/css/box-adjust.css +17 -0
- package/dist/css/forms.css +22 -0
- package/dist/css/index.css +39 -0
- package/dist/css/page.css +22 -0
- package/dist/css/uploads.css +22 -0
- package/dist/directives/scroll/index.cjs +6 -24
- package/dist/directives/scroll/index.js +1 -3
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/full-screen/index.cjs +5 -5
- package/dist/hooks/global-config/index.cjs +8 -8
- package/dist/hooks/inherit/index.cjs +2 -2
- package/dist/hooks/locale/index.cjs +7 -7
- package/dist/icons/iconify.cjs +3 -3
- package/dist/icons/index.css +79 -79
- package/dist/icons/index.json +35 -35
- package/dist/icons/vue/bar.cjs +3 -3
- package/dist/icons/vue/below.cjs +3 -3
- package/dist/icons/vue/bicycle.cjs +3 -3
- package/dist/icons/vue/bottom-left.cjs +4 -4
- package/dist/icons/vue/bottom-right.cjs +4 -4
- package/dist/icons/vue/bottom.cjs +3 -3
- package/dist/icons/vue/catalogue.cjs +5 -5
- package/dist/icons/vue/clear.cjs +5 -5
- package/dist/icons/vue/close.cjs +3 -3
- package/dist/icons/vue/delete.cjs +3 -3
- package/dist/icons/vue/document.cjs +5 -5
- package/dist/icons/vue/down.cjs +3 -3
- package/dist/icons/vue/download.cjs +3 -3
- package/dist/icons/vue/edit.cjs +5 -5
- package/dist/icons/vue/enter.cjs +3 -3
- package/dist/icons/vue/frame.cjs +3 -3
- package/dist/icons/vue/left.cjs +3 -3
- package/dist/icons/vue/mute.cjs +3 -3
- package/dist/icons/vue/pause.cjs +4 -4
- package/dist/icons/vue/play.cjs +3 -3
- package/dist/icons/vue/plus.cjs +3 -3
- package/dist/icons/vue/retreat.cjs +3 -3
- package/dist/icons/vue/right.cjs +3 -3
- package/dist/icons/vue/sound.cjs +4 -4
- package/dist/icons/vue/star.cjs +4 -4
- package/dist/icons/vue/up.cjs +3 -3
- package/dist/icons/vue/views.cjs +5 -5
- package/dist/icons/vue/views.js +2 -2
- package/dist/index.css +39 -0
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +3 -3
- /package/dist/components/{alert → divider}/index.css +0 -0
- /package/dist/css/{alert.css → divider.css} +0 -0
|
@@ -5,7 +5,7 @@ const util = require("./util.cjs");
|
|
|
5
5
|
require("../../../utils/css.cjs");
|
|
6
6
|
const use = require("../../common/use.cjs");
|
|
7
7
|
require("../../../utils/index.cjs");
|
|
8
|
-
const
|
|
8
|
+
const vue = require("vue");
|
|
9
9
|
const compons = require("../../common/compons.cjs");
|
|
10
10
|
const index = require("../../forms-items/index.cjs");
|
|
11
11
|
const setObjStyle = require("@fangzhongya/utils/css/setObjStyle");
|
|
@@ -23,7 +23,7 @@ const Changes = [
|
|
|
23
23
|
"Cascader"
|
|
24
24
|
];
|
|
25
25
|
function setUp(props, emit, cs, refForm, getLocale) {
|
|
26
|
-
const buts =
|
|
26
|
+
const buts = vue.computed(() => {
|
|
27
27
|
if (typeof props.buts == "undefined") {
|
|
28
28
|
return [
|
|
29
29
|
{
|
|
@@ -41,13 +41,13 @@ function setUp(props, emit, cs, refForm, getLocale) {
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
const tfcom = compons.getCompons(Components, props.compons);
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
vue.provide("forms-compons", tfcom);
|
|
45
|
+
vue.provide("forms-form", props);
|
|
46
46
|
const defaultValue = {};
|
|
47
47
|
const getDataForm = () => {
|
|
48
48
|
if (props.modelValue) {
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
49
|
+
if (vue.isProxy(props.modelValue)) {
|
|
50
|
+
return vue.computed({
|
|
51
51
|
get() {
|
|
52
52
|
return props.modelValue;
|
|
53
53
|
},
|
|
@@ -56,14 +56,14 @@ function setUp(props, emit, cs, refForm, getLocale) {
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
} else {
|
|
59
|
-
return
|
|
59
|
+
return vue.ref(props.modelValue);
|
|
60
60
|
}
|
|
61
61
|
} else {
|
|
62
|
-
return
|
|
62
|
+
return vue.ref(defaultValue);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
const dataForm = getDataForm();
|
|
66
|
-
const styles =
|
|
66
|
+
const styles = vue.computed(() => {
|
|
67
67
|
return cs.vdo({
|
|
68
68
|
"inline-right": props.inlineRight,
|
|
69
69
|
"item-bottom": props.query ? "0px" : props.itemBottom
|
|
@@ -145,15 +145,15 @@ function setUp(props, emit, cs, refForm, getLocale) {
|
|
|
145
145
|
setListValue(props.list);
|
|
146
146
|
return rules;
|
|
147
147
|
}
|
|
148
|
-
const dataRules =
|
|
149
|
-
|
|
148
|
+
const dataRules = vue.ref(getRules());
|
|
149
|
+
vue.watch(
|
|
150
150
|
() => dataForm.value,
|
|
151
151
|
() => {
|
|
152
152
|
emit("upform", dataForm.value);
|
|
153
153
|
},
|
|
154
154
|
{ deep: true }
|
|
155
155
|
);
|
|
156
|
-
|
|
156
|
+
vue.watch(
|
|
157
157
|
() => props.list.length,
|
|
158
158
|
() => {
|
|
159
159
|
dataRules.value = getRules();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
require("../../../utils/index.cjs");
|
|
6
6
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
@@ -8,7 +8,7 @@ const use = require("../../common/use.cjs");
|
|
|
8
8
|
const objValue = require("@fangzhongya/utils/basic/object/objValue");
|
|
9
9
|
const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
|
|
10
10
|
const Components = {};
|
|
11
|
-
const _sfc_main =
|
|
11
|
+
const _sfc_main = vue.defineComponent({
|
|
12
12
|
components: Components,
|
|
13
13
|
expose: data.dataExpose,
|
|
14
14
|
emits: data.dataEmits,
|
|
@@ -16,8 +16,8 @@ const _sfc_main = vues.defineComponent({
|
|
|
16
16
|
setup(prs, { emit, slots }) {
|
|
17
17
|
const cs = index.useCssName("forms-div");
|
|
18
18
|
const props = prs.listobj;
|
|
19
|
-
const compons =
|
|
20
|
-
const formvalue =
|
|
19
|
+
const compons = vue.inject("forms-compons", {});
|
|
20
|
+
const formvalue = vue.computed(() => {
|
|
21
21
|
const o = {};
|
|
22
22
|
if (typeof props.formvalue === "object") {
|
|
23
23
|
Object.keys(props.formvalue).forEach((key) => {
|
|
@@ -27,7 +27,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
27
27
|
}
|
|
28
28
|
return o;
|
|
29
29
|
});
|
|
30
|
-
const binds =
|
|
30
|
+
const binds = vue.computed(() => {
|
|
31
31
|
const obj = { ...props.config, ...formvalue.value };
|
|
32
32
|
const binds2 = {};
|
|
33
33
|
Object.keys(obj).forEach((key) => {
|
|
@@ -38,7 +38,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
38
38
|
});
|
|
39
39
|
return binds2;
|
|
40
40
|
});
|
|
41
|
-
const value =
|
|
41
|
+
const value = vue.computed({
|
|
42
42
|
get() {
|
|
43
43
|
let v = prs.modelValue ?? {};
|
|
44
44
|
if (props.orig) {
|
|
@@ -73,7 +73,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
const options =
|
|
76
|
+
const options = vue.computed(() => {
|
|
77
77
|
const optionss = prs.optionss;
|
|
78
78
|
if (typeof props.options === "string") {
|
|
79
79
|
const value2 = optionss[props.options];
|
|
@@ -111,12 +111,12 @@ const _sfc_main = vues.defineComponent({
|
|
|
111
111
|
if (typeof compon == "string") {
|
|
112
112
|
const tcom = lineToLargeHump.lineToLargeHump(compon);
|
|
113
113
|
if (Object.keys(compons).includes(tcom)) {
|
|
114
|
-
return
|
|
114
|
+
return vue.h(compons[tcom], componObj, slots);
|
|
115
115
|
} else {
|
|
116
|
-
return
|
|
116
|
+
return vue.h(vue.resolveComponent(compon), componObj, slots);
|
|
117
117
|
}
|
|
118
118
|
} else {
|
|
119
|
-
return
|
|
119
|
+
return vue.h(compon, componObj, slots);
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
const setSslot = () => {
|
|
@@ -137,7 +137,7 @@ const _sfc_main = vues.defineComponent({
|
|
|
137
137
|
return render();
|
|
138
138
|
};
|
|
139
139
|
return () => {
|
|
140
|
-
return props.compon ?
|
|
140
|
+
return props.compon ? vue.h("div", { class: cs.z() }, [setSslot()]) : "";
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const Draggable = require("vuedraggable");
|
|
5
5
|
const data = require("../../forms/src/data.cjs");
|
|
6
6
|
const index$6 = require("../../forms-div/index.cjs");
|
|
@@ -15,7 +15,7 @@ const setup = require("../../forms/src/setup.cjs");
|
|
|
15
15
|
const index$8 = require("../../../directives/adjust/index.cjs");
|
|
16
16
|
const index = require("../../../hooks/locale/index.cjs");
|
|
17
17
|
const _hoisted_1 = ["onClick", "data-key"];
|
|
18
|
-
const _sfc_main = /* @__PURE__ */
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
19
19
|
...{ inheritAttrs: false },
|
|
20
20
|
__name: "index",
|
|
21
21
|
props: {
|
|
@@ -37,12 +37,12 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
37
37
|
],
|
|
38
38
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39
39
|
const { getLocale } = index.useLocale();
|
|
40
|
-
const slots =
|
|
41
|
-
const attrs = index$1.useInherit(
|
|
40
|
+
const slots = vue.useSlots();
|
|
41
|
+
const attrs = index$1.useInherit(vue.useAttrs());
|
|
42
42
|
const props = __props;
|
|
43
43
|
const emit = __emit;
|
|
44
44
|
const cs = index$2.useCssName("forms");
|
|
45
|
-
const refForm =
|
|
45
|
+
const refForm = vue.ref();
|
|
46
46
|
const {
|
|
47
47
|
buts,
|
|
48
48
|
styles,
|
|
@@ -56,15 +56,15 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
56
56
|
dataForm,
|
|
57
57
|
validate
|
|
58
58
|
} = setup.setUp(props, emit, cs, refForm, getLocale);
|
|
59
|
-
const refEl =
|
|
60
|
-
const drag =
|
|
59
|
+
const refEl = vue.ref();
|
|
60
|
+
const drag = vue.ref(false);
|
|
61
61
|
const dragOptions = {
|
|
62
62
|
animation: 200,
|
|
63
63
|
group: "description",
|
|
64
64
|
disabled: false,
|
|
65
65
|
ghostClass: "ghost"
|
|
66
66
|
};
|
|
67
|
-
const lists =
|
|
67
|
+
const lists = vue.computed({
|
|
68
68
|
get() {
|
|
69
69
|
return props.list;
|
|
70
70
|
},
|
|
@@ -99,42 +99,42 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
99
99
|
validateField
|
|
100
100
|
});
|
|
101
101
|
return (_ctx, _cache) => {
|
|
102
|
-
return
|
|
102
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
103
103
|
ref_key: "refEl",
|
|
104
104
|
ref: refEl,
|
|
105
|
-
class: [
|
|
106
|
-
style:
|
|
105
|
+
class: [vue.unref(cs).z(), "drag"],
|
|
106
|
+
style: vue.unref(cs).vdo({
|
|
107
107
|
itemBottom: _ctx.itemBottom,
|
|
108
108
|
inlineRight: _ctx.inlineRight,
|
|
109
109
|
queryInterval: _ctx.queryInterval,
|
|
110
110
|
rowHeight: _ctx.rowHeight
|
|
111
111
|
})
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
class:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
}, vue.unref(attrs).root), [
|
|
113
|
+
vue.createElementVNode("div", {
|
|
114
|
+
class: vue.normalizeClass([
|
|
115
|
+
vue.unref(cs).z("div"),
|
|
116
|
+
vue.unref(cs).zis("div", "inline", props.inline),
|
|
117
|
+
vue.unref(cs).zis("div", "box", props.inlineBox),
|
|
118
|
+
vue.unref(cs).zis("div", "query", props.query),
|
|
119
|
+
vue.unref(cs).zis("div", "column", props.column > 1)
|
|
120
120
|
]),
|
|
121
|
-
style:
|
|
121
|
+
style: vue.normalizeStyle(vue.unref(styles))
|
|
122
122
|
}, [
|
|
123
|
-
(
|
|
123
|
+
(vue.openBlock(), vue.createBlock(vue.unref(index$3.Form), vue.mergeProps(vue.unref(attrs).assem, {
|
|
124
124
|
key: props.list.length,
|
|
125
|
-
class: [
|
|
126
|
-
model:
|
|
125
|
+
class: [vue.unref(cs).z("elf"), props.labelPosition],
|
|
126
|
+
model: vue.unref(dataForm),
|
|
127
127
|
disabled: props.disabled,
|
|
128
|
-
rules:
|
|
128
|
+
rules: vue.unref(dataRules),
|
|
129
129
|
"label-width": props.labelPosition == "auto" ? "" : props.labelWidth,
|
|
130
130
|
"label-position": props.labelPosition == "auto" ? void 0 : props.labelPosition,
|
|
131
131
|
ref_key: "refForm",
|
|
132
132
|
ref: refForm,
|
|
133
|
-
onSubmit: _cache[3] || (_cache[3] =
|
|
133
|
+
onSubmit: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
134
134
|
}, ["prevent"]))
|
|
135
135
|
}), {
|
|
136
|
-
default:
|
|
137
|
-
|
|
136
|
+
default: vue.withCtx(() => [
|
|
137
|
+
vue.createVNode(vue.unref(Draggable), vue.mergeProps(dragOptions, {
|
|
138
138
|
onStart,
|
|
139
139
|
onEnd,
|
|
140
140
|
modelValue: lists.value,
|
|
@@ -142,103 +142,103 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
142
142
|
"item-key": (key) => key,
|
|
143
143
|
handle: ".handle"
|
|
144
144
|
}), {
|
|
145
|
-
header:
|
|
146
|
-
|
|
145
|
+
header: vue.withCtx(() => [
|
|
146
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).header)
|
|
147
147
|
]),
|
|
148
|
-
item:
|
|
149
|
-
|
|
150
|
-
class:
|
|
151
|
-
|
|
152
|
-
|
|
148
|
+
item: vue.withCtx(({ element, index: index2 }) => [
|
|
149
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
150
|
+
class: vue.normalizeClass(["handle", [
|
|
151
|
+
vue.unref(cs).z("li"),
|
|
152
|
+
vue.unref(cs).is("div", element == null ? void 0 : element.isdiv),
|
|
153
153
|
element == null ? void 0 : element.class,
|
|
154
154
|
props.itemClass,
|
|
155
|
-
|
|
155
|
+
vue.unref(cs).is("hover", props.index == index2)
|
|
156
156
|
]]),
|
|
157
|
-
style:
|
|
158
|
-
onClick:
|
|
157
|
+
style: vue.normalizeStyle(vue.unref(setStyles)(element)),
|
|
158
|
+
onClick: vue.withModifiers(($event) => onClickHandle(element, index2), ["stop"]),
|
|
159
159
|
"data-key": index2
|
|
160
160
|
}, [
|
|
161
|
-
(element == null ? void 0 : element.isdiv) ? (
|
|
161
|
+
(element == null ? void 0 : element.isdiv) ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.FormsDiv), {
|
|
162
162
|
key: 0,
|
|
163
163
|
listobj: element,
|
|
164
164
|
optionss: props.options,
|
|
165
|
-
valueobj:
|
|
166
|
-
modelValue:
|
|
167
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
168
|
-
},
|
|
169
|
-
|
|
165
|
+
valueobj: vue.unref(dataForm),
|
|
166
|
+
modelValue: vue.unref(dataForm),
|
|
167
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(dataForm) ? dataForm.value = $event : null)
|
|
168
|
+
}, vue.createSlots({ _: 2 }, [
|
|
169
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
170
170
|
return {
|
|
171
171
|
name: k,
|
|
172
|
-
fn:
|
|
173
|
-
|
|
172
|
+
fn: vue.withCtx((scope) => [
|
|
173
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
174
174
|
])
|
|
175
175
|
};
|
|
176
176
|
})
|
|
177
|
-
]), 1032, ["listobj", "optionss", "valueobj", "modelValue"])) : (
|
|
177
|
+
]), 1032, ["listobj", "optionss", "valueobj", "modelValue"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$7.FormsItem), {
|
|
178
178
|
key: 1,
|
|
179
179
|
listobj: element,
|
|
180
180
|
optionss: props.options,
|
|
181
|
-
valueobj:
|
|
182
|
-
modelValue:
|
|
183
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
184
|
-
},
|
|
185
|
-
|
|
181
|
+
valueobj: vue.unref(dataForm),
|
|
182
|
+
modelValue: vue.unref(dataForm),
|
|
183
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(dataForm) ? dataForm.value = $event : null)
|
|
184
|
+
}, vue.createSlots({ _: 2 }, [
|
|
185
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
186
186
|
return {
|
|
187
187
|
name: k,
|
|
188
|
-
fn:
|
|
189
|
-
|
|
188
|
+
fn: vue.withCtx((scope) => [
|
|
189
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
190
190
|
])
|
|
191
191
|
};
|
|
192
192
|
})
|
|
193
193
|
]), 1032, ["listobj", "optionss", "valueobj", "modelValue"]))
|
|
194
194
|
], 14, _hoisted_1)), [
|
|
195
|
-
[
|
|
195
|
+
[vue.unref(index$8.default), {
|
|
196
196
|
right: true,
|
|
197
197
|
onChange: (obj, data2) => {
|
|
198
198
|
onChangeAdjust(element, index2, obj, data2);
|
|
199
199
|
}
|
|
200
200
|
}],
|
|
201
|
-
[
|
|
201
|
+
[vue.vShow, !vue.unref(use.useHide)(element, vue.unref(dataForm))]
|
|
202
202
|
])
|
|
203
203
|
]),
|
|
204
|
-
footer:
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
footer: vue.withCtx(() => [
|
|
205
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).footer),
|
|
206
|
+
vue.unref(buts) && vue.unref(buts).length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
207
207
|
key: 0,
|
|
208
|
-
class:
|
|
209
|
-
style:
|
|
208
|
+
class: vue.normalizeClass([vue.unref(cs).z("li"), vue.unref(cs).z("buts")]),
|
|
209
|
+
style: vue.normalizeStyle(vue.unref(setStyles)({}))
|
|
210
210
|
}, [
|
|
211
|
-
|
|
211
|
+
vue.createVNode(vue.unref(index$4.FormItem), {
|
|
212
212
|
"label-width": props.butLeft
|
|
213
213
|
}, {
|
|
214
|
-
default:
|
|
215
|
-
|
|
216
|
-
style:
|
|
214
|
+
default: vue.withCtx(() => [
|
|
215
|
+
vue.createElementVNode("div", {
|
|
216
|
+
style: vue.normalizeStyle({
|
|
217
217
|
height: props.butHeight ?? props.rowHeight
|
|
218
218
|
}),
|
|
219
|
-
class:
|
|
219
|
+
class: vue.normalizeClass(vue.unref(cs).z("buts-div"))
|
|
220
220
|
}, [
|
|
221
|
-
(
|
|
222
|
-
return
|
|
223
|
-
!
|
|
221
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(buts), (item, index2) => {
|
|
222
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
223
|
+
!vue.unref(use.useHide)(item, vue.unref(dataForm)) ? (vue.openBlock(), vue.createBlock(vue.unref(index$5.Button), vue.mergeProps({
|
|
224
224
|
key: 0,
|
|
225
225
|
ref_for: true
|
|
226
226
|
}, item, {
|
|
227
227
|
disabled: item.disabled ?? props.disabled,
|
|
228
|
-
onClick:
|
|
228
|
+
onClick: vue.withModifiers(($event) => vue.unref(onClickButs)(item, index2, $event), ["stop"])
|
|
229
229
|
}), {
|
|
230
|
-
default:
|
|
231
|
-
|
|
230
|
+
default: vue.withCtx(() => [
|
|
231
|
+
vue.createTextVNode(vue.toDisplayString(item.label), 1)
|
|
232
232
|
]),
|
|
233
233
|
_: 2
|
|
234
|
-
}, 1040, ["disabled", "onClick"])) :
|
|
234
|
+
}, 1040, ["disabled", "onClick"])) : vue.createCommentVNode("", true)
|
|
235
235
|
], 64);
|
|
236
236
|
}), 128))
|
|
237
237
|
], 6)
|
|
238
238
|
]),
|
|
239
239
|
_: 1
|
|
240
240
|
}, 8, ["label-width"])
|
|
241
|
-
], 6)) :
|
|
241
|
+
], 6)) : vue.createCommentVNode("", true)
|
|
242
242
|
]),
|
|
243
243
|
_: 3
|
|
244
244
|
}, 16, ["modelValue", "item-key"])
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index$3 = require("../../forms-div/index.cjs");
|
|
6
6
|
const index$2 = require("../../form-item/index.cjs");
|
|
7
7
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
9
9
|
const label = require("./label.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
...{ inheritAttrs: false },
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: data.dataProps,
|
|
14
14
|
emits: data.dataEmits,
|
|
15
15
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
|
-
const slots =
|
|
17
|
-
const attrs = index.useInherit(
|
|
16
|
+
const slots = vue.useSlots();
|
|
17
|
+
const attrs = index.useInherit(vue.useAttrs());
|
|
18
18
|
const prs = __props;
|
|
19
19
|
const props = prs.listobj;
|
|
20
20
|
const emit = __emit;
|
|
21
21
|
const cs = index$1.useCssName("forms-item");
|
|
22
|
-
const form =
|
|
23
|
-
const value =
|
|
22
|
+
const form = vue.inject("forms-form", {});
|
|
23
|
+
const value = vue.computed({
|
|
24
24
|
get() {
|
|
25
25
|
return prs.modelValue;
|
|
26
26
|
},
|
|
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
const itemProp = props.__prop ?? props.prop;
|
|
32
|
-
const rowHeight =
|
|
32
|
+
const rowHeight = vue.computed(() => {
|
|
33
33
|
return props.rowHeight ?? prs.rowHeight ?? (form == null ? void 0 : form.rowHeight);
|
|
34
34
|
});
|
|
35
35
|
function setLabelWidth(v) {
|
|
@@ -43,75 +43,75 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
43
43
|
...data.dataExpose
|
|
44
44
|
});
|
|
45
45
|
return (_ctx, _cache) => {
|
|
46
|
-
return
|
|
47
|
-
class: [
|
|
48
|
-
style:
|
|
46
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
47
|
+
class: [vue.unref(cs).z()],
|
|
48
|
+
style: vue.unref(cs).vdo({
|
|
49
49
|
rowHeight: rowHeight.value
|
|
50
50
|
})
|
|
51
|
-
},
|
|
52
|
-
|
|
51
|
+
}, vue.unref(attrs).root), [
|
|
52
|
+
vue.unref(props).hideLabel ?? prs.hideLabel ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.FormItem), vue.mergeProps({ key: 0 }, vue.unref(attrs).assem, {
|
|
53
53
|
class: [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
vue.unref(cs).z("el-item"),
|
|
55
|
+
vue.unref(cs).is("height", rowHeight.value && vue.unref(form).labelPosition != "top"),
|
|
56
|
+
vue.unref(cs).is("top", rowHeight.value && vue.unref(form).labelPosition == "top")
|
|
57
57
|
],
|
|
58
|
-
prop:
|
|
59
|
-
required:
|
|
60
|
-
rules:
|
|
61
|
-
"label-width": setLabelWidth(
|
|
58
|
+
prop: vue.unref(itemProp),
|
|
59
|
+
required: vue.unref(props).required,
|
|
60
|
+
rules: vue.unref(props).rules,
|
|
61
|
+
"label-width": setLabelWidth(vue.unref(props))
|
|
62
62
|
}), {
|
|
63
|
-
default:
|
|
64
|
-
|
|
65
|
-
listobj:
|
|
63
|
+
default: vue.withCtx(() => [
|
|
64
|
+
vue.createVNode(vue.unref(index$3.FormsDiv), {
|
|
65
|
+
listobj: vue.unref(props),
|
|
66
66
|
optionss: prs.optionss,
|
|
67
67
|
valueobj: prs.valueobj,
|
|
68
68
|
modelValue: value.value,
|
|
69
69
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
70
|
-
},
|
|
71
|
-
|
|
70
|
+
}, vue.createSlots({ _: 2 }, [
|
|
71
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
72
72
|
return {
|
|
73
73
|
name: k,
|
|
74
|
-
fn:
|
|
75
|
-
|
|
74
|
+
fn: vue.withCtx((scope) => [
|
|
75
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
76
76
|
])
|
|
77
77
|
};
|
|
78
78
|
})
|
|
79
79
|
]), 1032, ["listobj", "optionss", "valueobj", "modelValue"])
|
|
80
80
|
]),
|
|
81
81
|
_: 3
|
|
82
|
-
}, 16, ["class", "prop", "required", "rules", "label-width"])) : (
|
|
82
|
+
}, 16, ["class", "prop", "required", "rules", "label-width"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.FormItem), vue.mergeProps({ key: 1 }, vue.unref(attrs).assem, {
|
|
83
83
|
class: [
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
vue.unref(cs).z("el-item"),
|
|
85
|
+
vue.unref(cs).is("height", rowHeight.value && vue.unref(form).labelPosition != "top"),
|
|
86
|
+
vue.unref(cs).is("top", rowHeight.value && vue.unref(form).labelPosition == "top")
|
|
87
87
|
],
|
|
88
|
-
prop:
|
|
89
|
-
required:
|
|
90
|
-
rules:
|
|
91
|
-
"label-width": setLabelWidth(
|
|
88
|
+
prop: vue.unref(itemProp),
|
|
89
|
+
required: vue.unref(props).required,
|
|
90
|
+
rules: vue.unref(props).rules,
|
|
91
|
+
"label-width": setLabelWidth(vue.unref(props))
|
|
92
92
|
}), {
|
|
93
|
-
label:
|
|
94
|
-
|
|
93
|
+
label: vue.withCtx(() => [
|
|
94
|
+
vue.createVNode(vue.unref(label.default), {
|
|
95
95
|
value: value.value,
|
|
96
|
-
label:
|
|
97
|
-
listobj:
|
|
96
|
+
label: vue.unref(props).label,
|
|
97
|
+
listobj: vue.unref(props),
|
|
98
98
|
optionss: prs.optionss,
|
|
99
99
|
valueobj: prs.valueobj
|
|
100
100
|
}, null, 8, ["value", "label", "listobj", "optionss", "valueobj"])
|
|
101
101
|
]),
|
|
102
|
-
default:
|
|
103
|
-
|
|
104
|
-
listobj:
|
|
102
|
+
default: vue.withCtx(() => [
|
|
103
|
+
vue.createVNode(vue.unref(index$3.FormsDiv), {
|
|
104
|
+
listobj: vue.unref(props),
|
|
105
105
|
optionss: prs.optionss,
|
|
106
106
|
valueobj: prs.valueobj,
|
|
107
107
|
modelValue: value.value,
|
|
108
108
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
|
|
109
|
-
},
|
|
110
|
-
|
|
109
|
+
}, vue.createSlots({ _: 2 }, [
|
|
110
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
111
111
|
return {
|
|
112
112
|
name: k,
|
|
113
|
-
fn:
|
|
114
|
-
|
|
113
|
+
fn: vue.withCtx((scope) => [
|
|
114
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
115
115
|
])
|
|
116
116
|
};
|
|
117
117
|
})
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const use = require("../../common/use.cjs");
|
|
5
5
|
const isObject = require("@fangzhongya/utils/basic/object/isObject");
|
|
6
6
|
function render(props, emit, slots, form) {
|
|
7
|
-
const compons =
|
|
7
|
+
const compons = vue.inject("forms-compons", {});
|
|
8
8
|
let label = props.label ?? "";
|
|
9
9
|
const index = 0;
|
|
10
10
|
if (label) {
|
|
@@ -44,7 +44,7 @@ function render(props, emit, slots, form) {
|
|
|
44
44
|
}
|
|
45
45
|
return label;
|
|
46
46
|
}
|
|
47
|
-
const Lable =
|
|
47
|
+
const Lable = vue.defineComponent({
|
|
48
48
|
emits: [],
|
|
49
49
|
expose: [],
|
|
50
50
|
props: {
|
|
@@ -83,7 +83,7 @@ const Lable = vues.defineComponent({
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
setup(props, { emit, slots }) {
|
|
86
|
-
const form =
|
|
86
|
+
const form = vue.inject("forms-form", {});
|
|
87
87
|
return () => render(props, emit, slots, form);
|
|
88
88
|
}
|
|
89
89
|
});
|