vue2-client 1.8.88 → 1.8.89
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
CHANGED
package/package.json
CHANGED
|
@@ -42,11 +42,13 @@
|
|
|
42
42
|
<span
|
|
43
43
|
:style="advanced && { float: 'right', overflow: 'hidden' } || {} "
|
|
44
44
|
class="table-page-search-submitButtons">
|
|
45
|
-
<
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
<template v-if="realJsonData.length > 3">
|
|
46
|
+
<a @click="toggleAdvanced">
|
|
47
|
+
<span v-show="!advanced"><a-icon type="eye" :style="iconStyle"/> 更多条件</span>
|
|
48
|
+
<span v-show="advanced"><a-icon type="eye-invisible" :style="iconStyle"/> 收起更多</span>
|
|
49
|
+
</a>
|
|
50
|
+
<a-divider type="vertical"/>
|
|
51
|
+
</template>
|
|
50
52
|
<a-button
|
|
51
53
|
htmlType="submit"
|
|
52
54
|
type="primary"
|
|
@@ -101,7 +103,7 @@ export default {
|
|
|
101
103
|
computed: {
|
|
102
104
|
// 过滤掉仅用于新增/修改场景的表单项
|
|
103
105
|
realJsonData: function () {
|
|
104
|
-
return this.formItems.filter(item => !item.isOnlyAddOrEdit)
|
|
106
|
+
return this.formItems.filter(item => (!item.isOnlyAddOrEdit && item.type !== 'group') || (item.type === 'group' && item.groupItems.some(groupItem => !groupItem.isOnlyAddOrEdit)))
|
|
105
107
|
},
|
|
106
108
|
// 过滤出用于新增/修改场景的表单项
|
|
107
109
|
groupJsonData: function () {
|
|
@@ -25,7 +25,7 @@ function onSelect (keys, e) {
|
|
|
25
25
|
:tree-data="props.treeData"
|
|
26
26
|
@select="onSelect"
|
|
27
27
|
:replaceFields="props.replaceFields"
|
|
28
|
-
:default-selected-keys="props.treeData.length > 0 ? [props.treeData[0].key] : null"
|
|
28
|
+
:default-selected-keys="props.treeData.length > 0 ? [props.treeData[0][replaceFields.key]] : null"
|
|
29
29
|
:default-expand-all="true"
|
|
30
30
|
></a-directory-tree>
|
|
31
31
|
</div>
|