This commit is contained in:
zouzhibing
2022-04-12 14:16:53 +08:00
parent a02206d36e
commit d2fa1a1f9c
4 changed files with 55 additions and 34 deletions

52
.idea/workspace.xml generated
View File

@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="be7958c3-0d1c-4f74-a433-b590462e7034" name="Default Changelist" comment="合并主分支">
<list default="true" id="be7958c3-0d1c-4f74-a433-b590462e7034" name="Default Changelist" comment="修改 回显问题">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/index/index.nvue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/index/index.nvue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/uni_modules/zb-drawer/changelog.md" beforeDir="false" afterPath="$PROJECT_DIR$/uni_modules/zb-drawer/changelog.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/uni_modules/zb-drawer/components/zb-drawer/zb-drawer.vue" beforeDir="false" afterPath="$PROJECT_DIR$/uni_modules/zb-drawer/components/zb-drawer/zb-drawer.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/uni_modules/zb-drawer/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/uni_modules/zb-drawer/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/uni_modules/zb-drawer/readme.md" beforeDir="false" afterPath="$PROJECT_DIR$/uni_modules/zb-drawer/readme.md" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -39,19 +36,7 @@
<property name="node.js.selected.package.tslint" value="(autodetect)" />
<property name="vue.rearranger.settings.migration" value="true" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="SpellCheckerSettings" BundledDictionaries="0" Folders="0" CustomDictionaries="0" Dictionaries="0" CorrectionsLimit="5" DefaultDictionary="application-level" UseSingleDictionary="true" />
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="false" />
<component name="SvnConfiguration">
<configuration />
</component>
@@ -88,15 +73,44 @@
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<entry key="2a03f74a-7cd8-421c-b47f-199e09e6a213">
<value>
<State>
<option name="COLUMN_ORDER" />
<option name="SHOW_ONLY_AFFECTED_CHANGES" value="true" />
<option name="FILTERS">
<map>
<entry key="branch">
<value>
<list>
<option value="HEAD" />
</list>
</value>
</entry>
<entry key="roots">
<value>
<list>
<option value="$PROJECT_DIR$" />
</list>
</value>
</entry>
</map>
</option>
</State>
</value>
</entry>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
<option name="OPEN_GENERIC_TABS">
<map>
<entry key="2a03f74a-7cd8-421c-b47f-199e09e6a213" value="TOOL_WINDOW" />
</map>
</option>
<option name="oldMeFiltersMigrated" value="true" />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="修改 回显问题" />

View File

@@ -17,7 +17,7 @@
</view>
</view>
</view>
<view class="item-block">
<view class="title">关闭图标和头部标题显示</view>
<view class="card">
@@ -29,7 +29,7 @@
</view>
</view>
</view>
<view class="item-block">
<view class="title">展示圆角</view>
<view class="card">
@@ -39,11 +39,11 @@
</view>
</view>
<zb-drawer
:beforeClose="beforeClose"
:mode="mode" width="80%"
<zb-drawer
:beforeClose="beforeClose"
:mode="mode" width="80%"
:withHeader="false"
:visible.sync="isShow" >
<view class="wrap">
@@ -62,16 +62,18 @@
</zb-drawer>
<zb-drawer :mode="mode" width="80%" :visible.sync="isShow1" :title="null">
<view class="top-content"></view>
</zb-drawer>
<zb-drawer :mode="mode" width="80%" :visible.sync="isShow2">
<view class="top-content"></view>
</zb-drawer>
<zb-drawer :mode="mode" width="80%" :visible.sync="isShow3" :withHeader="false">
<view class="top-content"></view>
</zb-drawer>
<zb-drawer :mode="mode" width="80%" :visible.sync="isShow4" :radius="true">
<view class="top-content"></view>
</zb-drawer>
</view>
</template>
@@ -134,7 +136,7 @@
// uni.hideTabBar(); //隐藏tab
// uni.showTabBar(); //显示tab
},
}
}
</script>
@@ -142,8 +144,11 @@
<style scoped lang="scss">
.m-drawer {
background-color: #f7f8fa;
height: 100%;
width: 100%;
position: absolute;
left: 0;
top:0;
right: 0;
bottom: 0;
}
.item-block{
.title{
@@ -159,7 +164,7 @@
border-radius: 8px;
box-sizing: border-box;
background: white;
}
.inner{
display: flex;

View File

@@ -1,3 +1,5 @@
## 1.0.42022-04-12
进行优化
## 1.0.32022-04-09
增加方法 优化细节
## 1.0.22022-04-08

View File

@@ -1,7 +1,7 @@
{
"id": "zb-drawer",
"displayName": "zb-drawer",
"version": "1.0.3",
"version": "1.0.4",
"description": "抽屉组件,功能有、支持设置宽度百分比、高度百分比、左边弹出、右边弹出、顶部弹出、底部弹出",
"keywords": [
"drawer",