nuxt-hs-ui 2.1.17 → 2.1.19
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/dist/module.json
CHANGED
|
@@ -43,7 +43,7 @@ type Props = {
|
|
|
43
43
|
| undefined;
|
|
44
44
|
// ----------------------------------------------------------------------------
|
|
45
45
|
data: string | null;
|
|
46
|
-
diff?: string | undefined;
|
|
46
|
+
diff?: string | null | undefined;
|
|
47
47
|
tabindex?: string | undefined;
|
|
48
48
|
// ----------------------------------------------------------------------------
|
|
49
49
|
class?: ClassType;
|
|
@@ -120,7 +120,7 @@ type Emits = {
|
|
|
120
120
|
blur: [elm: HTMLElement];
|
|
121
121
|
// ----------------------------
|
|
122
122
|
"update:data": [value: string];
|
|
123
|
-
"value-change": [after: string, before: string];
|
|
123
|
+
"value-change": [after: string, before: string | null];
|
|
124
124
|
// ----------------------------
|
|
125
125
|
keydown: [event: KeyboardEvent];
|
|
126
126
|
keyup: [event: KeyboardEvent];
|
|
@@ -173,7 +173,7 @@ const updateValue = async (text: string | null) => {
|
|
|
173
173
|
state.value = setText;
|
|
174
174
|
emit("update:data", setText);
|
|
175
175
|
await nextTick();
|
|
176
|
-
emit("value-change", setText, before
|
|
176
|
+
emit("value-change", setText, before);
|
|
177
177
|
};
|
|
178
178
|
|
|
179
179
|
const setValue = (text: string | null) => {
|
|
@@ -29,8 +29,8 @@ type Props = {
|
|
|
29
29
|
maxRows?: number;
|
|
30
30
|
maxLen?: number;
|
|
31
31
|
// ----------------------------------------------------------------------------
|
|
32
|
-
data: string;
|
|
33
|
-
diff?: string | undefined;
|
|
32
|
+
data: string | null;
|
|
33
|
+
diff?: string | null | undefined;
|
|
34
34
|
tabindex?: string | undefined;
|
|
35
35
|
// ----------------------------------------------------------------------------
|
|
36
36
|
class?: ClassType;
|
|
@@ -114,7 +114,7 @@ type Emits = {
|
|
|
114
114
|
blur: [elm: HTMLElement];
|
|
115
115
|
// ----------------------------
|
|
116
116
|
"update:data": [value: string];
|
|
117
|
-
"value-change": [after: string, before: string];
|
|
117
|
+
"value-change": [after: string, before: string | null];
|
|
118
118
|
// ----------------------------
|
|
119
119
|
keydown: [event: KeyboardEvent];
|
|
120
120
|
keyup: [event: KeyboardEvent];
|
|
@@ -109,12 +109,12 @@ watch(
|
|
|
109
109
|
const initTabulator = () => {
|
|
110
110
|
// console.log(ct, 'initTabulator');
|
|
111
111
|
if (table.value === null) return;
|
|
112
|
-
|
|
112
|
+
const option = props.option;
|
|
113
113
|
if (props.rowCountHeight !== 0) {
|
|
114
|
+
let height = 0;
|
|
114
115
|
height = props.rowCountHeight * 39 + 85 + 2;
|
|
116
|
+
option.height = height === 0 ? "" : height;
|
|
115
117
|
}
|
|
116
|
-
const option = props.option;
|
|
117
|
-
option.height = height === 0 ? "" : height;
|
|
118
118
|
option.columns = props.columns;
|
|
119
119
|
option.data = data.value;
|
|
120
120
|
option.reactiveData = false;
|