n20-common-lib 2.2.46 → 2.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.2.46",
3
+ "version": "2.2.48",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -10,7 +10,13 @@
10
10
  <div ref="anchor-content" class="flex-item" style="height: 100%; overflow: auto">
11
11
  <slot></slot>
12
12
  </div>
13
- <AnchorSidebar v-if="position === 'right'" :nav-list="navList" :activit="value" @click="activitFn" />
13
+ <AnchorSidebar
14
+ v-if="position === 'right'"
15
+ :nav-list="navList"
16
+ :activit="value"
17
+ :style="{ width: navWidth, marginLeft: '10px' }"
18
+ @click="activitFn"
19
+ />
14
20
  </div>
15
21
  </template>
16
22
 
@@ -19,7 +25,7 @@ import { debounce } from 'throttle-debounce'
19
25
  import { addListener, removeListener } from 'resize-detector'
20
26
 
21
27
  import AnchorSidebar from './sidebar.vue'
22
- console.log(AnchorSidebar, 124)
28
+
23
29
  export default {
24
30
  name: 'Anchor',
25
31
  components: {
@@ -6,7 +6,7 @@
6
6
  clearable
7
7
  multiple
8
8
  collapse-tags
9
- placeholder="请选择审批意见"
9
+ :placeholder="'请选择审批意见' | $lc"
10
10
  @change="changeFn"
11
11
  >
12
12
  <el-option v-for="(item, i) in approveMsgList" :key="i" :label="item.suggestion" :value="item.suggestion" />
@@ -180,7 +180,7 @@ export default {
180
180
  }
181
181
  },
182
182
  inputFn(valStr) {
183
- if (valStr !== '-' && isNaN(valStr)) {
183
+ if (valStr !== '-' && isNaN(valStr.replace(/,/g, ''))) {
184
184
  this.valueStr = this.preValue
185
185
  } else {
186
186
  this.preValue = valStr
@@ -12,7 +12,6 @@
12
12
  format="yyyy-MM-dd"
13
13
  value-format="yyyy-MM-dd"
14
14
  type="daterange"
15
- clearable
16
15
  v-bind="$attrs"
17
16
  :placeholder="'选择日' | $lc"
18
17
  @change="$listeners.change"