diff --git a/components.d.ts b/components.d.ts index c2171da..2c66d1c 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,12 +7,14 @@ export {} declare module 'vue' { export interface GlobalComponents { + Contact: typeof import('./src/components/contact/index.vue')['default'] Counter: typeof import('./src/components/Counter.vue')['default'] Notification: typeof import('./src/components/notification/index.vue')['default'] NutAvatar: typeof import('@nutui/nutui-taro')['Avatar'] NutCollapse: typeof import('@nutui/nutui-taro')['Collapse'] NutCollapseItem: typeof import('@nutui/nutui-taro')['CollapseItem'] NutDivider: typeof import('@nutui/nutui-taro')['Divider'] - NutNavbar: typeof import('@nutui/nutui-taro')['Navbar'] + NutElevator: typeof import('@nutui/nutui-taro')['Elevator'] + NutSearchbar: typeof import('@nutui/nutui-taro')['Searchbar'] } } diff --git a/package-lock.json b/package-lock.json index a3e19e3..3ee5659 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "@tarojs/runtime": "3.6.20", "@tarojs/shared": "3.6.20", "@tarojs/taro": "3.6.20", + "chinese2pinyin": "^1.0.1", "graphql": "^16.8.1", "graphql-tag": "^2.12.6", "moment": "^2.29.4", @@ -6820,6 +6821,11 @@ "node": "*" } }, + "node_modules/chinese2pinyin": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/chinese2pinyin/-/chinese2pinyin-1.0.1.tgz", + "integrity": "sha512-qBbOtxO09/yjYuF4CnzpNutklSGNJxkb0U7keMuXpXQuk4l8KmNOAUL0aPFfZq6uoc0ZpOe0xoOktgfA2pUm3Q==" + }, "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", diff --git a/package.json b/package.json index ec2cbe5..cdb60b3 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "@tarojs/runtime": "3.6.20", "@tarojs/shared": "3.6.20", "@tarojs/taro": "3.6.20", + "chinese2pinyin": "^1.0.1", "graphql": "^16.8.1", "graphql-tag": "^2.12.6", "moment": "^2.29.4", diff --git a/src/components/contact/index.json b/src/components/contact/index.json new file mode 100644 index 0000000..467ce29 --- /dev/null +++ b/src/components/contact/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/src/components/contact/index.scss b/src/components/contact/index.scss new file mode 100644 index 0000000..0953b85 --- /dev/null +++ b/src/components/contact/index.scss @@ -0,0 +1,18 @@ +.nut-elevator__list__item__name { + height: auto; +} +.company { + height: "20rpx"; + line-height: normal; +} +.name { + font-size:1.5em; + line-height: normal; +} +.vip { + line-height: normal; + vertical-align: baseline; +} +.vip > .badge { + line-height: normal; +} diff --git a/src/components/contact/index.vue b/src/components/contact/index.vue new file mode 100644 index 0000000..761e168 --- /dev/null +++ b/src/components/contact/index.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/components/notification/index.vue b/src/components/notification/index.vue index e6e9b1d..542b55b 100644 --- a/src/components/notification/index.vue +++ b/src/components/notification/index.vue @@ -1,6 +1,5 @@