@maxelms/create-plugin-cli 1.1.4 → 1.1.6
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/package.json +1 -1
- package/templates/jQuery-micro-app/src/configuration.json +4 -0
- package/templates/maxelms-script/index.html +1 -1
- package/templates/maxelms-style/package.json.tpl +1 -1
- package/templates/react-micro-app/public/configuration.json +4 -0
- package/templates/react-micro-app/src/pages/Home/index.tsx +2 -2
- package/templates/react-micro-app-umi/public/basicConfiguration.json +4 -0
- package/templates/react-micro-app-umi/public/configuration.json +4 -0
- package/templates/react-micro-button/public/basicConfiguration.json +4 -0
- package/templates/react-micro-button/public/configuration.json +4 -0
- package/templates/react-micro-field/public/basicConfiguration.json +4 -0
- package/templates/react-micro-field/public/configuration.json +4 -0
- package/templates/react-micro-field/src/App.tsx.tpl +1 -1
- package/templates/react-micro-field-umi/public/basicConfiguration.json +4 -0
- package/templates/react-micro-field-umi/public/configuration.json +4 -0
- package/templates/react-micro-field-umi/src/pages/index.tsx.tpl +1 -1
- package/templates/react-micro-plugin/public/configuration.json +4 -0
- package/templates/react-micro-plugin/src/App.tsx.tpl +1 -1
- package/templates/react-micro-plugin-umi/public/configuration.json +4 -0
- package/templates/vue-micro-app/public/configuration.json +4 -0
- package/templates/vue-micro-app/src/main.js +1 -1
- package/templates/vue-micro-button/public/basicConfiguration.json +4 -0
- package/templates/vue-micro-button/public/configuration.json +4 -0
- package/templates/vue-micro-button/src/App.vue +2 -2
- package/templates/vue-micro-field/public/basicConfiguration.json +4 -0
- package/templates/vue-micro-field/public/configuration.json +4 -0
package/package.json
CHANGED
|
@@ -5,9 +5,9 @@ import styles from './index.less'
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
const Home = () => {
|
|
8
|
-
/**
|
|
8
|
+
/** 平台传递给微应用的状态数据 */
|
|
9
9
|
const props = React.useContext(MasterContext)
|
|
10
|
-
/** 当组件运行在
|
|
10
|
+
/** 当组件运行在 系统应用时才存在 props 属性 */
|
|
11
11
|
const { configurations } = props || {}
|
|
12
12
|
/** configurations 是组件的配置项信息 */
|
|
13
13
|
const {
|
|
@@ -5,7 +5,7 @@ import './style.less';
|
|
|
5
5
|
const prefixCls = 'maxelms-customize-component-<%= timestamp %>'
|
|
6
6
|
|
|
7
7
|
const App = (props: any) => {
|
|
8
|
-
/** 当组件运行在
|
|
8
|
+
/** 当组件运行在 系统应用时才存在 props 属性 */
|
|
9
9
|
const { configurations, value, onChange, readOnly } = props
|
|
10
10
|
/** configurations 是组件的配置项信息 */
|
|
11
11
|
const {
|
|
@@ -8,7 +8,7 @@ const prefixCls = 'maxelms-customize-component-<%= timestamp %>'
|
|
|
8
8
|
|
|
9
9
|
const App = (props: any) => {
|
|
10
10
|
const masterProps = useMasterProps();
|
|
11
|
-
/** 当组件运行在
|
|
11
|
+
/** 当组件运行在 系统应用时才存在 props 属性 */
|
|
12
12
|
const { configurations, value, onChange, readOnly } = masterProps
|
|
13
13
|
/** configurations 是组件的配置项信息 */
|
|
14
14
|
const {
|
|
@@ -5,7 +5,7 @@ import './style.less';
|
|
|
5
5
|
const prefixCls = 'maxelms-customize-component-<%= timestamp %>'
|
|
6
6
|
|
|
7
7
|
const App = (props: any) => {
|
|
8
|
-
/** 当组件运行在
|
|
8
|
+
/** 当组件运行在 系统应用时才存在 props 属性 */
|
|
9
9
|
/** configurations 是组件的配置项信息 */
|
|
10
10
|
const { configurations } = props
|
|
11
11
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app">
|
|
3
|
-
<!-- 集成在
|
|
3
|
+
<!-- 集成在 系统 中时会走该逻辑 -->
|
|
4
4
|
<span v-if="buttonName" @click="visible = true">{{buttonName}}</span>
|
|
5
|
-
<!-- 由于独立开发时没有
|
|
5
|
+
<!-- 由于独立开发时没有 系统 传递的上下文数据,会渲染一个按钮辅助开发 -->
|
|
6
6
|
<button v-if="!buttonName" @click="visible = true">自定义按钮</button>
|
|
7
7
|
<el-dialog
|
|
8
8
|
append-to-body
|