vsyswin-ui 0.2.85 → 0.2.86
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 +44 -7332
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +44 -7332
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +95 -95
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/search-bar/src/search-bar.vue +4 -3
- package/vue.config.js +5 -0
package/package.json
CHANGED
|
@@ -389,7 +389,8 @@
|
|
|
389
389
|
import _ from 'lodash'
|
|
390
390
|
import moment from 'moment'
|
|
391
391
|
import saveLocal from './save-local'
|
|
392
|
-
import XEUtils from 'xe-utils'
|
|
392
|
+
// import XEUtils from 'xe-utils'
|
|
393
|
+
import findTree from 'xe-utils/findTree'
|
|
393
394
|
|
|
394
395
|
function deepCopyFunction(arr1, arr2) {
|
|
395
396
|
for (let i = 0; i < arr1.length; i++) {
|
|
@@ -630,13 +631,13 @@ export default {
|
|
|
630
631
|
const valueOptions = item.value.map((x) => {
|
|
631
632
|
// console.log('xxxxxxxxxxxxx', x) // 这里的x是个数组
|
|
632
633
|
const lastValue = x[x.length - 1]
|
|
633
|
-
const find =
|
|
634
|
+
const find = findTree(item.options, tItem => tItem.value === lastValue)
|
|
634
635
|
return find
|
|
635
636
|
})
|
|
636
637
|
obj.name = valueOptions.map((x) => x.nodes.map(y => y.label).join('/')).join(',')
|
|
637
638
|
} else {
|
|
638
639
|
const lastValue = item.value[item.value.length - 1]
|
|
639
|
-
const find =
|
|
640
|
+
const find = findTree(item.options, tItem => tItem.value === lastValue)
|
|
640
641
|
obj.name = find.nodes.map(y => y.label).join('/')
|
|
641
642
|
}
|
|
642
643
|
} else if (item.type === 'slot') {
|
package/vue.config.js
CHANGED
|
@@ -10,6 +10,11 @@ module.exports = {
|
|
|
10
10
|
// 强制内联CSS
|
|
11
11
|
css: { extract: false },
|
|
12
12
|
// 扩展 webpack 配置,使 packages 加入编译
|
|
13
|
+
// configureWebpack: {
|
|
14
|
+
// externals: {
|
|
15
|
+
// 'xe-utils': 'XEUtils'
|
|
16
|
+
// }
|
|
17
|
+
// },
|
|
13
18
|
chainWebpack: config => {
|
|
14
19
|
/* config.module.rule('js')
|
|
15
20
|
.include
|