Skip to content

Commit

Permalink
chore(*): release v2.2.0 (#33)
Browse files Browse the repository at this point in the history
* chore(deps): update taro version

chore(*): remove useless files

* fix(card): fix expose `title` with no ref from props

* fix(utils): fix import type as variable
  • Loading branch information
j10ccc authored Mar 14, 2023
1 parent e9f61ab commit 1223f3d
Show file tree
Hide file tree
Showing 10 changed files with 1,440 additions and 17,974 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ coverage/
config/prod.js
config/dev.js
tests/coverage/
.swc
10 changes: 0 additions & 10 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,8 @@ declare const process: {
[key: string]: any;
};
};
declare var wx: any;
declare module "*.vue" {
import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any>;
export default component;
}

import type Dayjs from "dayjs";
declare module "dayjs" {
interface Dayjs {
utc(): Dayjs;
fromNow(): Dayjs;
toNow(): Dayjs;
}
}
44 changes: 0 additions & 44 deletions jest.config.js

This file was deleted.

28 changes: 11 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,46 +37,40 @@
"ios >= 8"
],
"dependencies": {
"@tarojs/components": "^3.5.5",
"@tarojs/mini-runner": "^3.5.5",
"@tarojs/plugin-framework-vue3": "^3.5.5",
"@tarojs/plugin-html": "^3.5.5",
"@tarojs/runtime": "^3.5.5",
"@tarojs/taro": "^3.5.5",
"@tarojs/webpack-runner": "^3.5.5",
"@tarojs/components": "^3.6.1",
"@tarojs/mini-runner": "^3.6.1",
"@tarojs/plugin-framework-vue3": "^3.6.1",
"@tarojs/plugin-html": "^3.6.1",
"@tarojs/runtime": "^3.6.1",
"@tarojs/taro": "^3.6.1",
"@tarojs/webpack-runner": "^3.6.1",
"babel-plugin-import": "^1.13.3",
"dayjs": "^1.11.4",
"vue": "^3.2.19",
"vuex": "^4.0.0",
"vuex-persistedstate": "^4.1.0"
},
"devDependencies": {
"@babel/core": "^7.14.0",
"@babel/runtime": "^7.7.7",
"@tarojs/cli": "^3.5.5",
"@types/jest": "^26.0.17",
"@babel/core": "^7.14.5",
"@babel/runtime": "^7.14.5",
"@tarojs/cli": "^3.6.1",
"@types/webpack-env": "^1.16.0",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"@vue/babel-plugin-jsx": "^1.0.0-rc.4",
"@vue/compiler-sfc": "^3.0.0",
"@vue/test-utils": "^2.0.0-rc.6",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^26.6.3",
"babel-preset-taro": "^3.5.5",
"cross-env": "^7.0.2",
"eslint": "^8.30.0",
"eslint-config-taro": "^3.5.5",
"eslint-plugin-vue": "^9.9.0",
"git-revision-webpack-plugin": "^5.0.0",
"jest": "^26.6.3",
"jest-serializer-vue": "^2.0.2",
"jest-transform-stub": "^2.0.0",
"ts-jest": "^26.5.5",
"ts-loader": "^9.2.6",
"typescript": "^4.4.3",
"vue-jest": "^5.0.0-alpha.7",
"vue-loader": "^16.8.1",
"webpack-bundle-analyzer": "^4.4.2"
}
}
}
17 changes: 0 additions & 17 deletions project.private.config.json

This file was deleted.

18 changes: 11 additions & 7 deletions src/components/Card/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<template>
<view :class="`wjh-card wjh-card-size-${size}`" :style="style">
<view v-if="title" class="wjh-card-header">
{{ title }}
<view
:class="`wjh-card wjh-card-size-${props.size}`"
:style="props.style"
>
<view v-if="props.title" class="wjh-card-header">
{{ props.title }}
</view>
<view v-if="$slots.header" class="wjh-card-header">
<slot name="header"></slot>
Expand All @@ -16,14 +19,15 @@
</template>

<script setup lang="ts">
import { CSSProperties, ref } from "vue";
import { CSSProperties } from "vue";
import "./index.scss";
const props = defineProps<{
const props = withDefaults(defineProps<{
title?: string,
size?: "small" | "middle",
style?: CSSProperties,
}>();
const { title, size = ref("middle"), style } = props;
}>(), {
size: "middle"
});
</script>
6 changes: 4 additions & 2 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { ICookie, ejectCookies, cookiesToString } from "./cookie";
import { ejectCookies, cookiesToString } from "./cookie";
import { isNewIPhone, scrollViewHeight, getCopyRight } from "./effects";
import { fetch, FetchResult } from "./fetch";
import { fetch, } from "./fetch";
import { throttle, throttle2 } from "./tools";
import { checkBind } from "./checkBind";
import timeUtils from "./time";
import type { ICookie } from "./cookie";
import type { FetchResult } from "./fetch";

export {
ICookie,
Expand Down
3 changes: 0 additions & 3 deletions stylelintrc.ts

This file was deleted.

Loading

0 comments on commit 1223f3d

Please sign in to comment.