+
{{ value }}
@@ -11,10 +11,16 @@ export default { value: { type: String, default: '' + }, + color: { + type: String, + default: '#000000' + }, + textAlign: { + type: String, + default: 'left' } }, - methods: { - - } + methods: {} } diff --git a/src/components/Form/SignPad/index.css b/src/components/Form/SignPad/index.css new file mode 100644 index 0000000..1b74337 --- /dev/null +++ b/src/components/Form/SignPad/index.css @@ -0,0 +1,77 @@ +*, +*::before, +*::after { + box-sizing: border-box; +} +.signature-pad { + position: relative; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + font-size: 10px; + width: 100%; + height: 100%; + max-width: 700px; + max-height: 460px; + border: 1px solid #e8e8e8; + background-color: #fff; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08) inset; + border-radius: 4px; + padding: 16px; +} +.signature-pad::before, +.signature-pad::after { + position: absolute; + z-index: -1; + content: ""; + width: 40%; + height: 10px; + bottom: 10px; + background: transparent; + box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4); +} +.signature-pad::before { + left: 20px; + -webkit-transform: skew(-3deg) rotate(-3deg); + transform: skew(-3deg) rotate(-3deg); +} +.signature-pad::after { + right: 20px; + -webkit-transform: skew(3deg) rotate(3deg); + transform: skew(3deg) rotate(3deg); +} +.signature-pad--body { + position: relative; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + border: 1px solid #f4f4f4; +} +.signature-pad--body canvas { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + border-radius: 4px; + box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset; +} +.signature-pad--footer { + color: #c3c3c3; + text-align: center; + font-size: 1.2em; + margin-top: 8px; +} +.signature-pad--actions { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -ms-flex-pack: justify; + justify-content: space-between; + margin-top: 8px; +} diff --git a/src/components/Form/SignPad/index.vue b/src/components/Form/SignPad/index.vue new file mode 100644 index 0000000..a3db561 --- /dev/null +++ b/src/components/Form/SignPad/index.vue @@ -0,0 +1,125 @@ + +请在上面区域完成签名 然后点击确"确认"按钮
+外观主题
-外观主题
+
+
-
外观设置
-外观设置
+