vue3-layer 1.0.8 → 1.0.9

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": "vue3-layer",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "main": "dist/s3Layer.umd.min.js",
5
5
  "author": "legad",
6
6
  "description": "基于 vue3 的Web 通用弹出层组件",
@@ -33,9 +33,15 @@ export default defineComponent({
33
33
  ...attrs
34
34
  }
35
35
 
36
+ for (const attr in attrs) {
37
+ if (attr.substr(0, 5) === 'onBtn') {
38
+ delete options[attr]
39
+ options[attr.substr(2).toLowerCase()] = attrs[attr]
40
+ }
41
+ }
42
+
36
43
  layerIndex = layer.open({
37
44
  ...options,
38
- maxmin: true,
39
45
  end() {
40
46
  emit('update:modelValue', false)
41
47
  emit('end', false)