v1.php 774 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace zin;
  3. class thinkVennLink extends wg
  4. {
  5. /**
  6. * @var mixed[]
  7. */
  8. protected static $defineProps = array(
  9. 'wizard: object', // 模型数据
  10. );
  11. public static function getPageCSS()
  12. {
  13. return file_get_contents(__DIR__ . DS . 'css' . DS . 'v1.css');
  14. }
  15. /**
  16. * @return \zin\node|mixed[]
  17. */
  18. protected function build()
  19. {
  20. $wizard = $this->prop('wizard');
  21. $model = $wizard->model;
  22. $wgMap = array('3c' => 'think3c', 'ansoff' => 'thinkAnsoff');
  23. if(!isset($wgMap[$model])) return array();
  24. return div(setClass('think-venn-link'), createWg($wgMap[$model], array(set::key('link'), set::mode('preview'), set::blocks($wizard->blocks), set::disabled(true))));
  25. }
  26. }