We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66875cd commit aab6df6Copy full SHA for aab6df6
src/Assembly/Unit/Datetime.php
@@ -44,7 +44,7 @@ public function __toString()
44
$pickerSettings = json_encode(array_merge(['format' => 'YYYY-MM-DD HH:mm:ss', 'locale' => 'zh-CN'], $this->pickerSettings));
45
$this->annotate();
46
$content = <<<EOF
47
-<input type="{$this->type}" name="{$this->column}" value="{$this->value}" class="dlp-input" placeholder="输入 {$this->label}" {$this->annotation}/>
+<div style="position: relative"><input type="{$this->type}" name="{$this->column}" value="{$this->value}" class="dlp-input" placeholder="输入 {$this->label}" {$this->annotation}/></div>
48
<script>$('input[name="{$this->column}"]').datetimepicker({$pickerSettings});</script>
49
EOF;
50
if(!$this->label) return $content;
0 commit comments