@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,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("../../../hooks/index.cjs");
|
|
6
6
|
require("../../loading/index.cjs");
|
|
@@ -9,18 +9,18 @@ const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
|
9
9
|
const index$2 = require("../../../hooks/inherit/index.cjs");
|
|
10
10
|
const index$3 = require("../../loading/src/index.cjs");
|
|
11
11
|
const _hoisted_1 = ["width", "height", "frameborder", "src"];
|
|
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,
|
|
16
16
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
17
17
|
const { getLocale } = index.useLocale();
|
|
18
18
|
const cs = index$1.useCssName("iframe");
|
|
19
|
-
const attrs = index$2.useInherit(
|
|
19
|
+
const attrs = index$2.useInherit(vue.useAttrs());
|
|
20
20
|
const props = __props;
|
|
21
21
|
const emit = __emit;
|
|
22
|
-
const loading =
|
|
23
|
-
const src =
|
|
22
|
+
const loading = vue.ref(false);
|
|
23
|
+
const src = vue.computed(() => {
|
|
24
24
|
const url = props.url;
|
|
25
25
|
if (url) {
|
|
26
26
|
loading.value = true;
|
|
@@ -31,22 +31,27 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
31
31
|
loading.value = false;
|
|
32
32
|
emit("load");
|
|
33
33
|
};
|
|
34
|
+
const onError = () => {
|
|
35
|
+
loading.value = false;
|
|
36
|
+
emit("error");
|
|
37
|
+
};
|
|
34
38
|
__expose({
|
|
35
39
|
...data.dataExpose
|
|
36
40
|
});
|
|
37
41
|
return (_ctx, _cache) => {
|
|
38
|
-
return
|
|
39
|
-
class:
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
43
|
+
class: vue.unref(cs).z()
|
|
44
|
+
}, vue.unref(attrs).root), [
|
|
45
|
+
vue.createElementVNode("iframe", vue.mergeProps(vue.unref(attrs).assem, {
|
|
42
46
|
width: props.width,
|
|
43
47
|
height: props.height,
|
|
44
48
|
frameborder: props.frameborder,
|
|
45
49
|
onLoad,
|
|
50
|
+
onError,
|
|
46
51
|
src: src.value
|
|
47
52
|
}), null, 16, _hoisted_1)
|
|
48
53
|
], 16)), [
|
|
49
|
-
[
|
|
54
|
+
[vue.unref(index$3.vLoading), loading.value]
|
|
50
55
|
]);
|
|
51
56
|
};
|
|
52
57
|
}
|
|
@@ -29,6 +29,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
loading.value = false;
|
|
30
30
|
emit("load");
|
|
31
31
|
};
|
|
32
|
+
const onError = () => {
|
|
33
|
+
loading.value = false;
|
|
34
|
+
emit("error");
|
|
35
|
+
};
|
|
32
36
|
__expose({
|
|
33
37
|
...dataExpose
|
|
34
38
|
});
|
|
@@ -41,6 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
45
|
height: props.height,
|
|
42
46
|
frameborder: props.frameborder,
|
|
43
47
|
onLoad,
|
|
48
|
+
onError,
|
|
44
49
|
src: src.value
|
|
45
50
|
}), null, 16, _hoisted_1)
|
|
46
51
|
], 16)), [
|
|
@@ -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/image/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("image");
|
|
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.ElImage), 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/image-viewer/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("image-viewer");
|
|
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.ElImageViewer), 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,28 +1,28 @@
|
|
|
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("../../../hooks/expose/index.cjs");
|
|
5
5
|
const data = require("./data.cjs");
|
|
6
6
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
7
7
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
8
8
|
const index$3 = require("../../image/index.cjs");
|
|
9
9
|
const util = require("../../players/common/util.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: data.dataProps,
|
|
13
13
|
emits: data.dataEmits,
|
|
14
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
|
-
const refEl =
|
|
16
|
-
const attrs = index.useInherit(
|
|
17
|
-
const slots =
|
|
18
|
-
const elRef =
|
|
15
|
+
const refEl = vue.ref();
|
|
16
|
+
const attrs = index.useInherit(vue.useAttrs());
|
|
17
|
+
const slots = vue.useSlots();
|
|
18
|
+
const elRef = vue.ref();
|
|
19
19
|
const cs = index$1.useCssName("images");
|
|
20
20
|
const props = __props;
|
|
21
21
|
const emit = __emit;
|
|
22
|
-
const list =
|
|
22
|
+
const list = vue.computed(() => {
|
|
23
23
|
return util.getListValue(props.list).map((o) => o.url);
|
|
24
24
|
});
|
|
25
|
-
const value =
|
|
25
|
+
const value = vue.computed(() => {
|
|
26
26
|
return list.value[0];
|
|
27
27
|
});
|
|
28
28
|
__expose(
|
|
@@ -34,26 +34,26 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
34
34
|
)
|
|
35
35
|
);
|
|
36
36
|
return (_ctx, _cache) => {
|
|
37
|
-
return
|
|
38
|
-
class: [
|
|
39
|
-
},
|
|
37
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
38
|
+
class: [vue.unref(cs).z()]
|
|
39
|
+
}, vue.unref(attrs).root, {
|
|
40
40
|
style: {
|
|
41
41
|
width: props.width,
|
|
42
42
|
height: props.height
|
|
43
43
|
}
|
|
44
44
|
}), [
|
|
45
|
-
|
|
46
|
-
class: [
|
|
45
|
+
vue.createVNode(vue.unref(index$3.Image), vue.mergeProps(vue.unref(attrs).assem, {
|
|
46
|
+
class: [vue.unref(cs).z("img")],
|
|
47
47
|
src: value.value,
|
|
48
48
|
"preview-src-list": props.list,
|
|
49
49
|
ref_key: "elRef",
|
|
50
50
|
ref: elRef
|
|
51
|
-
}),
|
|
52
|
-
|
|
51
|
+
}), vue.createSlots({ _: 2 }, [
|
|
52
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
53
53
|
return {
|
|
54
54
|
name: k,
|
|
55
|
-
fn:
|
|
56
|
-
|
|
55
|
+
fn: vue.withCtx(() => [
|
|
56
|
+
vue.renderSlot(_ctx.$slots, k)
|
|
57
57
|
])
|
|
58
58
|
};
|
|
59
59
|
})
|
|
@@ -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/input/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("input");
|
|
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.ElInput), 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,13 +1,13 @@
|
|
|
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$3 = require("../../icon/index.cjs");
|
|
5
5
|
const clear = require("../../../icons/vue/clear.cjs");
|
|
6
6
|
const data = require("./data.cjs");
|
|
7
7
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const index$1 = require("../../input-number/index.cjs");
|
|
9
9
|
const index$2 = require("../../input/index.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: data.dataProps,
|
|
13
13
|
emits: data.dataEmits,
|
|
@@ -15,10 +15,10 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
15
15
|
const cs = index.useCssName("input-array");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const refInput =
|
|
19
|
-
const isfocus =
|
|
20
|
-
const start =
|
|
21
|
-
const end =
|
|
18
|
+
const refInput = vue.ref();
|
|
19
|
+
const isfocus = vue.ref(false);
|
|
20
|
+
const start = vue.ref("");
|
|
21
|
+
const end = vue.ref("");
|
|
22
22
|
if (props.isNumber) {
|
|
23
23
|
start.value = 0;
|
|
24
24
|
end.value = 0;
|
|
@@ -26,8 +26,8 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
26
26
|
start.value = "";
|
|
27
27
|
end.value = "";
|
|
28
28
|
}
|
|
29
|
-
const emove =
|
|
30
|
-
const isclear =
|
|
29
|
+
const emove = vue.ref(false);
|
|
30
|
+
const isclear = vue.computed(() => {
|
|
31
31
|
if (props.clearable) {
|
|
32
32
|
if (start.value || end.value) {
|
|
33
33
|
if (emove.value || isfocus.value) {
|
|
@@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
37
37
|
}
|
|
38
38
|
return false;
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
vue.watch(
|
|
41
41
|
() => props.modelValue,
|
|
42
42
|
() => {
|
|
43
43
|
let v = props.modelValue || [];
|
|
@@ -67,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
67
67
|
deep: true
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
|
-
|
|
70
|
+
vue.watch(
|
|
71
71
|
() => isfocus.value,
|
|
72
72
|
() => {
|
|
73
73
|
if (isfocus.value) {
|
|
@@ -131,16 +131,16 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
131
131
|
...data.dataExpose
|
|
132
132
|
});
|
|
133
133
|
return (_ctx, _cache) => {
|
|
134
|
-
return
|
|
135
|
-
class:
|
|
134
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
135
|
+
class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(cs).is("focus", isfocus.value)]),
|
|
136
136
|
onMouseenter,
|
|
137
137
|
onMouseleave,
|
|
138
|
-
onClick:
|
|
138
|
+
onClick: vue.withModifiers(onClick, ["stop"])
|
|
139
139
|
}, [
|
|
140
|
-
|
|
141
|
-
props.isNumber ? (
|
|
140
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).prefix),
|
|
141
|
+
props.isNumber ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.InputNumber), {
|
|
142
142
|
key: 0,
|
|
143
|
-
class:
|
|
143
|
+
class: vue.normalizeClass([vue.unref(cs).z("input")]),
|
|
144
144
|
modelValue: start.value,
|
|
145
145
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => start.value = $event),
|
|
146
146
|
readonly: props.readonly,
|
|
@@ -148,64 +148,64 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
148
148
|
placeholder: props.startPlaceholder,
|
|
149
149
|
"controls-position": props.isRight ? "right" : "",
|
|
150
150
|
onInput: omInput,
|
|
151
|
-
onClick:
|
|
151
|
+
onClick: vue.withModifiers(onFocus, ["stop"]),
|
|
152
152
|
onBlur
|
|
153
|
-
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder", "controls-position"])) : (
|
|
153
|
+
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder", "controls-position"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.Input), {
|
|
154
154
|
key: 1,
|
|
155
|
-
class:
|
|
155
|
+
class: vue.normalizeClass([vue.unref(cs).z("input")]),
|
|
156
156
|
modelValue: start.value,
|
|
157
157
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => start.value = $event),
|
|
158
158
|
readonly: props.readonly,
|
|
159
159
|
clearable: props.inputClearable,
|
|
160
160
|
placeholder: props.startPlaceholder,
|
|
161
161
|
onInput: omInput,
|
|
162
|
-
onClick:
|
|
162
|
+
onClick: vue.withModifiers(onFocus, ["stop"]),
|
|
163
163
|
onBlur
|
|
164
164
|
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder"])),
|
|
165
|
-
|
|
166
|
-
class:
|
|
167
|
-
},
|
|
168
|
-
props.isNumber ? (
|
|
165
|
+
vue.createElementVNode("span", {
|
|
166
|
+
class: vue.normalizeClass([vue.unref(cs).z("range")])
|
|
167
|
+
}, vue.toDisplayString(props.rangeSeparator), 3),
|
|
168
|
+
props.isNumber ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.InputNumber), {
|
|
169
169
|
key: 2,
|
|
170
|
-
class:
|
|
170
|
+
class: vue.normalizeClass([vue.unref(cs).z("input")]),
|
|
171
171
|
modelValue: end.value,
|
|
172
172
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => end.value = $event),
|
|
173
173
|
readonly: props.readonly,
|
|
174
174
|
clearable: props.inputClearable,
|
|
175
175
|
placeholder: props.endPlaceholder,
|
|
176
176
|
"controls-position": props.isRight ? "right" : "",
|
|
177
|
-
onClick:
|
|
177
|
+
onClick: vue.withModifiers(onFocus, ["stop"]),
|
|
178
178
|
onInput: omInput,
|
|
179
179
|
onBlur
|
|
180
|
-
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder", "controls-position"])) : (
|
|
180
|
+
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder", "controls-position"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.Input), {
|
|
181
181
|
key: 3,
|
|
182
|
-
class:
|
|
182
|
+
class: vue.normalizeClass([vue.unref(cs).z("input")]),
|
|
183
183
|
modelValue: end.value,
|
|
184
184
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => end.value = $event),
|
|
185
185
|
readonly: props.readonly,
|
|
186
186
|
clearable: props.inputClearable,
|
|
187
187
|
placeholder: props.endPlaceholder,
|
|
188
|
-
onClick:
|
|
188
|
+
onClick: vue.withModifiers(onFocus, ["stop"]),
|
|
189
189
|
onInput: omInput,
|
|
190
190
|
onBlur
|
|
191
191
|
}, null, 8, ["class", "modelValue", "readonly", "clearable", "placeholder"])),
|
|
192
|
-
|
|
193
|
-
class:
|
|
192
|
+
vue.createElementVNode("input", {
|
|
193
|
+
class: vue.normalizeClass(vue.unref(cs).z("focus")),
|
|
194
194
|
ref_key: "refInput",
|
|
195
195
|
ref: refInput,
|
|
196
196
|
onBlur
|
|
197
197
|
}, null, 34),
|
|
198
|
-
isclear.value ? (
|
|
198
|
+
isclear.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Icon), {
|
|
199
199
|
key: 4,
|
|
200
|
-
class:
|
|
201
|
-
onClick:
|
|
200
|
+
class: vue.normalizeClass([vue.unref(cs).z("icon"), vue.unref(cs).z("clear")]),
|
|
201
|
+
onClick: vue.withModifiers(onClear, ["stop"])
|
|
202
202
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
203
|
+
default: vue.withCtx(() => [
|
|
204
|
+
vue.createVNode(clear.default)
|
|
205
205
|
]),
|
|
206
206
|
_: 1
|
|
207
|
-
}, 8, ["class"])) :
|
|
208
|
-
|
|
207
|
+
}, 8, ["class"])) : vue.createCommentVNode("", true),
|
|
208
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).suffix)
|
|
209
209
|
], 34);
|
|
210
210
|
};
|
|
211
211
|
}
|