intelligent-form

learning for element
994 7
Install
npm install intelligent-form
Latest Version:0.0.53
Vue:2
Last Updated:Jan 5, 2023
Links: GitHub  ·  npm
Maintainer: longzhenni

intelligent-form

说明

  1. 使用场景:pc端房颤医生随访记录、小程序房颤医生随访记录、pc端用户中心随访方案创建编辑
  2. 每个输出的组件所对应的文件 IntGroupWidgetPreview ---> widgets/FormGroupWidgetPreview IntSettingPageRender ---> settings/FormPageWidget IntWidgetSetting ---> settings/FormWidgetSetting IntWidget ---> widgets/FormWidget IntWidgetPreview ---> widgets/FormPageWidgetPreview

npm 安装

npm i intelligent-form

使用说明

你可以引入整个intelligent-form,也可进行按需加载组件

  1. 完整引入 在 main.js 中写入以下内容:
import Vue from 'vue';
import IntForm from 'intelligent-form';
import '/intelligent-form/lib/theme-chalk.css';
import App from './App.vue';

Vue.use(IntForm);

new Vue({
  el: '#app',
  render: h => h(App)
});
  1. 按需引入 借助 babel-plugin-component,我们可以只引入需要的组件,以达到减小项目体积的目的。

    然后,将 .babelrc 修改为:

{
  "plugins": [
    [
      "component",
      {
        "libraryName": "intelligent-form",
        "styleLibraryName": "theme-chalk"
      }
    ]
  ]
}

在 main.js 中写入以下内容:

import Vue from 'vue';
import {
  IntGroupWidgetPreview,
  IntSettingPageRender,
  IntWidget,
  IntWidgetPreview,
  IntWidgetSetting
} from 'intelligent-form';
import App from './App.vue';

Vue.use(IntWidgetSetting);
Vue.use(IntGroupWidgetPreview);
Vue.use(IntSettingPageRender);
Vue.use(IntWidgetPreview);
Vue.use(IntWidget);

new Vue({
  el: '#app',
  render: h => h(App)
});

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

Version History

Version Released Vue License
0.0.53 ^2.6.11
0.0.52 ^2.6.11
0.0.51 ^2.6.11
0.0.50 ^2.6.11
0.0.49 ^2.6.11