vue-editify 0.0.48 → 0.0.50

Sign up to get free protection for your applications and to get access to all the features.
package/src/core/index.js CHANGED
@@ -74,7 +74,7 @@ export const editorProps = {
74
74
  },
75
75
  //编辑内容高度
76
76
  height: {
77
- type: String,
77
+ type: [String, Boolean],
78
78
  default: '600px'
79
79
  },
80
80
  //是否自适应高度
@@ -934,7 +934,8 @@ export const getMenuConfig = function (editTrans, editLocale) {
934
934
  video: 24,
935
935
  table: 25,
936
936
  codeBlock: 26,
937
- sourceView: 27
937
+ sourceView: 27,
938
+ fullScreen: 28
938
939
  },
939
940
  //撤销按钮配置
940
941
  undo: {
@@ -1264,6 +1265,15 @@ export const getMenuConfig = function (editTrans, editLocale) {
1264
1265
  //右侧边框是否显示
1265
1266
  rightBorder: false
1266
1267
  },
1268
+ //全屏
1269
+ fullScreen: {
1270
+ //是否显示此工具
1271
+ show: false,
1272
+ //左侧边框是否显示
1273
+ leftBorder: false,
1274
+ //右侧边框是否显示
1275
+ rightBorder: false
1276
+ },
1267
1277
  //拓展菜单,每个key表示拓展菜单的唯一名称,value是对象,包含type/title/rightBorder/leftBorder/disabled/active/width/maxHeight/options/value/hideScroll/onLayerShow/onLayerShown/onLayerHidden/onOperate/default/layer/option属性
1268
1278
  extends: {}
1269
1279
  }
@@ -1,3 +1,7 @@
1
+ .editify-icon-full-screen:before {
2
+ content: '\e62f';
3
+ }
4
+
1
5
  .editify-icon-auto-width:before {
2
6
  content: '\e61d';
3
7
  }
Binary file
Binary file
package/src/index.js CHANGED
@@ -7,7 +7,7 @@ import './icon/iconfont.css'
7
7
  //引入国际化
8
8
  import i18n from './locale'
9
9
  //版本号
10
- const version = '0.0.48'
10
+ const version = '0.0.50'
11
11
  //安装函数
12
12
  const install = (app, props) => {
13
13
  const locale = (props ? props.locale : 'zh_CN') || 'zh_CN'
@@ -81,5 +81,6 @@ export default {
81
81
  alignRight: 'Align right',
82
82
  alignJustify: 'Align justify',
83
83
  defaultLineHeight: 'Default',
84
- auto: 'auto'
84
+ auto: 'auto',
85
+ fullScreen: 'Full screen'
85
86
  }
@@ -81,5 +81,6 @@ export default {
81
81
  alignRight: '右对齐',
82
82
  alignJustify: '两端对齐',
83
83
  defaultLineHeight: '默认行高',
84
- auto: '自适应'
84
+ auto: '自适应',
85
+ fullScreen: '全屏'
85
86
  }