@netang/quasar 0.1.46 → 0.1.48

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.
@@ -184,6 +184,7 @@ import $n_isFunction from 'lodash/isFunction'
184
184
  import $n_isNil from 'lodash/isNil'
185
185
 
186
186
  import $n_isValidObject from '@netang/utils/isValidObject'
187
+ import $n_isValidArray from '@netang/utils/isValidArray'
187
188
  import $n_isValidValue from '@netang/utils/isValidValue'
188
189
  import $n_collection from '@netang/utils/collection'
189
190
 
@@ -420,6 +421,7 @@ export default {
420
421
  if (
421
422
  // 如果关闭选中第一个树节点
422
423
  ! props.treeSelectFirstNode
424
+ || ! $n_isValidArray(val)
423
425
  || ! $n_isNil(treeSelected.value)
424
426
  ) {
425
427
  // 则无任何操作
@@ -6,6 +6,9 @@
6
6
  >
7
7
  <div class="n-search q-pa-sm q-pt-sm q-gutter-sm">
8
8
 
9
+ <!-- 内部前置插槽 -->
10
+ <slot name="prepend" />
11
+
9
12
  <template
10
13
  v-for="(item, itemIndex) in options"
11
14
  >
@@ -133,6 +136,10 @@
133
136
  </n-search-item>
134
137
  </template>
135
138
  </template>
139
+
140
+ <!-- 内部后置插槽 -->
141
+ <slot name="append" />
142
+
136
143
  </div>
137
144
  </q-scroll-area>
138
145
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "description": "netang-quasar",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"