From 0989e27057b98b0ac0ddbbc8eb0f79326762bf4e Mon Sep 17 00:00:00 2001 From: rayhomie <1572801584@qq.com> Date: Mon, 18 Nov 2024 15:36:01 +0800 Subject: [PATCH] feat: wx check --- .../alipay/demo/pages/Form/FormCustom/checklist/index.sjs | 8 ++++---- .../Form/FormCustom/checklist/{index.sjs => index.sjs.ts} | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename demo/pages/Form/FormCustom/checklist/{index.sjs => index.sjs.ts} (64%) diff --git a/compiled/alipay/demo/pages/Form/FormCustom/checklist/index.sjs b/compiled/alipay/demo/pages/Form/FormCustom/checklist/index.sjs index 81244655b..2db06a26f 100644 --- a/compiled/alipay/demo/pages/Form/FormCustom/checklist/index.sjs +++ b/compiled/alipay/demo/pages/Form/FormCustom/checklist/index.sjs @@ -1,11 +1,11 @@ function getTitle(options, value) { - const obj = options.find(item => item.value === value); + var obj = options.find(function (item) { + return item.value === value; + }); if (obj) { return obj.title; } } - -export default { getTitle }; - default { +export default { getTitle: getTitle }; \ No newline at end of file diff --git a/demo/pages/Form/FormCustom/checklist/index.sjs b/demo/pages/Form/FormCustom/checklist/index.sjs.ts similarity index 64% rename from demo/pages/Form/FormCustom/checklist/index.sjs rename to demo/pages/Form/FormCustom/checklist/index.sjs.ts index 27bd8822a..171221662 100644 --- a/demo/pages/Form/FormCustom/checklist/index.sjs +++ b/demo/pages/Form/FormCustom/checklist/index.sjs.ts @@ -1,5 +1,5 @@ function getTitle(options, value) { - const obj = options.find(item => item.value === value); + const obj = options.find((item) => item.value === value); if (obj) { return obj.title; }