vsyswin-ui 0.2.86 → 0.2.88
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/lib/vsyswin-ui.common.js +53 -241
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +53 -241
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +9 -9
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/search-bar/src/search-bar.vue +0 -58
- package/vue.config.js +0 -5
package/package.json
CHANGED
|
@@ -123,12 +123,6 @@
|
|
|
123
123
|
<el-option v-for="opt in item.options" :key="opt.id" :label="opt.label" :value="opt.value"></el-option>
|
|
124
124
|
</el-select>
|
|
125
125
|
</template>
|
|
126
|
-
<template v-else-if="item.type === 'cascade'">
|
|
127
|
-
<span class="syswin-filter-item__name" v-if="item.name && !item.hideName">{{ item.name }}</span>
|
|
128
|
-
<el-cascader size="small" v-model="item.value" :placeholder="`请选择${item.name}`" :style="{
|
|
129
|
-
width: item.width ? item.width : '200px'
|
|
130
|
-
}" :options="item.options" :props="{ multiple: !!item.multiple, checkStrictly: !!item.checkStrictly }" collapse-tags clearable @change="handleChangeDateragne(idx, index)"></el-cascader>
|
|
131
|
-
</template>
|
|
132
126
|
<template v-else-if="item.type === 'slot'">
|
|
133
127
|
<slot :name="item.slot" :item="item">内容为空</slot>
|
|
134
128
|
</template>
|
|
@@ -236,12 +230,6 @@
|
|
|
236
230
|
<el-option v-for="opt in item.options" :key="opt.id" :label="opt.label" :value="opt.value"></el-option>
|
|
237
231
|
</el-select>
|
|
238
232
|
</template>
|
|
239
|
-
<template v-else-if="item.type === 'cascade'">
|
|
240
|
-
<span class="syswin-filter-item__name" v-if="item.name && !item.hideName">{{ item.name }}</span>
|
|
241
|
-
<el-cascader size="small" v-model="item.value" :placeholder="`请选择${item.name}`" :style="{
|
|
242
|
-
width: item.width ? item.width : '200px'
|
|
243
|
-
}" :options="item.options" :props="{ multiple: !!item.multiple, checkStrictly: !!item.checkStrictly }" collapse-tags clearable @change="handleChangeDateragne(idx, index)"></el-cascader>
|
|
244
|
-
</template>
|
|
245
233
|
<template v-else-if="item.type === 'slot'">
|
|
246
234
|
<slot :name="item.slot" :item="item">内容为空</slot>
|
|
247
235
|
</template>
|
|
@@ -336,12 +324,6 @@
|
|
|
336
324
|
<el-option v-for="opt in item.options" :key="opt.id" :label="opt.label" :value="opt.value"></el-option>
|
|
337
325
|
</el-select>
|
|
338
326
|
</template>
|
|
339
|
-
<template v-else-if="item.type === 'cascade'">
|
|
340
|
-
<span class="syswin-filter-item__name" v-if="item.name && !item.hideName">{{ item.name }}</span>
|
|
341
|
-
<el-cascader size="small" v-model="item.value" :placeholder="`请选择${item.name}`" :style="{
|
|
342
|
-
width: item.width ? item.width : '200px'
|
|
343
|
-
}" :options="item.options" :props="{ multiple: !!item.multiple, checkStrictly: !!item.checkStrictly }" collapse-tags clearable @change="handleChangeDateragne(idx, index + maxConditionLength)"></el-cascader>
|
|
344
|
-
</template>
|
|
345
327
|
<template v-else-if="item.type === 'slot'">
|
|
346
328
|
<slot :name="item.slot" :item="item">内容为空</slot>
|
|
347
329
|
</template>
|
|
@@ -389,8 +371,6 @@
|
|
|
389
371
|
import _ from 'lodash'
|
|
390
372
|
import moment from 'moment'
|
|
391
373
|
import saveLocal from './save-local'
|
|
392
|
-
// import XEUtils from 'xe-utils'
|
|
393
|
-
import findTree from 'xe-utils/findTree'
|
|
394
374
|
|
|
395
375
|
function deepCopyFunction(arr1, arr2) {
|
|
396
376
|
for (let i = 0; i < arr1.length; i++) {
|
|
@@ -621,25 +601,6 @@ export default {
|
|
|
621
601
|
} else {
|
|
622
602
|
obj.name = item.options.find((x) => x.value === item.value).label
|
|
623
603
|
}
|
|
624
|
-
} else if (item.type === 'cascade') {
|
|
625
|
-
if (!item.value) return
|
|
626
|
-
if (item.multiple) {
|
|
627
|
-
if (!item.value.length) {
|
|
628
|
-
return
|
|
629
|
-
}
|
|
630
|
-
// const valueOptions = item.value.map((x) => item.options.find((f) => f.value === x))
|
|
631
|
-
const valueOptions = item.value.map((x) => {
|
|
632
|
-
// console.log('xxxxxxxxxxxxx', x) // 这里的x是个数组
|
|
633
|
-
const lastValue = x[x.length - 1]
|
|
634
|
-
const find = findTree(item.options, tItem => tItem.value === lastValue)
|
|
635
|
-
return find
|
|
636
|
-
})
|
|
637
|
-
obj.name = valueOptions.map((x) => x.nodes.map(y => y.label).join('/')).join(',')
|
|
638
|
-
} else {
|
|
639
|
-
const lastValue = item.value[item.value.length - 1]
|
|
640
|
-
const find = findTree(item.options, tItem => tItem.value === lastValue)
|
|
641
|
-
obj.name = find.nodes.map(y => y.label).join('/')
|
|
642
|
-
}
|
|
643
604
|
} else if (item.type === 'slot') {
|
|
644
605
|
if (!item.getValue) return
|
|
645
606
|
const info = item.getValue() // 这里不能直接调,因为是深拷贝过来的
|
|
@@ -726,9 +687,6 @@ export default {
|
|
|
726
687
|
if (item.type === 'select') {
|
|
727
688
|
item.value = item.multiple ? [] : null
|
|
728
689
|
}
|
|
729
|
-
if (item.type === 'cascade') {
|
|
730
|
-
item.value = item.multiple ? [] : null
|
|
731
|
-
}
|
|
732
690
|
if (item.type === 'slot') {
|
|
733
691
|
item.setValue({ name: '', value: '' })
|
|
734
692
|
}
|
|
@@ -761,9 +719,6 @@ export default {
|
|
|
761
719
|
if (item.type === 'select') {
|
|
762
720
|
item.value = item.multiple ? [] : null
|
|
763
721
|
}
|
|
764
|
-
if (item.type === 'cascade') {
|
|
765
|
-
item.value = item.multiple ? [] : null
|
|
766
|
-
}
|
|
767
722
|
if (item.type === 'slot') {
|
|
768
723
|
item.setValue({ name: '', value: '' })
|
|
769
724
|
}
|
|
@@ -803,13 +758,6 @@ export default {
|
|
|
803
758
|
item.value = null
|
|
804
759
|
}
|
|
805
760
|
}
|
|
806
|
-
if (item.type === 'cascade') {
|
|
807
|
-
if (item.multiple) {
|
|
808
|
-
item.value = []
|
|
809
|
-
} else {
|
|
810
|
-
item.value = null
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
761
|
item.type === 'slot' && item.setValue({ value: '', name: '' })
|
|
814
762
|
})
|
|
815
763
|
})
|
|
@@ -892,9 +840,6 @@ export default {
|
|
|
892
840
|
if (item.type === 'select') {
|
|
893
841
|
item.value = item.multiple ? [] : null
|
|
894
842
|
}
|
|
895
|
-
if (item.type === 'cascade') {
|
|
896
|
-
item.value = item.multiple ? [] : null
|
|
897
|
-
}
|
|
898
843
|
}
|
|
899
844
|
})
|
|
900
845
|
this.$set(this.currentSearchList, parentIndex, parentItem)
|
|
@@ -975,9 +920,6 @@ export default {
|
|
|
975
920
|
v.value = ele.value
|
|
976
921
|
}
|
|
977
922
|
if (ele.value) v.isActive = true
|
|
978
|
-
} else if (v.type === 'cascade') {
|
|
979
|
-
v.value = ele.value
|
|
980
|
-
if (ele.value) v.isActive = true
|
|
981
923
|
} else if (v.type === 'month' || v.type === 'year') {
|
|
982
924
|
v.value = ele.value
|
|
983
925
|
if (ele.value) v.isActive = true
|
package/vue.config.js
CHANGED
|
@@ -10,11 +10,6 @@ module.exports = {
|
|
|
10
10
|
// 强制内联CSS
|
|
11
11
|
css: { extract: false },
|
|
12
12
|
// 扩展 webpack 配置,使 packages 加入编译
|
|
13
|
-
// configureWebpack: {
|
|
14
|
-
// externals: {
|
|
15
|
-
// 'xe-utils': 'XEUtils'
|
|
16
|
-
// }
|
|
17
|
-
// },
|
|
18
13
|
chainWebpack: config => {
|
|
19
14
|
/* config.module.rule('js')
|
|
20
15
|
.include
|