diff --git a/uni_modules/cool-fixtures/components/fix-banner/fix-banner.vue b/uni_modules/cool-fixtures/components/fix-banner/fix-banner.vue new file mode 100644 index 0000000..ab7c194 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-banner/fix-banner.vue @@ -0,0 +1,79 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-base-style/fix-base-style.vue b/uni_modules/cool-fixtures/components/fix-base-style/fix-base-style.vue new file mode 100644 index 0000000..46161dc --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-base-style/fix-base-style.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-coupon/fix-coupon.vue b/uni_modules/cool-fixtures/components/fix-coupon/fix-coupon.vue new file mode 100644 index 0000000..d8cfe6a --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-coupon/fix-coupon.vue @@ -0,0 +1,221 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-empty/fix-empty.vue b/uni_modules/cool-fixtures/components/fix-empty/fix-empty.vue new file mode 100644 index 0000000..b123e83 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-empty/fix-empty.vue @@ -0,0 +1,31 @@ + + + + diff --git a/uni_modules/cool-fixtures/components/fix-goods-list/fix-goods-list.vue b/uni_modules/cool-fixtures/components/fix-goods-list/fix-goods-list.vue new file mode 100644 index 0000000..812bc9a --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-goods-list/fix-goods-list.vue @@ -0,0 +1,236 @@ + + + + + \ No newline at end of file diff --git a/uni_modules/cool-fixtures/components/fix-hot-image/fix-hot-image.vue b/uni_modules/cool-fixtures/components/fix-hot-image/fix-hot-image.vue new file mode 100644 index 0000000..75534a2 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-hot-image/fix-hot-image.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-index/fix-index.vue b/uni_modules/cool-fixtures/components/fix-index/fix-index.vue new file mode 100644 index 0000000..89ab2c8 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-index/fix-index.vue @@ -0,0 +1,175 @@ + + + diff --git a/uni_modules/cool-fixtures/components/fix-line/fix-line.vue b/uni_modules/cool-fixtures/components/fix-line/fix-line.vue new file mode 100644 index 0000000..6929a96 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-line/fix-line.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-list-menu/fix-list-menu.vue b/uni_modules/cool-fixtures/components/fix-list-menu/fix-list-menu.vue new file mode 100644 index 0000000..8d1ecf5 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-list-menu/fix-list-menu.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-menus/fix-menus.vue b/uni_modules/cool-fixtures/components/fix-menus/fix-menus.vue new file mode 100644 index 0000000..115f2f2 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-menus/fix-menus.vue @@ -0,0 +1,208 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-picture/fix-picture.vue b/uni_modules/cool-fixtures/components/fix-picture/fix-picture.vue new file mode 100644 index 0000000..dfb040d --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-picture/fix-picture.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-positioning/fix-positioning.vue b/uni_modules/cool-fixtures/components/fix-positioning/fix-positioning.vue new file mode 100644 index 0000000..d0e5eba --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-positioning/fix-positioning.vue @@ -0,0 +1,378 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-rich-text/fix-rich-text.vue b/uni_modules/cool-fixtures/components/fix-rich-text/fix-rich-text.vue new file mode 100644 index 0000000..140a677 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-rich-text/fix-rich-text.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-rubik-cube/fix-rubik-cube.vue b/uni_modules/cool-fixtures/components/fix-rubik-cube/fix-rubik-cube.vue new file mode 100644 index 0000000..43d5ef6 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-rubik-cube/fix-rubik-cube.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-search/fix-search.vue b/uni_modules/cool-fixtures/components/fix-search/fix-search.vue new file mode 100644 index 0000000..6aba3fe --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-search/fix-search.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-suspension/fix-suspension.vue b/uni_modules/cool-fixtures/components/fix-suspension/fix-suspension.vue new file mode 100644 index 0000000..56397ef --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-suspension/fix-suspension.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-title/fix-title.vue b/uni_modules/cool-fixtures/components/fix-title/fix-title.vue new file mode 100644 index 0000000..9f895d3 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-title/fix-title.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-top-bar/fix-top-bar.vue b/uni_modules/cool-fixtures/components/fix-top-bar/fix-top-bar.vue new file mode 100644 index 0000000..c6f5d37 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-top-bar/fix-top-bar.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-video/fix-video.vue b/uni_modules/cool-fixtures/components/fix-video/fix-video.vue new file mode 100644 index 0000000..b83869b --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-video/fix-video.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/uni_modules/cool-fixtures/components/fix-wechat/fix-wechat.vue b/uni_modules/cool-fixtures/components/fix-wechat/fix-wechat.vue new file mode 100644 index 0000000..b3282c7 --- /dev/null +++ b/uni_modules/cool-fixtures/components/fix-wechat/fix-wechat.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/uni_modules/cool-fixtures/config.ts b/uni_modules/cool-fixtures/config.ts new file mode 100644 index 0000000..3b3737f --- /dev/null +++ b/uni_modules/cool-fixtures/config.ts @@ -0,0 +1,8 @@ +import type { ModuleConfig } from "/@/cool"; + +export default (): ModuleConfig => { + return { + // 描述 + description: "在coo-uni基础上开发的自定义页面,修改或新增组件非常简单!", + }; +}; diff --git a/uni_modules/cool-fixtures/hooks/base-props.ts b/uni_modules/cool-fixtures/hooks/base-props.ts new file mode 100644 index 0000000..606e85f --- /dev/null +++ b/uni_modules/cool-fixtures/hooks/base-props.ts @@ -0,0 +1,36 @@ +export const baseProps = { + styleSpacing: { + type: Object, + default: () => { + return { + marginTop: 0, + marginBottom: 0, + marginLR: 0, + padding: 0, + borderTopLR: 0, + borderBottomLR: 0, + }; + }, + }, + styleColor: { + type: Object, + default: () => { + return { + color: "#000", + backgroundColor: "#FFFFFF", + opacity: 1, + }; + }, + }, + position: { + type: Object, + default: () => { + return { + mode: "static", + top: 0, + zIndex: 1, + isSeat: true, + }; + }, + }, +} \ No newline at end of file diff --git a/uni_modules/cool-fixtures/hooks/index.ts b/uni_modules/cool-fixtures/hooks/index.ts new file mode 100644 index 0000000..0e16465 --- /dev/null +++ b/uni_modules/cool-fixtures/hooks/index.ts @@ -0,0 +1 @@ +export * from "./base-props"; diff --git a/uni_modules/cool-fixtures/pages/detail.vue b/uni_modules/cool-fixtures/pages/detail.vue new file mode 100644 index 0000000..709e5dc --- /dev/null +++ b/uni_modules/cool-fixtures/pages/detail.vue @@ -0,0 +1,54 @@ + + + \ No newline at end of file diff --git a/uni_modules/cool-fixtures/pages/preview.vue b/uni_modules/cool-fixtures/pages/preview.vue new file mode 100644 index 0000000..cde2e8a --- /dev/null +++ b/uni_modules/cool-fixtures/pages/preview.vue @@ -0,0 +1,54 @@ + + + \ No newline at end of file diff --git a/uni_modules/cool-fixtures/pages_init.json b/uni_modules/cool-fixtures/pages_init.json new file mode 100644 index 0000000..795a4a4 --- /dev/null +++ b/uni_modules/cool-fixtures/pages_init.json @@ -0,0 +1,23 @@ +{ + "subPackages": [ + { + "root": "uni_modules/cool-fixtures/pages", + "pages": [ + { + "path": "detail", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "自定义页面" + } + }, + { + "path": "preview", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "页面预览" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/uni_modules/cool-fixtures/types/form.d.ts b/uni_modules/cool-fixtures/types/form.d.ts new file mode 100644 index 0000000..7a9fb76 --- /dev/null +++ b/uni_modules/cool-fixtures/types/form.d.ts @@ -0,0 +1,109 @@ +export declare namespace Form { + interface Menu { + text: string, + useText: boolean, + mode: string, + link: Link, + icon: string, + color: string, + backgroundColor: string + } + interface Link { + page: string, + appid: string, + type: string, + name: string + } + + interface Banner { + pic: string, + link: Link + } + + interface Spacing { + marginTop: number, + marginBottom: number, + marginLR: number, + padding: number, + borderTopLR: number, + borderBottomLR: number + } + interface Color { + color: string, + backgroundColor: string, + opacity: number + } + interface Picture { + pic: string, + link: Link + } + interface Title { + text: string, + text2?: string, + color: string, + icon: string, + link: Link + } + + interface Hot { + x: number, + y: number, + w: number, + h: number, + relativeX: number, + relativeY: number, + relativeW: number, + relativeH: number, + index: number, + link: Link + } + interface HotImage { + pic: string, + link: Link, + width: number, + height: number, + attr: Hot[] + } + interface RubikCubeMode { + type: string, + label: string, + list: { + icon: string, + tips: string, + link: Link + }[] + } + interface RubikCube { + mode: string, + gap: number, + list: { + icon: string, + tips: string, + link: Link + }[] + } + interface Goods { + mode: string, + source: string, + gap: number, + num: number, + attribute: number, + isVoucher: boolean, + isShadow: boolean, + type: { name: string, pic?: string, id: number }[], + list: { + mainPic: string, + title: string, + price: number, + sold: number, + attribute?: number, + id: number, + }[] + } + + interface Suspension { + icon: string; + tips: string, + link: Link + } +} \ No newline at end of file diff --git a/uni_modules/cool-ui/components/cl-page/cl-page.vue b/uni_modules/cool-ui/components/cl-page/cl-page.vue index 32704b2..8d224b7 100644 --- a/uni_modules/cool-ui/components/cl-page/cl-page.vue +++ b/uni_modules/cool-ui/components/cl-page/cl-page.vue @@ -5,11 +5,12 @@ `theme-${app.theme.name}`, { 'is-fullscreen': fullscreen, + 'is-safe-area-bottom': fullscreen, }, ]" :style="{ padding: parseRpx(padding), - height, + height }" > @@ -42,14 +43,16 @@