diff --git a/lib/components/actionBtn/index.json b/lib/components/actionBtn/index.json new file mode 100644 index 00000000..52323c38 --- /dev/null +++ b/lib/components/actionBtn/index.json @@ -0,0 +1,11 @@ +{ + "component": true, + "usingComponents": { + "l-dialog": "../../miniprogram_npm/lin-ui/dialog/index", + "l-button": "../../miniprogram_npm/lin-ui/button/index", + "l-popup": "../../miniprogram_npm/lin-ui/popup/index", + "oak-icon": "../icon/index", + "popover": "../../miniprogram_npm/popover/popover", + "popover-item": "../../miniprogram_npm/popover/popover-item" + } +} \ No newline at end of file diff --git a/lib/components/actionBtnPanel/index.json b/lib/components/actionBtnPanel/index.json new file mode 100644 index 00000000..4bf9f4ab --- /dev/null +++ b/lib/components/actionBtnPanel/index.json @@ -0,0 +1,9 @@ +{ + "component": true, + "usingComponents": { + "l-dialog": "../../miniprogram_npm/lin-ui/dialog/index", + "l-button": "../../miniprogram_npm/lin-ui/button/index", + "popover": "../../miniprogram_npm/popover/popover", + "popover-item": "../../miniprogram_npm/popover/popover-item" + } +} \ No newline at end of file diff --git a/lib/components/actionTabPanel/index.json b/lib/components/actionTabPanel/index.json new file mode 100644 index 00000000..3ae0d416 --- /dev/null +++ b/lib/components/actionTabPanel/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "oak-icon": "../../icon/index", + "l-dialog": "../../miniprogram_npm/lin-ui/dialog/index" + } +} diff --git a/lib/components/detail/index.json b/lib/components/detail/index.json new file mode 100644 index 00000000..c49542bd --- /dev/null +++ b/lib/components/detail/index.json @@ -0,0 +1,10 @@ +{ + "component": true, + "usingComponents": { + "l-dialog": "../../miniprogram_npm/lin-ui/dialog/index", + "l-button": "../../miniprogram_npm/lin-ui/button/index", + "l-tag": "../../miniprogram_npm/lin-ui/tag/index", + "popover": "../../miniprogram_npm/popover/popover", + "popover-item": "../../miniprogram_npm/popover/popover-item" + } +} diff --git a/lib/components/detail/locales/zh_CN.json b/lib/components/detail/locales/zh_CN.json new file mode 100644 index 00000000..b318e56a --- /dev/null +++ b/lib/components/detail/locales/zh_CN.json @@ -0,0 +1,4 @@ + +{ + "not_filled_in": "未填写" +} \ No newline at end of file diff --git a/lib/components/filter2/index.json b/lib/components/filter2/index.json new file mode 100644 index 00000000..afeb2978 --- /dev/null +++ b/lib/components/filter2/index.json @@ -0,0 +1,14 @@ +{ + "component": true, + "usingComponents": { + "l-button": "../../miniprogram_npm/lin-ui/button/index", + "l-search-bar": "../../miniprogram_npm/lin-ui/search-bar/index", + "l-popup": "../../miniprogram_npm/lin-ui/popup/index", + "l-icon": "../../miniprogram_npm/lin-ui/icon/index", + "l-input": "../../miniprogram_npm/lin-ui/input/index", + "l-checkbox": "../../miniprogram_npm/lin-ui/checkbox/index", + "l-checkbox-group": "../../miniprogram_npm/lin-ui/checkbox-group/index", + "l-calendar": "../../miniprogram_npm/lin-ui/calendar/index", + "l-form-item": "../../miniprogram_npm/lin-ui/form-item/index" + } +} \ No newline at end of file diff --git a/lib/components/filter2/locales/zh_CN.json b/lib/components/filter2/locales/zh_CN.json new file mode 100644 index 00000000..95206b78 --- /dev/null +++ b/lib/components/filter2/locales/zh_CN.json @@ -0,0 +1,23 @@ + +{ + "placeholder": { + "input": "请输入", + "select": "请选择" + }, + "attr": { + "id": "编号", + "$$createAt$$": "创建时间", + "$$updateAt$$": "更新时间", + "$$deleteAt$$": "删除时间", + "$$seq$$": "序号", + "$text": "全文检索" + }, + "tip": { + "yes": "是", + "no": "否", + "unselected": "未选" + }, + "op": { + "$includes": "包含" + } +} \ No newline at end of file diff --git a/lib/components/filterPanel/index.json b/lib/components/filterPanel/index.json new file mode 100644 index 00000000..ef00e210 --- /dev/null +++ b/lib/components/filterPanel/index.json @@ -0,0 +1,10 @@ +{ + "component": true, + "usingComponents": { + "oak-filter": "../filter2/index", + "l-collapse": "../../miniprogram_npm/lin-ui/collapse/index", + "l-button": "../../miniprogram_npm/lin-ui/button/index", + "l-icon": "../../miniprogram_npm/lin-ui/icon/index", + "l-collapse-item": "../../miniprogram_npm/lin-ui/collapse-item/index" + } +} \ No newline at end of file diff --git a/lib/components/icon/index.json b/lib/components/icon/index.json new file mode 100644 index 00000000..fba482a4 --- /dev/null +++ b/lib/components/icon/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/lib/components/list/columnSetting/locales/zh_CN.json b/lib/components/list/columnSetting/locales/zh_CN.json new file mode 100644 index 00000000..97c00e8c --- /dev/null +++ b/lib/components/list/columnSetting/locales/zh_CN.json @@ -0,0 +1,6 @@ + +{ + "columnSetting": "列设置", + "leftPin": "固定在列首", + "rightPin": "固定在列尾" +} \ No newline at end of file diff --git a/lib/components/list/index.json b/lib/components/list/index.json new file mode 100644 index 00000000..41a4cf55 --- /dev/null +++ b/lib/components/list/index.json @@ -0,0 +1,10 @@ +{ + "component": true, + "usingComponents": { + "l-dialog": "../../miniprogram_npm/lin-ui/dialog/index", + "l-button": "../../miniprogram_npm/lin-ui/button/index", + "action-btn": "../actionBtn/index", + "popover": "../../miniprogram_npm/popover/popover", + "popover-item": "../../miniprogram_npm/popover/popover-item" + } +} \ No newline at end of file diff --git a/lib/components/list/renderCell/index.json b/lib/components/list/renderCell/index.json new file mode 100644 index 00000000..ada75a6b --- /dev/null +++ b/lib/components/list/renderCell/index.json @@ -0,0 +1,5 @@ +{ + "component": true, + "usingComponents": { + } +} \ No newline at end of file diff --git a/lib/components/list/toolBar/locales/zh_CN.json b/lib/components/list/toolBar/locales/zh_CN.json new file mode 100644 index 00000000..9fa69677 --- /dev/null +++ b/lib/components/list/toolBar/locales/zh_CN.json @@ -0,0 +1,7 @@ + +{ + "reload": "刷新", + "density": "表格密度", + "columnSetting": "列设置", + "fullScreen": "全屏" +} \ No newline at end of file diff --git a/lib/components/listPro/locales/zh_CN.json b/lib/components/listPro/locales/zh_CN.json new file mode 100644 index 00000000..a4ed3fa8 --- /dev/null +++ b/lib/components/listPro/locales/zh_CN.json @@ -0,0 +1 @@ +{"list":"列表"} \ No newline at end of file diff --git a/lib/components/refAttr/index.json b/lib/components/refAttr/index.json new file mode 100644 index 00000000..fd5ab771 --- /dev/null +++ b/lib/components/refAttr/index.json @@ -0,0 +1,19 @@ +{ + "component": true, + "usingComponents": { + "l-button": "@oak-frontend-base/miniprogram_npm/lin-ui/button/index", + "l-list": "@oak-frontend-base/miniprogram_npm/lin-ui/list/index", + "l-input": "@oak-frontend-base/miniprogram_npm/lin-ui/input/index", + "l-icon": "@oak-frontend-base/miniprogram_npm/lin-ui/icon/index", + "l-textarea": "@oak-frontend-base/miniprogram_npm/lin-ui/textarea/index", + "l-form": "@oak-frontend-base/miniprogram_npm/lin-ui/form/index", + "l-form-item": "@oak-frontend-base/miniprogram_npm/lin-ui/form-item/index", + "l-radio-group": "@oak-frontend-base/miniprogram_npm/lin-ui/radio-group/index", + "l-radio": "@oak-frontend-base/miniprogram_npm/lin-ui/radio/index", + "l-checkbox-group": "@oak-frontend-base/miniprogram_npm/lin-ui/checkbox-group/index", + "l-checkbox": "@oak-frontend-base/miniprogram_npm/lin-ui/checkbox/index", + "l-counter": "@oak-frontend-base/miniprogram_npm/lin-ui/counter/index", + "l-loading": "@oak-frontend-base/miniprogram_npm/lin-ui/loading/index", + "l-notice-bar": "@oak-frontend-base/miniprogram_npm/lin-ui/notice-bar/index" + } +} diff --git a/lib/components/relation/actionAuthList/index.json b/lib/components/relation/actionAuthList/index.json new file mode 100644 index 00000000..544b7b4d --- /dev/null +++ b/lib/components/relation/actionAuthList/index.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/lib/components/search/index.json b/lib/components/search/index.json new file mode 100644 index 00000000..5d543995 --- /dev/null +++ b/lib/components/search/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-search-bar": "../../miniprogram_npm/lin-ui/search-bar/index" + } +} \ No newline at end of file diff --git a/lib/components/upsert/index.json b/lib/components/upsert/index.json new file mode 100644 index 00000000..b957c9dc --- /dev/null +++ b/lib/components/upsert/index.json @@ -0,0 +1,17 @@ +{ + "component": true, + "usingComponents": { + "l-button": "@oak-frontend-base/miniprogram_npm/lin-ui/button/index", + "l-list": "@oak-frontend-base/miniprogram_npm/lin-ui/list/index", + "l-input": "@oak-frontend-base/miniprogram_npm/lin-ui/input/index", + "l-icon": "@oak-frontend-base/miniprogram_npm/lin-ui/icon/index", + "l-textarea": "@oak-frontend-base/miniprogram_npm/lin-ui/textarea/index", + "l-form": "@oak-frontend-base/miniprogram_npm/lin-ui/form/index", + "l-form-item": "@oak-frontend-base/miniprogram_npm/lin-ui/form-item/index", + "l-radio-group": "@oak-frontend-base/miniprogram_npm/lin-ui/radio-group/index", + "l-radio": "@oak-frontend-base/miniprogram_npm/lin-ui/radio/index", + "l-counter": "@oak-frontend-base/miniprogram_npm/lin-ui/counter/index", + "l-notice-bar": "@oak-frontend-base/miniprogram_npm/lin-ui/notice-bar/index", + "refAttr": "../refAttr/index" + } +} diff --git a/lib/components/upsert/locales/zh_CN.json b/lib/components/upsert/locales/zh_CN.json new file mode 100644 index 00000000..ee6608c5 --- /dev/null +++ b/lib/components/upsert/locales/zh_CN.json @@ -0,0 +1,5 @@ +{ + "moneySymbol": "¥", + "chooseDate": "选择日期", + "chooseDatetime": "选择时间" +} \ No newline at end of file diff --git a/lib/miniprogram_npm/ec-canvas/ec-canvas.json b/lib/miniprogram_npm/ec-canvas/ec-canvas.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/ec-canvas/ec-canvas.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/action-sheet/index.json b/lib/miniprogram_npm/lin-ui/action-sheet/index.json new file mode 100644 index 00000000..248ca904 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/action-sheet/index.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index", + "l-popup":"../popup/index", + "l-button":"../button/index" + } + } \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/album/index.json b/lib/miniprogram_npm/lin-ui/album/index.json new file mode 100644 index 00000000..78013bde --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/album/index.json @@ -0,0 +1,5 @@ +{ + "component": true, + "usingComponents": { + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/arc-popup/index.json b/lib/miniprogram_npm/lin-ui/arc-popup/index.json new file mode 100644 index 00000000..e72f4f50 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/arc-popup/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-popup": "../popup/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/avatar/index.json b/lib/miniprogram_npm/lin-ui/avatar/index.json new file mode 100644 index 00000000..dd10af0a --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/avatar/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index" + } + } \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/badge/index.json b/lib/miniprogram_npm/lin-ui/badge/index.json new file mode 100644 index 00000000..e56592f8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/badge/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/button/index.json b/lib/miniprogram_npm/lin-ui/button/index.json new file mode 100644 index 00000000..c01e2d7e --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/button/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/calendar/components/day/index.json b/lib/miniprogram_npm/lin-ui/calendar/components/day/index.json new file mode 100644 index 00000000..32640e0d --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/calendar/components/day/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/calendar/components/header/index.json b/lib/miniprogram_npm/lin-ui/calendar/components/header/index.json new file mode 100644 index 00000000..32640e0d --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/calendar/components/header/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/calendar/components/mounth/index.json b/lib/miniprogram_npm/lin-ui/calendar/components/mounth/index.json new file mode 100644 index 00000000..d03ef78a --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/calendar/components/mounth/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "day":"../day/index" + } +} diff --git a/lib/miniprogram_npm/lin-ui/calendar/index.json b/lib/miniprogram_npm/lin-ui/calendar/index.json new file mode 100644 index 00000000..e97f93a5 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/calendar/index.json @@ -0,0 +1,10 @@ +{ + "component": true, + "usingComponents": { + "header":"./components/header/index", + "mounth":"./components/mounth/index", + "l-toast": "../toast/index", + "l-popup": "../popup/index", + "l-button": "../button/index" + } +} diff --git a/lib/miniprogram_npm/lin-ui/capsule-bar/index.json b/lib/miniprogram_npm/lin-ui/capsule-bar/index.json new file mode 100644 index 00000000..467ce294 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/capsule-bar/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/lib/miniprogram_npm/lin-ui/card/index.json b/lib/miniprogram_npm/lin-ui/card/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/card/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/checkbox-group/index.json b/lib/miniprogram_npm/lin-ui/checkbox-group/index.json new file mode 100644 index 00000000..742ff990 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/checkbox-group/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-error-tip":"../error-tip/index", + "l-checkbox": "../checkbox/index" + } +} diff --git a/lib/miniprogram_npm/lin-ui/checkbox/index.json b/lib/miniprogram_npm/lin-ui/checkbox/index.json new file mode 100644 index 00000000..f6ca6c10 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/checkbox/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-button": "../button/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/circle/index.json b/lib/miniprogram_npm/lin-ui/circle/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/circle/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/collapse-item/index.json b/lib/miniprogram_npm/lin-ui/collapse-item/index.json new file mode 100644 index 00000000..86f9e3c9 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/collapse-item/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-list": "../list/index", + "l-icon": "../icon/index" + } +} diff --git a/lib/miniprogram_npm/lin-ui/collapse/index.json b/lib/miniprogram_npm/lin-ui/collapse/index.json new file mode 100644 index 00000000..ac34bd70 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/collapse/index.json @@ -0,0 +1,5 @@ +{ + "component": true, + "usingComponents": { + } +} diff --git a/lib/miniprogram_npm/lin-ui/combined-tabs/index.json b/lib/miniprogram_npm/lin-ui/combined-tabs/index.json new file mode 100644 index 00000000..398bd031 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/combined-tabs/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index", + "l-badge":"../badge/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/countdown/index.json b/lib/miniprogram_npm/lin-ui/countdown/index.json new file mode 100644 index 00000000..a32a1284 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/countdown/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + + } + } \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/counter/index.json b/lib/miniprogram_npm/lin-ui/counter/index.json new file mode 100644 index 00000000..c01e2d7e --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/counter/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/custom-tab-bar/index.json b/lib/miniprogram_npm/lin-ui/custom-tab-bar/index.json new file mode 100644 index 00000000..32640e0d --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/custom-tab-bar/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/dialog/index.json b/lib/miniprogram_npm/lin-ui/dialog/index.json new file mode 100644 index 00000000..e72f4f50 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/dialog/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-popup": "../popup/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/error-tip/index.json b/lib/miniprogram_npm/lin-ui/error-tip/index.json new file mode 100644 index 00000000..a1d9113f --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/error-tip/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + + } + } \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/form-item/index.json b/lib/miniprogram_npm/lin-ui/form-item/index.json new file mode 100644 index 00000000..cc6ba8d7 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/form-item/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-error-tip":"../error-tip/index" + } + } diff --git a/lib/miniprogram_npm/lin-ui/form/index.json b/lib/miniprogram_npm/lin-ui/form/index.json new file mode 100644 index 00000000..a1d9113f --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/form/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + + } + } \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/grid-item/index.json b/lib/miniprogram_npm/lin-ui/grid-item/index.json new file mode 100644 index 00000000..7a47d16b --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/grid-item/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/grid/index.json b/lib/miniprogram_npm/lin-ui/grid/index.json new file mode 100644 index 00000000..93860eac --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/grid/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-grid-item":"../grid-item/index" + } + } \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/icon/index.json b/lib/miniprogram_npm/lin-ui/icon/index.json new file mode 100644 index 00000000..8bc8f183 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/icon/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + + } + } \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/image-clipper-tools/index.json b/lib/miniprogram_npm/lin-ui/image-clipper-tools/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/image-clipper-tools/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/image-clipper/index.json b/lib/miniprogram_npm/lin-ui/image-clipper/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/image-clipper/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/image-picker/index.json b/lib/miniprogram_npm/lin-ui/image-picker/index.json new file mode 100644 index 00000000..4bc15bca --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/image-picker/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "styleIsolation": "apply-shared", + "usingComponents": { + "l-icon": "../icon/index" + } +} diff --git a/lib/miniprogram_npm/lin-ui/index-anchor/index.json b/lib/miniprogram_npm/lin-ui/index-anchor/index.json new file mode 100644 index 00000000..aa80c042 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/index-anchor/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-index-list": "../index-list/index" + } +} diff --git a/lib/miniprogram_npm/lin-ui/index-list/index.json b/lib/miniprogram_npm/lin-ui/index-list/index.json new file mode 100644 index 00000000..a89ef4db --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/index-list/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} diff --git a/lib/miniprogram_npm/lin-ui/input/index.json b/lib/miniprogram_npm/lin-ui/input/index.json new file mode 100644 index 00000000..fe1a1ffd --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/input/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-icon": "../icon/index", + "l-error-tip":"../error-tip/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/list/index.json b/lib/miniprogram_npm/lin-ui/list/index.json new file mode 100644 index 00000000..0e3378f0 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/list/index.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "l-icon": "../icon/index", + "l-badge": "../badge/index", + "l-tag": "../tag/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/loading/index.json b/lib/miniprogram_npm/lin-ui/loading/index.json new file mode 100644 index 00000000..4a42478b --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/loading/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/loadmore/index.json b/lib/miniprogram_npm/lin-ui/loadmore/index.json new file mode 100644 index 00000000..270874fc --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/loadmore/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-loading":"../loading/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/mask/index.json b/lib/miniprogram_npm/lin-ui/mask/index.json new file mode 100644 index 00000000..4a42478b --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/mask/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/message/index.json b/lib/miniprogram_npm/lin-ui/message/index.json new file mode 100644 index 00000000..c01e2d7e --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/message/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/notice-bar/index.json b/lib/miniprogram_npm/lin-ui/notice-bar/index.json new file mode 100644 index 00000000..b5e3f566 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/notice-bar/index.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": + { + "l-icon": "../icon/index" + } +} + diff --git a/lib/miniprogram_npm/lin-ui/picker/index.json b/lib/miniprogram_npm/lin-ui/picker/index.json new file mode 100644 index 00000000..906a2ae8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/picker/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-icon": "../icon/index", + "l-error-tip": "../error-tip/index" + } +} diff --git a/lib/miniprogram_npm/lin-ui/popup/index.json b/lib/miniprogram_npm/lin-ui/popup/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/popup/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/price/index.json b/lib/miniprogram_npm/lin-ui/price/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/price/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/progress/index.json b/lib/miniprogram_npm/lin-ui/progress/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/progress/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/radio-group/index.json b/lib/miniprogram_npm/lin-ui/radio-group/index.json new file mode 100644 index 00000000..9b5b1c53 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/radio-group/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-error-tip": "../error-tip/index", + "l-radio":"../radio/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/radio/index.json b/lib/miniprogram_npm/lin-ui/radio/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/radio/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/rate/index.json b/lib/miniprogram_npm/lin-ui/rate/index.json new file mode 100644 index 00000000..dd10af0a --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/rate/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index" + } + } \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/search-bar/index.json b/lib/miniprogram_npm/lin-ui/search-bar/index.json new file mode 100644 index 00000000..ccccaa95 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/search-bar/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-input": "../input/index", + "l-icon": "../icon/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/segment-item/index.json b/lib/miniprogram_npm/lin-ui/segment-item/index.json new file mode 100644 index 00000000..62389a94 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/segment-item/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} + } \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/segment/index.json b/lib/miniprogram_npm/lin-ui/segment/index.json new file mode 100644 index 00000000..503bf6fa --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/segment/index.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "l-icon": "../icon/index", + "l-badge": "../badge/index", + "l-segment-item":"../segment-item/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/skeleton/index.json b/lib/miniprogram_npm/lin-ui/skeleton/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/skeleton/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/slide-view/index.json b/lib/miniprogram_npm/lin-ui/slide-view/index.json new file mode 100644 index 00000000..78013bde --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/slide-view/index.json @@ -0,0 +1,5 @@ +{ + "component": true, + "usingComponents": { + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/spin/index.json b/lib/miniprogram_npm/lin-ui/spin/index.json new file mode 100644 index 00000000..4a42478b --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/spin/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/status-show/index.json b/lib/miniprogram_npm/lin-ui/status-show/index.json new file mode 100644 index 00000000..6a37aa32 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/status-show/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-button":"../button/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/step/index.json b/lib/miniprogram_npm/lin-ui/step/index.json new file mode 100644 index 00000000..c01e2d7e --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/step/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/steps/index.json b/lib/miniprogram_npm/lin-ui/steps/index.json new file mode 100644 index 00000000..5939ac86 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/steps/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index", + "l-step":"../step/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/sticky-item/index.json b/lib/miniprogram_npm/lin-ui/sticky-item/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/sticky-item/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/sticky/index.json b/lib/miniprogram_npm/lin-ui/sticky/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/sticky/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/switch/index.json b/lib/miniprogram_npm/lin-ui/switch/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/switch/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/tab-bar/index.json b/lib/miniprogram_npm/lin-ui/tab-bar/index.json new file mode 100644 index 00000000..0535339f --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/tab-bar/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "styleIsolation": "apply-shared", + "usingComponents": { + "l-badge":"../badge/index" + } +} diff --git a/lib/miniprogram_npm/lin-ui/tabpanel/index.json b/lib/miniprogram_npm/lin-ui/tabpanel/index.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/tabpanel/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/tabs/index.json b/lib/miniprogram_npm/lin-ui/tabs/index.json new file mode 100644 index 00000000..f4d7f749 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/tabs/index.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index", + "l-badge":"../badge/index", + "l-tabpanel":"../tabpanel/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/tag/index.json b/lib/miniprogram_npm/lin-ui/tag/index.json new file mode 100644 index 00000000..c01e2d7e --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/tag/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "l-icon":"../icon/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/textarea/index.json b/lib/miniprogram_npm/lin-ui/textarea/index.json new file mode 100644 index 00000000..fe1a1ffd --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/textarea/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-icon": "../icon/index", + "l-error-tip":"../error-tip/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/toast/index.json b/lib/miniprogram_npm/lin-ui/toast/index.json new file mode 100644 index 00000000..3eb288e6 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/toast/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-icon": "../icon/index", + "l-mask": "../mask/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/transition/index.json b/lib/miniprogram_npm/lin-ui/transition/index.json new file mode 100644 index 00000000..3eb288e6 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/transition/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "l-icon": "../icon/index", + "l-mask": "../mask/index" + } +} \ No newline at end of file diff --git a/lib/miniprogram_npm/lin-ui/water-flow/index.json b/lib/miniprogram_npm/lin-ui/water-flow/index.json new file mode 100644 index 00000000..5e96f356 --- /dev/null +++ b/lib/miniprogram_npm/lin-ui/water-flow/index.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": {}, + "componentGenerics": { + "l-water-flow-item": true + } + } \ No newline at end of file diff --git a/lib/miniprogram_npm/popover/popover-item.json b/lib/miniprogram_npm/popover/popover-item.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/popover/popover-item.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/miniprogram_npm/popover/popover.json b/lib/miniprogram_npm/popover/popover.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/lib/miniprogram_npm/popover/popover.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/lib/page.common.d.ts b/lib/page.common.d.ts index 3e692c6e..a9850763 100644 --- a/lib/page.common.d.ts +++ b/lib/page.common.d.ts @@ -4,8 +4,8 @@ import { OakComponentOption, ComponentFullThisType } from './types/Page'; import { SyncContext } from 'oak-domain/lib/store/SyncRowStore'; import { AsyncContext } from 'oak-domain/lib/store/AsyncRowStore'; import { MessageProps } from './types/Message'; -export declare function onPathSet, FrontCxt extends SyncContext>(this: ComponentFullThisType, option: OakComponentOption): Promise; -export declare function reRender, FrontCxt extends SyncContext>(this: ComponentFullThisType, option: OakComponentOption, extra?: Record): void; +export declare function onPathSet, FrontCxt extends SyncContext>(this: ComponentFullThisType, option: OakComponentOption): Promise; +export declare function reRender, FrontCxt extends SyncContext>(this: ComponentFullThisType, option: OakComponentOption, extra?: Record): void; export declare function refresh, FrontCxt extends SyncContext>(this: ComponentFullThisType): Promise; export declare function loadMore, FrontCxt extends SyncContext>(this: ComponentFullThisType): Promise; export declare function execute, FrontCxt extends SyncContext>(this: ComponentFullThisType, action?: ED[T]['Action'], path?: string, messageProps?: boolean | MessageProps): Promise; diff --git a/lib/page.mp.d.ts b/lib/page.mp.d.ts index cf3b4ef8..c6562d7f 100644 --- a/lib/page.mp.d.ts +++ b/lib/page.mp.d.ts @@ -7,4 +7,4 @@ import { Feature } from './types/Feature'; import { DataOption, OakComponentOption } from './types/Page'; import { AsyncContext } from 'oak-domain/lib/store/AsyncRowStore'; import { SyncContext } from 'oak-domain/lib/store/SyncRowStore'; -export declare function createComponent, FrontCxt extends SyncContext, AD extends Record>, FD extends Record, FormedData extends Record, IsList extends boolean, TData extends DataOption = {}, TProperty extends DataOption = {}, TMethod extends Record = {}>(option: OakComponentOption, features: BasicFeatures> & FD): string; +export declare function createComponent, FrontCxt extends SyncContext, AD extends Record>, FD extends Record, FormedData extends Record, TData extends DataOption = {}, TProperty extends DataOption = {}, TMethod extends Record = {}>(option: OakComponentOption, features: BasicFeatures> & FD): string; diff --git a/lib/page.web.d.ts b/lib/page.web.d.ts index a0c749a9..de8207ce 100644 --- a/lib/page.web.d.ts +++ b/lib/page.web.d.ts @@ -8,4 +8,4 @@ import { Feature } from './types/Feature'; import { DataOption, OakComponentOption } from './types/Page'; import { SyncContext } from 'oak-domain/lib/store/SyncRowStore'; import { AsyncContext } from 'oak-domain/lib/store/AsyncRowStore'; -export declare function createComponent, FrontCxt extends SyncContext, AD extends Record>, FD extends Record, FormedData extends Record, IsList extends boolean, TData extends Record = {}, TProperty extends DataOption = {}, TMethod extends Record = {}>(option: OakComponentOption, features: BasicFeatures> & FD): React.ForwardRefExoticComponent>; +export declare function createComponent, FrontCxt extends SyncContext, AD extends Record>, FD extends Record, FormedData extends Record, TData extends Record = {}, TProperty extends DataOption = {}, TMethod extends Record = {}>(option: OakComponentOption, features: BasicFeatures> & FD): React.ForwardRefExoticComponent>; diff --git a/lib/pages/relation/actionAuth/index.json b/lib/pages/relation/actionAuth/index.json new file mode 100644 index 00000000..544b7b4d --- /dev/null +++ b/lib/pages/relation/actionAuth/index.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/lib/pages/relation/actionAuth/locales/zh_CN.json b/lib/pages/relation/actionAuth/locales/zh_CN.json new file mode 100644 index 00000000..4e9e7945 --- /dev/null +++ b/lib/pages/relation/actionAuth/locales/zh_CN.json @@ -0,0 +1 @@ +{"confirm": "确认", "reset": "重置"} \ No newline at end of file diff --git a/lib/pages/relation/actionAuthBySource/index.json b/lib/pages/relation/actionAuthBySource/index.json new file mode 100644 index 00000000..544b7b4d --- /dev/null +++ b/lib/pages/relation/actionAuthBySource/index.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/lib/pages/relation/actionAuthBySource/locales/zh_CN.json b/lib/pages/relation/actionAuthBySource/locales/zh_CN.json new file mode 100644 index 00000000..4e9e7945 --- /dev/null +++ b/lib/pages/relation/actionAuthBySource/locales/zh_CN.json @@ -0,0 +1 @@ +{"confirm": "确认", "reset": "重置"} \ No newline at end of file diff --git a/lib/pages/relation/entity/index.json b/lib/pages/relation/entity/index.json new file mode 100644 index 00000000..544b7b4d --- /dev/null +++ b/lib/pages/relation/entity/index.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/lib/pages/relation/entity/locales/zh_CN.json b/lib/pages/relation/entity/locales/zh_CN.json new file mode 100644 index 00000000..91ceab02 --- /dev/null +++ b/lib/pages/relation/entity/locales/zh_CN.json @@ -0,0 +1 @@ +{"action":"操作", "relation":"关系", "sourceEntity": "源对象", "path": "路径"} \ No newline at end of file diff --git a/lib/pages/relation/entityList/index.json b/lib/pages/relation/entityList/index.json new file mode 100644 index 00000000..fba482a4 --- /dev/null +++ b/lib/pages/relation/entityList/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/lib/pages/relation/list/index.json b/lib/pages/relation/list/index.json new file mode 100644 index 00000000..fba482a4 --- /dev/null +++ b/lib/pages/relation/list/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/lib/pages/relation/relationAuth/index.json b/lib/pages/relation/relationAuth/index.json new file mode 100644 index 00000000..544b7b4d --- /dev/null +++ b/lib/pages/relation/relationAuth/index.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/lib/pages/relation/relationAuth/locales/zh_CN.json b/lib/pages/relation/relationAuth/locales/zh_CN.json new file mode 100644 index 00000000..5fb64b41 --- /dev/null +++ b/lib/pages/relation/relationAuth/locales/zh_CN.json @@ -0,0 +1 @@ +{"confirm": "确认", "reset": "重置", "grantedRoles": "授权角色"} \ No newline at end of file diff --git a/lib/pages/relation/relationAuthBySource/index.json b/lib/pages/relation/relationAuthBySource/index.json new file mode 100644 index 00000000..544b7b4d --- /dev/null +++ b/lib/pages/relation/relationAuthBySource/index.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/lib/pages/relation/relationAuthBySource/locales/zh_CN.json b/lib/pages/relation/relationAuthBySource/locales/zh_CN.json new file mode 100644 index 00000000..4e9e7945 --- /dev/null +++ b/lib/pages/relation/relationAuthBySource/locales/zh_CN.json @@ -0,0 +1 @@ +{"confirm": "确认", "reset": "重置"} \ No newline at end of file diff --git a/lib/types/Page.d.ts b/lib/types/Page.d.ts index 5415214a..fc139afd 100644 --- a/lib/types/Page.d.ts +++ b/lib/types/Page.d.ts @@ -34,10 +34,10 @@ declare type FeatureDef>); behavior: 'reRender' | 'refresh'; }; -interface ComponentOption, FrontCxt extends SyncContext, AD extends Record>, FD extends Record, FormedData extends Record, IsList extends boolean, TData extends DataOption, TProperty extends DataOption, TMethod extends Record, EMethod extends Record = {}> { +interface ComponentOption, FrontCxt extends SyncContext, AD extends Record>, FD extends Record, FormedData extends Record, TData extends DataOption, TProperty extends DataOption, TMethod extends Record, EMethod extends Record = {}> { + isList: IsList; entity?: T | ((this: ComponentPublicThisType) => T); path?: string; - isList: IsList; features?: FeatureDef[]; cascadeActions?: (this: ComponentPublicThisType) => { [K in keyof ED[T]['Schema']]?: ActionDef[]; @@ -47,7 +47,7 @@ interface ComponentOption) => ED[T]['Selection']['filter'] | undefined); + filter: NonNullable | ((this: ComponentPublicThisType) => ED[T]['Selection']['filter'] | undefined); '#name'?: string; }>; sorters?: Array<{ @@ -92,7 +92,7 @@ export declare type ComponentFullThisType>, callback?: () => void) => void; triggerEvent: (name: string, detail?: DetailType, options?: WechatMiniprogram.Component.TriggerEventOption) => void; } & OakCommonComponentMethods & OakListComponentMethods & OakSingleComponentMethods; -export declare type OakComponentOption, FrontCxt extends SyncContext, AD extends Record>, FD extends Record, FormedData extends Record, IsList extends boolean, TData extends Record, TProperty extends DataOption, TMethod extends Record, EMethod extends Record = {}> = ComponentOption & Partial<{ +export declare type OakComponentOption, FrontCxt extends SyncContext, AD extends Record>, FD extends Record, FormedData extends Record, TData extends Record, TProperty extends DataOption, TMethod extends Record, EMethod extends Record = {}> = ComponentOption & Partial<{ lifetimes: { created?(): void; attached?(): void; @@ -236,7 +236,7 @@ export declare type OakComponentData = { oakPagination?: Pagination; }; -export declare type MakeOakComponent, FrontCxt extends SyncContext, AD extends Record>, FD extends Record> = (options: OakComponentOption) => (props: ReactComponentProps) => React.ReactElement; +export declare type MakeOakComponent, FrontCxt extends SyncContext, AD extends Record>, FD extends Record> = (options: OakComponentOption) => (props: ReactComponentProps) => React.ReactElement; export declare type WebComponentCommonMethodNames = 'setNotification' | 'setMessage' | 'navigateTo' | 'navigateBack' | 'redirectTo' | 'clean' | 't' | 'execute' | 'refresh' | 'setDisablePulldownRefresh' | 'aggregate' | 'checkOperation' | 'isDirty'; export declare type WebComponentListMethodNames = 'loadMore' | 'setFilters' | 'addNamedFilter' | 'removeNamedFilter' | 'removeNamedFilterByName' | 'setNamedSorters' | 'addNamedSorter' | 'removeNamedSorter' | 'removeNamedSorterByName' | 'setPageSize' | 'setCurrentPage' | 'addItem' | 'removeItem' | 'updateItem' | 'resetItem' | 'recoverItem'; export declare type WebComponentSingleMethodNames = 'update' | 'remove' | 'create' | 'isCreation'; diff --git a/package.json b/package.json index 7c67714e..b7e9224a 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "copy-less": "copyfiles -u 1 src/**/*.less lib/ & copyfiles -u 1 src/**/*.wxss lib/", "copy-wxs": "copyfiles -u 1 src/**/*.wxs lib/", "copy-xml": "copyfiles -u 1 src/**/*.xml lib/ & copyfiles -u 1 src/**/*.wxml lib/", - "build": "tsc && npm run copy-js && npm run copy-less && npm run copy-wxs && npm run copy-svg && npm run copy-xml", + "build": "tsc && npm run copy-js && npm run copy-less && npm run copy-wxs && npm run copy-svg && npm run copy-xml && npm run copy-json", "test": "ts-node ./test/test2.ts", "prepare": "rimraf node_modules/react & rimraf node_modules/react-dom & rimraf node_modules/react-router & rimraf node_modules/react-router-dom", "remove-antd": "rimraf node_modules/antd & rimraf node_modules/antd-mobile & rimraf node_modules/@ant-design & rimraf node_modules/antd-mobile-icons & rimraf node_modules/antd-mobile-v5-count" diff --git a/src/page.common.ts b/src/page.common.ts index f396c2f9..d380c585 100644 --- a/src/page.common.ts +++ b/src/page.common.ts @@ -30,7 +30,7 @@ export async function onPathSet< Cxt extends AsyncContext, FrontCxt extends SyncContext>( this: ComponentFullThisType, - option: OakComponentOption) { + option: OakComponentOption) { const { props, state } = this; const { oakPath, oakProjection, oakFilters, oakSorters, oakId } = props as ComponentProps; const { entity, path, projection, isList, filters, sorters, pagination } = option; @@ -162,7 +162,7 @@ function checkActionsAndCascadeEntities< FrontCxt extends SyncContext>( this: ComponentFullThisType, rows: Partial | Partial[], - option: OakComponentOption + option: OakComponentOption ) { const checkTypes = ['relation', 'row', 'logical', 'logicalRelation'] as CheckerType[]; const actions = this.props.oakActions ? JSON.parse(this.props.oakActions) as ED[T]['Action'][] : (typeof option.actions === 'function' ? option.actions.call(this) : option.actions); @@ -380,7 +380,7 @@ export function reRender< Cxt extends AsyncContext, FrontCxt extends SyncContext>( this: ComponentFullThisType, - option: OakComponentOption, + option: OakComponentOption, extra?: Record) { const { features } = this; const { formData } = option; diff --git a/src/page.mp.ts b/src/page.mp.ts index 9ca7dbc4..8a1d96b1 100644 --- a/src/page.mp.ts +++ b/src/page.mp.ts @@ -97,6 +97,7 @@ const oakBehavior = Behavior< FDD; subscribed: Array<() => void>; oakOption: OakComponentOption< + boolean, EDD, keyof EDD, Cxt, @@ -104,7 +105,6 @@ const oakBehavior = Behavior< ADD, FDD, Record, - boolean, Record, Record, Record @@ -837,6 +837,7 @@ function translatePropertiesToPropertyDefinitions(properties?: DataOption) { } export function createComponent< + IsList extends boolean, ED extends EntityDict & BaseEntityDict, T extends keyof ED, Cxt extends AsyncContext, @@ -844,12 +845,12 @@ export function createComponent< AD extends Record>, FD extends Record, FormedData extends Record, - IsList extends boolean, TData extends DataOption = {}, TProperty extends DataOption = {}, TMethod extends Record = {} >( option: OakComponentOption< + IsList, ED, T, Cxt, @@ -857,7 +858,6 @@ export function createComponent< AD, FD, FormedData, - IsList, TData, TProperty, TMethod @@ -905,6 +905,7 @@ export function createComponent< FD; subscribed: Array<() => void>; oakOption: OakComponentOption< + IsList, ED, T, Cxt, @@ -912,7 +913,6 @@ export function createComponent< AD, FD, FormedData, - IsList, TData, TProperty, TMethod diff --git a/src/page.web.tsx b/src/page.web.tsx index 9fd2dd4a..0c65b3b3 100644 --- a/src/page.web.tsx +++ b/src/page.web.tsx @@ -50,6 +50,7 @@ abstract class OakComponentBase< abstract features: FD & BasicFeatures>; abstract oakOption: OakComponentOption< + IsList, ED, T, Cxt, @@ -57,7 +58,6 @@ abstract class OakComponentBase< AD, FD, FormedData, - IsList, TData, TProperty, TMethod @@ -681,6 +681,7 @@ function translateListeners(listeners?: Record, @@ -688,12 +689,12 @@ export function createComponent< AD extends Record>, FD extends Record, FormedData extends Record, - IsList extends boolean, TData extends Record = {}, TProperty extends DataOption = {}, TMethod extends Record = {} >( option: OakComponentOption< + IsList, ED, T, Cxt, @@ -701,7 +702,6 @@ export function createComponent< AD, FD, FormedData, - IsList, TData, TProperty, TMethod @@ -711,6 +711,7 @@ export function createComponent< const { data, methods, lifetimes, getRender, path, listeners } = option as OakComponentOption< + IsList, ED, T, Cxt, @@ -718,7 +719,6 @@ export function createComponent< AD, FD, FormedData, - IsList, TData, TProperty, TMethod diff --git a/src/types/Page.ts b/src/types/Page.ts index b9f0a058..03f741a3 100644 --- a/src/types/Page.ts +++ b/src/types/Page.ts @@ -114,6 +114,7 @@ type FeatureDef< }; interface ComponentOption< + IsList extends boolean, ED extends EntityDict & BaseEntityDict, T extends keyof ED, Cxt extends AsyncContext, @@ -121,15 +122,14 @@ interface ComponentOption< AD extends Record>, FD extends Record, FormedData extends Record, - IsList extends boolean, TData extends DataOption, TProperty extends DataOption, TMethod extends Record, EMethod extends Record = {}, > { + isList: IsList; entity?: T | ((this: ComponentPublicThisType) => T); path?: string; - isList: IsList; features?: FeatureDef[]; cascadeActions?: (this: ComponentPublicThisType) => { [K in keyof ED[T]['Schema']]?: ActionDef[]; @@ -139,7 +139,7 @@ interface ComponentOption< append?: boolean; pagination?: Pagination; filters?: Array<{ - filter: ED[T]['Selection']['filter'] | ((this: ComponentPublicThisType) => ED[T]['Selection']['filter'] | undefined); + filter: NonNullable | ((this: ComponentPublicThisType) => ED[T]['Selection']['filter'] | undefined); '#name'?: string; }>; sorters?: Array<{ @@ -252,6 +252,7 @@ export type ComponentFullThisType< } & OakCommonComponentMethods & OakListComponentMethods & OakSingleComponentMethods; export type OakComponentOption< + IsList extends boolean, ED extends EntityDict & BaseEntityDict, T extends keyof ED, Cxt extends AsyncContext, @@ -259,12 +260,11 @@ export type OakComponentOption< AD extends Record>, FD extends Record, FormedData extends Record, - IsList extends boolean, TData extends Record, TProperty extends DataOption, TMethod extends Record, EMethod extends Record = {}, - > = ComponentOption & + > = ComponentOption & Partial<{ lifetimes: { created?(): void; @@ -479,14 +479,15 @@ export type MakeOakComponent< AD extends Record>, FD extends Record > = < + IsList extends boolean, T extends keyof ED, FormedData extends DataOption, - IsList extends boolean, TData extends DataOption, TProperty extends DataOption, TMethod extends MethodOption >( options: OakComponentOption< + IsList, ED, T, Cxt, @@ -494,7 +495,6 @@ export type MakeOakComponent< AD, FD, FormedData, - IsList, TData, TProperty, TMethod