@94ai/nf-text-overflow 3.2.4 → 3.2.20

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/index.d.ts CHANGED
@@ -70,7 +70,9 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
70
70
  type: import("vue-demi").PropType<string | number>;
71
71
  default: number;
72
72
  };
73
- }>>> & import("vue-demi").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
73
+ }>>> & import("vue-demi").ShallowUnwrapRef<{
74
+ init: () => void;
75
+ }> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
74
76
  content: {
75
77
  type: import("vue-demi").PropType<string>;
76
78
  default: string;
@@ -112,7 +114,9 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
112
114
  type: import("vue-demi").PropType<string | number>;
113
115
  default: number;
114
116
  };
115
- }>>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
117
+ }>>, {
118
+ init: () => void;
119
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
116
120
  clickAction: (event: Event) => void;
117
121
  }, string, {
118
122
  content: string;
@@ -135,14 +135,16 @@ __sfc_main.setup = (__props, __ctx) => {
135
135
  window.removeEventListener("resize", init);
136
136
  });
137
137
  vueDemi.watch(() => [props.content, props.rows], init);
138
- return {
138
+ return Object.assign({
139
139
  text,
140
140
  expanded,
141
141
  hasAction,
142
142
  textbox,
143
143
  contentHeight,
144
144
  onClickAction
145
- };
145
+ }, {
146
+ init
147
+ });
146
148
  };
147
149
  var _sfc_render = function render() {
148
150
  var _vm = this, _c = _vm._self._c;
@@ -133,14 +133,16 @@ __sfc_main.setup = (__props, __ctx) => {
133
133
  window.removeEventListener("resize", init);
134
134
  });
135
135
  watch(() => [props.content, props.rows], init);
136
- return {
136
+ return Object.assign({
137
137
  text,
138
138
  expanded,
139
139
  hasAction,
140
140
  textbox,
141
141
  contentHeight,
142
142
  onClickAction
143
- };
143
+ }, {
144
+ init
145
+ });
144
146
  };
145
147
  var _sfc_render = function render() {
146
148
  var _vm = this, _c = _vm._self._c;
@@ -19,7 +19,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
19
19
  type: import("vue-demi").PropType<string | number>;
20
20
  default: number;
21
21
  };
22
- }, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
22
+ }, {
23
+ init: () => void;
24
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
23
25
  clickAction: (event: Event) => void;
24
26
  }, string, Readonly<import("vue-demi").ExtractPropTypes<{
25
27
  content: {
@@ -148,4 +148,8 @@ onUnmounted(() => {
148
148
  })
149
149
 
150
150
  watch(() => [props.content, props.rows], init);
151
+
152
+ defineExpose({
153
+ init
154
+ })
151
155
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-text-overflow",
3
- "version": "3.2.4",
3
+ "version": "3.2.20",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zhongzhenjie <1476686104@qq.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.4",
17
+ "@94ai/nf-theme-chalk": "^3.2.20",
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-text-overflow.cjs.js",
32
32
  "module": "lib/nf-text-overflow.esm-bundler.js",
33
- "gitHead": "9518f3ee1354378e844b825d6d850d18ec14f71a"
33
+ "gitHead": "60e08cb237f842c3fc38168cbd911ec3a4c9d440"
34
34
  }