Skip to content

Commit

Permalink
8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hikki committed Apr 13, 2023
1 parent 66875cd commit aab6df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Assembly/Unit/Datetime.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __toString()
$pickerSettings = json_encode(array_merge(['format' => 'YYYY-MM-DD HH:mm:ss', 'locale' => 'zh-CN'], $this->pickerSettings));
$this->annotate();
$content = <<<EOF
<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>
<script>$('input[name="{$this->column}"]').datetimepicker({$pickerSettings});</script>
EOF;
if(!$this->label) return $content;
Expand Down

0 comments on commit aab6df6

Please sign in to comment.