@nutui/nutui 4.3.5 → 4.3.7
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/CHANGELOG.md +40 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +5822 -6138
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/audio/Audio.js +2 -1
- package/dist/packages/audiooperate/AudioOperate.js +2 -1
- package/dist/packages/checkbox/Checkbox.js +1 -1
- package/dist/packages/{common-DRG0ue26.js → common-BH7uB7Cn.js} +4 -2
- package/dist/packages/countdown/Countdown.js +130 -173
- package/dist/packages/form/Form.js +2 -2
- package/dist/packages/formitem/FormItem.js +2 -2
- package/dist/packages/grid/Grid.js +68 -5
- package/dist/packages/griditem/GridItem.js +61 -81
- package/dist/packages/image/Image.js +79 -111
- package/dist/packages/input/Input.js +112 -182
- package/dist/packages/inputnumber/InputNumber.js +1 -1
- package/dist/packages/invoice/Invoice.js +8 -8
- package/dist/packages/menuitem/MenuItem.js +1 -1
- package/dist/packages/numberkeyboard/NumberKeyboard.js +6 -2
- package/dist/packages/picker/Picker.js +1 -1
- package/dist/packages/radio/Radio.js +112 -1
- package/dist/packages/radiogroup/RadioGroup.js +60 -1
- package/dist/packages/range/Range.js +1 -1
- package/dist/packages/rate/Rate.js +1 -1
- package/dist/packages/searchbar/Searchbar.js +1 -1
- package/dist/packages/step/Step.js +64 -83
- package/dist/packages/steps/Steps.js +44 -40
- package/dist/packages/switch/Switch.js +1 -1
- package/dist/packages/tabpane/TabPane.js +3 -2
- package/dist/packages/tabs/Tabs.js +2 -1
- package/dist/packages/textarea/Textarea.js +1 -1
- package/dist/packages/types-BMA1Y94E.js +4 -0
- package/dist/packages/types-BXlnzugj.js +4 -0
- package/dist/packages/types-CJeZIBld.js +4 -0
- package/dist/packages/uploader/Uploader.js +1 -1
- package/dist/smartips/web-types.json +446 -26
- package/dist/types/__VUE/audio/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audio/types.d.ts +2 -0
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/countdown.vue.d.ts +108 -0
- package/dist/types/__VUE/countdown/index.d.ts +5 -0
- package/dist/types/__VUE/countdown/util.d.ts +14 -0
- package/dist/types/__VUE/form/common.d.ts +1 -0
- package/dist/types/__VUE/grid/grid.vue.d.ts +87 -0
- package/dist/types/__VUE/grid/index.d.ts +6 -0
- package/dist/types/__VUE/grid/types.d.ts +2 -0
- package/dist/types/__VUE/griditem/grid-item.vue.d.ts +64 -0
- package/dist/types/__VUE/griditem/index.d.ts +5 -0
- package/dist/types/__VUE/image/image.vue.d.ts +111 -0
- package/dist/types/__VUE/image/index.d.ts +6 -0
- package/dist/types/__VUE/input/index.d.ts +6 -0
- package/dist/types/__VUE/input/input.vue.d.ts +171 -0
- package/dist/types/__VUE/input/{type.d.ts → types.d.ts} +2 -2
- package/dist/types/__VUE/input/util.d.ts +1 -1
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +2 -2
- package/dist/types/__VUE/radio/index.d.ts +6 -0
- package/dist/types/__VUE/radio/radio.vue.d.ts +74 -0
- package/dist/types/__VUE/radiogroup/index.d.ts +5 -0
- package/dist/types/__VUE/radiogroup/radio-group.vue.d.ts +66 -0
- package/dist/types/__VUE/step/index.d.ts +5 -0
- package/dist/types/__VUE/step/step.vue.d.ts +55 -0
- package/dist/types/__VUE/steps/index.d.ts +6 -0
- package/dist/types/__VUE/steps/steps.vue.d.ts +64 -0
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/types.d.ts +1 -0
- package/dist/types/index.d.ts +19 -10
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/useRelation/useParent.d.ts +1 -1
- package/package.json +1 -1
- package/dist/packages/common-Chr7cC9o.js +0 -145
- package/dist/packages/index.vue_vue_type_script_lang-CTQUvlgN.js +0 -99
- package/dist/packages/index.vue_vue_type_script_lang-CaSiRl9x.js +0 -46
- package/dist/types/__VUE/audiooperate/types.d.ts +0 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +0 -125
- package/dist/types/__VUE/grid/common.d.ts +0 -73
- package/dist/types/__VUE/grid/index.vue.d.ts +0 -84
- package/dist/types/__VUE/griditem/index.vue.d.ts +0 -47
- package/dist/types/__VUE/image/index.vue.d.ts +0 -126
- package/dist/types/__VUE/input/index.vue.d.ts +0 -221
- package/dist/types/__VUE/radio/index.vue.d.ts +0 -64
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +0 -49
- package/dist/types/__VUE/step/index.vue.d.ts +0 -42
- package/dist/types/__VUE/steps/index.vue.d.ts +0 -48
- /package/dist/types/__VUE/image/{type.d.ts → types.d.ts} +0 -0
|
@@ -1,59 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, renderSlot, Fragment, createTextVNode, toDisplayString } from "vue";
|
|
21
|
+
import { u as useParent } from "../useParent-D6DiuxZZ.js";
|
|
4
22
|
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onUnmounted(() => remove(instance));
|
|
14
|
-
const index2 = computed(() => internalChildren.indexOf(instance));
|
|
15
|
-
return {
|
|
16
|
-
parent,
|
|
17
|
-
index: index2
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
parent: null,
|
|
22
|
-
index: ref(-1)
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
const { create, componentName } = createComponent("grid-item");
|
|
26
|
-
const _sfc_main = create({
|
|
23
|
+
import { u as useRouter } from "../index-aiGQ-EiA.js";
|
|
24
|
+
import { G as GRID_KEY } from "../types-CJeZIBld.js";
|
|
25
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
26
|
+
const _hoisted_1 = { class: "nut-grid-item__text" };
|
|
27
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
28
|
+
name: "NutGridItem"
|
|
29
|
+
}), {
|
|
30
|
+
__name: "grid-item",
|
|
27
31
|
props: {
|
|
28
|
-
text: {
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
to: {
|
|
33
|
-
type: [String, Object]
|
|
34
|
-
},
|
|
35
|
-
url: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: ""
|
|
38
|
-
},
|
|
39
|
-
replace: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: false
|
|
42
|
-
}
|
|
32
|
+
text: {},
|
|
33
|
+
to: {},
|
|
34
|
+
url: { default: "" },
|
|
35
|
+
replace: { type: Boolean, default: false }
|
|
43
36
|
},
|
|
44
37
|
emits: ["click"],
|
|
45
|
-
setup(
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
const parent = Parent.parent.props;
|
|
51
|
-
const rootClass = computed(() => {
|
|
52
|
-
const prefixCls = componentName;
|
|
53
|
-
return {
|
|
54
|
-
[prefixCls]: true
|
|
55
|
-
};
|
|
56
|
-
});
|
|
38
|
+
setup(__props, { emit: __emit }) {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const emit = __emit;
|
|
41
|
+
const { parent: parentObj, index } = useParent(GRID_KEY);
|
|
42
|
+
const parent = (parentObj == null ? void 0 : parentObj.props) || {};
|
|
57
43
|
const rootStyle = computed(() => {
|
|
58
44
|
const style = {
|
|
59
45
|
flexBasis: `${100 / +parent.columnNum}%`
|
|
@@ -62,14 +48,14 @@ const _sfc_main = create({
|
|
|
62
48
|
style.paddingTop = `${100 / +parent.columnNum}%`;
|
|
63
49
|
} else if (parent.gutter) {
|
|
64
50
|
style.paddingRight = pxCheck(parent.gutter);
|
|
65
|
-
if (
|
|
51
|
+
if (index.value >= +parent.columnNum) {
|
|
66
52
|
style.marginTop = pxCheck(parent.gutter);
|
|
67
53
|
}
|
|
68
54
|
}
|
|
69
55
|
return style;
|
|
70
56
|
});
|
|
71
57
|
const contentClass = computed(() => {
|
|
72
|
-
const prefixCls =
|
|
58
|
+
const prefixCls = `nut-grid-item__content`;
|
|
73
59
|
return {
|
|
74
60
|
[`${prefixCls}`]: true,
|
|
75
61
|
[`${prefixCls}--border`]: parent.border,
|
|
@@ -90,34 +76,28 @@ const _sfc_main = create({
|
|
|
90
76
|
props.replace ? location.replace(props.url) : location.href = props.url;
|
|
91
77
|
}
|
|
92
78
|
};
|
|
93
|
-
return {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
79
|
+
return (_ctx, _cache) => {
|
|
80
|
+
return openBlock(), createElementBlock("view", {
|
|
81
|
+
class: "nut-grid-item",
|
|
82
|
+
style: normalizeStyle(rootStyle.value),
|
|
83
|
+
onClick: handleClick
|
|
84
|
+
}, [
|
|
85
|
+
createElementVNode("view", {
|
|
86
|
+
class: normalizeClass(contentClass.value)
|
|
87
|
+
}, [
|
|
88
|
+
renderSlot(_ctx.$slots, "default"),
|
|
89
|
+
createElementVNode("view", _hoisted_1, [
|
|
90
|
+
_ctx.text ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
91
|
+
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
92
|
+
], 64)) : renderSlot(_ctx.$slots, "text", { key: 1 })
|
|
93
|
+
])
|
|
94
|
+
], 2)
|
|
95
|
+
], 4);
|
|
98
96
|
};
|
|
99
97
|
}
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
103
|
-
return openBlock(), createElementBlock("view", {
|
|
104
|
-
class: normalizeClass(_ctx.rootClass),
|
|
105
|
-
style: normalizeStyle(_ctx.rootStyle),
|
|
106
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
107
|
-
}, [
|
|
108
|
-
createElementVNode("view", {
|
|
109
|
-
class: normalizeClass(_ctx.contentClass)
|
|
110
|
-
}, [
|
|
111
|
-
renderSlot(_ctx.$slots, "default"),
|
|
112
|
-
createElementVNode("view", _hoisted_1, [
|
|
113
|
-
_ctx.text ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
114
|
-
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
115
|
-
], 64)) : renderSlot(_ctx.$slots, "text", { key: 1 })
|
|
116
|
-
])
|
|
117
|
-
], 2)
|
|
118
|
-
], 6);
|
|
119
|
-
}
|
|
120
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
98
|
+
}));
|
|
99
|
+
withInstall(_sfc_main);
|
|
121
100
|
export {
|
|
122
|
-
|
|
101
|
+
_sfc_main as GridItem,
|
|
102
|
+
_sfc_main as default
|
|
123
103
|
};
|
|
@@ -17,67 +17,44 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import {
|
|
21
|
-
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
20
|
+
import { defineComponent, ref, computed, onMounted, onBeforeUnmount, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, unref, createCommentVNode } from "vue";
|
|
22
21
|
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
23
22
|
import { Image, ImageError } from "@nutui/icons-vue";
|
|
24
|
-
import {
|
|
25
|
-
const
|
|
26
|
-
const
|
|
23
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
24
|
+
const _hoisted_1 = ["src", "data-src", "alt"];
|
|
25
|
+
const _hoisted_2 = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "nut-img-loading"
|
|
28
|
+
};
|
|
29
|
+
const _hoisted_3 = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "nut-img-error"
|
|
32
|
+
};
|
|
33
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
34
|
+
name: "NutImage"
|
|
35
|
+
}), {
|
|
36
|
+
__name: "image",
|
|
27
37
|
props: {
|
|
28
|
-
src:
|
|
29
|
-
fit: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
default: ""
|
|
40
|
-
},
|
|
41
|
-
width: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: "center"
|
|
44
|
-
},
|
|
45
|
-
height: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: ""
|
|
48
|
-
},
|
|
49
|
-
round: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false
|
|
52
|
-
},
|
|
53
|
-
radius: [String, Number],
|
|
54
|
-
showError: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: true
|
|
57
|
-
},
|
|
58
|
-
showLoading: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: true
|
|
61
|
-
},
|
|
62
|
-
lazyLoad: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: false
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
components: {
|
|
68
|
-
Image,
|
|
69
|
-
ImageError
|
|
38
|
+
src: {},
|
|
39
|
+
fit: { default: "fill" },
|
|
40
|
+
position: { default: "center" },
|
|
41
|
+
alt: { default: "" },
|
|
42
|
+
width: { default: "" },
|
|
43
|
+
height: { default: "" },
|
|
44
|
+
round: { type: Boolean, default: false },
|
|
45
|
+
radius: {},
|
|
46
|
+
showError: { type: Boolean, default: true },
|
|
47
|
+
showLoading: { type: Boolean, default: true },
|
|
48
|
+
lazyLoad: { type: Boolean, default: false }
|
|
70
49
|
},
|
|
71
50
|
emits: ["click", "load", "error"],
|
|
72
|
-
setup(
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
slotError: useSlots().error
|
|
78
|
-
});
|
|
51
|
+
setup(__props, { emit: __emit }) {
|
|
52
|
+
const props = __props;
|
|
53
|
+
const emit = __emit;
|
|
54
|
+
const loading = ref(true);
|
|
55
|
+
const isError = ref(false);
|
|
79
56
|
const classes = computed(() => {
|
|
80
|
-
const prefixCls =
|
|
57
|
+
const prefixCls = "nut-image";
|
|
81
58
|
return {
|
|
82
59
|
[prefixCls]: true,
|
|
83
60
|
[`${prefixCls}-round`]: props.round
|
|
@@ -129,73 +106,64 @@ const _sfc_main = create({
|
|
|
129
106
|
watch(
|
|
130
107
|
() => props.src,
|
|
131
108
|
() => {
|
|
132
|
-
|
|
109
|
+
isError.value = false;
|
|
110
|
+
loading.value = true;
|
|
133
111
|
}
|
|
134
112
|
);
|
|
135
113
|
const load = () => {
|
|
136
|
-
|
|
137
|
-
|
|
114
|
+
isError.value = false;
|
|
115
|
+
loading.value = false;
|
|
138
116
|
emit("load");
|
|
139
117
|
};
|
|
140
118
|
const error = () => {
|
|
141
|
-
|
|
142
|
-
|
|
119
|
+
isError.value = true;
|
|
120
|
+
loading.value = false;
|
|
143
121
|
emit("error");
|
|
144
122
|
};
|
|
145
123
|
const imageClick = (event) => {
|
|
146
124
|
emit("click", event);
|
|
147
125
|
};
|
|
148
|
-
return
|
|
126
|
+
return (_ctx, _cache) => {
|
|
127
|
+
return openBlock(), createElementBlock("div", {
|
|
128
|
+
class: normalizeClass(classes.value),
|
|
129
|
+
style: normalizeStyle(stylebox.value),
|
|
130
|
+
onClick: imageClick
|
|
131
|
+
}, [
|
|
132
|
+
createElementVNode("img", {
|
|
133
|
+
ref_key: "imgRef",
|
|
134
|
+
ref: imgRef,
|
|
135
|
+
class: "nut-img",
|
|
136
|
+
src: _ctx.lazyLoad ? show.value ? _ctx.src : void 0 : _ctx.src,
|
|
137
|
+
"data-src": _ctx.lazyLoad ? show.value ? void 0 : _ctx.src : void 0,
|
|
138
|
+
alt: _ctx.alt,
|
|
139
|
+
style: normalizeStyle(styles.value),
|
|
140
|
+
onLoad: load,
|
|
141
|
+
onError: error
|
|
142
|
+
}, null, 44, _hoisted_1),
|
|
143
|
+
loading.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
144
|
+
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
145
|
+
createVNode(unref(Image), {
|
|
146
|
+
width: "16px",
|
|
147
|
+
height: "20px",
|
|
148
|
+
name: "image"
|
|
149
|
+
})
|
|
150
|
+
])
|
|
151
|
+
])) : createCommentVNode("", true),
|
|
152
|
+
isError.value && !loading.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
153
|
+
renderSlot(_ctx.$slots, "error", {}, () => [
|
|
154
|
+
createVNode(unref(ImageError), {
|
|
155
|
+
width: "16px",
|
|
156
|
+
height: "20px",
|
|
157
|
+
name: "imageError"
|
|
158
|
+
})
|
|
159
|
+
])
|
|
160
|
+
])) : createCommentVNode("", true)
|
|
161
|
+
], 6);
|
|
162
|
+
};
|
|
149
163
|
}
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
const _hoisted_2 = {
|
|
153
|
-
key: 0,
|
|
154
|
-
class: "nut-img-loading"
|
|
155
|
-
};
|
|
156
|
-
const _hoisted_3 = {
|
|
157
|
-
key: 1,
|
|
158
|
-
class: "nut-img-error"
|
|
159
|
-
};
|
|
160
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
161
|
-
const _component_Image = resolveComponent("Image");
|
|
162
|
-
const _component_ImageError = resolveComponent("ImageError");
|
|
163
|
-
return openBlock(), createElementBlock("div", {
|
|
164
|
-
class: normalizeClass(_ctx.classes),
|
|
165
|
-
style: normalizeStyle(_ctx.stylebox),
|
|
166
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.imageClick && _ctx.imageClick(...args))
|
|
167
|
-
}, [
|
|
168
|
-
createElementVNode("img", {
|
|
169
|
-
ref: "imgRef",
|
|
170
|
-
class: "nut-img",
|
|
171
|
-
src: _ctx.lazyLoad ? _ctx.show ? _ctx.src : void 0 : _ctx.src,
|
|
172
|
-
"date-src": _ctx.lazyLoad ? _ctx.show ? void 0 : _ctx.src : void 0,
|
|
173
|
-
alt: _ctx.alt,
|
|
174
|
-
style: normalizeStyle(_ctx.styles),
|
|
175
|
-
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.load && _ctx.load(...args)),
|
|
176
|
-
onError: _cache[1] || (_cache[1] = (...args) => _ctx.error && _ctx.error(...args))
|
|
177
|
-
}, null, 44, _hoisted_1),
|
|
178
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
179
|
-
!_ctx.slotLoding ? (openBlock(), createBlock(_component_Image, {
|
|
180
|
-
key: 0,
|
|
181
|
-
width: "16px",
|
|
182
|
-
height: "20px",
|
|
183
|
-
name: "image"
|
|
184
|
-
})) : createCommentVNode("", true),
|
|
185
|
-
renderSlot(_ctx.$slots, "loading")
|
|
186
|
-
])) : createCommentVNode("", true),
|
|
187
|
-
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
188
|
-
!_ctx.slotError ? (openBlock(), createBlock(_component_ImageError, {
|
|
189
|
-
key: 0,
|
|
190
|
-
width: "16px",
|
|
191
|
-
height: "20px",
|
|
192
|
-
name: "imageError"
|
|
193
|
-
})) : createCommentVNode("", true),
|
|
194
|
-
renderSlot(_ctx.$slots, "error")
|
|
195
|
-
])) : createCommentVNode("", true)
|
|
196
|
-
], 6);
|
|
197
|
-
}
|
|
198
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
164
|
+
}));
|
|
165
|
+
withInstall(_sfc_main);
|
|
199
166
|
export {
|
|
200
|
-
|
|
167
|
+
_sfc_main as Image,
|
|
168
|
+
_sfc_main as default
|
|
201
169
|
};
|