@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
|
@@ -1,12 +1,12 @@
|
|
|
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 index$2 = require("../../icon/index.cjs");
|
|
5
5
|
const edit = require("../../../icons/vue/edit.cjs");
|
|
6
6
|
const data = require("./data.cjs");
|
|
7
7
|
const index$1 = require("../../inputs/index.cjs");
|
|
8
8
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: data.dataProps,
|
|
12
12
|
emits: data.dataEmits,
|
|
@@ -14,19 +14,19 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
14
14
|
const cs = index.useCssName("edit");
|
|
15
15
|
const props = __props;
|
|
16
16
|
const emit = __emit;
|
|
17
|
-
const isInput =
|
|
18
|
-
const isIcon =
|
|
19
|
-
const refEditInput =
|
|
20
|
-
const refEdit =
|
|
21
|
-
const width =
|
|
22
|
-
const display =
|
|
17
|
+
const isInput = vue.ref(false);
|
|
18
|
+
const isIcon = vue.ref(false);
|
|
19
|
+
const refEditInput = vue.ref();
|
|
20
|
+
const refEdit = vue.ref();
|
|
21
|
+
const width = vue.ref("");
|
|
22
|
+
const display = vue.ref("");
|
|
23
23
|
const getWidth = () => {
|
|
24
24
|
const dom = refEdit.value;
|
|
25
25
|
if (dom) {
|
|
26
26
|
width.value = (dom.clientWidth || dom.offsetWidth) + 40 + "px";
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
const value =
|
|
29
|
+
const value = vue.computed({
|
|
30
30
|
get() {
|
|
31
31
|
let v = props.modelValue;
|
|
32
32
|
if (!v && props.noEmpty) {
|
|
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
62
62
|
refEditInput.value.focus();
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
vue.onMounted(() => {
|
|
66
66
|
let dom = refEdit.value;
|
|
67
67
|
dom.onmouseenter = (event) => {
|
|
68
68
|
isIcon.value = true;
|
|
@@ -79,14 +79,14 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
79
79
|
...data.dataExpose
|
|
80
80
|
});
|
|
81
81
|
return (_ctx, _cache) => {
|
|
82
|
-
return
|
|
82
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
83
83
|
ref_key: "refEdit",
|
|
84
84
|
ref: refEdit,
|
|
85
|
-
class:
|
|
85
|
+
class: vue.normalizeClass(vue.unref(cs).z())
|
|
86
86
|
}, [
|
|
87
|
-
isInput.value ? (
|
|
87
|
+
isInput.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.Inputs), {
|
|
88
88
|
key: 0,
|
|
89
|
-
style:
|
|
89
|
+
style: vue.normalizeStyle({ width: width.value, display: display.value }),
|
|
90
90
|
modelValue: value.value,
|
|
91
91
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
92
92
|
ref_key: "refEditInput",
|
|
@@ -94,22 +94,22 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
94
94
|
type: props.textarea ? "textarea" : "text",
|
|
95
95
|
clearable: _ctx.clearable,
|
|
96
96
|
onBlur,
|
|
97
|
-
class:
|
|
98
|
-
}, null, 8, ["style", "modelValue", "type", "clearable", "class"])) : (
|
|
97
|
+
class: vue.normalizeClass(vue.unref(cs).z("input"))
|
|
98
|
+
}, null, 8, ["style", "modelValue", "type", "clearable", "class"])) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
99
99
|
key: 1,
|
|
100
|
-
onDblclick:
|
|
101
|
-
class:
|
|
102
|
-
},
|
|
103
|
-
isIcon.value && !isInput.value ? (
|
|
100
|
+
onDblclick: vue.withModifiers(onDblclick, ["stop"]),
|
|
101
|
+
class: vue.normalizeClass(vue.unref(cs).z("value"))
|
|
102
|
+
}, vue.toDisplayString(value.value), 35)),
|
|
103
|
+
isIcon.value && !isInput.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Icon), {
|
|
104
104
|
key: 2,
|
|
105
105
|
onClick,
|
|
106
|
-
class:
|
|
106
|
+
class: vue.normalizeClass(vue.unref(cs).z("icon"))
|
|
107
107
|
}, {
|
|
108
|
-
default:
|
|
109
|
-
|
|
108
|
+
default: vue.withCtx(() => [
|
|
109
|
+
vue.createVNode(edit.default)
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
|
-
}, 8, ["class"])) :
|
|
112
|
+
}, 8, ["class"])) : vue.createCommentVNode("", true)
|
|
113
113
|
], 2);
|
|
114
114
|
};
|
|
115
115
|
}
|
|
@@ -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 edit = require("../../../icons/vue/edit.cjs");
|
|
5
5
|
const index$5 = require("../../icon/index.cjs");
|
|
6
6
|
const index$2 = require("../../popover/index.cjs");
|
|
@@ -9,7 +9,7 @@ const index$3 = require("../../inputs/index.cjs");
|
|
|
9
9
|
const data = require("./data.cjs");
|
|
10
10
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
11
11
|
const index = require("../../../hooks/locale/index.cjs");
|
|
12
|
-
const _sfc_main = /* @__PURE__ */
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: data.dataProps,
|
|
15
15
|
emits: data.dataEmits,
|
|
@@ -18,12 +18,12 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
18
18
|
const cs = index$1.useCssName("edit-float");
|
|
19
19
|
const props = __props;
|
|
20
20
|
const emit = __emit;
|
|
21
|
-
const isInput =
|
|
22
|
-
const isIcon =
|
|
23
|
-
const refEditInput =
|
|
24
|
-
const refEdit =
|
|
25
|
-
const value =
|
|
26
|
-
|
|
21
|
+
const isInput = vue.ref(false);
|
|
22
|
+
const isIcon = vue.ref(false);
|
|
23
|
+
const refEditInput = vue.ref();
|
|
24
|
+
const refEdit = vue.ref();
|
|
25
|
+
const value = vue.ref(props.modelValue);
|
|
26
|
+
vue.watch(
|
|
27
27
|
() => props.modelValue,
|
|
28
28
|
() => {
|
|
29
29
|
value.value = props.modelValue;
|
|
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
65
65
|
isInput.value = false;
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
vue.onMounted(() => {
|
|
69
69
|
let dom = refEdit.value;
|
|
70
70
|
dom.onmouseenter = (event) => {
|
|
71
71
|
isIcon.value = true;
|
|
@@ -81,44 +81,44 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
81
81
|
...data.dataExpose
|
|
82
82
|
});
|
|
83
83
|
return (_ctx, _cache) => {
|
|
84
|
-
return
|
|
84
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
85
85
|
ref_key: "refEdit",
|
|
86
86
|
ref: refEdit,
|
|
87
|
-
class:
|
|
87
|
+
class: vue.normalizeClass(vue.unref(cs).z())
|
|
88
88
|
}, [
|
|
89
|
-
|
|
89
|
+
vue.createVNode(vue.unref(index$2.Popover), {
|
|
90
90
|
visible: isInput.value,
|
|
91
91
|
placement: "top",
|
|
92
92
|
width: 200
|
|
93
93
|
}, {
|
|
94
|
-
reference:
|
|
95
|
-
|
|
96
|
-
class:
|
|
94
|
+
reference: vue.withCtx(() => [
|
|
95
|
+
vue.createElementVNode("span", {
|
|
96
|
+
class: vue.normalizeClass(vue.unref(cs).z("body"))
|
|
97
97
|
}, [
|
|
98
|
-
|
|
99
|
-
onDblclick:
|
|
100
|
-
class:
|
|
101
|
-
},
|
|
102
|
-
isIcon.value && !isInput.value ? (
|
|
98
|
+
vue.createElementVNode("span", {
|
|
99
|
+
onDblclick: vue.withModifiers(onDblclick, ["stop"]),
|
|
100
|
+
class: vue.normalizeClass(vue.unref(cs).z("value"))
|
|
101
|
+
}, vue.toDisplayString(props.modelValue), 35),
|
|
102
|
+
isIcon.value && !isInput.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$5.Icon), {
|
|
103
103
|
key: 0,
|
|
104
104
|
onClick,
|
|
105
|
-
class:
|
|
105
|
+
class: vue.normalizeClass(vue.unref(cs).z("icon"))
|
|
106
106
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
|
|
107
|
+
default: vue.withCtx(() => [
|
|
108
|
+
vue.createVNode(edit.default)
|
|
109
109
|
]),
|
|
110
110
|
_: 1
|
|
111
|
-
}, 8, ["class"])) :
|
|
111
|
+
}, 8, ["class"])) : vue.createCommentVNode("", true)
|
|
112
112
|
], 2)
|
|
113
113
|
]),
|
|
114
|
-
default:
|
|
115
|
-
|
|
116
|
-
class:
|
|
114
|
+
default: vue.withCtx(() => [
|
|
115
|
+
vue.createElementVNode("div", {
|
|
116
|
+
class: vue.normalizeClass(vue.unref(cs).z("popover"))
|
|
117
117
|
}, [
|
|
118
|
-
|
|
119
|
-
class:
|
|
120
|
-
},
|
|
121
|
-
|
|
118
|
+
vue.createElementVNode("div", {
|
|
119
|
+
class: vue.normalizeClass(vue.unref(cs).z("title"))
|
|
120
|
+
}, vue.toDisplayString(vue.unref(getLocale)("modify")), 3),
|
|
121
|
+
vue.createVNode(vue.unref(index$3.Inputs), {
|
|
122
122
|
modelValue: value.value,
|
|
123
123
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
124
124
|
ref_key: "refEditInput",
|
|
@@ -126,28 +126,28 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
126
126
|
type: props.textarea ? "textarea" : "text",
|
|
127
127
|
onBlur,
|
|
128
128
|
clearable: _ctx.clearable,
|
|
129
|
-
class:
|
|
129
|
+
class: vue.normalizeClass(vue.unref(cs).z("input"))
|
|
130
130
|
}, null, 8, ["modelValue", "type", "clearable", "class"]),
|
|
131
|
-
|
|
132
|
-
class:
|
|
131
|
+
vue.createElementVNode("div", {
|
|
132
|
+
class: vue.normalizeClass(vue.unref(cs).z("but"))
|
|
133
133
|
}, [
|
|
134
|
-
|
|
134
|
+
vue.createVNode(vue.unref(index$4.Button), {
|
|
135
135
|
size: "small",
|
|
136
136
|
text: "",
|
|
137
137
|
onClick: onClickqx
|
|
138
138
|
}, {
|
|
139
|
-
default:
|
|
140
|
-
|
|
139
|
+
default: vue.withCtx(() => [
|
|
140
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("close")), 1)
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
143
143
|
}),
|
|
144
|
-
|
|
144
|
+
vue.createVNode(vue.unref(index$4.Button), {
|
|
145
145
|
size: "small",
|
|
146
146
|
type: "primary",
|
|
147
147
|
onClick: onConfirm
|
|
148
148
|
}, {
|
|
149
|
-
default:
|
|
150
|
-
|
|
149
|
+
default: vue.withCtx(() => [
|
|
150
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("form.confirm")), 1)
|
|
151
151
|
]),
|
|
152
152
|
_: 1
|
|
153
153
|
})
|
|
@@ -1,21 +1,21 @@
|
|
|
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 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("../../../hooks/expose/index.cjs");
|
|
7
7
|
const index$2 = require("element-plus/es/components/form/index");
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: data.dataProps,
|
|
11
11
|
emits: data.dataEmits,
|
|
12
12
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
-
const attrs =
|
|
14
|
-
const slots =
|
|
13
|
+
const attrs = vue.useAttrs();
|
|
14
|
+
const slots = vue.useSlots();
|
|
15
15
|
const cs = index.useCssName("form");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const elRef =
|
|
18
|
+
const elRef = vue.ref();
|
|
19
19
|
__expose(
|
|
20
20
|
index$1.useExpose(
|
|
21
21
|
{
|
|
@@ -25,16 +25,16 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
25
25
|
)
|
|
26
26
|
);
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
|
-
return
|
|
28
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElForm), vue.mergeProps({
|
|
29
29
|
ref_key: "elRef",
|
|
30
30
|
ref: elRef,
|
|
31
|
-
class:
|
|
32
|
-
},
|
|
33
|
-
|
|
31
|
+
class: vue.unref(cs).z()
|
|
32
|
+
}, vue.unref(attrs)), vue.createSlots({ _: 2 }, [
|
|
33
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
34
34
|
return {
|
|
35
35
|
name: k,
|
|
36
|
-
fn:
|
|
37
|
-
|
|
36
|
+
fn: vue.withCtx((scope) => [
|
|
37
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
38
38
|
])
|
|
39
39
|
};
|
|
40
40
|
})
|
|
@@ -1,21 +1,21 @@
|
|
|
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 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("../../../hooks/expose/index.cjs");
|
|
7
7
|
const index$2 = require("element-plus/es/components/form/index");
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: data.dataProps,
|
|
11
11
|
emits: data.dataEmits,
|
|
12
12
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
-
const attrs =
|
|
14
|
-
const slots =
|
|
13
|
+
const attrs = vue.useAttrs();
|
|
14
|
+
const slots = vue.useSlots();
|
|
15
15
|
const cs = index.useCssName("form-item");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const elRef =
|
|
18
|
+
const elRef = vue.ref();
|
|
19
19
|
__expose(
|
|
20
20
|
index$1.useExpose(
|
|
21
21
|
{
|
|
@@ -25,16 +25,16 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
25
25
|
)
|
|
26
26
|
);
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
|
-
return
|
|
28
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElFormItem), vue.mergeProps({
|
|
29
29
|
ref_key: "elRef",
|
|
30
30
|
ref: elRef,
|
|
31
|
-
class:
|
|
32
|
-
},
|
|
33
|
-
|
|
31
|
+
class: vue.unref(cs).z()
|
|
32
|
+
}, vue.unref(attrs)), vue.createSlots({ _: 2 }, [
|
|
33
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
34
34
|
return {
|
|
35
35
|
name: k,
|
|
36
|
-
fn:
|
|
37
|
-
|
|
36
|
+
fn: vue.withCtx((scope) => [
|
|
37
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
38
38
|
])
|
|
39
39
|
};
|
|
40
40
|
})
|
|
@@ -465,6 +465,12 @@
|
|
|
465
465
|
align-items: center;
|
|
466
466
|
justify-content: center;
|
|
467
467
|
}
|
|
468
|
+
.uploads-upload-trigger.is-disabled {
|
|
469
|
+
box-shadow: 0 0 0 1px var(--el-disabled-border-color) inset;
|
|
470
|
+
background-color: var(--el-disabled-bg-color);
|
|
471
|
+
color: var(--el-disabled-text-color);
|
|
472
|
+
cursor: not-allowed;
|
|
473
|
+
}
|
|
468
474
|
.uploads-list {
|
|
469
475
|
display: flex;
|
|
470
476
|
flex-wrap: wrap;
|
|
@@ -505,6 +511,22 @@
|
|
|
505
511
|
height: 100%;
|
|
506
512
|
width: 100%;
|
|
507
513
|
}
|
|
514
|
+
.uploads-list-li-value-img-error {
|
|
515
|
+
font-size: 14px;
|
|
516
|
+
background-color: var(--el-fill-color-light);
|
|
517
|
+
color: var(--el-text-color-placeholder);
|
|
518
|
+
max-height: 100%;
|
|
519
|
+
/* 换行设置 */
|
|
520
|
+
white-space: normal;
|
|
521
|
+
word-wrap: break-word;
|
|
522
|
+
overflow-wrap: break-word;
|
|
523
|
+
/* 多行省略 */
|
|
524
|
+
display: -webkit-box;
|
|
525
|
+
-webkit-box-orient: vertical;
|
|
526
|
+
-webkit-line-clamp: 4;
|
|
527
|
+
overflow: hidden;
|
|
528
|
+
line-height: 1.1;
|
|
529
|
+
}
|
|
508
530
|
.uploads-list-li-value-document {
|
|
509
531
|
height: 100%;
|
|
510
532
|
width: 100%;
|
|
@@ -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
|
const index$4 = require("../../forms-div/index.cjs");
|
|
6
6
|
const index$5 = require("../../forms-item/index.cjs");
|
|
@@ -12,20 +12,20 @@ const index$1 = require("../../../hooks/inherit/index.cjs");
|
|
|
12
12
|
const use = require("../../common/use.cjs");
|
|
13
13
|
const setup = require("./setup.cjs");
|
|
14
14
|
const index = require("../../../hooks/locale/index.cjs");
|
|
15
|
-
const _sfc_main = /* @__PURE__ */
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
16
|
...{ inheritAttrs: false },
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: data.dataProps,
|
|
19
19
|
emits: data.dataEmits,
|
|
20
20
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
21
|
const { getLocale } = index.useLocale();
|
|
22
|
-
const slots =
|
|
23
|
-
const attrs = index$1.useInherit(
|
|
22
|
+
const slots = vue.useSlots();
|
|
23
|
+
const attrs = index$1.useInherit(vue.useAttrs());
|
|
24
24
|
const props = __props;
|
|
25
25
|
const emit = __emit;
|
|
26
26
|
const cs = index$2.useCssName("forms");
|
|
27
|
-
const refForm =
|
|
28
|
-
const refEl =
|
|
27
|
+
const refForm = vue.ref();
|
|
28
|
+
const refEl = vue.ref();
|
|
29
29
|
const {
|
|
30
30
|
buts,
|
|
31
31
|
styles,
|
|
@@ -71,126 +71,126 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
71
71
|
validate
|
|
72
72
|
});
|
|
73
73
|
return (_ctx, _cache) => {
|
|
74
|
-
return
|
|
74
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
75
75
|
ref_key: "refEl",
|
|
76
76
|
ref: refEl,
|
|
77
|
-
class: [
|
|
78
|
-
style:
|
|
77
|
+
class: [vue.unref(cs).z()],
|
|
78
|
+
style: vue.unref(cs).vdo({
|
|
79
79
|
itemBottom: _ctx.itemBottom,
|
|
80
80
|
inlineRight: _ctx.inlineRight,
|
|
81
81
|
queryInterval: _ctx.queryInterval,
|
|
82
82
|
rowHeight: _ctx.rowHeight
|
|
83
83
|
})
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
class:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
}, vue.unref(attrs).root), [
|
|
85
|
+
vue.createElementVNode("div", {
|
|
86
|
+
class: vue.normalizeClass([
|
|
87
|
+
vue.unref(cs).z("div"),
|
|
88
|
+
vue.unref(cs).zis("div", "inline", props.inline),
|
|
89
|
+
vue.unref(cs).zis("div", "box", props.inlineBox),
|
|
90
|
+
vue.unref(cs).zis("div", "query", props.query),
|
|
91
|
+
vue.unref(cs).zis("div", "column", props.column > 1)
|
|
92
92
|
]),
|
|
93
|
-
style:
|
|
93
|
+
style: vue.normalizeStyle(vue.unref(styles))
|
|
94
94
|
}, [
|
|
95
|
-
(
|
|
95
|
+
(vue.openBlock(), vue.createBlock(vue.unref(index$3.Form), vue.mergeProps(vue.unref(attrs).assem, {
|
|
96
96
|
key: props.list.length,
|
|
97
|
-
class: [
|
|
98
|
-
model:
|
|
97
|
+
class: [vue.unref(cs).z("elf"), props.labelPosition],
|
|
98
|
+
model: vue.unref(dataForm),
|
|
99
99
|
disabled: props.disabled,
|
|
100
|
-
rules:
|
|
100
|
+
rules: vue.unref(dataRules),
|
|
101
101
|
"label-width": props.labelPosition == "auto" ? "" : props.labelWidth,
|
|
102
102
|
"label-position": props.labelPosition == "auto" ? void 0 : props.labelPosition,
|
|
103
103
|
ref_key: "refForm",
|
|
104
104
|
ref: refForm,
|
|
105
|
-
onSubmit: _cache[2] || (_cache[2] =
|
|
105
|
+
onSubmit: _cache[2] || (_cache[2] = vue.withModifiers(() => {
|
|
106
106
|
}, ["prevent"]))
|
|
107
107
|
}), {
|
|
108
|
-
default:
|
|
109
|
-
|
|
110
|
-
(
|
|
111
|
-
return
|
|
108
|
+
default: vue.withCtx(() => [
|
|
109
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).header),
|
|
110
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.list, (item, index2) => {
|
|
111
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
112
112
|
key: setKey(item, index2),
|
|
113
|
-
class:
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
class: vue.normalizeClass([
|
|
114
|
+
vue.unref(cs).z("li"),
|
|
115
|
+
vue.unref(cs).is("div", item == null ? void 0 : item.isdiv),
|
|
116
116
|
item.class
|
|
117
117
|
]),
|
|
118
|
-
style:
|
|
118
|
+
style: vue.normalizeStyle(vue.unref(setStyles)(item))
|
|
119
119
|
}, [
|
|
120
|
-
(item == null ? void 0 : item.isdiv) ? (
|
|
120
|
+
(item == null ? void 0 : item.isdiv) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.FormsDiv), {
|
|
121
121
|
key: 0,
|
|
122
122
|
listobj: item,
|
|
123
123
|
optionss: props.options,
|
|
124
|
-
valueobj:
|
|
125
|
-
modelValue:
|
|
126
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
127
|
-
},
|
|
128
|
-
|
|
124
|
+
valueobj: vue.unref(dataForm),
|
|
125
|
+
modelValue: vue.unref(dataForm),
|
|
126
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(dataForm) ? dataForm.value = $event : null)
|
|
127
|
+
}, vue.createSlots({ _: 2 }, [
|
|
128
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
129
129
|
return {
|
|
130
130
|
name: k,
|
|
131
|
-
fn:
|
|
132
|
-
|
|
131
|
+
fn: vue.withCtx((scope) => [
|
|
132
|
+
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
|
|
133
133
|
])
|
|
134
134
|
};
|
|
135
135
|
})
|
|
136
|
-
]), 1032, ["listobj", "optionss", "valueobj", "modelValue"])) : (
|
|
136
|
+
]), 1032, ["listobj", "optionss", "valueobj", "modelValue"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$5.FormsItem), {
|
|
137
137
|
key: 1,
|
|
138
138
|
listobj: item,
|
|
139
139
|
optionss: props.options,
|
|
140
|
-
valueobj:
|
|
141
|
-
modelValue:
|
|
142
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
143
|
-
},
|
|
144
|
-
|
|
140
|
+
valueobj: vue.unref(dataForm),
|
|
141
|
+
modelValue: vue.unref(dataForm),
|
|
142
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(dataForm) ? dataForm.value = $event : null)
|
|
143
|
+
}, vue.createSlots({ _: 2 }, [
|
|
144
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
145
145
|
return {
|
|
146
146
|
name: k,
|
|
147
|
-
fn:
|
|
148
|
-
|
|
147
|
+
fn: vue.withCtx((scope) => [
|
|
148
|
+
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
|
|
149
149
|
])
|
|
150
150
|
};
|
|
151
151
|
})
|
|
152
152
|
]), 1032, ["listobj", "optionss", "valueobj", "modelValue"]))
|
|
153
153
|
], 6)), [
|
|
154
|
-
[
|
|
154
|
+
[vue.vShow, !vue.unref(use.useHide)(item, vue.unref(dataForm))]
|
|
155
155
|
]);
|
|
156
156
|
}), 128)),
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).footer),
|
|
158
|
+
vue.unref(buts) && vue.unref(buts).length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
159
159
|
key: 0,
|
|
160
|
-
class:
|
|
161
|
-
style:
|
|
160
|
+
class: vue.normalizeClass([vue.unref(cs).z("li"), vue.unref(cs).z("buts")]),
|
|
161
|
+
style: vue.normalizeStyle(vue.unref(setStyles)({}))
|
|
162
162
|
}, [
|
|
163
|
-
|
|
163
|
+
vue.createVNode(vue.unref(index$6.FormItem), {
|
|
164
164
|
"label-width": props.butLeft
|
|
165
165
|
}, {
|
|
166
|
-
default:
|
|
167
|
-
|
|
168
|
-
style:
|
|
166
|
+
default: vue.withCtx(() => [
|
|
167
|
+
vue.createElementVNode("div", {
|
|
168
|
+
style: vue.normalizeStyle({
|
|
169
169
|
height: props.butHeight ?? props.rowHeight
|
|
170
170
|
}),
|
|
171
|
-
class:
|
|
171
|
+
class: vue.normalizeClass(vue.unref(cs).z("buts-div"))
|
|
172
172
|
}, [
|
|
173
|
-
(
|
|
174
|
-
return
|
|
175
|
-
!
|
|
173
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(buts), (item, index2) => {
|
|
174
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
175
|
+
!vue.unref(use.useHide)(item, vue.unref(dataForm)) ? (vue.openBlock(), vue.createBlock(vue.unref(index$7.Button), vue.mergeProps({
|
|
176
176
|
key: 0,
|
|
177
177
|
ref_for: true
|
|
178
178
|
}, item, {
|
|
179
179
|
disabled: item.disabled ?? props.disabled,
|
|
180
|
-
onClick:
|
|
180
|
+
onClick: vue.withModifiers(($event) => vue.unref(onClickButs)(item, index2, $event), ["stop"])
|
|
181
181
|
}), {
|
|
182
|
-
default:
|
|
183
|
-
|
|
182
|
+
default: vue.withCtx(() => [
|
|
183
|
+
vue.createTextVNode(vue.toDisplayString(item.label), 1)
|
|
184
184
|
]),
|
|
185
185
|
_: 2
|
|
186
|
-
}, 1040, ["disabled", "onClick"])) :
|
|
186
|
+
}, 1040, ["disabled", "onClick"])) : vue.createCommentVNode("", true)
|
|
187
187
|
], 64);
|
|
188
188
|
}), 128))
|
|
189
189
|
], 6)
|
|
190
190
|
]),
|
|
191
191
|
_: 1
|
|
192
192
|
}, 8, ["label-width"])
|
|
193
|
-
], 6)) :
|
|
193
|
+
], 6)) : vue.createCommentVNode("", true)
|
|
194
194
|
]),
|
|
195
195
|
_: 3
|
|
196
196
|
}, 16, ["class", "model", "disabled", "rules", "label-width", "label-position"]))
|