Comments (6)
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.
物料配置片段:
"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"
}
}
}
from tiny-engine.
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"
}
}
}
from tiny-engine.
{
"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.
方便看看我写的有问题吗?还是不出来,而且如何导入elmentplus中文包?
from tiny-engine.
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)
- 🐛 [Bug]: 无法加载第三方组件 HOT 13
- 🐛 [Bug]: 生成本地代码弹窗无勾选列表 HOT 5
- 🐛 [Bug]: Drag into the TinyForm form, click to generate code, and the input box is displayed as a button HOT 9
- ✨ [Feature]: 路由跳转之类的的出码 HOT 3
- 🐛 [Bug]: 执行 npm run build:prod 报错 HOT 5
- 🐛 [Bug]: Tap Full Screen No Response HOT 2
- 🐛 [Bug]: Button hierarchy issues HOT 7
- 🐛 [Bug]: 添加ElTable和ElTableColumn组件后,在编辑器中ElTableColumn不能选中 HOT 7
- 🐛 [Bug]: 区块编辑内容时,如果点击右上角清除画板内容,右侧属性面板不再展示添加属性按钮 HOT 3
- 🐛 [Bug]: cdn地址管了, 替代cdn HOT 3
- ✨ [Feature]: 通过iframe将tinyEngine嵌入到项目中,项目配置组件的json用postMessage传给tinyEngine,如何正确渲染至画布 HOT 2
- 🐛 [Bug]: 多个区块分类时 区块分类的显示 修改有问题 HOT 5
- 🐛 [Bug]: preview一直处于“页面加载中...”的提示,console提示文件未找到 HOT 15
- 🐛 [Bug]: 无法添加loading HOT 2
- 🐛 [Bug]: 在组件属性中改变size的值未成功,console报错 HOT 1
- 自定义一个类似@opentiny/vue里面的组件并引入tiny-engine平台,编辑时显示,预览和导出代码到tiny-engine-generate-preview时不显示,tiny-engine-generate-preview的项目暂时是可以手动Install解决🐛 [Bug]: HOT 3
- 🐛 [Bug]: 右侧的组件属性面板区的样式里面没法通过json配置设置默认值,如我要设置个尺寸宽(W)为 60的默认值 HOT 1
- 🐛 [Bug]: 组件元数据结构规范contentMenu属性右键菜单动作配置了没起效 HOT 1
- 🐛 [Bug]: TinyRadioGroup造成无法操作问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiny-engine.