@ticatec/uniface-element 0.3.13 → 0.3.15

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.
@@ -141,6 +141,7 @@
141
141
  // 仅在数值合法时同步 value,此处不触发格式化
142
142
  if (!isNaN(parsed) && utils.isValidNumber(parsed, precision, allowNegative, max, min)) {
143
143
  value = parsed;
144
+ onchange?.(value);
144
145
  }
145
146
  }
146
147
 
@@ -44,7 +44,6 @@
44
44
  await tick();
45
45
  selectionMode = value ? SelectionMode.All : SelectionMode.None;
46
46
  rows = [...rows];
47
- console.log('选中行', selectionMode)
48
47
  }
49
48
 
50
49
  const handleRowSelectChange = async (row: TableRow, value: boolean) => {
@@ -13,6 +13,8 @@
13
13
  export let closeConfirm: DialogCloseConfirm | null = null;
14
14
  export let content$style: string = '';
15
15
 
16
+ export let hideClose: boolean = false;
17
+
16
18
  export let closeAction: ButtonAction | null = null;
17
19
  export let onClose: OnClose | null = null;
18
20
 
@@ -76,7 +78,9 @@
76
78
  }
77
79
  })
78
80
  }
79
- wa.push(closeAction);
81
+ if (!hideClose) {
82
+ wa.push(closeAction);
83
+ }
80
84
  return wa;
81
85
  }
82
86
 
@@ -91,9 +95,11 @@
91
95
  <div class="uniface-dialog-box" style="{dialog$style}; top: {top}px; left: {left}px; width: {width}; height: {height}; ">
92
96
  <div class="title-bar" on:mousedown={handleMouseDown} on:mouseup={handleMouseUp} aria-hidden="true">
93
97
  <div style="flex: 1 1 auto"><span>{title ?? 'New window'}</span></div>
94
- <div style="flex: 0 0 auto; padding-left: 12px">
95
- <i class="icon_google_clear dialog-action-button" aria-hidden="true" on:click={()=>close(ModalResult.Cancel)}></i>
96
- </div>
98
+ {#if !hideClose}
99
+ <div style="flex: 0 0 auto; padding-left: 12px">
100
+ <i class="icon_google_clear dialog-action-button" aria-hidden="true" on:click={()=>close(ModalResult.Cancel)}></i>
101
+ </div>
102
+ {/if}
97
103
  </div>
98
104
  <div class="dialog-content" style={content$style}>
99
105
  <slot></slot>
@@ -26,6 +26,7 @@ declare const Dialog: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWit
26
26
  actions?: ButtonActions | null;
27
27
  closeConfirm?: DialogCloseConfirm | null;
28
28
  content$style?: string;
29
+ hideClose?: boolean;
29
30
  closeAction?: ButtonAction | null;
30
31
  onClose?: OnClose | null;
31
32
  dialog$style?: string;
@@ -139,11 +139,8 @@
139
139
  const scrollHeight = target.scrollHeight;
140
140
  const clientHeight = target.clientHeight;
141
141
 
142
- console.log('Scroll event:', { scrollTop, scrollHeight, clientHeight, hasMore, isBusy });
143
-
144
142
  // 当滚动到距离底部20px以内时,自动加载下一页
145
143
  if (scrollTop + clientHeight >= scrollHeight - 20 && hasMore && !isBusy) {
146
- console.log('Auto loading more...');
147
144
  loadMore();
148
145
  }
149
146
  }
@@ -133,7 +133,6 @@
133
133
  }
134
134
 
135
135
  const handleSelectionChanged = (item: any) => () => {
136
- console.log('选择项目', item);
137
136
  let idx = selectedList.indexOf(item);
138
137
  if (idx < 0) {
139
138
  selectedList = [...selectedList, item];
@@ -27,7 +27,6 @@
27
27
  }
28
28
 
29
29
  let showMessageBox = (_message: string, _buttons: Array<any> | null, _title: string, _type: string | null, _escapeHTML: boolean = true): Promise<any> => {
30
- console.log('显示消息框')
31
30
  if (!visible) {
32
31
  top = 0;
33
32
  left = 0;
@@ -16,7 +16,6 @@
16
16
  export let placeholder: string | null = null;
17
17
 
18
18
  export const focus = () => {
19
- console.log('查询框获取焦点')
20
19
  editor.focus();
21
20
  }
22
21
 
@@ -43,7 +43,6 @@
43
43
 
44
44
  const checkOverflow = () => {
45
45
  if (container) {
46
- console.log(currentLeft, container.clientWidth, container.scrollWidth);
47
46
  if (currentLeft + container.clientWidth >= container.scrollWidth) {
48
47
  currentLeft = container.scrollWidth - container.clientWidth;
49
48
  scrollX.set(currentLeft);
@@ -19,7 +19,6 @@
19
19
  let loading: boolean = false;
20
20
 
21
21
  const isDirectory = () => {
22
- console.log('检测目录函数', checkIsDirectory);
23
22
  return lazyLoader == null ? checkIsDirectory?.(node) : lazyLoader.isBranch(node);
24
23
  }
25
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ticatec/uniface-element",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "A comprehensive UI component library for Svelte applications with rich form controls, data tables, layouts and interactive elements",
5
5
  "keywords": [
6
6
  "svelte",