fx-platform-ui 0.0.13-alpha15 → 0.0.13-alpha16
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.
- package/lib/fx-platform-ui.mjs +21119 -19921
- package/lib/fx-platform-ui.umd.js +51 -51
- package/lib/packages/components/area/src/index.vue.d.ts +2 -2
- package/lib/packages/components/confirm/index.d.ts +2 -0
- package/lib/packages/components/confirm/src/confirm.vue.d.ts +2 -0
- package/lib/packages/components/confirm/src/index.d.ts +2 -0
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/component.ts +3 -2
- package/packages/components/confirm/index.ts +9 -0
- package/packages/components/confirm/src/confirm.vue +75 -0
- package/packages/components/confirm/src/index.module.less +61 -0
- package/packages/components/confirm/src/index.tsx +91 -0
- package/packages/components/confirm/src/plat-confirm-props.ts +40 -0
- package/packages/components/editor/src/index.vue +1 -0
- package/packages/components/table/src/hook/useTableMethods.tsx +1 -1
- package/packages/components/table/src/plat-table-emits.ts +1 -1
- package/CHANGELOG.md +0 -46
- package/lib/tinymce/CHANGELOG.md +0 -2957
- package/lib/tinymce/README.md +0 -71
- package/lib/tinymce/bower.json +0 -27
- package/lib/tinymce/composer.json +0 -52
- package/lib/tinymce/icons/default/icons.js +0 -182
- package/lib/tinymce/icons/default/icons.min.js +0 -1
- package/lib/tinymce/icons/default/index.js +0 -7
- package/lib/tinymce/license.txt +0 -21
- package/lib/tinymce/models/dom/index.js +0 -7
- package/lib/tinymce/models/dom/model.js +0 -7975
- package/lib/tinymce/models/dom/model.min.js +0 -4
- package/lib/tinymce/package.json +0 -32
- package/lib/tinymce/plugins/advlist/index.js +0 -7
- package/lib/tinymce/plugins/advlist/plugin.js +0 -246
- package/lib/tinymce/plugins/advlist/plugin.min.js +0 -4
- package/lib/tinymce/plugins/anchor/index.js +0 -7
- package/lib/tinymce/plugins/anchor/plugin.js +0 -195
- package/lib/tinymce/plugins/anchor/plugin.min.js +0 -4
- package/lib/tinymce/plugins/autolink/index.js +0 -7
- package/lib/tinymce/plugins/autolink/plugin.js +0 -232
- package/lib/tinymce/plugins/autolink/plugin.min.js +0 -4
- package/lib/tinymce/plugins/autoresize/index.js +0 -7
- package/lib/tinymce/plugins/autoresize/plugin.js +0 -156
- package/lib/tinymce/plugins/autoresize/plugin.min.js +0 -4
- package/lib/tinymce/plugins/autosave/index.js +0 -7
- package/lib/tinymce/plugins/autosave/plugin.js +0 -232
- package/lib/tinymce/plugins/autosave/plugin.min.js +0 -4
- package/lib/tinymce/plugins/charmap/index.js +0 -7
- package/lib/tinymce/plugins/charmap/plugin.js +0 -1636
- package/lib/tinymce/plugins/charmap/plugin.min.js +0 -4
- package/lib/tinymce/plugins/code/index.js +0 -7
- package/lib/tinymce/plugins/code/plugin.js +0 -85
- package/lib/tinymce/plugins/code/plugin.min.js +0 -4
- package/lib/tinymce/plugins/codesample/index.js +0 -7
- package/lib/tinymce/plugins/codesample/plugin.js +0 -2451
- package/lib/tinymce/plugins/codesample/plugin.min.js +0 -4
- package/lib/tinymce/plugins/directionality/index.js +0 -7
- package/lib/tinymce/plugins/directionality/plugin.js +0 -384
- package/lib/tinymce/plugins/directionality/plugin.min.js +0 -4
- package/lib/tinymce/plugins/emoticons/index.js +0 -7
- package/lib/tinymce/plugins/emoticons/js/emojiimages.js +0 -1
- package/lib/tinymce/plugins/emoticons/js/emojiimages.min.js +0 -3
- package/lib/tinymce/plugins/emoticons/js/emojis.js +0 -1
- package/lib/tinymce/plugins/emoticons/js/emojis.min.js +0 -2
- package/lib/tinymce/plugins/emoticons/plugin.js +0 -577
- package/lib/tinymce/plugins/emoticons/plugin.min.js +0 -4
- package/lib/tinymce/plugins/fullscreen/index.js +0 -7
- package/lib/tinymce/plugins/fullscreen/plugin.js +0 -1190
- package/lib/tinymce/plugins/fullscreen/plugin.min.js +0 -4
- package/lib/tinymce/plugins/help/index.js +0 -7
- package/lib/tinymce/plugins/help/plugin.js +0 -848
- package/lib/tinymce/plugins/help/plugin.min.js +0 -4
- package/lib/tinymce/plugins/image/index.js +0 -7
- package/lib/tinymce/plugins/image/plugin.js +0 -1475
- package/lib/tinymce/plugins/image/plugin.min.js +0 -4
- package/lib/tinymce/plugins/importcss/index.js +0 -7
- package/lib/tinymce/plugins/importcss/plugin.js +0 -342
- package/lib/tinymce/plugins/importcss/plugin.min.js +0 -4
- package/lib/tinymce/plugins/insertdatetime/index.js +0 -7
- package/lib/tinymce/plugins/insertdatetime/plugin.js +0 -176
- package/lib/tinymce/plugins/insertdatetime/plugin.min.js +0 -4
- package/lib/tinymce/plugins/link/index.js +0 -7
- package/lib/tinymce/plugins/link/plugin.js +0 -1190
- package/lib/tinymce/plugins/link/plugin.min.js +0 -4
- package/lib/tinymce/plugins/lists/index.js +0 -7
- package/lib/tinymce/plugins/lists/plugin.js +0 -1820
- package/lib/tinymce/plugins/lists/plugin.min.js +0 -4
- package/lib/tinymce/plugins/media/index.js +0 -7
- package/lib/tinymce/plugins/media/plugin.js +0 -1157
- package/lib/tinymce/plugins/media/plugin.min.js +0 -4
- package/lib/tinymce/plugins/nonbreaking/index.js +0 -7
- package/lib/tinymce/plugins/nonbreaking/plugin.js +0 -111
- package/lib/tinymce/plugins/nonbreaking/plugin.min.js +0 -4
- package/lib/tinymce/plugins/pagebreak/index.js +0 -7
- package/lib/tinymce/plugins/pagebreak/plugin.js +0 -105
- package/lib/tinymce/plugins/pagebreak/plugin.min.js +0 -4
- package/lib/tinymce/plugins/preview/index.js +0 -7
- package/lib/tinymce/plugins/preview/plugin.js +0 -97
- package/lib/tinymce/plugins/preview/plugin.min.js +0 -4
- package/lib/tinymce/plugins/quickbars/index.js +0 -7
- package/lib/tinymce/plugins/quickbars/plugin.js +0 -421
- package/lib/tinymce/plugins/quickbars/plugin.min.js +0 -4
- package/lib/tinymce/plugins/save/index.js +0 -7
- package/lib/tinymce/plugins/save/plugin.js +0 -118
- package/lib/tinymce/plugins/save/plugin.min.js +0 -4
- package/lib/tinymce/plugins/searchreplace/index.js +0 -7
- package/lib/tinymce/plugins/searchreplace/plugin.js +0 -1079
- package/lib/tinymce/plugins/searchreplace/plugin.min.js +0 -4
- package/lib/tinymce/plugins/table/index.js +0 -7
- package/lib/tinymce/plugins/table/plugin.js +0 -3393
- package/lib/tinymce/plugins/table/plugin.min.js +0 -4
- package/lib/tinymce/plugins/template/index.js +0 -7
- package/lib/tinymce/plugins/template/plugin.js +0 -548
- package/lib/tinymce/plugins/template/plugin.min.js +0 -4
- package/lib/tinymce/plugins/visualblocks/index.js +0 -7
- package/lib/tinymce/plugins/visualblocks/plugin.js +0 -98
- package/lib/tinymce/plugins/visualblocks/plugin.min.js +0 -4
- package/lib/tinymce/plugins/visualchars/index.js +0 -7
- package/lib/tinymce/plugins/visualchars/plugin.js +0 -506
- package/lib/tinymce/plugins/visualchars/plugin.min.js +0 -4
- package/lib/tinymce/plugins/wordcount/index.js +0 -7
- package/lib/tinymce/plugins/wordcount/plugin.js +0 -404
- package/lib/tinymce/plugins/wordcount/plugin.min.js +0 -4
- package/lib/tinymce/themes/silver/index.js +0 -7
- package/lib/tinymce/themes/silver/theme.js +0 -26184
- package/lib/tinymce/themes/silver/theme.min.js +0 -4
- package/lib/tinymce/tinymce.d.ts +0 -2895
- package/lib/tinymce/tinymce.js +0 -29400
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.pl-confirm-info {
|
|
2
|
+
.ant-modal-content {
|
|
3
|
+
border-radius: 10px;
|
|
4
|
+
}
|
|
5
|
+
.ant-modal-header {
|
|
6
|
+
border-radius: 10px;
|
|
7
|
+
border-bottom: 0;
|
|
8
|
+
padding: 24px 24px 0 24px;
|
|
9
|
+
text-align: center;
|
|
10
|
+
.ant-modal-title {
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
font-size: 20px;
|
|
13
|
+
color: #222;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.ant-modal-body {
|
|
17
|
+
padding: 40px 24px;
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
.ant-modal-footer {
|
|
23
|
+
padding: 0;
|
|
24
|
+
height: 58px;
|
|
25
|
+
.pl-confirm-footer {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
color: #409eff;
|
|
30
|
+
position: relative;
|
|
31
|
+
height: 100%;
|
|
32
|
+
.pl-confirm-flex {
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
flex: 1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.ant-btn {
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
}
|
|
43
|
+
.pl-confirm-cancel:before {
|
|
44
|
+
position: absolute;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
content: ' ';
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
top: -50%;
|
|
49
|
+
bottom: -50%;
|
|
50
|
+
left: 50%;
|
|
51
|
+
transform: scale(0.5);
|
|
52
|
+
border-right: 1px solid #f0f0f0;
|
|
53
|
+
color: #f0f0f0;
|
|
54
|
+
}
|
|
55
|
+
.pl-flex {
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { createVNode, render as vueRender } from 'vue'
|
|
2
|
+
import PlConfirm from './confirm.vue'
|
|
3
|
+
import type { PlatConfirmProps } from './plat-confirm-props'
|
|
4
|
+
|
|
5
|
+
const confirm = (props: any) => {
|
|
6
|
+
let confirmDialogInstance: any = null
|
|
7
|
+
const container = document.createDocumentFragment()
|
|
8
|
+
const close = (data?, args?) => {
|
|
9
|
+
currentConfig = {
|
|
10
|
+
...currentConfig,
|
|
11
|
+
visible: false,
|
|
12
|
+
afterClose: () => {
|
|
13
|
+
if (typeof props.afterClose === 'function') {
|
|
14
|
+
props.afterClose()
|
|
15
|
+
}
|
|
16
|
+
destroy.apply(data, args)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
update(currentConfig)
|
|
20
|
+
}
|
|
21
|
+
let currentConfig = {
|
|
22
|
+
maskClosable: false,
|
|
23
|
+
visible: true,
|
|
24
|
+
close,
|
|
25
|
+
type: 'info',
|
|
26
|
+
centered: true,
|
|
27
|
+
closable: false,
|
|
28
|
+
width: '360px',
|
|
29
|
+
height: '225px',
|
|
30
|
+
...props
|
|
31
|
+
}
|
|
32
|
+
const destroy = (...args) => {
|
|
33
|
+
if (confirmDialogInstance) {
|
|
34
|
+
// destroy
|
|
35
|
+
vueRender(null, container as any)
|
|
36
|
+
confirmDialogInstance.component.update()
|
|
37
|
+
confirmDialogInstance = null
|
|
38
|
+
}
|
|
39
|
+
const triggerCancel = args.some((param) => param && param.triggerCancel)
|
|
40
|
+
if (props.onCancel && triggerCancel) {
|
|
41
|
+
props.onCancel(...args)
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const update = (configUpdate: PlatConfirmProps) => {
|
|
45
|
+
currentConfig = {
|
|
46
|
+
...currentConfig,
|
|
47
|
+
...configUpdate
|
|
48
|
+
}
|
|
49
|
+
if (confirmDialogInstance) {
|
|
50
|
+
Object.assign(confirmDialogInstance.component.props, currentConfig)
|
|
51
|
+
confirmDialogInstance.component.update()
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const Wrapper = (p) => {
|
|
55
|
+
return <PlConfirm {...p}></PlConfirm>
|
|
56
|
+
}
|
|
57
|
+
const render = (arg: PlatConfirmProps) => {
|
|
58
|
+
console.log(arg)
|
|
59
|
+
const vm = createVNode(Wrapper, { ...arg })
|
|
60
|
+
vm.appContext = props.parentContext || props.appContext || vm.appContext
|
|
61
|
+
vueRender(vm, container as any)
|
|
62
|
+
return vm
|
|
63
|
+
}
|
|
64
|
+
confirmDialogInstance = render(currentConfig)
|
|
65
|
+
return {
|
|
66
|
+
destroy: close,
|
|
67
|
+
update
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const info = (props) => {
|
|
72
|
+
return {
|
|
73
|
+
okShow: true,
|
|
74
|
+
cancelShow: true,
|
|
75
|
+
...props
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// const PlConfirm = {
|
|
80
|
+
// info: (props) => {
|
|
81
|
+
// return confirm(info(props))
|
|
82
|
+
// }
|
|
83
|
+
// }
|
|
84
|
+
|
|
85
|
+
// PlConfirm.install = function (app: App) {
|
|
86
|
+
// app.component(Modal.name, Modal)
|
|
87
|
+
// return app
|
|
88
|
+
// }
|
|
89
|
+
PlConfirm.info = (props) => confirm(info(props))
|
|
90
|
+
|
|
91
|
+
export default PlConfirm
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { VNode, PropType, ExtractPropTypes } from 'vue'
|
|
2
|
+
import { modalProps } from 'ant-design-vue/es/modal/Modal'
|
|
3
|
+
|
|
4
|
+
export const platConfirmProps = {
|
|
5
|
+
...modalProps(),
|
|
6
|
+
okShow: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: true
|
|
9
|
+
},
|
|
10
|
+
cancelShow: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: true
|
|
13
|
+
},
|
|
14
|
+
// 内容
|
|
15
|
+
content: {
|
|
16
|
+
type: [Object, String] as PropType<VNode | string>,
|
|
17
|
+
default: null
|
|
18
|
+
},
|
|
19
|
+
// 关闭函数
|
|
20
|
+
onCancel: {
|
|
21
|
+
type: Function as PropType<() => Promise<any>>
|
|
22
|
+
},
|
|
23
|
+
// 确认函数
|
|
24
|
+
onOk: {
|
|
25
|
+
type: Function as PropType<() => Promise<any>>
|
|
26
|
+
},
|
|
27
|
+
// 销毁函数
|
|
28
|
+
destroy: {
|
|
29
|
+
type: Function as PropType<(() => Promise<any>) | undefined>,
|
|
30
|
+
default: null
|
|
31
|
+
},
|
|
32
|
+
// 关闭函数
|
|
33
|
+
close: {
|
|
34
|
+
type: Function as PropType<() => Promise<any>>
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type PlatConfirmProps = Partial<
|
|
39
|
+
ExtractPropTypes<typeof platConfirmProps>
|
|
40
|
+
>
|
package/CHANGELOG.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: '更新日志'
|
|
3
|
-
lang: zh-CN
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## 版本日志
|
|
9
|
-
|
|
10
|
-
## [0.0.12] - 2022-11-21
|
|
11
|
-
### 新增
|
|
12
|
-
* 新增 `PlEditor`组件, 添加 富文本组件 该组件可在`PLform`使用
|
|
13
|
-
* 新增 `PlTable`组件里 `setProps`方法用来动态添加`PlTable的props`
|
|
14
|
-
|
|
15
|
-
## [0.0.11] - 2022-11-11
|
|
16
|
-
### 新增
|
|
17
|
-
* 新增 `PlTable`组件, 添加 分页dom`updatePageVnode`方法
|
|
18
|
-
|
|
19
|
-
## [0.0.10] - 2022-11-10
|
|
20
|
-
### 修改
|
|
21
|
-
* 修改 `PlForm`组件, 解决无法传入官方`ant-design -vue`的Form API
|
|
22
|
-
|
|
23
|
-
## [0.0.9] - 2022-11-9
|
|
24
|
-
### 新增
|
|
25
|
-
* 新增 `PlTable`组件, 添加针对`table`的显示隐藏属性`tableShow`
|
|
26
|
-
|
|
27
|
-
## [0.0.8] - 2022-11-4
|
|
28
|
-
### 新增、修改
|
|
29
|
-
* 新增 `PlTable`组件, 添加`pin-manager-table`案例
|
|
30
|
-
* 新增 `PlTable`组件里`actions`,添加`componentType`,解决操作列可能是文本的情况
|
|
31
|
-
* 修改 `PlForm`组件,表单每一项,默认不清空
|
|
32
|
-
* 修改 `PlForm`组件,表单操作按钮"是否隐藏" `bug`
|
|
33
|
-
|
|
34
|
-
## [0.0.7] - 2022-10-28
|
|
35
|
-
### 修改
|
|
36
|
-
* 修改 `PlTable` 组件,添加ref属性,获取table里所有方法
|
|
37
|
-
|
|
38
|
-
## [0.0.6] - 2022-10-25
|
|
39
|
-
### 新增
|
|
40
|
-
* 新增 `PlArea` 组件
|
|
41
|
-
|
|
42
|
-
## [0.0.5] - 2022-10-14
|
|
43
|
-
### 新增
|
|
44
|
-
* 新增 `PlForm`, `PlTable` 组件
|
|
45
|
-
|
|
46
|
-
...
|