material 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "material",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A lightweight implementation of Material Design Components for the web - ES6",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/dialog.js CHANGED
@@ -135,8 +135,6 @@ class Dialog {
135
135
  }
136
136
 
137
137
  close () {
138
- // this.hide()
139
-
140
138
  if (this.options.close) {
141
139
  this.destroy()
142
140
  }
@@ -7,12 +7,13 @@ export default {
7
7
  options = options || {}
8
8
 
9
9
  // console.log('mode', this.mode)
10
+ const modeConfig = this.options[this.mode] || {}
10
11
  const method = options.method ||
11
- this.options[this.mode].method ||
12
+ modeConfig.method ||
12
13
  'PUT'
13
14
 
14
15
  const action = options.action ||
15
- this.options[this.mode].action ||
16
+ modeConfig.action ||
16
17
  this.options.action
17
18
 
18
19
  if (this.beforeCreate) {
@@ -1,12 +1,10 @@
1
1
  .menu {
2
- //display: none
3
- &.show {
4
- //display: block
5
- }
2
+ display: none;
3
+
6
4
  .list {
7
5
  background: white;
8
6
  .item {
9
- color: rgba(0,0,0,.87);
7
+ color: rgba(0, 0, 0, 0.87);
10
8
  }
11
9
  }
12
10
 
@@ -17,5 +15,8 @@
17
15
  overflow: hidden;
18
16
  opacity: 0;
19
17
  transition: 0.2s;
18
+ &.show {
19
+ opacity: 1;
20
+ }
20
21
  }
21
22
  }
@@ -7,7 +7,7 @@
7
7
  white-space: no-wrap;
8
8
  overflow: hidden;
9
9
  -webkit-touch-callout: none;
10
- -webkit-user-select: none;
10
+
11
11
  >.indicator {
12
12
  position: absolute;
13
13
  height: 2px;