Giter Site home page Giter Site logo

Comments (6)

Issues-translate-bot avatar Issues-translate-bot commented on June 5, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: dragging elementplus pagination to canvas does not display pagination

from tiny-engine.

chilingling avatar chilingling commented on June 5, 2024

物料配置片段:

"schema": {
            "properties": [
              {
                "name": "0",
                "label": {
                  "zh_CN": "基础属性"
                },
                "content": [
                  {
                    "property": "total",
                    "label": {
                      "text": {
                        "zh_CN": "total"
                      }
                    },
                    "description": {
                      "zh_CN": "总条目数"
                    },
                    "required": true,
                    "readOnly": false,
                    "disabled": false,
                    "cols": 12,
                    "labelPosition": "top",
                    "type": "string",
                    "defaultValue": 1000,
                    "widget": {
                      "component": "MetaNumber",
                      "props": {}
                    }
                  },
                  {
                    "property": "layout",
                    "label": {
                      "text": {
                        "zh_CN": "layout"
                      }
                    },
                    "description": {
                      "zh_CN": "尺寸"
                    },
                    "required": true,
                    "readOnly": false,
                    "disabled": false,
                    "cols": 12,
                    "labelPosition": "top",
                    "type": "string",
                    "defaultValue": "prev,pager,next",
                    "widget": {
                      "component": "MetaInput",
                      "props": {}
                    }
                  }
                ],
                "description": {
                  "zh_CN": ""
                }
              }
            ],}

snippet 配置片段:

{
              "name": {
                "zh_CN": "分页"
              },
              "icon": "input",
              "screenshot": "",
              "snippetName": "ElPagination",
              "schema": {
               // 重点在这里,需要提前配置 props,不然拖拽出来 elememt-plus 分页组件啥都不渲染
                "props": {
                  "total": 1000,
                  "layout":"total, sizes, prev, pager, next"
                }
              }
            }

@Createyouraccou

from tiny-engine.

Issues-translate-bot avatar Issues-translate-bot commented on June 5, 2024

Bot detected the issue body's language is not English, translate it automatically.


Material configuration fragment:

"schema": {
            "properties": [
              {
                "name": "0",
                "label": {
                  "zh_CN": "Basic attributes"
                },
                "content": [
                  {
                    "property": "total",
                    "label": {
                      "text": {
                        "zh_CN": "total"
                      }
                    },
                    "description": {
                      "zh_CN": "Total number of entries"
                    },
                    "required": true,
                    "readOnly": false,
                    "disabled": false,
                    "cols": 12,
                    "labelPosition": "top",
                    "type": "string",
                    "defaultValue": 1000,
                    "widget": {
                      "component": "MetaNumber",
                      "props": {}
                    }
                  },
                  {
                    "property": "layout",
                    "label": {
                      "text": {
                        "zh_CN": "layout"
                      }
                    },
                    "description": {
                      "zh_CN": "size"
                    },
                    "required": true,
                    "readOnly": false,
                    "disabled": false,
                    "cols": 12,
                    "labelPosition": "top",
                    "type": "string",
                    "defaultValue": "prev,pager,next",
                    "widget": {
                      "component": "MetaInput",
                      "props": {}
                    }
                  }
                ],
                "description": {
                  "zh_CN": ""
                }
              }
            ],}

snippet configuration snippet:

{
              "name": {
                "zh_CN": "Page"
              },
              "icon": "input",
              "screenshot": "",
              "snippetName": "ElPagination",
              "schema": {
               //The key point here is that you need to configure props in advance, otherwise the elememt-plus paging component will not render anything after dragging it out.
                "props": {
                  "total": 1000,
                  "layout":"total, sizes, prev, pager, next"
                }
              }
            }

@Createyouraccou

from tiny-engine.

Createyouraccou avatar Createyouraccou commented on June 5, 2024

{
"id": 1,
"version": "2.7.1",
"name": {
"zh_CN": "分页"
},
"component": "ElPagination",
"icon": "pager",
"description": "数据分页",
"doc_url": "",
"screenshot": "",
"tags": "",
"keywords": "",
"dev_mode": "proCode",
"npm": {
"package": "element-plus",
"version": "2.7.1",
"script": "https://npm.onmicrosoft.cn/[email protected]/dist/index.full.mjs",
"css": "https://npm.onmicrosoft.cn/[email protected]/dist/index.css",
"dependencies": null,
"exportName": "ElPagination"
},
"group": "表单组件",
"category": "element-plus",
"configure": {
"loop": true,
"condition": true,
"styles": true,
"isContainer": false,
"isModal": false,
"isPopper": false,
"nestingRule": {
"childWhitelist": "",
"parentWhitelist": "",
"descendantBlacklist": "",
"ancestorWhitelist": ""
},
"isNullNode": false,
"isLayout": false,
"rootSelector": "",
"shortcuts": {
"properties": [
"currentPage",
"total"
]
},
"contextMenu": {
"actions": [
"create symbol"
],
"disable": []
},
"invalidity": [
""
],
"clickCapture": true,
"framework": "Vue"
},
"schema": {
"properties": [
{
"name": "0",
"label": {
"zh_CN": "基础属性"
},
"description": {
"zh_CN": "基础信息"
},
"content": [
{
"property": "currentPage",
"label": {
"text": {
"zh_CN": "当前页数"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {}
},
"description": {
"zh_CN": "当前页数,支持 .sync 修饰符"
},
"labelPosition": "left"
},
{
"property": "pageSize",
"label": {
"text": {
"zh_CN": "每页条数"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {}
},
"description": {
"zh_CN": "每页显示条目个数"
},
"labelPosition": "left"
},
{
"property": "pageSizes",
"label": {
"text": {
"zh_CN": "可选每页条数"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaCodeEditor",
"props": {}
},
"description": {
"zh_CN": "设置可选择的每页显示条数"
}
},
{
"property": "total",
"label": {
"text": {
"zh_CN": "总条数"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {}
},
"description": {
"zh_CN": "数据总条数"
},
"labelPosition": "left"
},
{
"property": "layout",
"label": {
"text": {
"zh_CN": "布局"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"defaultValue": "total,sizes,prev, pager, next,jumper",
"widget": {
"component": "MetaInput",
"props": {
"type": "textarea"
}
},
"description": {
"zh_CN": "组件布局,子组件名用逗号分隔"
},
"labelPosition": "left"
}
]
}
],
"events": {
"onCurrentChange ": {
"label": {
"zh_CN": "切换页码时触发"
},
"description": {
"zh_CN": "切换页码时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "当前页的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onSizeChange ": {
"label": {
"zh_CN": "切换条数时触发"
},
"description": {
"zh_CN": "切换条数时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "当前条的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onPrevClick ": {
"label": {
"zh_CN": "点击上一页按钮时触发"
},
"description": {
"zh_CN": "点击上一页按钮时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "page",
"type": "String",
"defaultValue": "",
"description": {
"zh_CN": "当前页的页码值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onNextClick": {
"label": {
"zh_CN": "点击下一页按钮时触发"
},
"description": {
"zh_CN": "点击上一页按钮时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "page",
"type": "String",
"defaultValue": "",
"description": {
"zh_CN": "当前页的页码值"
}
}
],
"returns": {}
},
"defaultValue": ""
}
},
"slots": {
"default": {
"label": {
"zh_CN": "自定义内容"
},
"description": {
"zh_CN": "自定义内容"
}
}
}
},
"snippets": [
{
"name": {
"zh_CN": "分页"
},
"icon": "pager",
"screenshot": "",
"snippetName": "ElPagination",
"schema": {
"componentName": "ElPagination",
"props": {
"layout": "total, sizes, prev, pager, next,jumper",
"total": 100,
"pageSize": 10,
"currentPage": 1,
"pageSizes": [
10,
20,
50,
100
]
}
}
}
]
}

from tiny-engine.

Createyouraccou avatar Createyouraccou commented on June 5, 2024

方便看看我写的有问题吗?还是不出来,而且如何导入elmentplus中文包?

from tiny-engine.

Issues-translate-bot avatar Issues-translate-bot commented on June 5, 2024

Bot detected the issue body's language is not English, translate it automatically.


Could you please check if there is anything wrong with what I wrote? It still doesn’t come out, and how to import the elementplus Chinese package?

from tiny-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.