element-assits 0.0.28 → 0.0.30

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/README.md CHANGED
@@ -200,8 +200,12 @@ props: {
200
200
  ## props
201
201
  | 属性名 | 说明 | 类型 | 默认值 |
202
202
  |:---|:---|:---|:---|
203
- |data|json-schema 数据|Object|{}|
204
- |height|组件高度|Number| 500 |
203
+ |value / v-model|json-schema 数据|Object|{}|
204
+ |height|组件高度|Number \| String| auto |
205
+ |maxHeight|当自动高度时,限制最大高度|Number| 500 |
206
+ |itemSize|单项高度|Number|32|
207
+ |allowEdit|是否允许编辑|Boolean|true|
208
+ |checkbox|是否开启多选列|Boolean|false|
205
209
 
206
210
  ## methods
207
211
  | 方法名 | 说明 | 参数 |
@@ -0,0 +1 @@
1
+ .ea-table-modal{overflow:visible;right:unset;right:initial;bottom:unset;bottom:initial;width:100%;height:0}.ea-table-modal .el-dialog{background:#fdfdfd;box-shadow:0 0 16px #00000026}.ea-table-modal .el-dialog .el-dialog__header{padding:12px 20px;background-color:#f2f6fc;border-bottom:1px solid #EBEEF5}.ea-table-modal .el-dialog .el-dialog__headerbtn{top:12px}.ea-table-modal .el-dialog .el-dialog__close{font-weight:700;color:#909399}.ea-table-modal .el-dialog .el-dialog__body{padding:10px 0;height:calc(100% - 70px);min-height:40px;max-height:800px;overflow:auto}.ea-table-modal .el-dialog .el-dialog__body .scm-title{font-size:12px;font-weight:700;color:#303133}.ea-table-modal .el-dialog .el-dialog__body .scm-title.medium{font-size:14px}.ea-table-modal .el-dialog .el-dialog__body .el-tree{background:transparent;font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree .el-tree-node__label{font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium,.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium .el-tree-node__label{font-size:14px}
@@ -0,0 +1 @@
1
+ import{n as l,E as n}from"./index.0ba6ca94.js";const o={components:{EaModal:n},props:{column:{type:Array,required:!0},rawColumn:{type:Array,required:!0}},data(){const{size:a}=this.$ELEMENT||{size:"small"},e=this.column,t=this.rawColumn.filter(s=>s.show!==!1).map(s=>s.prop);return{visible:!1,size:a,treeData:e,defaultCheckedKeys:t}},mounted(){this.visible=!0},methods:{handleCheckChange(a,e){this.$emit("check-change",{isChecked:e,item:a})}}};var c=function(){var e=this,t=e._self._c;return t("EaModal",{staticClass:"ea-table-modal",attrs:{visible:e.visible,modal:!1,width:"260px","append-to-body":""},on:{"update:visible":function(s){e.visible=s}}},[t("div",{staticClass:"scm-title",class:{[e.size]:1},attrs:{slot:"title"},slot:"title"},[e._v("\u9009\u62E9\u5217")]),t("el-tree",{class:{[e.size]:1},attrs:{data:e.treeData,"node-key":"prop","show-checkbox":"","default-checked-keys":e.defaultCheckedKeys,"check-on-click-node":!0},on:{"check-change":e.handleCheckChange}})],1)},r=[],i=l(o,c,r,!1,null,null,null,null);const u=i.exports;export{u as default};
@@ -0,0 +1 @@
1
+ import{n as l}from"./index.0ba6ca94.js";const s={data(){return{visible:!1}},mounted(){this.visible=!0}};var a=function(){var e=this,t=e._self._c;return t("EaModal",{attrs:{title:"\u6D4B\u8BD5",visible:e.visible,"allow-drag":!0,"custom-class":"abc","append-to-body":""},on:{"update:visible":function(n){e.visible=n}}},[t("div",e._l(20,function(n){return t("p",[e._v("123")])}),0)])},r=[],i=l(s,a,r,!1,null,null,null,null);const _=i.exports;export{_ as default};
@@ -0,0 +1 @@
1
+ import{n as i}from"./index.0ba6ca94.js";const s={type:"object",properties:{code:{type:"number"},result:{type:"object",description:"\u7ED3\u679C\u96C6",default:{},examples:["anything",4035],properties:{city:{type:"object",properties:{Country:{type:"string"},Province:{type:"string"},City:{type:"string"},Carrier:{type:"string"},UserIp:{type:"string"},city_sub_add_array:{type:"array",items:{type:"string"}},city_sub_add_object:{type:"object",properties:{item111:{type:"string"},item222:{type:"string"}},required:[]}}},condition:{type:"object",properties:{day_weather:{type:"string"},day_weather_short:{type:"string"},day_wind_direction:{type:"string"},day_wind_power:{type:"string"},max_degree:{type:"string"},min_degree:{type:"string"},night_weather:{type:"string"},night_weather_short:{type:"string"},night_wind_direction:{type:"string"},night_wind_power:{type:"string"},aqi:{type:"object",properties:{aqi:{type:"number"},aqi_level:{type:"number"},aqi_name:{type:"string"},co:{type:"string"},no2:{type:"string"},o3:{type:"string"},pm10:{type:"string"},so2:{type:"string"},update_time:{type:"string"},pm2_5:{type:"string"},api_sub_test:{type:"string"}},required:[]}}},forecast:{type:"array",items:{type:"string"}},result_sub_test:{type:"string"}},required:["city","condition"]},msg:{type:"string"},acccccc:{type:"number"},bddddd:{type:"integer"}}},a={data(){return{data:s}},methods:{handleValidate(){console.log(this.$refs.ejs.validate())},handleGetResult(){console.log(this.$refs.ejs.getData())},handleInput(r){console.log(r)}}};var p=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{width:"840px",overflow:"auto",margin:"0 auto"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.handleValidate}},[t._v("\u6821\u9A8C")]),e("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:t.handleGetResult}},[t._v("\u83B7\u53D6\u7ED3\u679C")]),e("EaJsonSchema",{ref:"ejs",on:{input:t.handleInput},model:{value:t.data,callback:function(n){t.data=n},expression:"data"}})],1)},o=[],y=i(a,p,o,!1,null,null,null,null);const c=y.exports;export{c as default};