Skip to content

Commit 63ca3bd

Browse files
committed
Added Hard Confirm interface.
1 parent 719cf6d commit 63ca3bd

File tree

5 files changed

+30
-10
lines changed

5 files changed

+30
-10
lines changed

dist/vuejs-dialog.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/vuejs-dialog.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plugin/components/dialog-window.vue

+13-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,23 @@
44
<div v-if="show" ref="container" class="dg-container">
55
<div class="dg-content-cont dg-content-cont--floating">
66
<div class="dg-main-content">
7-
<!--<div class="dg-header">-->
7+
<!--<div class="dg-content-header">-->
88
<!---->
99
<!--</div>-->
1010

11-
<div v-if="options.html" class="dg-content" v-html="options.message"></div>
12-
<div v-else="" class="dg-content">{{ options.message }}</div>
11+
<div class="dg-content-body">
12+
<div v-if="options.html" class="dg-content" v-html="options.message"></div>
13+
<div v-else="" class="dg-content">{{ options.message }}</div>
1314

14-
<div class="dg-footer">
15+
<form style="background-color: ghostwhite; padding: 10px; margin-bottom: -15px">
16+
<label for="dg-confirm-input" style="font-size: 13px">Type "{{ options.verification }}" below to confirm</label>
17+
<input type="text" :placeholder="options.verification" id="dg-confirm-input"
18+
style="width: 100%;margin-top: 10px;
19+
padding: 5px 15px; font-size: 16px;border-radius: 4px; border: 2px solid #eee"/>
20+
</form>
21+
</div>
22+
23+
<div class="dg-content-footer">
1524

1625
<button @click="clickLeftBtn()" :is="leftBtnComponent" :loading="loading"
1726
:enabled="leftBtnEnabled" :options="options" :focus="leftBtnFocus">

src/plugin/styles/default.css

+13-3
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@
4242
font-size: 16px;
4343
padding: 10px 0 10px 0;
4444
}
45+
.dg-content-body{
46+
border-bottom: 2px solid #E1E6EA;
47+
padding-bottom: 15px;
48+
}
4549

46-
.dg-footer {
50+
.dg-content-footer {
4751
position: relative;
48-
margin-top: 15px;
4952
padding: 15px 0 0;
50-
border-top: 1px solid #E1E6EA
5153
}
5254

5355
.dg-content-cont--floating {
@@ -75,6 +77,14 @@
7577
font-size: 16px;
7678
font-weight: 700;
7779
}
80+
.dg-btn:focus,
81+
.dg-btn:active,
82+
.dg-btn:link {
83+
outline: none;
84+
}
85+
.dg-btn::-moz-focus-inner{
86+
border: 0;
87+
}
7888
.dg-btn.dg-btn--cancel {
7989
color: #fefefe;
8090
background-color: #0096D9;

webpack.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ const COMMON = {
5757
new WebpackNotifierPlugin({alwaysNotify: true}),
5858
new WebpackShellPlugin({
5959
onBuildStart: ['echo "Webpack Start"'],
60-
onBuildEnd: ['echo "Webpack End"', 'node src\\docs\\js\\copy-to-docs.js']
60+
onBuildEnd: ['echo "Webpack End"'],
61+
onBuildExit: ['node src\\docs\\js\\copy-to-docs.js']
6162
})
6263
],
6364
watchOptions: {

0 commit comments

Comments
 (0)