Parcourir la source

Changed: mearge daily_0.0.1

洪海涛 il y a 3 ans
Parent
commit
a51beae141

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/bundle.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@didi/platformui",
-  "version": "0.1.101",
+  "version": "0.1.108",
   "description": "A platformui",
   "main": "dist/bundle.js",
   "author": "wenbobowen",

+ 1 - 1
src/components/isEllipsis/index.js

@@ -19,7 +19,7 @@ export default function IsEllipsis(props) {
   }, [name])
 
   return (
-    <div className="ellipsis" ref={nameEl} style={{ width: `${width}px` }}>
+    <div className="ellipsis" ref={nameEl} style={{ maxWidth: `${width}px` }}>
       {showTooltip ? (
         <Tooltip placement={placement} title={name}>
           {name}

+ 11 - 2
src/components/searchInput/components/editor/index.js

@@ -66,6 +66,10 @@ class EditorInput extends React.Component {
       paste_data_images: true, // 允许粘贴图像
       images_file_types: 'jpeg,jpg,png,gif,bmp,webp',
       menubar: false, // 隐藏最上方menu
+      default_link_target: "_blank", // 默认链接打开方式
+      target_list:[
+        {title: '新窗口', value: '_blank'}
+      ],
       fontsize_formats: '14px 16px 18px 20px 24px 26px 28px 30px 32px 36px', // 字体大小
       file_picker_types: 'image',
       charmap_append: [
@@ -74,8 +78,8 @@ class EditorInput extends React.Component {
         [0x2601, 'cloud'],
       ],
       images_upload_credentials: true,
-      plugins: 'fullscreen lists table textcolor wordcount contextmenu codesample link imagetools charmap', // 引入插件
-      toolbar: 'fullscreen bold italic underline strikethrough | link fontsizeselect | forecolor backcolor charmap | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent table | undo redo | removeformat formatselect codesample',
+      plugins: 'fullscreen lists table textcolor wordcount contextmenu codesample link imagetools charmap autolink paste', // 引入插件
+      toolbar: 'fullscreen bold italic underline strikethrough | fontsizeselect | forecolor backcolor link codesample | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent table | undo redo | removeformat formatselect charmap paste',
       table_toolbar: 'tableprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol | tablemergecells tablesplitcells',
       relative_urls: false,
       images_upload_url: 'http://star.xiaojukeji.com/upload/img.node',
@@ -86,6 +90,11 @@ class EditorInput extends React.Component {
         font-size: 14px;
       }
     `,
+      paste_preprocess: function(plugin, args) {
+        if ( args.content.search(/<a\ href/g) > -1) {
+          args.content = args.content.replace(/<a\ href/g, '<a target="_blank" href')
+        }
+      },
       images_upload_handler: (blobInfo, success, failure) => {
         //这里写你上传图片的方法
         console.log(11111, blobInfo, success, failure)

+ 1 - 1
src/components/selectDetialTable/index.js

@@ -73,7 +73,7 @@ export default function SelectDetialTable(props) {
         }}
         scroll={scroll}
         rowSelection={rowSelection}
-        onChange={(e)=> onChange(e)}
+        onChange={(pagination, filters, sorter, extra) => onChange(pagination, filters, sorter, extra)}
       />
     </div>
   );

+ 1 - 0
src/index.js

@@ -22,3 +22,4 @@ export { default as TagModular } from './components/tagModular';
 export { default as MainTitle } from './components/pageHeader/components/mainTitle'
 export { default as CodeMirrorInput } from './components/codeMirrorInput'
 export { default as IsEllipsis} from './components/isEllipsis'
+export { default as Editor} from './components/searchInput/components/editor'

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff