Skip to content

Commit

Permalink
refactor: 重构H5端picker
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Oct 11, 2019
1 parent e4c0e28 commit 70941b8
Show file tree
Hide file tree
Showing 6 changed files with 571 additions and 758 deletions.
1 change: 0 additions & 1 deletion src/core/helpers/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = [
'uni-page-refresh',
'uni-actionsheet',
'uni-modal',
'uni-picker',
'uni-toast',
'uni-resize-sensor',

Expand Down
229 changes: 0 additions & 229 deletions src/core/view/components/picker/index.vue

This file was deleted.

10 changes: 3 additions & 7 deletions src/platforms/h5/components/app/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,17 @@
v-if="hasTabBar"
v-show="showTabBar"
v-bind="tabBar" />
<toast
<toast
v-if="$options.components.Toast"
v-bind="showToast"/>
<action-sheet
<action-sheet
v-if="$options.components.ActionSheet"
v-bind="showActionSheet"
@close="_onActionSheetClose" />
<modal
<modal
v-if="$options.components.Modal"
v-bind="showModal"
@close="_onModalClose" />
<picker
v-if="$options.components.Picker"
v-bind="showPicker"
@close="_onPickerClose" />
</uni-app>
</template>
<script>
Expand Down
4 changes: 1 addition & 3 deletions src/platforms/h5/components/app/popup/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import Toast from './toast'
import Modal from './modal'
import Picker from './picker'
import ActionSheet from './actionSheet'

export default {
Toast,
Modal,
Picker,
ActionSheet
}
}
50 changes: 0 additions & 50 deletions src/platforms/h5/components/app/popup/mixins/picker.js

This file was deleted.

Loading

0 comments on commit 70941b8

Please sign in to comment.