-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d19c890
commit 46dbefb
Showing
15 changed files
with
759 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<pi-popup | ||
:value="val" | ||
:mask="popup.mask" | ||
:z-index="popup.zIndex" | ||
:border-radius="popup.borderRadius" | ||
:show-close-icon="popup.showCloseIcon" | ||
:close-icon-name="popup.closeIconName" | ||
:close-icon-padding="popup.closeIconPadding" | ||
:close-icon-color="popup.closeIconColor" | ||
:close-icon-size="popup.closeIconSize" | ||
:close-icon-position="popup.closeIconPosition" | ||
:safe-area-inset-bottom="popup.safeAreaInsetBottom" | ||
:mask-closable="popup.maskClosable" | ||
:hide-tab-bar="popup.hideTabBar" | ||
@close="handlePopupClose" | ||
/> | ||
</template> | ||
|
||
<script> | ||
import ValueSync from '../../mixin/value-sync' | ||
import { getConfig } from '../../config' | ||
import { createCustomPropsByConfig } from '../../mixin/component-custom' | ||
const TAG = 'PiBasePopupDemo' | ||
const { demo } = getConfig() | ||
export default { | ||
name: TAG, | ||
// 混入v-model | ||
// 混入自定义样式customStyle和customClass | ||
mixins: [ValueSync, createCustomPropsByConfig(demo)], | ||
props: { | ||
// 弹窗的配置,默认选项请参照popup | ||
popup: { | ||
type: Object, | ||
default() { | ||
return calendar.popup | ||
} | ||
} | ||
}, | ||
computed: {}, | ||
methods: { | ||
handlePopupClose() { | ||
this.val = false | ||
this.$emit('close') | ||
this.handleEmitChange() | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.pi-select { | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.