0.0.53 • Published 3 years ago

intelligent-form v0.0.53

Weekly downloads
130
License
-
Repository
github
Last release
3 years ago

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)
});
0.0.52

3 years ago

0.0.53

3 years ago

0.0.51

3 years ago

0.0.50

3 years ago

0.0.48

3 years ago

0.0.49

3 years ago

0.0.46

3 years ago

0.0.47

3 years ago

0.0.45

3 years ago

0.0.43

4 years ago

0.0.44

4 years ago

0.0.42

4 years ago

0.0.41

4 years ago

0.0.40

4 years ago

0.0.39

4 years ago

0.0.38

4 years ago

0.0.37

4 years ago

0.0.35

4 years ago

0.0.36

4 years ago

0.0.34

4 years ago

0.0.32

4 years ago

0.0.33

4 years ago

0.0.31

4 years ago

0.0.30

4 years ago

0.0.29

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.25

4 years ago

0.0.26

4 years ago

0.0.24

4 years ago

0.0.23

4 years ago

0.0.21

4 years ago

0.0.22

4 years ago

0.0.20

4 years ago

0.0.18

4 years ago

0.0.19

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago