@element-plus/nightly 0.0.20230601 → 0.0.20230603
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/attributes.json +1 -1
- package/dist/index.full.js +32 -44
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +32 -44
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/backtop/src/use-backtop.mjs +1 -0
- package/es/components/backtop/src/use-backtop.mjs.map +1 -1
- package/es/components/form/index.d.ts +4 -4
- package/es/components/form/src/form.d.ts +1 -1
- package/es/components/form/src/form.mjs +1 -4
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +4 -4
- package/es/components/image/index.d.ts +24 -21
- package/es/components/image/src/image.d.ts +3 -3
- package/es/components/image/src/image.mjs +3 -12
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image.vue.d.ts +24 -21
- package/es/components/image/src/image2.mjs +6 -5
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/index.d.ts +10 -8
- package/es/components/image-viewer/src/image-viewer.d.ts +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +2 -8
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +10 -8
- package/es/components/image-viewer/src/image-viewer2.mjs +12 -10
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/table/src/store/watcher.mjs +1 -1
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/table/src/table/defaults.d.ts +1 -0
- package/es/components/table/src/table/defaults.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.mjs +4 -2
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/backtop/src/use-backtop.js +1 -0
- package/lib/components/backtop/src/use-backtop.js.map +1 -1
- package/lib/components/form/index.d.ts +4 -4
- package/lib/components/form/src/form.d.ts +1 -1
- package/lib/components/form/src/form.js +1 -4
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +4 -4
- package/lib/components/image/index.d.ts +24 -21
- package/lib/components/image/src/image.d.ts +3 -3
- package/lib/components/image/src/image.js +3 -12
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image.vue.d.ts +24 -21
- package/lib/components/image/src/image2.js +6 -5
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/index.d.ts +10 -8
- package/lib/components/image-viewer/src/image-viewer.d.ts +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +2 -8
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +10 -8
- package/lib/components/image-viewer/src/image-viewer2.js +12 -10
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/table/src/store/watcher.js +1 -1
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/table/src/table/defaults.d.ts +1 -0
- package/lib/components/table/src/table/defaults.js.map +1 -1
- package/lib/components/table/src/table/style-helper.js +4 -2
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -17,7 +17,7 @@ export declare const ElForm: import("element-plus/es/utils").SFCWithInstall<impo
|
|
|
17
17
|
readonly statusIcon: BooleanConstructor;
|
|
18
18
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
19
19
|
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
20
|
-
readonly hideRequiredAsterisk:
|
|
20
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
21
21
|
readonly scrollToError: BooleanConstructor;
|
|
22
22
|
readonly scrollIntoViewOptions: {
|
|
23
23
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
@@ -51,7 +51,7 @@ export declare const ElForm: import("element-plus/es/utils").SFCWithInstall<impo
|
|
|
51
51
|
readonly statusIcon: BooleanConstructor;
|
|
52
52
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
53
53
|
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
54
|
-
readonly hideRequiredAsterisk:
|
|
54
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
55
55
|
readonly scrollToError: BooleanConstructor;
|
|
56
56
|
readonly scrollIntoViewOptions: {
|
|
57
57
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
@@ -122,7 +122,7 @@ export declare const ElForm: import("element-plus/es/utils").SFCWithInstall<impo
|
|
|
122
122
|
readonly statusIcon: BooleanConstructor;
|
|
123
123
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
124
124
|
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
125
|
-
readonly hideRequiredAsterisk:
|
|
125
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
126
126
|
readonly scrollToError: BooleanConstructor;
|
|
127
127
|
readonly scrollIntoViewOptions: {
|
|
128
128
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
@@ -147,10 +147,10 @@ export declare const ElForm: import("element-plus/es/utils").SFCWithInstall<impo
|
|
|
147
147
|
readonly labelSuffix: string;
|
|
148
148
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
149
149
|
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
150
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
151
150
|
readonly inline: boolean;
|
|
152
151
|
readonly inlineMessage: boolean;
|
|
153
152
|
readonly statusIcon: boolean;
|
|
153
|
+
readonly hideRequiredAsterisk: boolean;
|
|
154
154
|
readonly scrollToError: boolean;
|
|
155
155
|
}>> & {
|
|
156
156
|
FormItem: import("vue").DefineComponent<{
|
|
@@ -26,7 +26,7 @@ export declare const formProps: {
|
|
|
26
26
|
readonly statusIcon: BooleanConstructor;
|
|
27
27
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
28
28
|
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
29
|
-
readonly hideRequiredAsterisk:
|
|
29
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
30
30
|
readonly scrollToError: BooleanConstructor;
|
|
31
31
|
readonly scrollIntoViewOptions: {
|
|
32
32
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
@@ -51,10 +51,7 @@ const formProps = runtime.buildProps({
|
|
|
51
51
|
type: Boolean,
|
|
52
52
|
default: true
|
|
53
53
|
},
|
|
54
|
-
hideRequiredAsterisk:
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: false
|
|
57
|
-
},
|
|
54
|
+
hideRequiredAsterisk: Boolean,
|
|
58
55
|
scrollToError: Boolean,
|
|
59
56
|
scrollIntoViewOptions: {
|
|
60
57
|
type: [Object, Boolean]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.js","sources":["../../../../../../packages/components/form/src/form.ts"],"sourcesContent":["import { componentSizes } from '@element-plus/constants'\nimport {\n buildProps,\n definePropType,\n isArray,\n isBoolean,\n isString,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { FormItemProp } from './form-item'\nimport type { FormRules } from './types'\n\nconst formMetaProps = buildProps({\n /**\n * @description Control the size of components in this form.\n */\n size: {\n type: String,\n values: componentSizes,\n },\n /**\n * @description Whether to disable all components in this form. If set to `true`, it will override the `disabled` prop of the inner component.\n */\n disabled: Boolean,\n} as const)\n\nexport const formProps = buildProps({\n ...formMetaProps,\n /**\n * @description Data of form component.\n */\n model: Object,\n /**\n * @description Validation rules of form.\n */\n rules: {\n type: definePropType<FormRules>(Object),\n },\n /**\n * @description Position of label. If set to `'left'` or `'right'`, `label-width` prop is also required.\n */\n labelPosition: {\n type: String,\n values: ['left', 'right', 'top'],\n default: 'right',\n },\n /**\n * @description Position of asterisk.\n */\n requireAsteriskPosition: {\n type: String,\n values: ['left', 'right'],\n default: 'left',\n },\n /**\n * @description Width of label, e.g. `'50px'`. All its direct child form items will inherit this value. `auto` is supported.\n */\n labelWidth: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description Suffix of the label.\n */\n labelSuffix: {\n type: String,\n default: '',\n },\n /**\n * @description Whether the form is inline.\n */\n inline: Boolean,\n /**\n * @description Whether to display the error message inline with the form item.\n */\n inlineMessage: Boolean,\n /**\n * @description Whether to display an icon indicating the validation result.\n */\n statusIcon: Boolean,\n /**\n * @description Whether to show the error message.\n */\n showMessage: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Whether to trigger validation when the `rules` prop is changed.\n */\n validateOnRuleChange: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Whether to hide required fields should have a red asterisk (star) beside their labels.\n */\n hideRequiredAsterisk:
|
|
1
|
+
{"version":3,"file":"form.js","sources":["../../../../../../packages/components/form/src/form.ts"],"sourcesContent":["import { componentSizes } from '@element-plus/constants'\nimport {\n buildProps,\n definePropType,\n isArray,\n isBoolean,\n isString,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { FormItemProp } from './form-item'\nimport type { FormRules } from './types'\n\nconst formMetaProps = buildProps({\n /**\n * @description Control the size of components in this form.\n */\n size: {\n type: String,\n values: componentSizes,\n },\n /**\n * @description Whether to disable all components in this form. If set to `true`, it will override the `disabled` prop of the inner component.\n */\n disabled: Boolean,\n} as const)\n\nexport const formProps = buildProps({\n ...formMetaProps,\n /**\n * @description Data of form component.\n */\n model: Object,\n /**\n * @description Validation rules of form.\n */\n rules: {\n type: definePropType<FormRules>(Object),\n },\n /**\n * @description Position of label. If set to `'left'` or `'right'`, `label-width` prop is also required.\n */\n labelPosition: {\n type: String,\n values: ['left', 'right', 'top'],\n default: 'right',\n },\n /**\n * @description Position of asterisk.\n */\n requireAsteriskPosition: {\n type: String,\n values: ['left', 'right'],\n default: 'left',\n },\n /**\n * @description Width of label, e.g. `'50px'`. All its direct child form items will inherit this value. `auto` is supported.\n */\n labelWidth: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description Suffix of the label.\n */\n labelSuffix: {\n type: String,\n default: '',\n },\n /**\n * @description Whether the form is inline.\n */\n inline: Boolean,\n /**\n * @description Whether to display the error message inline with the form item.\n */\n inlineMessage: Boolean,\n /**\n * @description Whether to display an icon indicating the validation result.\n */\n statusIcon: Boolean,\n /**\n * @description Whether to show the error message.\n */\n showMessage: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Whether to trigger validation when the `rules` prop is changed.\n */\n validateOnRuleChange: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Whether to hide required fields should have a red asterisk (star) beside their labels.\n */\n hideRequiredAsterisk: Boolean,\n /**\n * @description When validation fails, scroll to the first error form entry.\n */\n scrollToError: Boolean,\n /**\n * @description When validation fails, it scrolls to the first error item based on the scrollIntoView option.\n */\n scrollIntoViewOptions: {\n type: [Object, Boolean],\n },\n} as const)\nexport type FormProps = ExtractPropTypes<typeof formProps>\nexport type FormMetaProps = ExtractPropTypes<typeof formMetaProps>\n\nexport const formEmits = {\n validate: (prop: FormItemProp, isValid: boolean, message: string) =>\n (isArray(prop) || isString(prop)) &&\n isBoolean(isValid) &&\n isString(message),\n}\nexport type FormEmits = typeof formEmits\n"],"names":["buildProps","componentSizes","definePropType","isArray","isString","isBoolean"],"mappings":";;;;;;;;;;;AAQA,MAAM,aAAa,GAAGA,kBAAU,CAAC;AACjC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,mBAAc;AAC1B,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,CAAC,CAAC,CAAC;AACS,MAAC,SAAS,GAAGD,kBAAU,CAAC;AACpC,EAAE,GAAG,aAAa;AAClB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEE,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC;AACpC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,uBAAuB,EAAE;AAC3B,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;AAC7B,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,aAAa,EAAE,OAAO;AACxB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,oBAAoB,EAAE;AACxB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,oBAAoB,EAAE,OAAO;AAC/B,EAAE,aAAa,EAAE,OAAO;AACxB,EAAE,qBAAqB,EAAE;AACzB,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;AAC3B,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,KAAK,CAACC,cAAO,CAAC,IAAI,CAAC,IAAIC,eAAQ,CAAC,IAAI,CAAC,KAAKC,eAAS,CAAC,OAAO,CAAC,IAAID,eAAQ,CAAC,OAAO,CAAC;AACpH;;;;;"}
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
readonly statusIcon: BooleanConstructor;
|
|
19
19
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
20
20
|
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
21
|
-
readonly hideRequiredAsterisk:
|
|
21
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
22
22
|
readonly scrollToError: BooleanConstructor;
|
|
23
23
|
readonly scrollIntoViewOptions: {
|
|
24
24
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
readonly statusIcon: BooleanConstructor;
|
|
53
53
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
54
54
|
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
55
|
-
readonly hideRequiredAsterisk:
|
|
55
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
56
56
|
readonly scrollToError: BooleanConstructor;
|
|
57
57
|
readonly scrollIntoViewOptions: {
|
|
58
58
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
@@ -123,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
123
|
readonly statusIcon: BooleanConstructor;
|
|
124
124
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
125
125
|
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
126
|
-
readonly hideRequiredAsterisk:
|
|
126
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
127
127
|
readonly scrollToError: BooleanConstructor;
|
|
128
128
|
readonly scrollIntoViewOptions: {
|
|
129
129
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
@@ -148,10 +148,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
148
|
readonly labelSuffix: string;
|
|
149
149
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
150
150
|
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
151
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
152
151
|
readonly inline: boolean;
|
|
153
152
|
readonly inlineMessage: boolean;
|
|
154
153
|
readonly statusIcon: boolean;
|
|
154
|
+
readonly hideRequiredAsterisk: boolean;
|
|
155
155
|
readonly scrollToError: boolean;
|
|
156
156
|
}>;
|
|
157
157
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
-
readonly hideOnClickModal:
|
|
2
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
3
3
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
4
4
|
readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
5
5
|
readonly loading: {
|
|
@@ -8,7 +8,7 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
8
8
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9
9
|
__epPropKey: true;
|
|
10
10
|
};
|
|
11
|
-
readonly lazy:
|
|
11
|
+
readonly lazy: BooleanConstructor;
|
|
12
12
|
readonly scrollContainer: {
|
|
13
13
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined) | ((new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined))[], unknown, unknown>>;
|
|
14
14
|
readonly required: false;
|
|
@@ -16,7 +16,7 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
16
16
|
__epPropKey: true;
|
|
17
17
|
};
|
|
18
18
|
readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
19
|
-
readonly previewTeleported:
|
|
19
|
+
readonly previewTeleported: BooleanConstructor;
|
|
20
20
|
readonly zIndex: {
|
|
21
21
|
readonly type: import("vue").PropType<number>;
|
|
22
22
|
readonly required: false;
|
|
@@ -29,7 +29,7 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
29
29
|
readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
30
30
|
}, {
|
|
31
31
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
-
readonly hideOnClickModal:
|
|
32
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
33
33
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
34
34
|
readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
35
35
|
readonly loading: {
|
|
@@ -38,7 +38,7 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
38
38
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
39
39
|
__epPropKey: true;
|
|
40
40
|
};
|
|
41
|
-
readonly lazy:
|
|
41
|
+
readonly lazy: BooleanConstructor;
|
|
42
42
|
readonly scrollContainer: {
|
|
43
43
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined) | ((new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined))[], unknown, unknown>>;
|
|
44
44
|
readonly required: false;
|
|
@@ -46,7 +46,7 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
46
46
|
__epPropKey: true;
|
|
47
47
|
};
|
|
48
48
|
readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
49
|
-
readonly previewTeleported:
|
|
49
|
+
readonly previewTeleported: BooleanConstructor;
|
|
50
50
|
readonly zIndex: {
|
|
51
51
|
readonly type: import("vue").PropType<number>;
|
|
52
52
|
readonly required: false;
|
|
@@ -98,11 +98,12 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
98
98
|
supportLoading: boolean;
|
|
99
99
|
stopScrollListener: (() => void) | undefined;
|
|
100
100
|
stopWheelListener: (() => void) | undefined;
|
|
101
|
+
imageKls: import("vue").ComputedRef<(string | false)[]>;
|
|
101
102
|
containerStyle: import("vue").ComputedRef<import("vue").StyleValue>;
|
|
102
103
|
imageStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
103
104
|
preview: import("vue").ComputedRef<boolean>;
|
|
104
105
|
imageIndex: import("vue").ComputedRef<number>;
|
|
105
|
-
isManual: import("vue").ComputedRef<
|
|
106
|
+
isManual: import("vue").ComputedRef<boolean>;
|
|
106
107
|
loadImage: () => void;
|
|
107
108
|
handleLoad: (event: Event) => void;
|
|
108
109
|
handleError: (event: Event) => void;
|
|
@@ -124,8 +125,8 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
124
125
|
};
|
|
125
126
|
readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
126
127
|
readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
127
|
-
readonly hideOnClickModal:
|
|
128
|
-
readonly teleported:
|
|
128
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
129
|
+
readonly teleported: BooleanConstructor;
|
|
129
130
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
130
131
|
readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
131
132
|
}, {
|
|
@@ -140,8 +141,8 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
140
141
|
};
|
|
141
142
|
readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
142
143
|
readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
143
|
-
readonly hideOnClickModal:
|
|
144
|
-
readonly teleported:
|
|
144
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
145
|
+
readonly teleported: BooleanConstructor;
|
|
145
146
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
146
147
|
readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
147
148
|
}>> & {
|
|
@@ -186,6 +187,8 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
186
187
|
isFirst: import("vue").ComputedRef<boolean>;
|
|
187
188
|
isLast: import("vue").ComputedRef<boolean>;
|
|
188
189
|
currentImg: import("vue").ComputedRef<string>;
|
|
190
|
+
arrowPrevKls: import("vue").ComputedRef<string[]>;
|
|
191
|
+
arrowNextKls: import("vue").ComputedRef<string[]>;
|
|
189
192
|
imgStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
190
193
|
computedZIndex: import("vue").ComputedRef<number>;
|
|
191
194
|
hide: () => void;
|
|
@@ -283,20 +286,20 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
283
286
|
};
|
|
284
287
|
readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
285
288
|
readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
286
|
-
readonly hideOnClickModal:
|
|
287
|
-
readonly teleported:
|
|
289
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
290
|
+
readonly teleported: BooleanConstructor;
|
|
288
291
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
289
292
|
readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
290
293
|
}>> & {
|
|
291
294
|
onClose?: (() => any) | undefined;
|
|
292
295
|
onSwitch?: ((index: number) => any) | undefined;
|
|
293
296
|
}, {
|
|
294
|
-
readonly teleported:
|
|
297
|
+
readonly teleported: boolean;
|
|
295
298
|
readonly infinite: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
296
299
|
readonly initialIndex: number;
|
|
297
300
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
298
|
-
readonly hideOnClickModal: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
299
301
|
readonly zoomRate: number;
|
|
302
|
+
readonly hideOnClickModal: boolean;
|
|
300
303
|
readonly urlList: string[];
|
|
301
304
|
}>> & Record<string, any>;
|
|
302
305
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -306,7 +309,7 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
306
309
|
close: () => boolean;
|
|
307
310
|
show: () => boolean;
|
|
308
311
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
309
|
-
readonly hideOnClickModal:
|
|
312
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
310
313
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
311
314
|
readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
312
315
|
readonly loading: {
|
|
@@ -315,7 +318,7 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
315
318
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
316
319
|
__epPropKey: true;
|
|
317
320
|
};
|
|
318
|
-
readonly lazy:
|
|
321
|
+
readonly lazy: BooleanConstructor;
|
|
319
322
|
readonly scrollContainer: {
|
|
320
323
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined) | ((new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined))[], unknown, unknown>>;
|
|
321
324
|
readonly required: false;
|
|
@@ -323,7 +326,7 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
323
326
|
__epPropKey: true;
|
|
324
327
|
};
|
|
325
328
|
readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
326
|
-
readonly previewTeleported:
|
|
329
|
+
readonly previewTeleported: BooleanConstructor;
|
|
327
330
|
readonly zIndex: {
|
|
328
331
|
readonly type: import("vue").PropType<number>;
|
|
329
332
|
readonly required: false;
|
|
@@ -345,12 +348,12 @@ export declare const ElImage: import("element-plus/es/utils").SFCWithInstall<imp
|
|
|
345
348
|
readonly src: string;
|
|
346
349
|
readonly fit: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown>;
|
|
347
350
|
readonly initialIndex: number;
|
|
348
|
-
readonly lazy:
|
|
351
|
+
readonly lazy: boolean;
|
|
349
352
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
350
|
-
readonly hideOnClickModal: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
351
353
|
readonly previewSrcList: string[];
|
|
352
|
-
readonly previewTeleported: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
353
354
|
readonly zoomRate: number;
|
|
355
|
+
readonly hideOnClickModal: boolean;
|
|
356
|
+
readonly previewTeleported: boolean;
|
|
354
357
|
}>> & Record<string, any>;
|
|
355
358
|
export default ElImage;
|
|
356
359
|
export * from './src/image';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
2
|
export declare const imageProps: {
|
|
3
|
-
readonly hideOnClickModal:
|
|
3
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
4
4
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
5
5
|
readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
6
6
|
readonly loading: {
|
|
@@ -9,7 +9,7 @@ export declare const imageProps: {
|
|
|
9
9
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
10
10
|
__epPropKey: true;
|
|
11
11
|
};
|
|
12
|
-
readonly lazy:
|
|
12
|
+
readonly lazy: BooleanConstructor;
|
|
13
13
|
readonly scrollContainer: {
|
|
14
14
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined) | ((new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined))[], unknown, unknown>>;
|
|
15
15
|
readonly required: false;
|
|
@@ -17,7 +17,7 @@ export declare const imageProps: {
|
|
|
17
17
|
__epPropKey: true;
|
|
18
18
|
};
|
|
19
19
|
readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
20
|
-
readonly previewTeleported:
|
|
20
|
+
readonly previewTeleported: BooleanConstructor;
|
|
21
21
|
readonly zIndex: {
|
|
22
22
|
readonly type: import("vue").PropType<number>;
|
|
23
23
|
readonly required: false;
|
|
@@ -8,10 +8,7 @@ var typescript = require('../../../utils/typescript.js');
|
|
|
8
8
|
var types = require('../../../utils/types.js');
|
|
9
9
|
|
|
10
10
|
const imageProps = runtime.buildProps({
|
|
11
|
-
hideOnClickModal:
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: false
|
|
14
|
-
},
|
|
11
|
+
hideOnClickModal: Boolean,
|
|
15
12
|
src: {
|
|
16
13
|
type: String,
|
|
17
14
|
default: ""
|
|
@@ -25,10 +22,7 @@ const imageProps = runtime.buildProps({
|
|
|
25
22
|
type: String,
|
|
26
23
|
values: ["eager", "lazy"]
|
|
27
24
|
},
|
|
28
|
-
lazy:
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: false
|
|
31
|
-
},
|
|
25
|
+
lazy: Boolean,
|
|
32
26
|
scrollContainer: {
|
|
33
27
|
type: runtime.definePropType([String, Object])
|
|
34
28
|
},
|
|
@@ -36,10 +30,7 @@ const imageProps = runtime.buildProps({
|
|
|
36
30
|
type: runtime.definePropType(Array),
|
|
37
31
|
default: () => typescript.mutable([])
|
|
38
32
|
},
|
|
39
|
-
previewTeleported:
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: false
|
|
42
|
-
},
|
|
33
|
+
previewTeleported: Boolean,
|
|
43
34
|
zIndex: {
|
|
44
35
|
type: Number
|
|
45
36
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sources":["../../../../../../packages/components/image/src/image.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const imageProps = buildProps({\n
|
|
1
|
+
{"version":3,"file":"image.js","sources":["../../../../../../packages/components/image/src/image.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const imageProps = buildProps({\n /**\n * @description when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode.\n */\n hideOnClickModal: Boolean,\n /**\n * @description image source, same as native.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).\n */\n fit: {\n type: String,\n values: ['', 'contain', 'cover', 'fill', 'none', 'scale-down'],\n default: '',\n },\n /**\n * @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading)\n */\n loading: {\n type: String,\n values: ['eager', 'lazy'],\n },\n /**\n * @description whether to use lazy load.\n */\n lazy: Boolean,\n /**\n * @description the container to add scroll listener when using lazy load.\n */\n scrollContainer: {\n type: definePropType<string | HTMLElement | undefined>([String, Object]),\n },\n /**\n * @description allow big image preview.\n */\n previewSrcList: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`.\n */\n previewTeleported: Boolean,\n /**\n * @description set image preview z-index.\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description initial preview image index, less than the length of `url-list`.\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether the viewer preview is infinite.\n */\n infinite: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the image-viewer can be closed by pressing ESC.\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the zoom rate of the image viewer zoom event\n */\n zoomRate: {\n type: Number,\n default: 1.2,\n },\n} as const)\nexport type ImageProps = ExtractPropTypes<typeof imageProps>\n\nexport const imageEmits = {\n load: (evt: Event) => evt instanceof Event,\n error: (evt: Event) => evt instanceof Event,\n switch: (val: number) => isNumber(val),\n close: () => true,\n show: () => true,\n}\nexport type ImageEmits = typeof imageEmits\n"],"names":["buildProps","definePropType","mutable","isNumber"],"mappings":";;;;;;;;;AAMY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC;AAClE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;AAC7B,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAEA,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAMC,kBAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACrC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC,EAAE,MAAM,EAAE,CAAC,GAAG,KAAKC,cAAQ,CAAC,GAAG,CAAC;AAChC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSProperties, StyleValue } from 'vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
readonly hideOnClickModal:
|
|
3
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
4
4
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
5
5
|
readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
6
6
|
readonly loading: {
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
10
10
|
__epPropKey: true;
|
|
11
11
|
};
|
|
12
|
-
readonly lazy:
|
|
12
|
+
readonly lazy: BooleanConstructor;
|
|
13
13
|
readonly scrollContainer: {
|
|
14
14
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined) | ((new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined))[], unknown, unknown>>;
|
|
15
15
|
readonly required: false;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
__epPropKey: true;
|
|
18
18
|
};
|
|
19
19
|
readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
20
|
-
readonly previewTeleported:
|
|
20
|
+
readonly previewTeleported: BooleanConstructor;
|
|
21
21
|
readonly zIndex: {
|
|
22
22
|
readonly type: import("vue").PropType<number>;
|
|
23
23
|
readonly required: false;
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
31
31
|
}, {
|
|
32
32
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
-
readonly hideOnClickModal:
|
|
33
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
34
34
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
35
35
|
readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
36
36
|
readonly loading: {
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
40
40
|
__epPropKey: true;
|
|
41
41
|
};
|
|
42
|
-
readonly lazy:
|
|
42
|
+
readonly lazy: BooleanConstructor;
|
|
43
43
|
readonly scrollContainer: {
|
|
44
44
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined) | ((new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined))[], unknown, unknown>>;
|
|
45
45
|
readonly required: false;
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
__epPropKey: true;
|
|
48
48
|
};
|
|
49
49
|
readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
50
|
-
readonly previewTeleported:
|
|
50
|
+
readonly previewTeleported: BooleanConstructor;
|
|
51
51
|
readonly zIndex: {
|
|
52
52
|
readonly type: import("vue").PropType<number>;
|
|
53
53
|
readonly required: false;
|
|
@@ -99,11 +99,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
supportLoading: boolean;
|
|
100
100
|
stopScrollListener: (() => void) | undefined;
|
|
101
101
|
stopWheelListener: (() => void) | undefined;
|
|
102
|
+
imageKls: import("vue").ComputedRef<(string | false)[]>;
|
|
102
103
|
containerStyle: import("vue").ComputedRef<StyleValue>;
|
|
103
104
|
imageStyle: import("vue").ComputedRef<CSSProperties>;
|
|
104
105
|
preview: import("vue").ComputedRef<boolean>;
|
|
105
106
|
imageIndex: import("vue").ComputedRef<number>;
|
|
106
|
-
isManual: import("vue").ComputedRef<
|
|
107
|
+
isManual: import("vue").ComputedRef<boolean>;
|
|
107
108
|
loadImage: () => void;
|
|
108
109
|
handleLoad: (event: Event) => void;
|
|
109
110
|
handleError: (event: Event) => void;
|
|
@@ -125,8 +126,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
126
|
};
|
|
126
127
|
readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
127
128
|
readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
128
|
-
readonly hideOnClickModal:
|
|
129
|
-
readonly teleported:
|
|
129
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
130
|
+
readonly teleported: BooleanConstructor;
|
|
130
131
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
131
132
|
readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
132
133
|
}, {
|
|
@@ -141,8 +142,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
142
|
};
|
|
142
143
|
readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
143
144
|
readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
144
|
-
readonly hideOnClickModal:
|
|
145
|
-
readonly teleported:
|
|
145
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
146
|
+
readonly teleported: BooleanConstructor;
|
|
146
147
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
147
148
|
readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
148
149
|
}>> & {
|
|
@@ -187,6 +188,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
187
188
|
isFirst: import("vue").ComputedRef<boolean>;
|
|
188
189
|
isLast: import("vue").ComputedRef<boolean>;
|
|
189
190
|
currentImg: import("vue").ComputedRef<string>;
|
|
191
|
+
arrowPrevKls: import("vue").ComputedRef<string[]>;
|
|
192
|
+
arrowNextKls: import("vue").ComputedRef<string[]>;
|
|
190
193
|
imgStyle: import("vue").ComputedRef<CSSProperties>;
|
|
191
194
|
computedZIndex: import("vue").ComputedRef<number>;
|
|
192
195
|
hide: () => void;
|
|
@@ -284,20 +287,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
284
287
|
};
|
|
285
288
|
readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
286
289
|
readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
287
|
-
readonly hideOnClickModal:
|
|
288
|
-
readonly teleported:
|
|
290
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
291
|
+
readonly teleported: BooleanConstructor;
|
|
289
292
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
290
293
|
readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
291
294
|
}>> & {
|
|
292
295
|
onClose?: (() => any) | undefined;
|
|
293
296
|
onSwitch?: ((index: number) => any) | undefined;
|
|
294
297
|
}, {
|
|
295
|
-
readonly teleported:
|
|
298
|
+
readonly teleported: boolean;
|
|
296
299
|
readonly infinite: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
297
300
|
readonly initialIndex: number;
|
|
298
301
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
299
|
-
readonly hideOnClickModal: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
300
302
|
readonly zoomRate: number;
|
|
303
|
+
readonly hideOnClickModal: boolean;
|
|
301
304
|
readonly urlList: string[];
|
|
302
305
|
}>> & Record<string, any>;
|
|
303
306
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -307,7 +310,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
307
310
|
close: () => boolean;
|
|
308
311
|
show: () => boolean;
|
|
309
312
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
310
|
-
readonly hideOnClickModal:
|
|
313
|
+
readonly hideOnClickModal: BooleanConstructor;
|
|
311
314
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
312
315
|
readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
313
316
|
readonly loading: {
|
|
@@ -316,7 +319,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
316
319
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
317
320
|
__epPropKey: true;
|
|
318
321
|
};
|
|
319
|
-
readonly lazy:
|
|
322
|
+
readonly lazy: BooleanConstructor;
|
|
320
323
|
readonly scrollContainer: {
|
|
321
324
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined) | ((new (...args: any[]) => (string | HTMLElement | undefined) & {}) | (() => string | HTMLElement | undefined))[], unknown, unknown>>;
|
|
322
325
|
readonly required: false;
|
|
@@ -324,7 +327,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
324
327
|
__epPropKey: true;
|
|
325
328
|
};
|
|
326
329
|
readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
327
|
-
readonly previewTeleported:
|
|
330
|
+
readonly previewTeleported: BooleanConstructor;
|
|
328
331
|
readonly zIndex: {
|
|
329
332
|
readonly type: import("vue").PropType<number>;
|
|
330
333
|
readonly required: false;
|
|
@@ -346,11 +349,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
346
349
|
readonly src: string;
|
|
347
350
|
readonly fit: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown>;
|
|
348
351
|
readonly initialIndex: number;
|
|
349
|
-
readonly lazy:
|
|
352
|
+
readonly lazy: boolean;
|
|
350
353
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
351
|
-
readonly hideOnClickModal: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
352
354
|
readonly previewSrcList: string[];
|
|
353
|
-
readonly previewTeleported: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
354
355
|
readonly zoomRate: number;
|
|
356
|
+
readonly hideOnClickModal: boolean;
|
|
357
|
+
readonly previewTeleported: boolean;
|
|
355
358
|
}>;
|
|
356
359
|
export default _default;
|
|
@@ -43,6 +43,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
43
43
|
const supportLoading = core.isClient && "loading" in HTMLImageElement.prototype;
|
|
44
44
|
let stopScrollListener;
|
|
45
45
|
let stopWheelListener;
|
|
46
|
+
const imageKls = vue.computed(() => [
|
|
47
|
+
ns.e("inner"),
|
|
48
|
+
preview.value && ns.e("preview"),
|
|
49
|
+
isLoading.value && ns.is("loading")
|
|
50
|
+
]);
|
|
46
51
|
const containerStyle = vue.computed(() => rawAttrs.style);
|
|
47
52
|
const imageStyle = vue.computed(() => {
|
|
48
53
|
const { fit } = props;
|
|
@@ -180,11 +185,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
180
185
|
src: imageSrc.value,
|
|
181
186
|
loading: _ctx.loading,
|
|
182
187
|
style: vue.unref(imageStyle),
|
|
183
|
-
class:
|
|
184
|
-
vue.unref(ns).e("inner"),
|
|
185
|
-
vue.unref(preview) && vue.unref(ns).e("preview"),
|
|
186
|
-
isLoading.value && vue.unref(ns).is("loading")
|
|
187
|
-
],
|
|
188
|
+
class: vue.unref(imageKls),
|
|
188
189
|
onClick: clickHandler,
|
|
189
190
|
onLoad: handleLoad,
|
|
190
191
|
onError: handleError
|