clickgo 3.15.27 → 3.15.28

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/README.md CHANGED
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
25
25
  **index.html**
26
26
 
27
27
  ```html
28
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.15.27'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.15.28'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
package/dist/clickgo.js CHANGED
@@ -29,7 +29,7 @@ exports.isNative = isNative;
29
29
  exports.getPlatform = getPlatform;
30
30
  exports.isImmersion = isImmersion;
31
31
  exports.hasFrame = hasFrame;
32
- const version = '3.15.27';
32
+ const version = '3.15.28';
33
33
  function getVersion() {
34
34
  return version;
35
35
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.15.27';
16
+ const version = '3.15.28';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
package/dist/lib/form.js CHANGED
@@ -2928,7 +2928,9 @@ function prompt(opt) {
2928
2928
  'data': {
2929
2929
  'text': (_e = opt.text) !== null && _e !== void 0 ? _e : ''
2930
2930
  },
2931
- 'select': function (e) {
2931
+ 'select': function (e, button) {
2932
+ var _a;
2933
+ (_a = opt.select) === null || _a === void 0 ? void 0 : _a.call(this, e, button);
2932
2934
  if (e.detail.button === cancelBtn) {
2933
2935
  this.dialogResult = '';
2934
2936
  return;
package/dist/lib/form.ts CHANGED
@@ -3697,7 +3697,8 @@ export async function prompt(opt: string | types.IFormPromptOptions): Promise<st
3697
3697
  'data': {
3698
3698
  'text': opt.text ?? ''
3699
3699
  },
3700
- 'select': function(e: types.IFormDialogSelectEvent) {
3700
+ 'select': function(e: types.IFormDialogSelectEvent, button: string) {
3701
+ opt.select?.call(this, e, button);
3701
3702
  if (e.detail.button === cancelBtn) {
3702
3703
  this.dialogResult = '';
3703
3704
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.15.27",
3
+ "version": "3.15.28",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",
package/types/index.d.ts CHANGED
@@ -640,6 +640,8 @@ export interface IFormPromptOptions {
640
640
  'text'?: string;
641
641
  /** --- 是否显示取消按钮,默认显示 --- */
642
642
  'cancel'?: boolean;
643
+
644
+ 'select'?: (this: AbstractForm & { 'data': Record<string, any>; }, e: IFormDialogSelectEvent, button: string) => void;
643
645
  }
644
646
 
645
647
  export interface IFormSetTopMostOptions {