shuishen
2021-06-04 022acc43fee86a64020fff06f9bb6ea9f78a6785
分屏相关的完善
3 files modified
25 ■■■■ changed files
widgets/SplitScreen/Widget.html 4 ●●● patch | view | raw | blame | history
widgets/SplitScreen/Widget.js 19 ●●●● patch | view | raw | blame | history
widgets/SplitScreen/css/style.css 2 ●●● patch | view | raw | blame | history
widgets/SplitScreen/Widget.html
@@ -10,8 +10,10 @@
        
        <button id="viewportType">
        <button id="viewportType" value="NONE">
            <span>
            不使用分屏
            </span>
            <i class="layui-icon">
                &#xe625;
            </i>
widgets/SplitScreen/Widget.js
@@ -20,7 +20,18 @@
                var that = this;
                // 点击x隐藏面板
                $('#viewportType').change(function () {
                    var value = $(this).val();
                });
                $('#viewportType').click(function () {
                    $(".split-select .split-select-option").toggle();
                })
                $(".split-select .split-select-option li").click(function () {
                    if ($(this).text() != $('#viewportType span').text()) {
                        $('#viewportType span').text($(this).text())
                        var value = $(this).attr('label');
                    switch (value) {
                        case "NONE":
                            $("#split_up").css("display", "none");
@@ -87,7 +98,11 @@
                            break;
                    }
                    that.map.scene.multiViewportMode = Cesium.MultiViewportMode[value];
                });
                        $(".split-select .split-select-option").stop().hide();
                    }
                })
            },
            onOpen: function () {
widgets/SplitScreen/css/style.css
@@ -40,7 +40,7 @@
  width: 160px;
  height: 30px;
  background: #fff;
  border-radius: 10px;
  border-radius: 5px;
  font-size: 14px;
  padding: 0 6px;
  text-align: left;