@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.
- package/dist/tmagic-form.js +81 -97
- package/dist/tmagic-form.umd.cjs +81 -97
- package/package.json +8 -8
- package/src/containers/Container.vue +1 -2
- package/src/fields/Date.vue +1 -1
- package/src/fields/Daterange.vue +7 -19
- package/src/fields/Text.vue +0 -1
- package/src/index.ts +3 -3
- package/types/index.d.ts +1085 -1757
package/src/fields/Text.vue
CHANGED
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
|
|
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;
|