Blame view

application/admin/command/Crud/stubs/mixins/select.stub 255 Bytes
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
  
      public function {%methodName%}($value, $data)
      {
          $value = $value ? $value : (isset($data['{%field%}']) ? $data['{%field%}'] : '');
          $list = $this->{%listMethodName%}();
          return isset($list[$value]) ? $list[$value] : '';
      }