@ticatec/uniface-element 0.3.6 → 0.3.7
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.
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
{#if selectable}
|
|
45
45
|
<input type="checkbox" bind:checked={selected}/>
|
|
46
46
|
{/if}
|
|
47
|
+
{#if indicatorColumn.displayNo}
|
|
48
|
+
<div style="margin-left: 4px; flex: 1 1 auto; text-align: center">
|
|
49
|
+
<span>{rowNo}</span>
|
|
50
|
+
</div>
|
|
51
|
+
{/if}
|
|
47
52
|
|
|
48
53
|
{#if expandable}
|
|
49
|
-
<div class="expand-icon" style="">
|
|
54
|
+
<div class="expand-icon" style="flex: 0 0 auto">
|
|
50
55
|
<i class={row == expandRow ? 'icon_google_folder' : "icon_google_folder_open"} aria-hidden="true" on:click={showInlineData}></i>
|
|
51
56
|
</div>
|
|
52
57
|
{/if}
|
|
53
|
-
{#if indicatorColumn.displayNo}
|
|
54
|
-
<div style="margin-left: 4px; width: 20px; text-align: left">
|
|
55
|
-
<span>{rowNo}</span>
|
|
56
|
-
</div>
|
|
57
|
-
{/if}
|
|
58
58
|
</div>
|
|
59
59
|
{/if}
|
|
60
60
|
{#each cols as column, colIdx}
|
|
@@ -192,13 +192,17 @@
|
|
|
192
192
|
};
|
|
193
193
|
|
|
194
194
|
const handleBlur = (event: FocusEvent) => {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
setTimeout(() => {
|
|
196
|
+
const focused = scrollElement!=null && scrollElement.contains(document.activeElement);
|
|
197
|
+
console.log('当前组合组件是否聚集', focused, value)
|
|
198
|
+
if (!focused) {
|
|
199
|
+
hasFocus = false;
|
|
200
|
+
if (value == null) {
|
|
201
|
+
inputText = '';
|
|
202
|
+
}
|
|
203
|
+
onblur?.();
|
|
199
204
|
}
|
|
200
|
-
|
|
201
|
-
}
|
|
205
|
+
}, 50)
|
|
202
206
|
};
|
|
203
207
|
|
|
204
208
|
const clean = () => {
|
package/package.json
CHANGED