vue-editify 0.0.40 → 0.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,10 @@
23
23
  <Button @operate="setWidth('50%')" name="set50Width" :title="$editTrans('width50')" :tooltip="config.tooltip" :color="$parent.color"> 50% </Button>
24
24
  <!-- 设置宽度100% -->
25
25
  <Button rightBorder @operate="setWidth('100%')" name="set100Width" :title="$editTrans('width100')" :tooltip="config.tooltip" :color="$parent.color"> 100% </Button>
26
+ <!-- 设置宽度auto -->
27
+ <Button @operate="setWidth('auto')" name="setAutoWidth" :title="$editTrans('widthAuto')" :tooltip="config.tooltip" :color="$parent.color">
28
+ <Icon value="auto-width"></Icon>
29
+ </Button>
26
30
  <!-- 删除图片 -->
27
31
  <Button @operate="$parent.deleteByParsedom('img')" name="deleteImage" :title="$editTrans('deleteImage')" :tooltip="config.tooltip" :color="$parent.color">
28
32
  <Icon value="delete"></Icon>
@@ -35,7 +39,11 @@
35
39
  <!-- 设置宽度50% -->
36
40
  <Button @operate="setWidth('50%')" name="set50Width" :title="$editTrans('width50')" :tooltip="config.tooltip" :color="$parent.color"> 50% </Button>
37
41
  <!-- 设置宽度100% -->
38
- <Button rightBorder @operate="setWidth('100%')" name="set100Width" :title="$editTrans('width100')" :tooltip="config.tooltip" :color="$parent.color"> 100% </Button>
42
+ <Button @operate="setWidth('100%')" name="set100Width" :title="$editTrans('width100')" :tooltip="config.tooltip" :color="$parent.color"> 100% </Button>
43
+ <!-- 设置宽度auto -->
44
+ <Button rightBorder @operate="setWidth('auto')" name="setAutoWidth" :title="$editTrans('widthAuto')" :tooltip="config.tooltip" :color="$parent.color">
45
+ <Icon value="auto-width"></Icon>
46
+ </Button>
39
47
  <!-- 自动播放 -->
40
48
  <Button @operate="setVideo" name="autoplay" :title="videoConfig.autoplay ? $editTrans('disabledAutoplay') : $editTrans('autoplay')" :tooltip="config.tooltip" :color="$parent.color">
41
49
  <Icon :value="videoConfig.autoplay ? 'autoplay' : 'stop'"></Icon>
@@ -1,3 +1,11 @@
1
+ .editify-icon-auto-width:before {
2
+ content: '\e61d';
3
+ }
4
+
5
+ .editify-icon-attachment:before {
6
+ content: '\e600';
7
+ }
8
+
1
9
  .editify-icon-task:before {
2
10
  content: '\e605';
3
11
  }
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.40'
10
+ const version = '0.0.42'
11
11
  //安装函数
12
12
  const install = (app, props) => {
13
13
  const locale = (props ? props.locale : 'zh_CN') || 'zh_CN'
@@ -21,4 +21,4 @@ const stdin_default = {
21
21
  version
22
22
  }
23
23
 
24
- export { stdin_default as default, install, version, AlexElement }
24
+ export { stdin_default as default, install as editify, version, AlexElement }
@@ -80,5 +80,6 @@ export default {
80
80
  alignCenter: 'Align center',
81
81
  alignRight: 'Align right',
82
82
  alignJustify: 'Align justify',
83
- defaultLineHeight: 'Default'
83
+ defaultLineHeight: 'Default',
84
+ widthAuto: 'auto'
84
85
  }
@@ -80,5 +80,6 @@ export default {
80
80
  alignCenter: '居中对齐',
81
81
  alignRight: '右对齐',
82
82
  alignJustify: '两端对齐',
83
- defaultLineHeight: '默认行高'
83
+ defaultLineHeight: '默认行高',
84
+ widthAuto: '宽度自适应'
84
85
  }