@94ai/nf-text-overflow 100.1.30 → 100.1.32

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
@@ -42,7 +42,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
42
42
  default: number;
43
43
  };
44
44
  }>>, {
45
- clickAction: (event: Event) => void;
45
+ clickAction: (param: {
46
+ event: Event;
47
+ expanded: boolean;
48
+ }) => void;
46
49
  }, {
47
50
  content: string;
48
51
  expandText: string;
@@ -117,7 +120,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
117
120
  }>>, {
118
121
  init: () => void;
119
122
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
120
- clickAction: (event: Event) => void;
123
+ clickAction: (param: {
124
+ event: Event;
125
+ expanded: boolean;
126
+ }) => void;
121
127
  }, string, {
122
128
  content: string;
123
129
  expandText: string;
@@ -125,7 +125,10 @@ __sfc_main.setup = (__props, __ctx) => {
125
125
  if (hasDefaultSlot.value) {
126
126
  contentHeight.value = expanded.value ? "auto" : `${maxContentHeight.value}px`;
127
127
  }
128
- emit("clickAction", event);
128
+ emit("clickAction", {
129
+ event,
130
+ expanded: expanded.value
131
+ });
129
132
  };
130
133
  vueDemi.onMounted(() => {
131
134
  init();
@@ -123,7 +123,10 @@ __sfc_main.setup = (__props, __ctx) => {
123
123
  if (hasDefaultSlot.value) {
124
124
  contentHeight.value = expanded.value ? "auto" : `${maxContentHeight.value}px`;
125
125
  }
126
- emit("clickAction", event);
126
+ emit("clickAction", {
127
+ event,
128
+ expanded: expanded.value
129
+ });
127
130
  };
128
131
  onMounted(() => {
129
132
  init();
@@ -22,7 +22,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
22
22
  }, {
23
23
  init: () => void;
24
24
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
25
- clickAction: (event: Event) => void;
25
+ clickAction: (param: {
26
+ event: Event;
27
+ expanded: boolean;
28
+ }) => void;
26
29
  }, string, Readonly<import("vue-demi").ExtractPropTypes<{
27
30
  content: {
28
31
  type: import("vue-demi").PropType<string>;
@@ -36,7 +36,10 @@ const props = withDefaults(defineProps<{
36
36
  })
37
37
 
38
38
  const emit = defineEmits<{
39
- (e: 'clickAction', event: Event): void
39
+ (e: 'clickAction', param: {
40
+ event: Event,
41
+ expanded: boolean,
42
+ }): void
40
43
  }>()
41
44
 
42
45
 
@@ -135,7 +138,10 @@ const onClickAction = (event: MouseEvent) => {
135
138
  if (hasDefaultSlot.value) {
136
139
  contentHeight.value = expanded.value ? 'auto' : `${maxContentHeight.value}px`
137
140
  }
138
- emit('clickAction', event);
141
+ emit('clickAction', {
142
+ event,
143
+ expanded: expanded.value
144
+ });
139
145
  };
140
146
 
141
147
  onMounted(() => {
@@ -152,4 +158,4 @@ watch(() => [props.content, props.rows], init);
152
158
  defineExpose({
153
159
  init
154
160
  })
155
- </script>
161
+ </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-text-overflow",
3
- "version": "100.1.30",
3
+ "version": "100.1.32",
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": "^100.1.30",
17
+ "@94ai/nf-theme-chalk": "^100.1.32",
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": "02e302f26f86f86c1a1fb75ad208754857ce610f"
33
+ "gitHead": "790349805e1e9cc30983feedbb3ca69cb7dccfaf"
34
34
  }