Skip to content

Commit

Permalink
feat: 移除 FormIdCollector 组件
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Mar 23, 2019
1 parent c2b5e59 commit e9682ea
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 166 deletions.
28 changes: 17 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "mounted",
"version": "0.6.0",
"description": "基于 Taro 的微信小程序组件库",
"description": "一款基于 Taro 的小程序组件库",
"main": "src/components/index.ts",
"scripts": {
"dev": "taro build --type weapp --watch",
"build": "taro build --type weapp",
"dev:weapp": "npm run build:weapp -- --watch",
"dev:swan": "npm run build:swan -- --watch",
"dev:alipay": "npm run build:alipay -- --watch",
"build:weapp": "taro build --type weapp",
"build:swan": "taro build --type swan",
"build:alipay": "taro build --type alipay",
"release": "standard-version -a && git push --follow-tags origin master && npm publish"
},
"author": "Jay Fong",
Expand Down Expand Up @@ -86,14 +90,16 @@
"vtils": "^0.78.0"
},
"devDependencies": {
"@tarojs/cli": "1.2.20",
"@tarojs/components": "1.2.20",
"@tarojs/plugin-babel": "1.2.20",
"@tarojs/plugin-csso": "1.2.20",
"@tarojs/plugin-sass": "1.2.20",
"@tarojs/plugin-uglifyjs": "1.2.20",
"@tarojs/taro": "1.2.20",
"@tarojs/taro-weapp": "1.2.20",
"@tarojs/cli": "1.2.21",
"@tarojs/components": "1.2.21",
"@tarojs/plugin-babel": "1.2.21",
"@tarojs/plugin-csso": "1.2.21",
"@tarojs/plugin-sass": "1.2.21",
"@tarojs/plugin-uglifyjs": "1.2.21",
"@tarojs/taro": "1.2.21",
"@tarojs/taro-alipay": "1.2.21",
"@tarojs/taro-swan": "1.2.21",
"@tarojs/taro-weapp": "1.2.21",
"@types/react": "16.3.14",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
Expand Down
7 changes: 0 additions & 7 deletions src/components/FormIdCollector/Collector.scss

This file was deleted.

38 changes: 0 additions & 38 deletions src/components/FormIdCollector/Collector.tsx

This file was deleted.

46 changes: 0 additions & 46 deletions src/components/FormIdCollector/index.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @index('./[A-Z]*', (pp, cc) => `export { default as M${pp.name} } from '${pp.path}'`)
export { default as MFormIdCollector } from './FormIdCollector'
export { default as MPicker } from './Picker'
export { default as MPickerView } from './PickerView'
export { default as MPopup } from './Popup'
Expand All @@ -10,7 +9,6 @@ export { default as MTransition } from './Transition'

export type ComponentName = (
// @index('../components/[A-Z]*', (pp, cc, { last }) => `'${pp.name}'${last ? '' : ' |'}`)
'FormIdCollector' |
'Picker' |
'PickerView' |
'Popup' |
Expand Down
9 changes: 2 additions & 7 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ interface ComponentInfo {
}

const componentList: ComponentInfo[] = [
{
name: 'FormIdCollector',
chineseName: 'formId 收集器',
url: '',
},
{
name: 'Sticky',
chineseName: '内容吸顶',
Expand All @@ -45,7 +40,7 @@ export default class Home extends component({
disableGlobalClass: true,
}) {
handleItemClick = (index: number) => {
wx.navigateTo({
Taro.navigateTo({
url: componentList[index].url,
})
}
Expand All @@ -61,7 +56,7 @@ export default class Home extends component({
className='image'
/>
<View className='desc'>
<Text>一款基于 Taro 的微信小程序组件库</Text>
<Text>一款基于 Taro 的小程序组件库</Text>
</View>
</View>
{/* 组件列表 */}
Expand Down
1 change: 0 additions & 1 deletion src/styles/components.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @index('../components/**/*.scss', f => `@import '${f.path}${f.ext}';`)
@import '../components/FormIdCollector/Collector.scss';
@import '../components/Picker/index.scss';
@import '../components/PickerView/index.scss';
@import '../components/Popup/index.scss';
Expand Down
Loading

0 comments on commit e9682ea

Please sign in to comment.