qidian-vue-ui 2.8.14 → 2.8.16
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.
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
.qd-form--small[data-v-
|
|
1
|
+
.qd-form--small[data-v-5095bf22] {
|
|
2
2
|
font: var(--td-font-body-small);
|
|
3
3
|
}
|
|
4
|
-
.qd-form--small[data-v-
|
|
4
|
+
.qd-form--small[data-v-5095bf22] .t-form__label--top {
|
|
5
5
|
min-height: var(--td-comp-margin-xxl);
|
|
6
6
|
line-height: var(--td-comp-margin-xxl);
|
|
7
7
|
}
|
|
8
|
-
.qd-form--small[data-v-
|
|
9
|
-
.qd-form--small[data-v-
|
|
8
|
+
.qd-form--small[data-v-5095bf22] .t-form__controls,
|
|
9
|
+
.qd-form--small[data-v-5095bf22] .t-form__controls-content {
|
|
10
10
|
min-height: var(--td-comp-margin-xxl);
|
|
11
11
|
}
|
|
12
|
-
.qd-form--descriptions[data-v-
|
|
12
|
+
.qd-form--descriptions[data-v-5095bf22] .qd-grid {
|
|
13
13
|
border: 1px solid var(--td-component-border);
|
|
14
14
|
background-color: var(--td-component-border);
|
|
15
15
|
gap: 1px !important;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
}
|
|
18
|
-
.qd-form--descriptions[data-v-
|
|
18
|
+
.qd-form--descriptions[data-v-5095bf22] .qd-grid-item {
|
|
19
19
|
background-color: var(--td-bg-color-container);
|
|
20
20
|
}
|
|
21
|
-
.qd-form--descriptions[data-v-
|
|
21
|
+
.qd-form--descriptions[data-v-5095bf22] .t-form__item {
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: stretch;
|
|
24
24
|
height: 100%;
|
|
25
25
|
margin-bottom: 0 !important;
|
|
26
26
|
}
|
|
27
|
-
.qd-form--descriptions[data-v-
|
|
27
|
+
.qd-form--descriptions[data-v-5095bf22] .t-form__label {
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
justify-content: center;
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
height: 100%;
|
|
34
34
|
min-height: var(--td-comp-margin-xxl);
|
|
35
35
|
}
|
|
36
|
-
.qd-form--descriptions[data-v-
|
|
36
|
+
.qd-form--descriptions[data-v-5095bf22] .t-form__label--top {
|
|
37
37
|
border-bottom: 1px solid var(--td-component-border);
|
|
38
38
|
height: var(--qd-form-description-label-height, auto);
|
|
39
39
|
white-space: normal;
|
|
40
40
|
}
|
|
41
|
-
.qd-form--descriptions[data-v-
|
|
41
|
+
.qd-form--descriptions[data-v-5095bf22] .t-form__controls {
|
|
42
42
|
flex: 1 1 0;
|
|
43
43
|
overflow: hidden;
|
|
44
44
|
display: flex;
|
|
@@ -48,44 +48,45 @@
|
|
|
48
48
|
height: 100%;
|
|
49
49
|
min-height: var(--td-comp-margin-xxl);
|
|
50
50
|
}
|
|
51
|
-
.qd-form--descriptions[data-v-
|
|
51
|
+
.qd-form--descriptions[data-v-5095bf22] .t-form__controls-content {
|
|
52
52
|
min-height: auto;
|
|
53
|
+
overflow-wrap: anywhere;
|
|
53
54
|
}
|
|
54
|
-
.qd-form--descriptions[data-v-
|
|
55
|
+
.qd-form--descriptions[data-v-5095bf22] .qd-form-item--label-top {
|
|
55
56
|
display: grid;
|
|
56
57
|
grid-template-rows: auto minmax(min-content, 1fr);
|
|
57
58
|
grid-row: span 2 !important;
|
|
58
59
|
}
|
|
59
|
-
.qd-form--descriptions[data-v-
|
|
60
|
+
.qd-form--descriptions[data-v-5095bf22] .qd-form-item--label-top > .t-form__item {
|
|
60
61
|
display: contents;
|
|
61
62
|
}
|
|
62
|
-
.qd-form--descriptions[data-v-
|
|
63
|
+
.qd-form--descriptions[data-v-5095bf22] .qd-form-item--label-top .t-form__controls-content {
|
|
63
64
|
white-space: normal;
|
|
64
65
|
}
|
|
65
|
-
.qd-form--descriptions[data-v-
|
|
66
|
+
.qd-form--descriptions[data-v-5095bf22] .qd-form-item--empty-content .t-form__controls {
|
|
66
67
|
padding: 0 !important;
|
|
67
68
|
min-height: 0;
|
|
68
69
|
height: 0;
|
|
69
70
|
overflow: hidden;
|
|
70
71
|
}
|
|
71
|
-
.qd-form--descriptions[data-v-
|
|
72
|
-
.qd-form--descriptions[data-v-
|
|
72
|
+
.qd-form--descriptions[data-v-5095bf22] .t-form__item-with-extra .t-form__controls,
|
|
73
|
+
.qd-form--descriptions[data-v-5095bf22] .t-form__item-with-help .t-form__controls {
|
|
73
74
|
height: auto;
|
|
74
75
|
overflow: visible;
|
|
75
76
|
}
|
|
76
|
-
.qd-form--descriptions[data-v-
|
|
77
|
-
.qd-form--descriptions[data-v-
|
|
77
|
+
.qd-form--descriptions[data-v-5095bf22] .t-form__item-with-extra .t-input__extra,
|
|
78
|
+
.qd-form--descriptions[data-v-5095bf22] .t-form__item-with-help .t-input__extra {
|
|
78
79
|
position: static;
|
|
79
80
|
}
|
|
80
|
-
.qd-form--descriptions[data-v-
|
|
81
|
+
.qd-form--descriptions[data-v-5095bf22] .qd-form-item:not(.qd-form-item--label-top):not(.qd-form-item--label-width-full) .t-form__label {
|
|
81
82
|
border-right: 1px solid var(--td-component-border);
|
|
82
83
|
}
|
|
83
|
-
.qd-form--descriptions[data-v-
|
|
84
|
-
.qd-form--descriptions[data-v-
|
|
84
|
+
.qd-form--descriptions[data-v-5095bf22] .qd-form-item--filler,
|
|
85
|
+
.qd-form--descriptions[data-v-5095bf22] .qd-grid-item--fill {
|
|
85
86
|
background-color: var(--td-bg-color-secondarycontainer);
|
|
86
87
|
}
|
|
87
|
-
.qd-form--descriptions-mini[data-v-
|
|
88
|
-
.qd-form--descriptions-mini[data-v-
|
|
88
|
+
.qd-form--descriptions-mini[data-v-5095bf22] .t-form__label,
|
|
89
|
+
.qd-form--descriptions-mini[data-v-5095bf22] .t-form__controls {
|
|
89
90
|
padding: var(--td-comp-paddingTB-xxs) var(--td-comp-paddingLR-xxs);
|
|
90
91
|
font: var(--td-font-body-small);
|
|
91
92
|
}
|
|
@@ -2,7 +2,7 @@ import './index.css'
|
|
|
2
2
|
import _sfc_main from "./index.vue2.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const QdForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5095bf22"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdForm as default
|
|
8
8
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.qd-image[data-v-
|
|
1
|
+
.qd-image[data-v-6ae6959b] .t-image__overlay-content {
|
|
2
2
|
border-radius: inherit;
|
|
3
3
|
}
|
|
4
|
-
.qd-image__viewer-trigger[data-v-
|
|
4
|
+
.qd-image__viewer-trigger[data-v-6ae6959b] {
|
|
5
5
|
display: none;
|
|
6
6
|
}
|
|
7
|
-
.qd-image__preview-mask[data-v-
|
|
7
|
+
.qd-image__preview-mask[data-v-6ae6959b] {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: center;
|
|
@@ -2,7 +2,7 @@ import './index.css'
|
|
|
2
2
|
import _sfc_main from "./index.vue2.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6ae6959b"]]);
|
|
6
6
|
export {
|
|
7
7
|
index as default
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { defineComponent, mergeDefaults, inject, computed, ref, watch, onUnmounted, createElementBlock, openBlock, Fragment, withDirectives, createBlock, createCommentVNode, unref, mergeProps, createSlots, withCtx, renderSlot, createVNode, renderList, createElementVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
+
import { defineComponent, mergeDefaults, useAttrs, inject, computed, ref, watch, onUnmounted, createElementBlock, openBlock, Fragment, withDirectives, createBlock, createCommentVNode, unref, mergeProps, createSlots, withCtx, renderSlot, createVNode, renderList, createElementVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
3
3
|
import { isEmpty, validator, abortWrapper, to, filterSlots, suspectedWrapperPromise } from "qidian-shared";
|
|
4
4
|
import { ImageErrorIcon, LoadingIcon, BrowseIcon } from "tdesign-icons-vue-next";
|
|
5
5
|
import { Image, LoadingDirective, ImageViewer } from "tdesign-vue-next";
|
|
@@ -37,12 +37,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
}, qdImageProps),
|
|
38
38
|
setup(__props) {
|
|
39
39
|
const props = __props;
|
|
40
|
+
const attrs = useAttrs();
|
|
40
41
|
const vLoading = LoadingDirective;
|
|
41
42
|
const globalUploadProps = inject(
|
|
42
43
|
PROVIDE_UPLOAD,
|
|
43
44
|
computed(() => void 0)
|
|
44
45
|
);
|
|
45
46
|
const reSrc = ref();
|
|
47
|
+
const imageAttrs = computed(() => {
|
|
48
|
+
const { onClick: externalClick, ...restAttrs } = attrs;
|
|
49
|
+
return { ...restAttrs, ...reProps.value.imageOptions };
|
|
50
|
+
});
|
|
46
51
|
const reProps = computed(() => {
|
|
47
52
|
const { src, mode, listOssByIds, preview, onError, onLoad, ...imageOptions } = props;
|
|
48
53
|
const reListOssByIds = merge({}, globalUploadProps.value?.listOssByIds, listOssByIds);
|
|
@@ -68,6 +73,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
73
|
if (!props.preview) return;
|
|
69
74
|
if (!viewerImages.value.length) return;
|
|
70
75
|
viewerVisible.value = true;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
function handleClick(event) {
|
|
79
|
+
const externalClick = attrs.onClick;
|
|
80
|
+
if (externalClick) {
|
|
81
|
+
externalClick(event);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (!props.preview) return;
|
|
85
|
+
if (openViewer()) event.stopPropagation();
|
|
71
86
|
}
|
|
72
87
|
function handleImageError(context) {
|
|
73
88
|
imageError.value = true;
|
|
@@ -136,12 +151,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
151
|
});
|
|
137
152
|
return (_ctx, _cache) => {
|
|
138
153
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
139
|
-
withDirectives((openBlock(), createBlock(unref(Image), mergeProps({ class: "qd-image" },
|
|
154
|
+
withDirectives((openBlock(), createBlock(unref(Image), mergeProps({ class: "qd-image" }, imageAttrs.value, {
|
|
140
155
|
src: typeof reSrc.value === "number" ? reSrc.value + "" : reSrc.value,
|
|
141
156
|
"overlay-trigger": __props.preview && !imageError.value ? "hover" : void 0,
|
|
142
157
|
onError: handleImageError,
|
|
143
158
|
onLoad: handleImageLoad,
|
|
144
|
-
onClick:
|
|
159
|
+
onClick: handleClick
|
|
145
160
|
}), createSlots({
|
|
146
161
|
loading: withCtx(() => [
|
|
147
162
|
renderSlot(_ctx.$slots, "loading", {}, () => [
|