样式微调
This commit is contained in:
parent
b962ba85a6
commit
27ad98bef5
|
@ -1048,6 +1048,12 @@
|
||||||
"defaultvalue": "true",
|
"defaultvalue": "true",
|
||||||
"name": "backdropClose",
|
"name": "backdropClose",
|
||||||
"values": ""
|
"values": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"isEvent": true,
|
||||||
|
"description": "取消事件",
|
||||||
|
"name": "closeEvent",
|
||||||
|
"values": ""
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Notice": [],
|
"Notice": [],
|
||||||
|
|
|
@ -42,4 +42,4 @@
|
||||||
</div>
|
</div>
|
||||||
</Example>
|
</Example>
|
||||||
|
|
||||||
<JSDoc {jsdoc}/>
|
<JSDoc {jsdoc} showEvent="true"/>
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "svelma-pro",
|
"name": "svelma-pro",
|
||||||
"svelte": "src/index.js",
|
"svelte": "src/index.js",
|
||||||
"description": "Based on svelma project extension and modification",
|
"description": "Based on svelma project extension and modification",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"author": "KeiferJu",
|
"author": "KeiferJu",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -172,8 +172,8 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
/* position: absolute; */
|
/* position: absolute; */
|
||||||
width: 300px;
|
width: 301px;
|
||||||
left: -1px;
|
/* left: -1px; */
|
||||||
}
|
}
|
||||||
tbody {
|
tbody {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
<script>
|
<script>
|
||||||
export let height = "auto";
|
export let height = "auto";
|
||||||
export let width = "auto";
|
export let width = "auto";
|
||||||
|
export let padding = "0 50px";
|
||||||
export let bgcolor = "auto";
|
export let bgcolor = "auto";
|
||||||
export let padding = "24px 50px"
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "./Layout.scss";
|
@import "./Layout.scss";
|
||||||
</style>
|
</style>
|
||||||
|
<div class="smx-layout-footer" style="height: {height};width: {width};background: {bgcolor};padding: {padding};line-height: {height}">
|
||||||
<div class="smx-layout-footer" style="height: {height};width: {width};background: {bgcolor};padding: {padding}">
|
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<script>
|
<script>
|
||||||
import { onDestroy, onMount } from 'svelte'
|
import { onDestroy, onMount } from 'svelte'
|
||||||
import { chooseAnimation, isEscKey } from '../../utils'
|
import { chooseAnimation, isEscKey } from '../../utils'
|
||||||
|
import { createEventDispatcher } from 'svelte'
|
||||||
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
export let active = true // 是否激活
|
export let active = true // 是否激活
|
||||||
export let title = 'Modal title' //标题
|
export let title = 'Modal title' //标题
|
||||||
|
@ -35,6 +37,7 @@
|
||||||
function close() {
|
function close() {
|
||||||
modal = null
|
modal = null
|
||||||
active = false
|
active = false
|
||||||
|
dispatch('closeEvent', '')
|
||||||
}
|
}
|
||||||
|
|
||||||
function keydown(e) {
|
function keydown(e) {
|
||||||
|
|
Loading…
Reference in New Issue