@tmagic/form 1.5.0-beta.5 → 1.5.0-beta.7

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.
@@ -4,7 +4,6 @@
4
4
  <TMagicInput
5
5
  v-model="model[name]"
6
6
  clearable
7
- :data-tmagic-form-item-prop="prop"
8
7
  :size="size"
9
8
  :placeholder="config.placeholder"
10
9
  :disabled="disabled"
package/src/index.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { App } from 'vue';
19
+ import type { App } from 'vue';
20
20
 
21
21
  import Container from './containers/Container.vue';
22
22
  import Fieldset from './containers/Fieldset.vue';
@@ -98,8 +98,8 @@ export interface FormInstallOptions {
98
98
  const defaultInstallOpt: FormInstallOptions = {};
99
99
 
100
100
  export default {
101
- install(app: App, opt: FormInstallOptions = {}) {
102
- const option = Object.assign(defaultInstallOpt, opt);
101
+ install(app: App, opt?: FormInstallOptions) {
102
+ const option = Object.assign(defaultInstallOpt, opt || {});
103
103
 
104
104
  // eslint-disable-next-line no-param-reassign
105
105
  app.config.globalProperties.$MAGIC_FORM = option;