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; }