@arco-vue-pro-components/pro-components
Version:
基于@arco-design/web-vue组件的高级组件,包括pro-table
34 lines (33 loc) • 1.05 kB
JavaScript
;
var vue = require("vue");
var index = require("../../locale/index.js");
var icon = require("@arco-design/web-vue/es/icon");
var context = require("../form/context.js");
var index$1 = require("../my-tool-tip/index.js");
var FullScreenIcon = vue.defineComponent({
name: "FullscreenIcon",
setup() {
const tableCtx = vue.inject(context.proTableInjectionKey, {});
const {
getMessage
} = index.useI18n();
const render = () => {
return (tableCtx == null ? void 0 : tableCtx.fullscreen) ? vue.createVNode(index$1, {
"content": getMessage("tableToolBar.exitFullScreen", "\u5168\u5C4F")
}, {
default: () => [vue.createVNode(icon.IconFullscreenExit, null, null)]
}) : vue.createVNode(index$1, {
"content": getMessage("tableToolBar.fullScreen", "\u5168\u5C4F")
}, {
default: () => [vue.createVNode(icon.IconFullscreen, null, null)]
});
};
return {
render
};
},
render() {
return this.render();
}
});
module.exports = FullScreenIcon;