@94ai/nf-form-item 3.2.48 → 100.1.2

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.
@@ -8,6 +8,8 @@ declare const _default: import("vue-demi").DefineComponent<{
8
8
  isExpand: boolean;
9
9
  initExpand: boolean;
10
10
  }, {
11
+ expandBtnTooltipDesc(): any;
12
+ shrinkBtnTooltipDesc(): any;
11
13
  downIcon(): any;
12
14
  upIcon(): any;
13
15
  isCollapse(): any;
@@ -25,7 +25,7 @@
25
25
  <div v-if="isLastItem" class="nf-flex">
26
26
  <slot />
27
27
  <div v-if="showBtn" class="nf-ml10">
28
- <el-tooltip :content="isExpand ? '收起' : '展开'" placement="top">
28
+ <el-tooltip :content="isExpand ? shrinkBtnTooltipDesc : expandBtnTooltipDesc" placement="top">
29
29
  <el-button
30
30
  class="nf-pointer"
31
31
  @click="switchMode"
@@ -121,6 +121,12 @@ export default defineComponent({
121
121
  })
122
122
  },
123
123
  computed: {
124
+ expandBtnTooltipDesc() {
125
+ return this.form?.expandBtnTooltipDesc
126
+ },
127
+ shrinkBtnTooltipDesc() {
128
+ return this.form?.shrinkBtnTooltipDesc
129
+ },
124
130
  downIcon() {
125
131
  return this.form?.downIcon
126
132
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-form-item",
3
- "version": "3.2.48",
3
+ "version": "100.1.2",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,7 +14,7 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-theme-chalk": "^3.2.48",
17
+ "@94ai/nf-theme-chalk": "^100.1.2",
18
18
  "vue-demi": "^0.14.5"
19
19
  },
20
20
  "peerDependenciesMeta": {
@@ -30,5 +30,5 @@
30
30
  "types": "lib/index.d.ts",
31
31
  "main": "lib/nf-form-item.cjs.js",
32
32
  "module": "lib/nf-form-item.esm-bundler.js",
33
- "gitHead": "91145bb7df8dad2c0cb3eefb101c6158ec854269"
33
+ "gitHead": "5b811c0e9d5ed95519222e3a9b744331734feeaf"
34
34
  }
package/lib/utils.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function debounce(func: any, wait: any, immediate: any): (...args: any[]) => any;
package/package/utils.ts DELETED
@@ -1,36 +0,0 @@
1
- export function debounce(func, wait, immediate) {
2
- let timeout, args, context, timestamp, result
3
-
4
- const later = function() {
5
- // 据上一次触发时间间隔
6
- const last = +new Date() - timestamp
7
-
8
- // 上次被包装函数被调用时间间隔last小于设定时间间隔wait
9
- if (last < wait && last > 0) {
10
- timeout = setTimeout(later, wait - last)
11
- } else {
12
- timeout = null
13
- // 如果设定为immediate===true,因为开始边界已经调用过了此处无需调用
14
- if (!immediate) {
15
- result = func.apply(context, args)
16
- if (!timeout) context = args = null
17
- }
18
- }
19
- }
20
-
21
- return function(...args) {
22
- // @ts-ignore
23
- context = this
24
- timestamp = +new Date()
25
- const callNow = immediate && !timeout
26
- // 如果延时不存在,重新设定延时
27
- if (!timeout) timeout = setTimeout(later, wait)
28
- if (callNow) {
29
- result = func.apply(context, args)
30
- // @ts-ignore
31
- context = args = null
32
- }
33
-
34
- return result
35
- }
36
- }