Using v-hide instead of inline styles

parent 7eb0b3ec
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
</div> </div>
</div> </div>
</el-form> </el-form>
<button v-shortkey="['b']" @shortkey="pushRoute({name: 'admin.page.page.index'})" style="display: none"></button> <button v-shortkey="['b']" @shortkey="pushRoute({name: 'admin.page.page.index'})" v-show="false"></button>
</div> </div>
</template> </template>
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</div> </div>
</div> </div>
</div> </div>
<button v-shortkey="['c']" @shortkey="pushRoute({name: 'admin.page.page.create'})" style="display: none"></button> <button v-shortkey="['c']" @shortkey="pushRoute({name: 'admin.page.page.create'})" v-show="false"></button>
</div> </div>
</template> </template>
......
...@@ -73143,10 +73143,12 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c ...@@ -73143,10 +73143,12 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
rawName: "v-shortkey", rawName: "v-shortkey",
value: (['c']), value: (['c']),
expression: "['c']" expression: "['c']"
}, {
name: "show",
rawName: "v-show",
value: (false),
expression: "false"
}], }],
staticStyle: {
"display": "none"
},
on: { on: {
"shortkey": function($event) { "shortkey": function($event) {
_vm.pushRoute({ _vm.pushRoute({
...@@ -74252,10 +74254,12 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c ...@@ -74252,10 +74254,12 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
rawName: "v-shortkey", rawName: "v-shortkey",
value: (['b']), value: (['b']),
expression: "['b']" expression: "['b']"
}, {
name: "show",
rawName: "v-show",
value: (false),
expression: "false"
}], }],
staticStyle: {
"display": "none"
},
on: { on: {
"shortkey": function($event) { "shortkey": function($event) {
_vm.pushRoute({ _vm.pushRoute({
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment