cloud-web-corejs 1.0.54-dev.501 → 1.0.54-dev.503
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/package.json +1 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/view.vue +1 -6
- package/src/components/baseAttachment/mixins.js +10 -5
- package/src/components/vb-tabs/x-tabs.vue +0 -1
- package/src/components/wf/wf.js +2136 -1
- package/src/components/xform/form-designer/designer.js +1656 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +247 -188
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +274 -112
- package/src/components/xform/form-render/indexMixin.js +3411 -1
- package/src/components/xform/utils/formula-util copy.js +0 -3
- package/src/components/xform/utils/formula-util.js +0 -4
- package/src/components/xform/utils/util.js +1464 -1
- package/src/utils/vab.js +1 -1
|
@@ -168,12 +168,7 @@
|
|
|
168
168
|
:editAttachment.sync="editAttachment"
|
|
169
169
|
:edit.sync="$attrs.edit"
|
|
170
170
|
></propertiesDialog>
|
|
171
|
-
|
|
172
|
-
v-if="showViewer"
|
|
173
|
-
:on-close="closeViewer"
|
|
174
|
-
:initial-index.sync="chooseIndex"
|
|
175
|
-
:url-list="pictureDtoList"
|
|
176
|
-
/>
|
|
171
|
+
|
|
177
172
|
</div>
|
|
178
173
|
</template>
|
|
179
174
|
|
|
@@ -167,11 +167,16 @@ indexMixin = {
|
|
|
167
167
|
let imageUrl = null
|
|
168
168
|
if (Array.isArray(attachment)) {
|
|
169
169
|
if (attachment.length) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
let row = attachment[0];
|
|
171
|
+
if(row){
|
|
172
|
+
imageUrl = this.$commonFileUtil.getShowUrl(
|
|
173
|
+
row.domain +
|
|
174
|
+
(row.medium ? row.medium : row.url),
|
|
175
|
+
showImagePreview
|
|
176
|
+
);
|
|
177
|
+
}else{
|
|
178
|
+
imageUrl = null;
|
|
179
|
+
}
|
|
175
180
|
}
|
|
176
181
|
} else if (Object.prototype.toString.call(attachment) === "[object Object]") {
|
|
177
182
|
imageUrl = this.$commonFileUtil.getShowUrl(
|